ShopItUp Developers v1

Checkout

Has the person paid?

Live

GET https://shopitup.ca/api/v1/checkout/sessions/{checkout_id}
Access
checkout:write How to get a token
Returns
The checkout and, once paid, its order number

Path parameters

  • checkout_id string Required

Response

200 The checkout and, once paid, its order number

  • checkout_id string
  • status string

    awaiting_payment until the person pays; paid (with order_number); cancelled if the order was; expired once the link lapsed unpaid

    One of awaiting_payment paid cancelled expired
  • checkout_url string uri

    Give this to the person — it opens the store's checkout with the order filled in, where they accept the terms and pay

  • expires_at string date-time
  • order_number string Can be null

    Set once paid

  • totals Totals

    subtotal − discount + shipping + tax = grand_total

    5 child attributes
    • subtotal Money
      2 child attributes
      • amount string Required

        Decimal string, two places

      • currency string Required
        One of CAD
    • discount Money
      2 child attributes
      • amount string Required

        Decimal string, two places

      • currency string Required
        One of CAD
    • shipping Money
      2 child attributes
      • amount string Required

        Decimal string, two places

      • currency string Required
        One of CAD
    • tax Money
      2 child attributes
      • amount string Required

        Decimal string, two places

      • currency string Required
        One of CAD
    • grand_total Money
      2 child attributes
      • amount string Required

        Decimal string, two places

      • currency string Required
        One of CAD

Status codes

200

The checkout and, once paid, its order number

401

Missing, invalid or expired access token

404

Not found, or not listed on this marketplace

429

Too many requests; retry after the number of seconds in Retry-After

503

A service the API depends on is briefly unavailable; retry after the number of seconds in Retry-After

Errors share one shape — see Errors and rate limits.