JiwaAPI

<back to all web services

sh_SalesOrderQuery

Requires Authentication
The following routes are available for this service:
GET/Queries/sh_SalesOrdersRetrieves a list of sh sales orders
sh_SalesOrderQuery Parameters:
NameParameterData TypeRequiredDescription
InvoiceIDquerystringNo
InvoiceIDStartsWithquerystringNo
InvoiceIDEndsWithquerystringNo
InvoiceIDContainsquerystringNo
InvoiceIDLikequerystringNo
InvoiceIDBetweenquerystring[]No
InvoiceIDInquerystring[]No
SourcequerystringNo
DocTypequeryintNo
DebtorIDquerystringNo
QueryBase Parameters:
NameParameterData TypeRequiredDescription
Skipformint?No
Takeformint?No
OrderByformstringNo
OrderByDescformstringNo
IncludeformstringNo
FieldsformstringNo
MetaformDictionary<string, string>No
sh_SalesOrder Parameters:
NameParameterData TypeRequiredDescription
InvoiceIDformstringNo
LastSavedDateTimeformDateTimeNo
DebtorIDformstringNo
StaffIDformstringNo
InvoiceNoformstringNo
InvoiceInitDateformDateTimeNo
InvoiceLastDateformDateTimeNo
OrderNoformstringNo
TaxExemptNoformstringNo
InvoiceTotalformdecimal?No
CurrentHistoryNoformshort?No
Statusformint?No
BillWhenCompleteformshortNo
CreditNoteformboolNo
InvoiceTypeformshort?No
GroupSupplierIDformstringNo
IN_LogicalIDformstringNo
BranchIDformstringNo
SOReferenceformstringNo
ParentDebtorIDformstringNo
BackOrderModeformshortNo
DocTypeformintNo
GSTInvoiceformboolNo
ExpectedDeliveryDateformDateTime?No
SourceQuoteIDformstringNo
PriceSchemeIDformstringNo
LastModifiedByformstringNo
InvoiceHistoryIDformstringNo
RecordDateformDateTimeNo
RefformstringNo
HistoryNoformshort?No
HistoryTotalformdecimal?No
DelAddress1formstringNo
DelAddress2formstringNo
DelAddress3formstringNo
DelAddress4formstringNo
HistoryPostCodeformstringNo
NotesformstringNo
CourierDetailsformstringNo
PaymentTypeIDformstringNo
PaymentRefformstringNo
AmountPaidformdecimal?No
RunNoformstringNo
DelContactNameformstringNo
DeliveredformboolNo
DeliveredDateformDateTime?No
FreightForwardAddress1formstringNo
FreightForwardAddress2formstringNo
FreightForwardAddress3formstringNo
FreightForwardAddress4formstringNo
FreightForwardNotesformstringNo
HistoryStatusformbyte?No
EmailAddressformstringNo
ConsignmentNoteformstringNo
DateCreatedformDateTime?No
DateLastSavedformDateTime?No
DatePostedformDateTime?No
DateProcessedformDateTime?No
DropShipmentformboolNo
DeliveryAddresseeformstringNo
DeliveryAddressCountryformstringNo
FreightForwardAddressCountryformstringNo
OrderedByIDformstringNo
DeliveryContactIDformstringNo
CostCenterformstringNo
ExpressedInterestInInsuranceformboolNo
PrimaryOrderIDformstringNo
InsuranceOrderIDformstringNo
HasWarrantyUpliftformboolNo
HasLicensingformboolNo
WarrantyUpliftDocumentCountformintNo
LicenseDocumentCountformintNo
SourceformstringNo
DispatchedOnformDateTimeNo
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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Queries/sh_SalesOrders HTTP/1.1 
Host: localhost 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Results":[{"InvoiceID":"String","DebtorID":"String","StaffID":"String","InvoiceNo":"String","OrderNo":"String","TaxExemptNo":"String","InvoiceTotal":0,"CurrentHistoryNo":0,"Status":0,"InvoiceType":0,"GroupSupplierID":"String","IN_LogicalID":"String","BranchID":"String","SOReference":"String","ParentDebtorID":"String","ExpectedDeliveryDate":"0001-01-01T00:00:00.0000000","SourceQuoteID":"String","PriceSchemeID":"String","LastModifiedBy":"String","InvoiceHistoryID":"String","Ref":"String","HistoryNo":0,"HistoryTotal":0,"DelAddress1":"String","DelAddress2":"String","DelAddress3":"String","DelAddress4":"String","HistoryPostCode":"String","Notes":"String","CourierDetails":"String","PaymentTypeID":"String","PaymentRef":"String","AmountPaid":0,"RunNo":"String","DelContactName":"String","DeliveredDate":"0001-01-01T00:00:00.0000000","FreightForwardAddress1":"String","FreightForwardAddress2":"String","FreightForwardAddress3":"String","FreightForwardAddress4":"String","FreightForwardNotes":"String","HistoryStatus":0,"EmailAddress":"String","ConsignmentNote":"String","DateCreated":"0001-01-01T00:00:00.0000000","DateLastSaved":"0001-01-01T00:00:00.0000000","DatePosted":"0001-01-01T00:00:00.0000000","DateProcessed":"0001-01-01T00:00:00.0000000","DeliveryAddressee":"String","DeliveryAddressCountry":"String","FreightForwardAddressCountry":"String","OrderedByID":"String","DeliveryContactID":"String","CostCenter":"String","PrimaryOrderID":"String","InsuranceOrderID":"String","Source":"String"}],"Meta":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}