Checkout
Has the person paid?
Live
https://shopitup.ca/api/v1/checkout/sessions/{checkout_id}
- Access
-
checkout:writeHow to get a token - Returns
- The checkout and, once paid, its order number
Path parameters
-
checkout_idstring Required
Response
200 The checkout and, once paid, its order number
-
checkout_idstring -
statusstringawaiting_payment until the person pays; paid (with
order_number); cancelled if the order was; expired once the link lapsed unpaid -
checkout_urlstring uriGive this to the person — it opens the store's checkout with the order filled in, where they accept the terms and pay
-
expires_atstring date-time -
order_numberstring Can be nullSet once paid
-
totalsTotalssubtotal − discount + shipping + tax = grand_total
5 child attributes
-
subtotalMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
discountMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
shippingMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
taxMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
grand_totalMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
Status codes
The checkout and, once paid, its order number
Missing, invalid or expired access token
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