Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.
Accept a proposal from the public page
POST
/api/v1/proposals/public/{token}/accept
const url = 'https://api.pitch2sale.com/api/v1/proposals/public/example/accept';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"full_name":"example","signature_data":"example","signer_email":"hello@example.com","selections":[{"id":"example","selected":true,"quantity":1}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.pitch2sale.com/api/v1/proposals/public/example/accept \ --header 'Content-Type: application/json' \ --data '{ "full_name": "example", "signature_data": "example", "signer_email": "hello@example.com", "selections": [ { "id": "example", "selected": true, "quantity": 1 } ] }'Unauthenticated. Records the signer’s typed full_name (and optional drawn signature and pricing selections); fails if the proposal was already accepted or declined.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”token
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
full_name
required
string
signature_data
string
signer_email
string format: email
selections
Array<object>
object
id
required
string
selected
boolean
quantity
number
Examplegenerated
{ "full_name": "example", "signature_data": "example", "signer_email": "hello@example.com", "selections": [ { "id": "example", "selected": true, "quantity": 1 } ]}Responses
Section titled “Responses”OK
Validation failed
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}Rate limit exceeded
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}