API referenceOrders
List orders
GET
List orders, newest first.
storeKeyheader
AuthorizationBearer <vtk_...>A store API and MCP key
storeId*stringThe store id
limit?integerRange
1 <= value <= 100Default
25page?integerRange
1 <= valueDefault
1status?stringValue in
"open""fulfilled""cancelled"payment_status?stringValue in
"paid""pending""partially_refunded""refunded""test"fulfillment_status?stringValue in
"unfulfilled""sent_to_supplier""shipped""delivered""returned"channel?stringemail?stringThe customer's email, exact
q?stringNumber, name, email or tracking
created_after?stringFormat
date-timecreated_before?stringFormat
date-timeupdated_after?stringFormat
date-timesort?stringValue in
"created_desc""created_asc""updated_desc""updated_asc"OK
application/json- response
data*array<>pagination*curl -X GET 'https://starsell.app/api/v1/stores/string/orders'Example Response
{ "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, "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" } ], "pagination": { "page": 0, "limit": 0, "total": 0, "has_more": true }}Get an order GET
Get an order.
Update an order PATCH
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.