Skip to main content
POST
JavaScript

Authorizations

x-api-key
string
header
required

Body

application/json
requestId
string
required

The id of the input request being answered, from inputRequests[].id on Cart Purchase Status

Pattern: ^[a-zA-Z]{3}-ref_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}$
Example:

"inp-ref_3fa85f64-5717-4562-b3fc"

value
required

The buyer's answer, by the request's type. code: the code as a string; spaces and dashes are dropped, and it is otherwise 4 to 10 letters and digits. text: one line of text. choice: the id of the option picked. confirm: true or false. An approval or a link request takes no answer.

Maximum string length: 200
Example:

"482913"

Response

The answer was accepted and the purchase goes on with it. The order, still processing

refId
string
required
Pattern: ^[a-zA-Z]{3}-ref_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}$
status
enum<string>
required

pending / processing while the purchase runs. It then settles: complete (every item bought), partially_complete (some items bought — see products[].status), failed (nothing bought — see error), or cancelled (stopped by Cart Purchase Cancel before anything was bought). An order can stay processing for up to an hour before it settles.

Available options:
pending,
processing,
complete,
partially_complete,
failed,
cancelled
products
object[]
required
details
object
required
inputRequests
object[]
required

What the purchase is waiting on the buyer for, while it is processing: most often a code a store sent them. Show each request's message to the buyer and answer it with Cart Purchase Input before its expiresAt. Empty when the purchase is waiting on nothing, which is nearly always, and always when the purchase was made with allowInputRequests: false.

result
object
error
object

Why items failed, once the order has settled as failed or partially_complete. Absent while the purchase runs and when every item was bought.