List purchase orders
Summary rows - everything but receipts and payments (fetch the order for those). Filter by status (comma-separated), supplier_id, location_id (Shopify id), type, and archived (true for archived only, all for both; archived orders are left out by default).
next_cursor from the previous page. A cursor that cannot be read is 400 invalid_cursor.400 invalid_filter.purchasereturntruefalseallcurl "https://api.stockroom.app/v2/purchase_orders" \
-H "Authorization: Bearer $STOCKROOM_KEY"{
"data": [
{
"id": 1,
"number": "PO-1042",
"sequential_id": 1042,
"status": "ordered",
"type": "purchase",
"archived": false,
"archived_at": null,
"source": "api",
"supplier": {
"id": 7,
"name": "Acme Supply Co"
},
"supplier_id": 7,
"currency": "USD",
"exchange_rate": {
"rate": 1.36,
"base_currency": "USD",
"date": "2026-09-02",
"source": "api"
},
"reference": "INV-8812",
"customer_order_number": null,
"supplier_order_number": "SO-77120",
"invoice_number": null,
"account_number": "AC-2231",
"notes": null,
"expected_at": "2026-09-20",
"payment_due_on": "2026-10-02",
"payment_status": "unpaid",
"paid_at": null,
"location": {
"id": 61234567890,
"name": "Main warehouse"
},
"updates_stock": true,
"ships_to_customer": false,
"ship_to_address": null,
"tax": {
"rate_id": 1,
"name": "Acme Supply Co",
"rate_percent": 8.25,
"taxes_included": false,
"charges_taxable": true
},
"totals": {
"currency": "USD",
"subtotal": "300.00",
"charges": "0.00",
"tax": "24.75",
"total": "324.75"
},
"lines": [
{
"id": 5001,
"position": 1,
"product_title": "Stoneware mug",
"variant_title": "Blue",
"sku": "MUG-BLU",
"supplier_sku": "ACME-MUG-BLU",
"barcode": "0123456789012",
"pack_code": "CS12",
"inventory_item_id": 44811223344,
"variant_id": 40011223344,
"product_id": 7011223344,
"location_id": 61234567890,
"quantity": 24,
"cancelled_quantity": 0,
"received_quantity": 12,
"outstanding_quantity": 12,
"unit_cost": "12.50",
"discount_percent": null,
"line_total": "300.00",
"taxable": true,
"tax_rate_percent": 8.25,
"weight_grams": 250,
"supplier_note": null,
"internal_note": null
}
],
"charges": [],
"shopify_sync": {
"state": "synced",
"attempted_at": "2026-09-11T08:12:46Z",
"error": null
},
"sent_at": "2026-09-02T14:03:22Z",
"ordered_at": "2026-09-02T14:05:10Z",
"in_transit_at": null,
"received_at": null,
"closed_at": null,
"created_at": "2026-09-01T10:00:00Z",
"updated_at": "2026-09-11T08:12:44Z"
}
],
"next_cursor": "eyJpZCI6MTA0Mn0",
"has_more": true
}