Skip to Content
StarsellDocs
API referencePurchase orders

Get a purchase order

GET
/stores/{storeId}/purchase-orders/{purchaseOrderId}

Get a purchase order.

Authorization

storeKey
headerAuthorizationBearer <vtk_...>

A store API and MCP key

Path Parameters

storeId*string

The store id

purchaseOrderId*string

The purchase order id, or its number (1004 or PO-1004)

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://starsell.app/api/v1/stores/string/purchase-orders/string'
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"  }}