| GET | /Purchasing/LeadTimes | Lead time statistics (median, 90th percentile, mean, minimum, maximum and sample counts) per creditor and inventory classification or category, over a window of receipt dates, in one response. | |
|---|---|---|---|
| GET | /Purchasing/WarehouseLeadTimes | Lead time statistics per creditor and inventory classification or category, optionally filtered to physical warehouses (PhysicalIDs) and split by the receiving warehouse (SplitByWarehouse). |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DateFrom | query | string | No | |
| DateTo | query | string | No | |
| GroupBy | query | string | No | |
| CreditorID | query | string | No | |
| MinHours | query | string | No | |
| PhysicalIDs | query | string | No | |
| SplitByWarehouse | query | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Purchasing/LeadTimes HTTP/1.1 Host: api.redpoint.com.au Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
[{"CreditorID":"String","CreditorAccountNo":"String","CreditorName":"String","PhysicalID":"String","GroupID":"String","MeanDays":0,"MedianDays":0,"P90Days":0,"MinDays":0,"MaxDays":0,"StatedDays":0,"StatedSource":"String"}]