JiwaAPI

<back to all web services

PO_MainQuery

Requires Authentication
The following routes are available for this service:
GET/Queries/PO_MainRetrieves a list of purchase orders.
PO_MainQuery Parameters:
NameParameterData TypeRequiredDescription
OrderIDquerystringNo
OrderIDStartsWithquerystringNo
OrderIDEndsWithquerystringNo
OrderIDContainsquerystringNo
OrderIDLikequerystringNo
OrderIDBetweenquerystring[]No
OrderIDInquerystring[]No
LastSavedDateTimequeryDateTime?No
LastSavedDateTimeGreaterThanOrEqualToqueryDateTime?No
LastSavedDateTimeGreaterThanqueryDateTime?No
LastSavedDateTimeLessThanqueryDateTime?No
LastSavedDateTimeLessThanOrEqualToqueryDateTime?No
LastSavedDateTimeNotEqualToqueryDateTime?No
LastSavedDateTimeBetweenqueryNullable<DateTime>[]No
LastSavedDateTimeInqueryNullable<DateTime>[]No
CreditorIDquerystringNo
CreditorIDStartsWithquerystringNo
CreditorIDEndsWithquerystringNo
CreditorIDContainsquerystringNo
CreditorIDLikequerystringNo
CreditorIDBetweenquerystring[]No
CreditorIDInquerystring[]No
OrderNoquerystringNo
OrderNoStartsWithquerystringNo
OrderNoEndsWithquerystringNo
OrderNoContainsquerystringNo
OrderNoLikequerystringNo
OrderNoBetweenquerystring[]No
OrderNoInquerystring[]No
OrderedDatequeryDateTime?No
OrderedDateGreaterThanOrEqualToqueryDateTime?No
OrderedDateGreaterThanqueryDateTime?No
OrderedDateLessThanqueryDateTime?No
OrderedDateLessThanOrEqualToqueryDateTime?No
OrderedDateNotEqualToqueryDateTime?No
OrderedDateBetweenqueryDateTime[]No
OrderedDateInqueryDateTime[]No
Header1querystringNo
Header1StartsWithquerystringNo
Header1EndsWithquerystringNo
Header1ContainsquerystringNo
Header1LikequerystringNo
Header1Betweenquerystring[]No
Header1Inquerystring[]No
Header2querystringNo
Header2StartsWithquerystringNo
Header2EndsWithquerystringNo
Header2ContainsquerystringNo
Header2LikequerystringNo
Header2Betweenquerystring[]No
Header2Inquerystring[]No
Header5querystringNo
Header5StartsWithquerystringNo
Header5EndsWithquerystringNo
Header5ContainsquerystringNo
Header5LikequerystringNo
Header5Betweenquerystring[]No
Header5Inquerystring[]No
Statusqueryshort?No
StatusGreaterThanOrEqualToqueryshort?No
StatusGreaterThanqueryshort?No
StatusLessThanqueryshort?No
StatusLessThanOrEqualToqueryshort?No
StatusNotEqualToqueryshort?No
StatusBetweenqueryshort[]No
StatusInqueryshort[]No
OrderTypequeryshort?No
OrderTypeGreaterThanOrEqualToqueryshort?No
OrderTypeGreaterThanqueryshort?No
OrderTypeLessThanqueryshort?No
OrderTypeLessThanOrEqualToqueryshort?No
OrderTypeNotEqualToqueryshort?No
OrderTypeBetweenqueryNullable<Int16>[]No
OrderTypeInqueryNullable<Int16>[]No
OrderTypeInvIDquerystringNo
OrderTypeInvIDStartsWithquerystringNo
OrderTypeInvIDEndsWithquerystringNo
OrderTypeInvIDContainsquerystringNo
OrderTypeInvIDLikequerystringNo
OrderTypeInvIDBetweenquerystring[]No
OrderTypeInvIDInquerystring[]No
IN_LogicalIDquerystringNo
IN_LogicalIDStartsWithquerystringNo
IN_LogicalIDEndsWithquerystringNo
IN_LogicalIDContainsquerystringNo
IN_LogicalIDLikequerystringNo
IN_LogicalIDBetweenquerystring[]No
IN_LogicalIDInquerystring[]No
OrderSupplierTypequeryshort?No
OrderSupplierTypeGreaterThanOrEqualToqueryshort?No
OrderSupplierTypeGreaterThanqueryshort?No
OrderSupplierTypeLessThanqueryshort?No
OrderSupplierTypeLessThanOrEqualToqueryshort?No
OrderSupplierTypeNotEqualToqueryshort?No
OrderSupplierTypeBetweenqueryshort[]No
OrderSupplierTypeInqueryshort[]No
CentralWarehouseIDquerystringNo
CentralWarehouseIDStartsWithquerystringNo
CentralWarehouseIDEndsWithquerystringNo
CentralWarehouseIDContainsquerystringNo
CentralWarehouseIDLikequerystringNo
CentralWarehouseIDBetweenquerystring[]No
CentralWarehouseIDInquerystring[]No
TaxTotalquerydecimal?No
TaxTotalGreaterThanOrEqualToquerydecimal?No
TaxTotalGreaterThanquerydecimal?No
TaxTotalLessThanquerydecimal?No
TaxTotalLessThanOrEqualToquerydecimal?No
TaxTotalNotEqualToquerydecimal?No
TaxTotalBetweenqueryNullable<Decimal>[]No
TaxTotalInqueryNullable<Decimal>[]No
CurrencyIDquerystringNo
CurrencyIDStartsWithquerystringNo
CurrencyIDEndsWithquerystringNo
CurrencyIDContainsquerystringNo
CurrencyIDLikequerystringNo
CurrencyIDBetweenquerystring[]No
CurrencyIDInquerystring[]No
InTransitWarehouseIDquerystringNo
InTransitWarehouseIDStartsWithquerystringNo
InTransitWarehouseIDEndsWithquerystringNo
InTransitWarehouseIDContainsquerystringNo
InTransitWarehouseIDLikequerystringNo
InTransitWarehouseIDBetweenquerystring[]No
InTransitWarehouseIDInquerystring[]No
ReferencequerystringNo
ReferenceStartsWithquerystringNo
ReferenceEndsWithquerystringNo
ReferenceContainsquerystringNo
ReferenceLikequerystringNo
ReferenceBetweenquerystring[]No
ReferenceInquerystring[]No
PO_Workflows_RecIDquerystringNo
PO_Workflows_RecIDStartsWithquerystringNo
PO_Workflows_RecIDEndsWithquerystringNo
PO_Workflows_RecIDContainsquerystringNo
PO_Workflows_RecIDLikequerystringNo
PO_Workflows_RecIDBetweenquerystring[]No
PO_Workflows_RecIDInquerystring[]No
HR_Staff_RecIDquerystringNo
HR_Staff_RecIDStartsWithquerystringNo
HR_Staff_RecIDEndsWithquerystringNo
HR_Staff_RecIDContainsquerystringNo
HR_Staff_RecIDLikequerystringNo
HR_Staff_RecIDBetweenquerystring[]No
HR_Staff_RecIDInquerystring[]No
CR_Warehouse_WarehouseIDquerystringNo
CR_Warehouse_WarehouseIDStartsWithquerystringNo
CR_Warehouse_WarehouseIDEndsWithquerystringNo
CR_Warehouse_WarehouseIDContainsquerystringNo
CR_Warehouse_WarehouseIDLikequerystringNo
CR_Warehouse_WarehouseIDBetweenquerystring[]No
CR_Warehouse_WarehouseIDInquerystring[]No
Freightquerydecimal?No
FreightGreaterThanOrEqualToquerydecimal?No
FreightGreaterThanquerydecimal?No
FreightLessThanquerydecimal?No
FreightLessThanOrEqualToquerydecimal?No
FreightNotEqualToquerydecimal?No
FreightBetweenquerydecimal[]No
FreightInquerydecimal[]No
Dutyquerydecimal?No
DutyGreaterThanOrEqualToquerydecimal?No
DutyGreaterThanquerydecimal?No
DutyLessThanquerydecimal?No
DutyLessThanOrEqualToquerydecimal?No
DutyNotEqualToquerydecimal?No
DutyBetweenquerydecimal[]No
DutyInquerydecimal[]No
Insurancequerydecimal?No
InsuranceGreaterThanOrEqualToquerydecimal?No
InsuranceGreaterThanquerydecimal?No
InsuranceLessThanquerydecimal?No
InsuranceLessThanOrEqualToquerydecimal?No
InsuranceNotEqualToquerydecimal?No
InsuranceBetweenquerydecimal[]No
InsuranceInquerydecimal[]No
FreightTaxIDquerystringNo
FreightTaxIDStartsWithquerystringNo
FreightTaxIDEndsWithquerystringNo
FreightTaxIDContainsquerystringNo
FreightTaxIDLikequerystringNo
FreightTaxIDBetweenquerystring[]No
FreightTaxIDInquerystring[]No
FreightTaxRatequerydecimal?No
FreightTaxRateGreaterThanOrEqualToquerydecimal?No
FreightTaxRateGreaterThanquerydecimal?No
FreightTaxRateLessThanquerydecimal?No
FreightTaxRateLessThanOrEqualToquerydecimal?No
FreightTaxRateNotEqualToquerydecimal?No
FreightTaxRateBetweenquerydecimal[]No
FreightTaxRateInquerydecimal[]No
FreightTaxAmountquerydecimal?No
FreightTaxAmountGreaterThanOrEqualToquerydecimal?No
FreightTaxAmountGreaterThanquerydecimal?No
FreightTaxAmountLessThanquerydecimal?No
FreightTaxAmountLessThanOrEqualToquerydecimal?No
FreightTaxAmountNotEqualToquerydecimal?No
FreightTaxAmountBetweenquerydecimal[]No
FreightTaxAmountInquerydecimal[]No
DutyTaxIDquerystringNo
DutyTaxIDStartsWithquerystringNo
DutyTaxIDEndsWithquerystringNo
DutyTaxIDContainsquerystringNo
DutyTaxIDLikequerystringNo
DutyTaxIDBetweenquerystring[]No
DutyTaxIDInquerystring[]No
DutyTaxRatequerydecimal?No
DutyTaxRateGreaterThanOrEqualToquerydecimal?No
DutyTaxRateGreaterThanquerydecimal?No
DutyTaxRateLessThanquerydecimal?No
DutyTaxRateLessThanOrEqualToquerydecimal?No
DutyTaxRateNotEqualToquerydecimal?No
DutyTaxRateBetweenquerydecimal[]No
DutyTaxRateInquerydecimal[]No
DutyTaxAmountquerydecimal?No
DutyTaxAmountGreaterThanOrEqualToquerydecimal?No
DutyTaxAmountGreaterThanquerydecimal?No
DutyTaxAmountLessThanquerydecimal?No
DutyTaxAmountLessThanOrEqualToquerydecimal?No
DutyTaxAmountNotEqualToquerydecimal?No
DutyTaxAmountBetweenquerydecimal[]No
DutyTaxAmountInquerydecimal[]No
InsuranceTaxIDquerystringNo
InsuranceTaxIDStartsWithquerystringNo
InsuranceTaxIDEndsWithquerystringNo
InsuranceTaxIDContainsquerystringNo
InsuranceTaxIDLikequerystringNo
InsuranceTaxIDBetweenquerystring[]No
InsuranceTaxIDInquerystring[]No
InsuranceTaxRatequerydecimal?No
InsuranceTaxRateGreaterThanOrEqualToquerydecimal?No
InsuranceTaxRateGreaterThanquerydecimal?No
InsuranceTaxRateLessThanquerydecimal?No
InsuranceTaxRateLessThanOrEqualToquerydecimal?No
InsuranceTaxRateNotEqualToquerydecimal?No
InsuranceTaxRateBetweenquerydecimal[]No
InsuranceTaxRateInquerydecimal[]No
InsuranceTaxAmountquerydecimal?No
InsuranceTaxAmountGreaterThanOrEqualToquerydecimal?No
InsuranceTaxAmountGreaterThanquerydecimal?No
InsuranceTaxAmountLessThanquerydecimal?No
InsuranceTaxAmountLessThanOrEqualToquerydecimal?No
InsuranceTaxAmountNotEqualToquerydecimal?No
InsuranceTaxAmountBetweenquerydecimal[]No
InsuranceTaxAmountInquerydecimal[]No
QueryBase Parameters:
NameParameterData TypeRequiredDescription
Skipformint?No
Takeformint?No
OrderByformstringNo
OrderByDescformstringNo
IncludeformstringNo
FieldsformstringNo
MetaformDictionary<string, string>No
PO_Main Parameters:
NameParameterData TypeRequiredDescription
OrderIDformstringNo
LastSavedDateTimeformDateTime?No
CreditorIDformstringNo
OrderNoformstringNo
OrderedDateformDateTimeNo
Header1formstringNo
Header2formstringNo
Header5formstringNo
StatusformshortNo
OrderTypeformshort?No
OrderTypeInvIDformstringNo
IN_LogicalIDformstringNo
OrderSupplierTypeformshortNo
CentralWarehouseIDformstringNo
TaxTotalformdecimal?No
CurrencyIDformstringNo
InTransitWarehouseIDformstringNo
ReferenceformstringNo
PO_Workflows_RecIDformstringNo
HR_Staff_RecIDformstringNo
CR_Warehouse_WarehouseIDformstringNo
FreightformdecimalNo
DutyformdecimalNo
InsuranceformdecimalNo
FreightTaxIDformstringNo
FreightTaxRateformdecimalNo
FreightTaxAmountformdecimalNo
DutyTaxIDformstringNo
DutyTaxRateformdecimalNo
DutyTaxAmountformdecimalNo
InsuranceTaxIDformstringNo
InsuranceTaxRateformdecimalNo
InsuranceTaxAmountformdecimalNo
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 .xml suffix or ?format=xml

HTTP + XML

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

GET /Queries/PO_Main HTTP/1.1 
Host: api.jiwa.com.au 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<QueryResponseOfPO_Main7kRqkrSv xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Offset>0</Offset>
  <Total>0</Total>
  <Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Tables">
    <d2p1:PO_Main>
      <d2p1:_x003C_CR_Warehouse_WarehouseID_x003E_k__BackingField>String</d2p1:_x003C_CR_Warehouse_WarehouseID_x003E_k__BackingField>
      <d2p1:_x003C_CentralWarehouseID_x003E_k__BackingField>String</d2p1:_x003C_CentralWarehouseID_x003E_k__BackingField>
      <d2p1:_x003C_CreditorID_x003E_k__BackingField>String</d2p1:_x003C_CreditorID_x003E_k__BackingField>
      <d2p1:_x003C_CurrencyID_x003E_k__BackingField>String</d2p1:_x003C_CurrencyID_x003E_k__BackingField>
      <d2p1:_x003C_DutyTaxAmount_x003E_k__BackingField>0</d2p1:_x003C_DutyTaxAmount_x003E_k__BackingField>
      <d2p1:_x003C_DutyTaxID_x003E_k__BackingField>String</d2p1:_x003C_DutyTaxID_x003E_k__BackingField>
      <d2p1:_x003C_DutyTaxRate_x003E_k__BackingField>0</d2p1:_x003C_DutyTaxRate_x003E_k__BackingField>
      <d2p1:_x003C_Duty_x003E_k__BackingField>0</d2p1:_x003C_Duty_x003E_k__BackingField>
      <d2p1:_x003C_FreightTaxAmount_x003E_k__BackingField>0</d2p1:_x003C_FreightTaxAmount_x003E_k__BackingField>
      <d2p1:_x003C_FreightTaxID_x003E_k__BackingField>String</d2p1:_x003C_FreightTaxID_x003E_k__BackingField>
      <d2p1:_x003C_FreightTaxRate_x003E_k__BackingField>0</d2p1:_x003C_FreightTaxRate_x003E_k__BackingField>
      <d2p1:_x003C_Freight_x003E_k__BackingField>0</d2p1:_x003C_Freight_x003E_k__BackingField>
      <d2p1:_x003C_HR_Staff_RecID_x003E_k__BackingField>String</d2p1:_x003C_HR_Staff_RecID_x003E_k__BackingField>
      <d2p1:_x003C_Header1_x003E_k__BackingField>String</d2p1:_x003C_Header1_x003E_k__BackingField>
      <d2p1:_x003C_Header2_x003E_k__BackingField>String</d2p1:_x003C_Header2_x003E_k__BackingField>
      <d2p1:_x003C_Header5_x003E_k__BackingField>String</d2p1:_x003C_Header5_x003E_k__BackingField>
      <d2p1:_x003C_IN_LogicalID_x003E_k__BackingField>String</d2p1:_x003C_IN_LogicalID_x003E_k__BackingField>
      <d2p1:_x003C_InTransitWarehouseID_x003E_k__BackingField>String</d2p1:_x003C_InTransitWarehouseID_x003E_k__BackingField>
      <d2p1:_x003C_InsuranceTaxAmount_x003E_k__BackingField>0</d2p1:_x003C_InsuranceTaxAmount_x003E_k__BackingField>
      <d2p1:_x003C_InsuranceTaxID_x003E_k__BackingField>String</d2p1:_x003C_InsuranceTaxID_x003E_k__BackingField>
      <d2p1:_x003C_InsuranceTaxRate_x003E_k__BackingField>0</d2p1:_x003C_InsuranceTaxRate_x003E_k__BackingField>
      <d2p1:_x003C_Insurance_x003E_k__BackingField>0</d2p1:_x003C_Insurance_x003E_k__BackingField>
      <d2p1:_x003C_LastSavedDateTime_x003E_k__BackingField>0001-01-01T00:00:00</d2p1:_x003C_LastSavedDateTime_x003E_k__BackingField>
      <d2p1:_x003C_OrderID_x003E_k__BackingField>String</d2p1:_x003C_OrderID_x003E_k__BackingField>
      <d2p1:_x003C_OrderNo_x003E_k__BackingField>String</d2p1:_x003C_OrderNo_x003E_k__BackingField>
      <d2p1:_x003C_OrderSupplierType_x003E_k__BackingField>0</d2p1:_x003C_OrderSupplierType_x003E_k__BackingField>
      <d2p1:_x003C_OrderTypeInvID_x003E_k__BackingField>String</d2p1:_x003C_OrderTypeInvID_x003E_k__BackingField>
      <d2p1:_x003C_OrderType_x003E_k__BackingField>0</d2p1:_x003C_OrderType_x003E_k__BackingField>
      <d2p1:_x003C_OrderedDate_x003E_k__BackingField>0001-01-01T00:00:00</d2p1:_x003C_OrderedDate_x003E_k__BackingField>
      <d2p1:_x003C_PO_Workflows_RecID_x003E_k__BackingField>String</d2p1:_x003C_PO_Workflows_RecID_x003E_k__BackingField>
      <d2p1:_x003C_Reference_x003E_k__BackingField>String</d2p1:_x003C_Reference_x003E_k__BackingField>
      <d2p1:_x003C_Status_x003E_k__BackingField>0</d2p1:_x003C_Status_x003E_k__BackingField>
      <d2p1:_x003C_TaxTotal_x003E_k__BackingField>0</d2p1:_x003C_TaxTotal_x003E_k__BackingField>
    </d2p1:PO_Main>
  </Results>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <ResponseStatus>
    <ErrorCode>String</ErrorCode>
    <Message>String</Message>
    <StackTrace>String</StackTrace>
    <Errors>
      <ResponseError>
        <ErrorCode>String</ErrorCode>
        <FieldName>String</FieldName>
        <Message>String</Message>
        <Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </Meta>
      </ResponseError>
    </Errors>
    <Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </Meta>
  </ResponseStatus>
</QueryResponseOfPO_Main7kRqkrSv>