Update an order
Move an order on: ship with tracking, deliver, cancel, mark paid, refund in full, add a note, set tags or the staff note, archive. Everything sent is applied together, or nothing is. Needs a key that can edit. Send an Idempotency-Key to make a retry safe: a repeat within 24 hours gets the first answer back instead of running again.
storeKeyAuthorizationBearer <vtk_...>A store API and MCP key
storeId*stringThe store id
orderId*stringThe order id, or its number (1042)
Idempotency-Key?stringMakes a retry safe: the first call with this key runs, and a repeat within 24 hours (same path and body) gets the same answer back without running again. Per store. A call that failed keeps nothing, so its repeat runs again. The same key with another path or body is refused with 422.
^[!-~]+$1 <= length <= 255application/json- body
fulfillment_status?string"sent_to_supplier""shipped""delivered""returned"status?"cancelled""cancelled"payment_status?string"paid""refunded"tracking?stringWith fulfillment_status shipped, or alone to change it on an order that left
note?stringAdded to the order timeline. Each call adds it again, unless it repeats an Idempotency-Key
tags?array<>staff_note?|nullarchived?booleantrue archives the order, false brings it back
OK
application/json- response
data*curl -X PATCH 'https://starsell.app/api/v1/stores/string/orders/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "number": 0, "label": "string", "status": "open", "payment_status": "paid", "fulfillment_status": "unfulfilled", "currency": "string", "subtotal_minor": 0, "discount_minor": 0, "discounts": [ { "discount_id": "49c104c1-008b-4f4f-abbc-6958059cb48b", "code": "string", "title": "string", "kind": "amount_off_products", "amount_minor": 0 } ], "shipping_minor": 0, "tax_minor": 0, "tax_included": true, "tip_minor": 0, "payment_method": "string", "total_minor": 0, "channel": "string", "tracking": "string", "test": true, "tags": [ "string" ], "staff_note": "string", "archived": true, "archived_at": "2019-08-24T14:15:22Z", "customer": { "email": "string", "phone": "string", "name": "string", "first_name": "string" }, "shipping_address": { "line1": "string", "city": "string", "zip": "string", "country": "string" }, "note": "string", "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1", "variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6", "title": "string", "variant_name": "string", "quantity": 0, "price_minor": 0, "discount_minor": 0, "image_url": "string", "parts": [ { "product_id": "string", "variant_id": "string", "title": "string", "variant_name": "string", "quantity": 0 } ] } ], "item_count": 0, "status_url": "string", "admin_url": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }}List orders GET
List orders, newest first.
Create a refund POST
Refund units of lines, shipping and/or an amount. Each unit goes back in stock at most once, and money back never passes what the customer still has paid in. The order becomes partially_refunded, or refunded once nothing is left. Needs a key that can edit. Send an Idempotency-Key to make a retry safe: a repeat within 24 hours gets the first answer back instead of running again.