Update order
Modify an existing order's details. Can update status, value, fee, tax, and currency. Requires write access. Note: Use with caution as this directly modifies order records. For most cases, use the refund or cancel endpoints instead. A store that has moved to the new platform answers 409: its orders follow their payments there.
Authorization
Public key Secret key In: header
In: header
Path Parameters
Order identifier - either the order UUID or the order number as returned in 'number' (e.g., L8VQK3N2M7KpQ9nR). This endpoint also accepts the number with the leading '#' the dashboard shows; subscription endpoints do not, so prefer sending it without.
Request Body
application/json
PATCH /v0/orders/:orderIdOrNumber/update Request body
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/v0/orders/550e8400-e29b-41d4-a716-446655440000/update" \ -H "Content-Type: application/json" \ -d '{}'{ "status": "success", "data": { "order": { "object": "order", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "number": "string", "status": "PENDING", "value": 0, "tax": 0, "fee": 0, "totalItems": 0, "country": null, "currency": "AFN", "currencyDecimals": null, "createdAt": 0, "userId": null, "user": null, "lastPaymentId": null, "lastPaymentNumber": null, "lastPayment": null, "subscriptionId": null, "subscription": null, "checkoutId": null, "orderNumber": "string" } }}Get order details GET
Retrieve detailed information about a specific order by its ID or order number. Returns the full order object including associated user, cart items, subscription (if applicable), and payment details. For subscription orders, also returns the current subscription status.
Cancel order PATCH
Cancel an order that is still waiting for payment, so the buyer can no longer pay for it. Only orders with status PENDING can be cancelled. Any other status (including PAID, REFUNDED, PARTIALLY_REFUNDED and FAILED) returns 400. To give a buyer their money back for a paid order, use the refund endpoint instead. Cancelling an order that is already CANCELLED returns it unchanged. If the order has a payment in progress, its payment is cancelled first, and the order is marked CANCELLED only once that succeeds. If the payment can no longer be cancelled (for example, the buyer has just paid), the endpoint returns 400 and the order is left as it was. Only Stripe payments can be cancelled this way. A 503 means the payment service could not be reached, and a 409 that the payment changed while the order was being cancelled; both are safe to retry. Requires write access.