GuideLab API

List purchase orders

Returns a paginated list of purchase orders for the current organization. Supports filtering by status and supplier.

GET
/inventory/purchase-orders

Returns a paginated list of purchase orders for the current organization. Supports filtering by status and supplier.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Query Parameters

page?integer
Range0 < value
Default1
limit?integer
Range0 < value <= 100
Default20
status?string

Value in

  • "draft"
  • "sent"
  • "partially_received"
  • "received"
  • "cancelled"
supplierId?string

Response Body

application/json

curl -X GET "https://example.com/inventory/purchase-orders"
{  "data": [    {      "id": "string",      "poNumber": "string",      "status": "string",      "supplierId": "string",      "subtotal": "string",      "taxAmount": "string",      "totalAmount": "string",      "currency": "string",      "orderDate": "string",      "expectedDeliveryDate": "string",      "receivedDate": "string",      "notes": "string",      "createdAt": "string",      "supplierName": "string"    }  ],  "pagination": {    "page": 0,    "limit": 0,    "total": 0,    "totalPages": 0  }}
Empty
Empty