Approve Order

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Requires the Store plan feature (403 otherwise). Approves an order waiting for the seller's approval (approval_state pending_approval in Get Orders). This cannot be undone.

Approving creates the purchased products and emails the customer that the order is approved. For an order with physical items, the partner is emailed too, once the buyer has given any required post-purchase details. The order records the calling API key as its approver: approved_by is { "type": "api_key", "name": "<key name>" } (Unnamed API key when the key has no name).

Body

  • warranty_start_dates — optional object { "<order_item_id>": "YYYY-MM-DD" }. Required for every warranty item of the order (warranty: true in Get Order); dates already stored for an item (warranty_start_at in Get Order) may be left out. Item ids are matched case-insensitively.

The body is checked before the order's state: a malformed body gets 422 even on an order that is already approved. On an already approved order, valid dates are ignored and the stored ones stay.

Success

200 OK — the order, in the shape of Get Order, with approval_state approved.

Approving an order that is already approved returns 200 OK with the order and changes nothing (no second email; approved_by keeps the first approver).

Errors

  • 401 — missing or invalid API key.
  • 403 — brand partner API key (read-only), or the partner has no Store plan feature.
  • 404 — unknown order, or another partner's order. Returned before the body is checked.
  • 422 Order does not require approval — the order was never held for approval.
  • 422 Order is not waiting for approval — e.g. the order is not paid yet, or is a purchase order not yet approved.
  • 422 warranty_start_dates must be an object — the value is not a JSON object (null counts as absent).
  • 422 Warranty start date of order item <id> must be a YYYY-MM-DD date — the value is not a real calendar date in YYYY-MM-DD form (for example 2026-02-30 or 15/01/2026), or not a string (null included).
  • 422 A warranty start date is required for every warranty product before the order can be approved — a warranty item has no date.
  • 422 Unknown order item <id> / Order item <id> is not a warranty product — a key of warranty_start_dates is wrong.
🚧

Brand partner keys are read-only

A brand partner's API key (a partner account with a Brands page in the partner portal) can only send GET and HEAD requests. Any other request returns 403 { "error": "Brand partner API keys are read-only: only GET and HEAD requests are allowed." }

Path Params
string
required

Order ID

Body Params
warranty_start_dates
object

{ "<order_item_id>": "YYYY-MM-DD" }. Required for every warranty item of the order.

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json