API referencePurchase orders
List purchase orders
GET
List purchase 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
"draft""ordered""partial""received""closed""cancelled"supplier_id?stringFormat
uuidupdated_after?stringFormat
date-timeOK
application/json- response
data*array<>pagination*curl -X GET 'https://starsell.app/api/v1/stores/string/purchase-orders'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "number": 0, "label": "string", "status": "draft", "supplier": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "email": "string" }, "currency": "string", "lines": [ { "variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6", "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1", "title": "string", "variant_name": "string", "sku": "string", "quantity": 0, "received": 0, "cost_minor": 0 } ], "units": 0, "received_units": 0, "subtotal_minor": 0, "shipping_minor": 0, "total_minor": 0, "reference": "string", "note": "string", "expected_at": "2019-08-24T14:15:22Z", "ordered_at": "2019-08-24T14:15:22Z", "received_at": "2019-08-24T14:15:22Z", "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 }}