| GET | /Queries/DeliveryRunLines | Every line of every sales order delivery on a delivery run, with its bin and the stock at the order's warehouse (AutoQuery). |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RunID | query | string | No | |
| DeliveryDate | query | DateTime? | No | |
| DeliveryDateGreaterThanOrEqualTo | query | DateTime? | No | |
| DeliveryDateLessThan | query | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Skip | form | int? | No | |
| Take | form | int? | No | |
| OrderBy | form | string | No | |
| OrderByDesc | form | string | No | |
| Include | form | string | No | |
| Fields | form | string | No | |
| Meta | form | Dictionary<string, string> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RunID | form | string | No | |
| DeliveryDate | form | DateTime? | No | |
| InvoiceID | form | string | No | |
| InvoiceHistoryID | form | string | No | |
| InvoiceNo | form | string | No | |
| OrderNo | form | string | No | |
| OrderStatus | form | short? | No | |
| HistoryNo | form | short? | No | |
| DateProcessed | form | DateTime? | No | |
| DebtorID | form | string | No | |
| AccountNo | form | string | No | |
| DebtorName | form | string | No | |
| DeliveryAddressee | form | string | No | |
| DelAddress1 | form | string | No | |
| DelAddress2 | form | string | No | |
| DelAddress3 | form | string | No | |
| DelAddress4 | form | string | No | |
| PostCode | form | string | No | |
| DelContactName | form | string | No | |
| IN_LogicalID | form | string | No | |
| LogicalWarehouse | form | string | No | |
| IN_PhysicalID | form | string | No | |
| InvoiceLineID | form | string | No | |
| LineNum | form | short? | No | |
| CommentLine | form | bool? | No | |
| InventoryID | form | string | No | |
| PartNo | form | string | No | |
| Description | form | string | No | |
| Units | form | string | No | |
| QuantityOrdered | form | decimal? | No | |
| QuantityThisDel | form | decimal? | No | |
| QuantityBackOrd | form | decimal? | No | |
| Picked | form | bool? | No | |
| BinLocation | form | string | No | |
| WarehouseQuantityLeft | form | decimal? | No | |
| WarehouseQuantityAllocated | form | decimal? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Offset | form | int | No | |
| Total | form | int | No | |
| Results | form | List<T> | No | |
| Meta | form | Dictionary<string, string> | No | |
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Queries/DeliveryRunLines HTTP/1.1 Host: api.wagga.redpoint.com.au Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Results":[{"RunID":"String","DeliveryDate":"0001-01-01T00:00:00.0000000","InvoiceID":"String","InvoiceHistoryID":"String","InvoiceNo":"String","OrderNo":"String","OrderStatus":0,"HistoryNo":0,"DateProcessed":"0001-01-01T00:00:00.0000000","DebtorID":"String","AccountNo":"String","DebtorName":"String","DeliveryAddressee":"String","DelAddress1":"String","DelAddress2":"String","DelAddress3":"String","DelAddress4":"String","PostCode":"String","DelContactName":"String","IN_LogicalID":"String","LogicalWarehouse":"String","IN_PhysicalID":"String","InvoiceLineID":"String","LineNum":0,"CommentLine":false,"InventoryID":"String","PartNo":"String","Description":"String","Units":"String","QuantityOrdered":0,"QuantityThisDel":0,"QuantityBackOrd":0,"Picked":false,"BinLocation":"String","WarehouseQuantityLeft":0,"WarehouseQuantityAllocated":0}],"Meta":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}