JiwaAPI

<back to all web services

CR_PurchasesQuery

Requires Authentication
CR_PurchasesQuery Parameters:
NameParameterData TypeRequiredDescription
CR_PurchIDquerystringNo
CR_PurchIDStartsWithquerystringNo
CR_PurchIDEndsWithquerystringNo
CR_PurchIDContainsquerystringNo
CR_PurchIDLikequerystringNo
CR_PurchIDBetweenquerystring[]No
CR_PurchIDInquerystring[]No
DateRunqueryDateTime?No
DateRunGreaterThanOrEqualToqueryDateTime?No
DateRunGreaterThanqueryDateTime?No
DateRunLessThanqueryDateTime?No
DateRunLessThanOrEqualToqueryDateTime?No
DateRunNotEqualToqueryDateTime?No
DateRunBetweenqueryNullable<DateTime>[]No
DateRunInqueryNullable<DateTime>[]No
InvoiceDatequeryDateTime?No
InvoiceDateGreaterThanOrEqualToqueryDateTime?No
InvoiceDateGreaterThanqueryDateTime?No
InvoiceDateLessThanqueryDateTime?No
InvoiceDateLessThanOrEqualToqueryDateTime?No
InvoiceDateNotEqualToqueryDateTime?No
InvoiceDateBetweenqueryNullable<DateTime>[]No
InvoiceDateInqueryNullable<DateTime>[]No
CreditorIDquerystringNo
CreditorIDStartsWithquerystringNo
CreditorIDEndsWithquerystringNo
CreditorIDContainsquerystringNo
CreditorIDLikequerystringNo
CreditorIDBetweenquerystring[]No
CreditorIDInquerystring[]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
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
LineTotalquerydecimal?No
LineTotalGreaterThanOrEqualToquerydecimal?No
LineTotalGreaterThanquerydecimal?No
LineTotalLessThanquerydecimal?No
LineTotalLessThanOrEqualToquerydecimal?No
LineTotalNotEqualToquerydecimal?No
LineTotalBetweenqueryNullable<Decimal>[]No
LineTotalInqueryNullable<Decimal>[]No
InvoiceIDquerystringNo
InvoiceIDStartsWithquerystringNo
InvoiceIDEndsWithquerystringNo
InvoiceIDContainsquerystringNo
InvoiceIDLikequerystringNo
InvoiceIDBetweenquerystring[]No
InvoiceIDInquerystring[]No
InventoryIDquerystringNo
InventoryIDStartsWithquerystringNo
InventoryIDEndsWithquerystringNo
InventoryIDContainsquerystringNo
InventoryIDLikequerystringNo
InventoryIDBetweenquerystring[]No
InventoryIDInquerystring[]No
MonthNoqueryshort?No
MonthNoGreaterThanOrEqualToqueryshort?No
MonthNoGreaterThanqueryshort?No
MonthNoLessThanqueryshort?No
MonthNoLessThanOrEqualToqueryshort?No
MonthNoNotEqualToqueryshort?No
MonthNoBetweenqueryNullable<Int16>[]No
MonthNoInqueryNullable<Int16>[]No
YearNoqueryshort?No
YearNoGreaterThanOrEqualToqueryshort?No
YearNoGreaterThanqueryshort?No
YearNoLessThanqueryshort?No
YearNoLessThanOrEqualToqueryshort?No
YearNoNotEqualToqueryshort?No
YearNoBetweenqueryNullable<Int16>[]No
YearNoInqueryNullable<Int16>[]No
IN_LogicalIDquerystringNo
IN_LogicalIDStartsWithquerystringNo
IN_LogicalIDEndsWithquerystringNo
IN_LogicalIDContainsquerystringNo
IN_LogicalIDLikequerystringNo
IN_LogicalIDBetweenquerystring[]No
IN_LogicalIDInquerystring[]No
QueryBase Parameters:
NameParameterData TypeRequiredDescription
Skipformint?No
Takeformint?No
OrderByformstringNo
OrderByDescformstringNo
IncludeformstringNo
FieldsformstringNo
MetaformDictionary<string, string>No
CR_Purchases Parameters:
NameParameterData TypeRequiredDescription
CR_PurchIDformstringNo
DateRunformDateTime?No
InvoiceDateformDateTime?No
CreditorIDformstringNo
InvoiceNoformstringNo
PartNoformstringNo
DescriptionformstringNo
ClassDescriptionformstringNo
Quantityformdecimal?No
UnitCostformdecimal?No
LineTotalformdecimal?No
InvoiceIDformstringNo
InventoryIDformstringNo
MonthNoformshort?No
YearNoformshort?No
IN_LogicalIDformstringNo
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/CR_PurchasesQuery HTTP/1.1 
Host: api.jiwa.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"CR_PurchID":"String","CR_PurchIDStartsWith":"String","CR_PurchIDEndsWith":"String","CR_PurchIDContains":"String","CR_PurchIDLike":"String","CR_PurchIDBetween":["String"],"CR_PurchIDIn":["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"],"CreditorID":"String","CreditorIDStartsWith":"String","CreditorIDEndsWith":"String","CreditorIDContains":"String","CreditorIDLike":"String","CreditorIDBetween":["String"],"CreditorIDIn":["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"],"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],"LineTotal":0,"LineTotalGreaterThanOrEqualTo":0,"LineTotalGreaterThan":0,"LineTotalLessThan":0,"LineTotalLessThanOrEqualTo":0,"LineTotalNotEqualTo":0,"LineTotalBetween":[0],"LineTotalIn":[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"],"MonthNo":0,"MonthNoGreaterThanOrEqualTo":0,"MonthNoGreaterThan":0,"MonthNoLessThan":0,"MonthNoLessThanOrEqualTo":0,"MonthNoNotEqualTo":0,"MonthNoBetween":[0],"MonthNoIn":[0],"YearNo":0,"YearNoGreaterThanOrEqualTo":0,"YearNoGreaterThan":0,"YearNoLessThan":0,"YearNoLessThanOrEqualTo":0,"YearNoNotEqualTo":0,"YearNoBetween":[0],"YearNoIn":[0],"IN_LogicalID":"String","IN_LogicalIDStartsWith":"String","IN_LogicalIDEndsWith":"String","IN_LogicalIDContains":"String","IN_LogicalIDLike":"String","IN_LogicalIDBetween":["String"],"IN_LogicalIDIn":["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":[{"CR_PurchID":"String","DateRun":"0001-01-01T00:00:00.0000000","InvoiceDate":"0001-01-01T00:00:00.0000000","CreditorID":"String","InvoiceNo":"String","PartNo":"String","Description":"String","ClassDescription":"String","Quantity":0,"UnitCost":0,"LineTotal":0,"InvoiceID":"String","InventoryID":"String","MonthNo":0,"YearNo":0,"IN_LogicalID":"String"}],"Meta":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}