JiwaAPI

<back to all web services

DeliveryRunLinesQuery

Requires Authentication
The following routes are available for this service:
GET/Queries/DeliveryRunLinesEvery line of every sales order delivery on a delivery run, with its bin and the stock at the order's warehouse (AutoQuery).
DeliveryRunLinesQuery Parameters:
NameParameterData TypeRequiredDescription
RunIDquerystringNo
DeliveryDatequeryDateTime?No
DeliveryDateGreaterThanOrEqualToqueryDateTime?No
DeliveryDateLessThanqueryDateTime?No
QueryBase Parameters:
NameParameterData TypeRequiredDescription
Skipformint?No
Takeformint?No
OrderByformstringNo
OrderByDescformstringNo
IncludeformstringNo
FieldsformstringNo
MetaformDictionary<string, string>No
v_TFM_DeliveryRunLines Parameters:
NameParameterData TypeRequiredDescription
RunIDformstringNo
DeliveryDateformDateTime?No
InvoiceIDformstringNo
InvoiceHistoryIDformstringNo
InvoiceNoformstringNo
OrderNoformstringNo
OrderStatusformshort?No
HistoryNoformshort?No
DateProcessedformDateTime?No
DebtorIDformstringNo
AccountNoformstringNo
DebtorNameformstringNo
DeliveryAddresseeformstringNo
DelAddress1formstringNo
DelAddress2formstringNo
DelAddress3formstringNo
DelAddress4formstringNo
PostCodeformstringNo
DelContactNameformstringNo
IN_LogicalIDformstringNo
LogicalWarehouseformstringNo
IN_PhysicalIDformstringNo
InvoiceLineIDformstringNo
LineNumformshort?No
CommentLineformbool?No
InventoryIDformstringNo
PartNoformstringNo
DescriptionformstringNo
UnitsformstringNo
QuantityOrderedformdecimal?No
QuantityThisDelformdecimal?No
QuantityBackOrdformdecimal?No
Pickedformbool?No
BinLocationformstringNo
WarehouseQuantityLeftformdecimal?No
WarehouseQuantityAllocatedformdecimal?No
QueryResponse<T> Parameters:
NameParameterData TypeRequiredDescription
OffsetformintNo
TotalformintNo
ResultsformList<T>No
MetaformDictionary<string, string>No
ResponseStatusformResponseStatusNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}