ShopItUp Developers v1

Purchases

A purchase as it stands now

Live

GET https://shopitup.ca/api/v1/purchases/{purchase_id}
Access
purchase:write How to get a token
Returns
The purchase — paid, processing, cancelled or refunded; whether it has shipped

Path parameters

  • purchase_id string Required

Response

200 The purchase — paid, processing, cancelled or refunded; whether it has shipped

  • purchase_id string
  • status string
    One of held paid processing requires_person refused cancelled refunded
  • order_number string
  • fulfilment string
    One of processing shipped
  • totals object
    1 child attribute
    • grand_total Money
      2 child attributes
      • amount string Required

        Decimal string, two places

      • currency string Required
        One of CAD
  • cancel_until string date-time

    Until when the person can cancel from their email. For a held purchase, cancelling releases the hold and nothing is charged.

  • charges_at string date-time

    While held, when the card will be charged unless the person cancels; null once charged or closed.

  • created_at string date-time
  • checkout object

    Only with requires_person — a checkout link for the person to pay themselves.

    3 child attributes
    • checkout_id string
    • checkout_url string uri
    • expires_at string date-time
  • error object

    Why it was refused, or why the person must pay themselves.

    2 child attributes
    • code string
    • message string

Status codes

200

The purchase — paid, processing, cancelled or refunded; whether it has shipped

401

Missing, invalid or expired access token

403

The token does not carry the scope this endpoint needs

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.