iotoms Docs

List outstanding purchase orders

GET
/api/v1/reports/procurement/outstanding

Returns every purchase order still in DRAFT, SUBMITTED, APPROVED, SENT or PARTIAL status, most recently created first, with days overdue when the expected delivery date has passed. Not date-filtered or paginated.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Header Parameters

X-TenantID*string

Your merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.

Response Body

OK

*/*
  1. response
status*string

Outcome of the call: SUCCESS when the request worked, ERROR when it did not.

message*string

Short human-readable message describing the result, for logs or display; do not parse it.

data?array<>|

Open purchase orders, newest first.

Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/reports/procurement/outstanding' \  -H 'X-TenantID: your-tenant-code'
Example Response
{  "status": "string",  "message": "string",  "data": [    {      "poId": "string",      "poNumber": "string",      "vendorName": "string",      "orderDate": "2019-08-24",      "expectedDeliveryDate": "2019-08-24",      "totalAmount": 0,      "status": "string",      "daysOverdue": 0    }  ]}