Openapi
Return purchase orders to suppliers, newest first.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidlimit*integer1 <= value <= 10050offset*integer0 <= value <= 90071992547409910q?stringlength <= 200status?string"draft""sent""partially_received""received""closed""canceled"supplierId?stringuuidReturns purchase orders.
application/jsondata*array<>pagination*curl -X GET 'https://app.localhost/api/v1/organizations/123/purchase-orders?limit=1&offset=1&q=example&status=example&supplierId=123e4567-e89b-12d3-a456-426614174000'{ "data": [ { "canceledAt": "string", "closedAt": "string", "createdAt": "string", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "currency": "string", "exchangeRate": 0, "expectedAt": "2019-08-24", "formattedNumber": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "lineCount": 0, "number": 0, "receivedAt": "string", "receivedRatio": 0, "sentAt": "string", "shipToLocationId": "17d01ddf-03d0-401e-8692-7b8be54e80b5", "shipToLocationName": "string", "status": "draft", "subtotalExcl": 0, "supplier": { "email": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "orderingEmail": "string" }, "supplierReference": "string", "templateId": "196100ac-4eec-4fb6-a7f7-86c8b584771d", "totalIncl": 0, "updatedAt": "string", "vatTotal": 0 } ], "pagination": { "hasMore": true, "limit": 1, "offset": 0, "total": 0, "totalIsEstimate": true }}