JiwaAPI

<back to all web services

SO_SalesHistoryQuery

Requires Authentication
SO_SalesHistoryQuery Parameters:
NameParameterData TypeRequiredDescription
SalesIDquerystringNo
SalesIDStartsWithquerystringNo
SalesIDEndsWithquerystringNo
SalesIDContainsquerystringNo
SalesIDLikequerystringNo
SalesIDBetweenquerystring[]No
SalesIDInquerystring[]No
DateRunqueryDateTime?No
DateRunGreaterThanOrEqualToqueryDateTime?No
DateRunGreaterThanqueryDateTime?No
DateRunLessThanqueryDateTime?No
DateRunLessThanOrEqualToqueryDateTime?No
DateRunNotEqualToqueryDateTime?No
DateRunBetweenqueryDateTime[]No
DateRunInqueryDateTime[]No
InvoiceDatequeryDateTime?No
InvoiceDateGreaterThanOrEqualToqueryDateTime?No
InvoiceDateGreaterThanqueryDateTime?No
InvoiceDateLessThanqueryDateTime?No
InvoiceDateLessThanOrEqualToqueryDateTime?No
InvoiceDateNotEqualToqueryDateTime?No
InvoiceDateBetweenqueryDateTime[]No
InvoiceDateInqueryDateTime[]No
DebtorIDquerystringNo
DebtorIDStartsWithquerystringNo
DebtorIDEndsWithquerystringNo
DebtorIDContainsquerystringNo
DebtorIDLikequerystringNo
DebtorIDBetweenquerystring[]No
DebtorIDInquerystring[]No
InvoiceNoquerystringNo
InvoiceNoStartsWithquerystringNo
InvoiceNoEndsWithquerystringNo
InvoiceNoContainsquerystringNo
InvoiceNoLikequerystringNo
InvoiceNoBetweenquerystring[]No
InvoiceNoInquerystring[]No
PartNoquerystringNo
PartNoStartsWithquerystringNo
PartNoEndsWithquerystringNo
PartNoContainsquerystringNo
PartNoLikequerystringNo
PartNoBetweenquerystring[]No
PartNoInquerystring[]No
DescriptionquerystringNo
DescriptionStartsWithquerystringNo
DescriptionEndsWithquerystringNo
DescriptionContainsquerystringNo
DescriptionLikequerystringNo
DescriptionBetweenquerystring[]No
DescriptionInquerystring[]No
ClassDescriptionquerystringNo
ClassDescriptionStartsWithquerystringNo
ClassDescriptionEndsWithquerystringNo
ClassDescriptionContainsquerystringNo
ClassDescriptionLikequerystringNo
ClassDescriptionBetweenquerystring[]No
ClassDescriptionInquerystring[]No
Cat1DescriptionquerystringNo
Cat1DescriptionStartsWithquerystringNo
Cat1DescriptionEndsWithquerystringNo
Cat1DescriptionContainsquerystringNo
Cat1DescriptionLikequerystringNo
Cat1DescriptionBetweenquerystring[]No
Cat1DescriptionInquerystring[]No
Cat2DescriptionquerystringNo
Cat2DescriptionStartsWithquerystringNo
Cat2DescriptionEndsWithquerystringNo
Cat2DescriptionContainsquerystringNo
Cat2DescriptionLikequerystringNo
Cat2DescriptionBetweenquerystring[]No
Cat2DescriptionInquerystring[]No
Cat3DescriptionquerystringNo
Cat3DescriptionStartsWithquerystringNo
Cat3DescriptionEndsWithquerystringNo
Cat3DescriptionContainsquerystringNo
Cat3DescriptionLikequerystringNo
Cat3DescriptionBetweenquerystring[]No
Cat3DescriptionInquerystring[]No
Quantityquerydecimal?No
QuantityGreaterThanOrEqualToquerydecimal?No
QuantityGreaterThanquerydecimal?No
QuantityLessThanquerydecimal?No
QuantityLessThanOrEqualToquerydecimal?No
QuantityNotEqualToquerydecimal?No
QuantityBetweenqueryNullable<Decimal>[]No
QuantityInqueryNullable<Decimal>[]No
UnitCostquerydecimal?No
UnitCostGreaterThanOrEqualToquerydecimal?No
UnitCostGreaterThanquerydecimal?No
UnitCostLessThanquerydecimal?No
UnitCostLessThanOrEqualToquerydecimal?No
UnitCostNotEqualToquerydecimal?No
UnitCostBetweenqueryNullable<Decimal>[]No
UnitCostInqueryNullable<Decimal>[]No
UnitSellPricequerydecimal?No
UnitSellPriceGreaterThanOrEqualToquerydecimal?No
UnitSellPriceGreaterThanquerydecimal?No
UnitSellPriceLessThanquerydecimal?No
UnitSellPriceLessThanOrEqualToquerydecimal?No
UnitSellPriceNotEqualToquerydecimal?No
UnitSellPriceBetweenqueryNullable<Decimal>[]No
UnitSellPriceInqueryNullable<Decimal>[]No
LineTaxquerydecimal?No
LineTaxGreaterThanOrEqualToquerydecimal?No
LineTaxGreaterThanquerydecimal?No
LineTaxLessThanquerydecimal?No
LineTaxLessThanOrEqualToquerydecimal?No
LineTaxNotEqualToquerydecimal?No
LineTaxBetweenqueryNullable<Decimal>[]No
LineTaxInqueryNullable<Decimal>[]No
LineTotalquerydecimal?No
LineTotalGreaterThanOrEqualToquerydecimal?No
LineTotalGreaterThanquerydecimal?No
LineTotalLessThanquerydecimal?No
LineTotalLessThanOrEqualToquerydecimal?No
LineTotalNotEqualToquerydecimal?No
LineTotalBetweenqueryNullable<Decimal>[]No
LineTotalInqueryNullable<Decimal>[]No
RunNoquerystringNo
RunNoStartsWithquerystringNo
RunNoEndsWithquerystringNo
RunNoContainsquerystringNo
RunNoLikequerystringNo
RunNoBetweenquerystring[]No
RunNoInquerystring[]No
HistoryNoqueryshort?No
HistoryNoGreaterThanOrEqualToqueryshort?No
HistoryNoGreaterThanqueryshort?No
HistoryNoLessThanqueryshort?No
HistoryNoLessThanOrEqualToqueryshort?No
HistoryNoNotEqualToqueryshort?No
HistoryNoBetweenqueryNullable<Int16>[]No
HistoryNoInqueryNullable<Int16>[]No
InvoiceIDquerystringNo
InvoiceIDStartsWithquerystringNo
InvoiceIDEndsWithquerystringNo
InvoiceIDContainsquerystringNo
InvoiceIDLikequerystringNo
InvoiceIDBetweenquerystring[]No
InvoiceIDInquerystring[]No
InventoryIDquerystringNo
InventoryIDStartsWithquerystringNo
InventoryIDEndsWithquerystringNo
InventoryIDContainsquerystringNo
InventoryIDLikequerystringNo
InventoryIDBetweenquerystring[]No
InventoryIDInquerystring[]No
YearNoqueryshort?No
YearNoGreaterThanOrEqualToqueryshort?No
YearNoGreaterThanqueryshort?No
YearNoLessThanqueryshort?No
YearNoLessThanOrEqualToqueryshort?No
YearNoNotEqualToqueryshort?No
YearNoBetweenqueryNullable<Int16>[]No
YearNoInqueryNullable<Int16>[]No
MonthNoqueryshort?No
MonthNoGreaterThanOrEqualToqueryshort?No
MonthNoGreaterThanqueryshort?No
MonthNoLessThanqueryshort?No
MonthNoLessThanOrEqualToqueryshort?No
MonthNoNotEqualToqueryshort?No
MonthNoBetweenqueryNullable<Int16>[]No
MonthNoInqueryNullable<Int16>[]No
IN_LogicalIDquerystringNo
IN_LogicalIDStartsWithquerystringNo
IN_LogicalIDEndsWithquerystringNo
IN_LogicalIDContainsquerystringNo
IN_LogicalIDLikequerystringNo
IN_LogicalIDBetweenquerystring[]No
IN_LogicalIDInquerystring[]No
Cat4DescriptionquerystringNo
Cat4DescriptionStartsWithquerystringNo
Cat4DescriptionEndsWithquerystringNo
Cat4DescriptionContainsquerystringNo
Cat4DescriptionLikequerystringNo
Cat4DescriptionBetweenquerystring[]No
Cat4DescriptionInquerystring[]No
Cat5DescriptionquerystringNo
Cat5DescriptionStartsWithquerystringNo
Cat5DescriptionEndsWithquerystringNo
Cat5DescriptionContainsquerystringNo
Cat5DescriptionLikequerystringNo
Cat5DescriptionBetweenquerystring[]No
Cat5DescriptionInquerystring[]No
KitStylequeryshort?No
KitStyleGreaterThanOrEqualToqueryshort?No
KitStyleGreaterThanqueryshort?No
KitStyleLessThanqueryshort?No
KitStyleLessThanOrEqualToqueryshort?No
KitStyleNotEqualToqueryshort?No
KitStyleBetweenqueryNullable<Int16>[]No
KitStyleInqueryNullable<Int16>[]No
KitStatusqueryshort?No
KitStatusGreaterThanOrEqualToqueryshort?No
KitStatusGreaterThanqueryshort?No
KitStatusLessThanqueryshort?No
KitStatusLessThanOrEqualToqueryshort?No
KitStatusNotEqualToqueryshort?No
KitStatusBetweenqueryNullable<Int16>[]No
KitStatusInqueryNullable<Int16>[]No
SO_LinesIDquerystringNo
SO_LinesIDStartsWithquerystringNo
SO_LinesIDEndsWithquerystringNo
SO_LinesIDContainsquerystringNo
SO_LinesIDLikequerystringNo
SO_LinesIDBetweenquerystring[]No
SO_LinesIDInquerystring[]No
LineCostquerydecimal?No
LineCostGreaterThanOrEqualToquerydecimal?No
LineCostGreaterThanquerydecimal?No
LineCostLessThanquerydecimal?No
LineCostLessThanOrEqualToquerydecimal?No
LineCostNotEqualToquerydecimal?No
LineCostBetweenqueryNullable<Decimal>[]No
LineCostInqueryNullable<Decimal>[]No
InvoiceHistoryIDquerystringNo
InvoiceHistoryIDStartsWithquerystringNo
InvoiceHistoryIDEndsWithquerystringNo
InvoiceHistoryIDContainsquerystringNo
InvoiceHistoryIDLikequerystringNo
InvoiceHistoryIDBetweenquerystring[]No
InvoiceHistoryIDInquerystring[]No
QueryBase Parameters:
NameParameterData TypeRequiredDescription
Skipformint?No
Takeformint?No
OrderByformstringNo
OrderByDescformstringNo
IncludeformstringNo
FieldsformstringNo
MetaformDictionary<string, string>No
SO_SalesHistory Parameters:
NameParameterData TypeRequiredDescription
SalesIDformstringNo
DateRunformDateTimeNo
InvoiceDateformDateTimeNo
DebtorIDformstringNo
InvoiceNoformstringNo
PartNoformstringNo
DescriptionformstringNo
ClassDescriptionformstringNo
Cat1DescriptionformstringNo
Cat2DescriptionformstringNo
Cat3DescriptionformstringNo
Quantityformdecimal?No
UnitCostformdecimal?No
UnitSellPriceformdecimal?No
LineTaxformdecimal?No
LineTotalformdecimal?No
RunNoformstringNo
HistoryNoformshort?No
InvoiceIDformstringNo
InventoryIDformstringNo
YearNoformshort?No
MonthNoformshort?No
IN_LogicalIDformstringNo
Cat4DescriptionformstringNo
Cat5DescriptionformstringNo
KitStyleformshort?No
KitStatusformshort?No
SO_LinesIDformstringNo
LineCostformdecimal?No
InvoiceHistoryIDformstringNo
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.

POST /csv/reply/SO_SalesHistoryQuery HTTP/1.1 
Host: api.jiwa.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"SalesID":"String","SalesIDStartsWith":"String","SalesIDEndsWith":"String","SalesIDContains":"String","SalesIDLike":"String","SalesIDBetween":["String"],"SalesIDIn":["String"],"DateRun":"0001-01-01T00:00:00.0000000","DateRunGreaterThanOrEqualTo":"0001-01-01T00:00:00.0000000","DateRunGreaterThan":"0001-01-01T00:00:00.0000000","DateRunLessThan":"0001-01-01T00:00:00.0000000","DateRunLessThanOrEqualTo":"0001-01-01T00:00:00.0000000","DateRunNotEqualTo":"0001-01-01T00:00:00.0000000","DateRunBetween":["0001-01-01T00:00:00.0000000"],"DateRunIn":["0001-01-01T00:00:00.0000000"],"InvoiceDate":"0001-01-01T00:00:00.0000000","InvoiceDateGreaterThanOrEqualTo":"0001-01-01T00:00:00.0000000","InvoiceDateGreaterThan":"0001-01-01T00:00:00.0000000","InvoiceDateLessThan":"0001-01-01T00:00:00.0000000","InvoiceDateLessThanOrEqualTo":"0001-01-01T00:00:00.0000000","InvoiceDateNotEqualTo":"0001-01-01T00:00:00.0000000","InvoiceDateBetween":["0001-01-01T00:00:00.0000000"],"InvoiceDateIn":["0001-01-01T00:00:00.0000000"],"DebtorID":"String","DebtorIDStartsWith":"String","DebtorIDEndsWith":"String","DebtorIDContains":"String","DebtorIDLike":"String","DebtorIDBetween":["String"],"DebtorIDIn":["String"],"InvoiceNo":"String","InvoiceNoStartsWith":"String","InvoiceNoEndsWith":"String","InvoiceNoContains":"String","InvoiceNoLike":"String","InvoiceNoBetween":["String"],"InvoiceNoIn":["String"],"PartNo":"String","PartNoStartsWith":"String","PartNoEndsWith":"String","PartNoContains":"String","PartNoLike":"String","PartNoBetween":["String"],"PartNoIn":["String"],"Description":"String","DescriptionStartsWith":"String","DescriptionEndsWith":"String","DescriptionContains":"String","DescriptionLike":"String","DescriptionBetween":["String"],"DescriptionIn":["String"],"ClassDescription":"String","ClassDescriptionStartsWith":"String","ClassDescriptionEndsWith":"String","ClassDescriptionContains":"String","ClassDescriptionLike":"String","ClassDescriptionBetween":["String"],"ClassDescriptionIn":["String"],"Cat1Description":"String","Cat1DescriptionStartsWith":"String","Cat1DescriptionEndsWith":"String","Cat1DescriptionContains":"String","Cat1DescriptionLike":"String","Cat1DescriptionBetween":["String"],"Cat1DescriptionIn":["String"],"Cat2Description":"String","Cat2DescriptionStartsWith":"String","Cat2DescriptionEndsWith":"String","Cat2DescriptionContains":"String","Cat2DescriptionLike":"String","Cat2DescriptionBetween":["String"],"Cat2DescriptionIn":["String"],"Cat3Description":"String","Cat3DescriptionStartsWith":"String","Cat3DescriptionEndsWith":"String","Cat3DescriptionContains":"String","Cat3DescriptionLike":"String","Cat3DescriptionBetween":["String"],"Cat3DescriptionIn":["String"],"Quantity":0,"QuantityGreaterThanOrEqualTo":0,"QuantityGreaterThan":0,"QuantityLessThan":0,"QuantityLessThanOrEqualTo":0,"QuantityNotEqualTo":0,"QuantityBetween":[0],"QuantityIn":[0],"UnitCost":0,"UnitCostGreaterThanOrEqualTo":0,"UnitCostGreaterThan":0,"UnitCostLessThan":0,"UnitCostLessThanOrEqualTo":0,"UnitCostNotEqualTo":0,"UnitCostBetween":[0],"UnitCostIn":[0],"UnitSellPrice":0,"UnitSellPriceGreaterThanOrEqualTo":0,"UnitSellPriceGreaterThan":0,"UnitSellPriceLessThan":0,"UnitSellPriceLessThanOrEqualTo":0,"UnitSellPriceNotEqualTo":0,"UnitSellPriceBetween":[0],"UnitSellPriceIn":[0],"LineTax":0,"LineTaxGreaterThanOrEqualTo":0,"LineTaxGreaterThan":0,"LineTaxLessThan":0,"LineTaxLessThanOrEqualTo":0,"LineTaxNotEqualTo":0,"LineTaxBetween":[0],"LineTaxIn":[0],"LineTotal":0,"LineTotalGreaterThanOrEqualTo":0,"LineTotalGreaterThan":0,"LineTotalLessThan":0,"LineTotalLessThanOrEqualTo":0,"LineTotalNotEqualTo":0,"LineTotalBetween":[0],"LineTotalIn":[0],"RunNo":"String","RunNoStartsWith":"String","RunNoEndsWith":"String","RunNoContains":"String","RunNoLike":"String","RunNoBetween":["String"],"RunNoIn":["String"],"HistoryNo":0,"HistoryNoGreaterThanOrEqualTo":0,"HistoryNoGreaterThan":0,"HistoryNoLessThan":0,"HistoryNoLessThanOrEqualTo":0,"HistoryNoNotEqualTo":0,"HistoryNoBetween":[0],"HistoryNoIn":[0],"InvoiceID":"String","InvoiceIDStartsWith":"String","InvoiceIDEndsWith":"String","InvoiceIDContains":"String","InvoiceIDLike":"String","InvoiceIDBetween":["String"],"InvoiceIDIn":["String"],"InventoryID":"String","InventoryIDStartsWith":"String","InventoryIDEndsWith":"String","InventoryIDContains":"String","InventoryIDLike":"String","InventoryIDBetween":["String"],"InventoryIDIn":["String"],"YearNo":0,"YearNoGreaterThanOrEqualTo":0,"YearNoGreaterThan":0,"YearNoLessThan":0,"YearNoLessThanOrEqualTo":0,"YearNoNotEqualTo":0,"YearNoBetween":[0],"YearNoIn":[0],"MonthNo":0,"MonthNoGreaterThanOrEqualTo":0,"MonthNoGreaterThan":0,"MonthNoLessThan":0,"MonthNoLessThanOrEqualTo":0,"MonthNoNotEqualTo":0,"MonthNoBetween":[0],"MonthNoIn":[0],"IN_LogicalID":"String","IN_LogicalIDStartsWith":"String","IN_LogicalIDEndsWith":"String","IN_LogicalIDContains":"String","IN_LogicalIDLike":"String","IN_LogicalIDBetween":["String"],"IN_LogicalIDIn":["String"],"Cat4Description":"String","Cat4DescriptionStartsWith":"String","Cat4DescriptionEndsWith":"String","Cat4DescriptionContains":"String","Cat4DescriptionLike":"String","Cat4DescriptionBetween":["String"],"Cat4DescriptionIn":["String"],"Cat5Description":"String","Cat5DescriptionStartsWith":"String","Cat5DescriptionEndsWith":"String","Cat5DescriptionContains":"String","Cat5DescriptionLike":"String","Cat5DescriptionBetween":["String"],"Cat5DescriptionIn":["String"],"KitStyle":0,"KitStyleGreaterThanOrEqualTo":0,"KitStyleGreaterThan":0,"KitStyleLessThan":0,"KitStyleLessThanOrEqualTo":0,"KitStyleNotEqualTo":0,"KitStyleBetween":[0],"KitStyleIn":[0],"KitStatus":0,"KitStatusGreaterThanOrEqualTo":0,"KitStatusGreaterThan":0,"KitStatusLessThan":0,"KitStatusLessThanOrEqualTo":0,"KitStatusNotEqualTo":0,"KitStatusBetween":[0],"KitStatusIn":[0],"SO_LinesID":"String","SO_LinesIDStartsWith":"String","SO_LinesIDEndsWith":"String","SO_LinesIDContains":"String","SO_LinesIDLike":"String","SO_LinesIDBetween":["String"],"SO_LinesIDIn":["String"],"LineCost":0,"LineCostGreaterThanOrEqualTo":0,"LineCostGreaterThan":0,"LineCostLessThan":0,"LineCostLessThanOrEqualTo":0,"LineCostNotEqualTo":0,"LineCostBetween":[0],"LineCostIn":[0],"InvoiceHistoryID":"String","InvoiceHistoryIDStartsWith":"String","InvoiceHistoryIDEndsWith":"String","InvoiceHistoryIDContains":"String","InvoiceHistoryIDLike":"String","InvoiceHistoryIDBetween":["String"],"InvoiceHistoryIDIn":["String"],"Skip":0,"Take":0,"OrderBy":"String","OrderByDesc":"String","Include":"String","Fields":"String","Meta":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Results":[{"SalesID":"String","DebtorID":"String","InvoiceNo":"String","PartNo":"String","Description":"String","ClassDescription":"String","Cat1Description":"String","Cat2Description":"String","Cat3Description":"String","Quantity":0,"UnitCost":0,"UnitSellPrice":0,"LineTax":0,"LineTotal":0,"RunNo":"String","HistoryNo":0,"InvoiceID":"String","InventoryID":"String","YearNo":0,"MonthNo":0,"IN_LogicalID":"String","Cat4Description":"String","Cat5Description":"String","KitStyle":0,"KitStatus":0,"SO_LinesID":"String","LineCost":0,"InvoiceHistoryID":"String"}],"Meta":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}