API referencePurchase orders
Get a purchase order
GET
Get a purchase order.
storeKeyheader
AuthorizationBearer <vtk_...>A store API and MCP key
storeId*stringThe store id
purchaseOrderId*stringThe purchase order id, or its number (1004 or PO-1004)
OK
application/json- response
data*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" }}