Checkout
Price an order
Live
https://shopitup.ca/api/v1/checkout/quotes
Checks availability again and returns shipping options and tax for each store in the order — priced exactly as
the store's checkout prices it. A quote is valid for 15 minutes. Nothing is reserved: items are one of a kind
and stay buyable by others until paid. Anything that cannot be included is listed in unavailable with its
reason, and the rest is priced without it.
Tax is worked out for the delivery address exactly as the store's checkout works it out.
- Access
-
checkout:writeHow to get a token - Returns
- The quote
Request body
JSON, sent with Content-Type: application/json.
-
itemsarray of objects Required2 child attributes
-
catalog_item_idstring Required -
quantityinteger Can be null
-
-
shipping_addressAddress Required8 child attributes
-
namestring Required -
line1string Required -
line2string Can be null -
citystring Required -
provincestring RequiredTwo-letter province code
-
postal_codestring Required -
countrystring Required -
phonestring Can be null
-
-
couponstring Can be null
Response
201 The quote
-
quote_idstring -
expires_atstring date-time -
storesarray of StoreQuote9 child attributes
-
storeStoreSummary4 child attributes
-
slugstring RequiredThe store's address label; use it in the
storefilter andGET /stores/{store_slug} -
namestring Required -
urlstring uri Required -
agent_checkoutstring RequiredHow an assistant completes a purchase here.
link— create a checkout and give the person its link; they review and pay on the store.direct— the store also accepts purchases an assistant makes for a person who allowed it, within the limits they set. Every store islinkunless its owner opted in.
-
-
itemsarray of objects4 child attributes
-
catalog_item_idstring -
titlestring -
quantityinteger -
priceMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
-
subtotalMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
discountMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
shipping_optionsarray of ShippingOption5 child attributes
-
keystringPass back in the checkout request's
shipping_selectionsto choose this option.flat_ratefor a store pricing from its own rates -
carrierstring -
servicestring -
priceMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
delivery_estimatestring Can be nullThe carrier's own delivery estimate, as it words it; null for a store's flat rate
-
-
selected_shippingstringKey of the option used unless the checkout chooses another (the cheapest)
-
free_shippingstringThe store's free-shipping deal for this order: the threshold, how much more of this store's items unlocks it, and whether it already has (shipping is then 0.00). Null when the store offers none. Worth telling the person — never a reason to add items they did not ask for.
-
taxMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
totalMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
-
unavailablearray of objectsItems that could not be included, and why
2 child attributes
-
catalog_item_idstring -
reasonstring
-
-
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 quote
Missing, invalid or expired access token
The token does not carry the scope this endpoint needs
The request is invalid; fields says which field and why
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