Purchases
A purchase as it stands now
Live
https://shopitup.ca/api/v1/purchases/{purchase_id}
- Access
-
purchase:writeHow to get a token - Returns
- The purchase — paid, processing, cancelled or refunded; whether it has shipped
Path parameters
-
purchase_idstring Required
Response
200 The purchase — paid, processing, cancelled or refunded; whether it has shipped
-
purchase_idstring -
statusstring -
order_numberstring -
fulfilmentstring -
totalsobject1 child attribute
-
grand_totalMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
-
cancel_untilstring date-timeUntil when the person can cancel from their email. For a held purchase, cancelling releases the hold and nothing is charged.
-
charges_atstring date-timeWhile held, when the card will be charged unless the person cancels; null once charged or closed.
-
created_atstring date-time -
checkoutobjectOnly with
requires_person— a checkout link for the person to pay themselves.3 child attributes
-
checkout_idstring -
checkout_urlstring uri -
expires_atstring date-time
-
-
errorobjectWhy it was refused, or why the person must pay themselves.
2 child attributes
-
codestring -
messagestring
-
Status codes
The purchase — paid, processing, cancelled or refunded; whether it has shipped
Missing, invalid or expired access token
The token does not carry the scope this endpoint needs
Not found, or not listed on this marketplace
Too many requests; retry after the number of seconds in Retry-After
A service the API depends on is briefly unavailable; retry after the number of seconds in Retry-After