Orders API
List orders
Section titled “List orders”GET /api/v1/ordersAuthorization: Bearer <token>Query parameters:
page,per_page— paginationstatus— filter by status (pending, confirmed, completed, etc.)
Get order
Section titled “Get order”GET /api/v1/orders/:idAuthorization: Bearer <token>Response includes order items, addresses, payment status, fulfillments.
Create order
Section titled “Create order”Orders are created through the checkout flow, not directly.
Update order status
Section titled “Update order status”PATCH /api/v1/orders/:id/statusAuthorization: Bearer <admin_token>{ "status": "completed" }Create fulfillment
Section titled “Create fulfillment”POST /api/v1/orders/:id/fulfillmentsAuthorization: Bearer <admin_token>{ "tracking_number": "1Z999AA10123456784", "carrier": "UPS", "items": [ { "order_item_id": "uuid", "quantity": 2 } ]}Add order note
Section titled “Add order note”POST /api/v1/orders/:id/notesAuthorization: Bearer <token>{ "content": "Customer requested gift wrapping", "is_internal": true }Refund order
Section titled “Refund order”POST /api/v1/payments/:id/refundAuthorization: Bearer <admin_token>{ "amount": 50.00, "reason": "Customer request" }