Skip to Content
StarsellDocs
API referencePurchase orders

List purchase orders

GET
/stores/{storeId}/purchase-orders

List purchase orders, newest first.

Authorization

storeKey
headerAuthorizationBearer <vtk_...>

A store API and MCP key

Path Parameters

storeId*string

The store id

Query Parameters

limit?integer
Range1 <= value <= 100
Default25
page?integer
Range1 <= value
Default1
status?string
Value in"draft""ordered""partial""received""closed""cancelled"
supplier_id?string
Formatuuid
updated_after?string
Formatdate-time

Response Body

OK

application/json
  1. response
data*array<>
pagination*
Example Request
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  }}