There are four web service calls that can be used to return order details from specified branches:
GetOrderDetailByDate returns a full day’s orders or just all of the orders that were planned to start between the times within the given fromDateField and toDateField provided in the call. This call is best used if the request is sent manually by a user as it will likely return much more data than GetOrderDetailByModifiedDate.
GetOrderDetailByModifiedDate returns order details for all orders that have been modified within a selected date range. This call is best used on a recurring basis (i.e. 5-minute intervals) to return orders that have been changed/modified within the given fromDateField and toDateField provided in the call. An order is defined as “modified” if a new entry in the order audit is updated with a new event. Results can be filtered using OrderDetailReturnOptionsFilters.
GetOrderDetailsByEventsAndOrderIDs fetches orders based on changes detected in our audits for a specific order(ID’s).
GetOrderDetailsByModifiedDateAndBranchIds lets you synchronize by using time ranges and narrowing down to specific branches if needed.
Schema (GetOrderDetailByDate)
<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/"xmlns:app="http://schemas.datacontract.org/2004/07/Appian.DRTrack.Entity.Schema.WebService"xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><soapenv:Header/><soapenv:Body><tem:GetOrderDetailByDate><!--Optional:--><tem:auth><app:authenticationTokenField>Auth-Token-Example999</app:authenticationTokenField></tem:auth><!--Optional:--><tem:requestEnvelope><app:branchIDField>MAIN</app:branchIDField><!--Optional:--><app:externalIdField/><app:fromDateField>2006-08-19T12:27:14</app:fromDateField><app:orderDetailReturnOptionsField><app:filtersField><app:accountIDListField/><app:formListField/><app:orderIDListField/><app:orderTypeField>AllOrder</app:orderTypeField><app:quantityFieldListField/><app:userFieldListField/></app:filtersField><app:populateAccountDetailsField>true</app:populateAccountDetailsField><!--Optional:--><app:populateActualsDataField>false</app:populateActualsDataField><app:populateLineItemField>true</app:populateLineItemField><app:populateLineItemFormsField>true</app:populateLineItemFormsField><app:populateOrderFormsField>true</app:populateOrderFormsField><app:populatePlannedDataField>true</app:populatePlannedDataField><app:populateQuantityFieldField>false</app:populateQuantityFieldField><!--Optional:--><app:populateShipToDetailsField>false</app:populateShipToDetailsField><!--Optional:--><app:populateStopNotesField>true</app:populateStopNotesField><app:populateUserFieldField>false</app:populateUserFieldField></app:orderDetailReturnOptionsField><app:orderEventTypeField><!--Zero or more repetitions:--><app:OrderEventType>All</app:OrderEventType></app:orderEventTypeField><!--Optional:--><app:pageField>3</app:pageField><app:toDateField>2006-09-14T03:07:34</app:toDateField></tem:requestEnvelope></tem:GetOrderDetailByDate></soapenv:Body></soapenv:Envelope>
Schema (GetOrderDetailByModifiedDate)
<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/"xmlns:app="http://schemas.datacontract.org/2004/07/Appian.DRTrack.Entity.Schema.WebService"xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><soapenv:Header/><soapenv:Body><tem:GetOrderDetailByModifiedDate><!--Optional:--><tem:auth><app:authenticationTokenField>Auth-Token-Example</app:authenticationTokenField></tem:auth><!--Optional:--><tem:requestEnvelope><app:branchIDField>MAIN</app:branchIDField><!--Optional:--><app:externalIdField/><app:fromDateField>2006-08-19T12:27:14-05:00</app:fromDateField><app:orderDetailReturnOptionsField><app:filtersField><app:accountIDListField/><app:formListField/><app:orderIDListField/><app:orderTypeField>AllOrder</app:orderTypeField><app:quantityFieldListField/><app:userFieldListField/></app:filtersField><app:populateAccountDetailsField>true</app:populateAccountDetailsField><!--Optional:--><app:populateActualsDataField>false</app:populateActualsDataField><app:populateLineItemField>true</app:populateLineItemField><app:populateLineItemFormsField>true</app:populateLineItemFormsField><app:populateOrderFormsField>true</app:populateOrderFormsField><app:populatePlannedDataField>true</app:populatePlannedDataField><app:populateQuantityFieldField>false</app:populateQuantityFieldField><!--Optional:--><app:populateShipToDetailsField>false</app:populateShipToDetailsField><!--Optional:--><app:populateStopNotesField>true</app:populateStopNotesField><app:populateUserFieldField>false</app:populateUserFieldField></app:orderDetailReturnOptionsField><app:orderEventTypeField><!--Zero or more repetitions:--><app:OrderEventType>Finalized</app:OrderEventType></app:orderEventTypeField><!--Optional:--><app:pageField>0</app:pageField><app:toDateField>2006-09-14T03:07:34</app:toDateField></tem:requestEnvelope></tem:GetOrderDetailByModifiedDate></soapenv:Body></soapenv:Envelope>
Schema (GetOrderDetailsByEventsAndOrderIDs)
<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/"xmlns:app="http://schemas.datacontract.org/2004/07/Appian.DRTrack.Entity.Schema.WebService"xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><soapenv:Header/><soapenv:Body><tem:GetOrderDetailsAndEventsByOrderIDs><!-- Optional: --><tem:auth><app:authenticationTokenField>stag-appi-20240530135035-SWZS3X</app:authenticationTokenField></tem:auth><!-- Optional: --><tem:requestEnvelope><app:branchIDField>MAIN</app:branchIDField><app:orderIdListField><!-- Zero or more repetitions: --><arr:string>661</arr:string><arr:string>443</arr:string></app:orderIdListField></tem:requestEnvelope></tem:GetOrderDetailsAndEventsByOrderIDs></soapenv:Body></soapenv:Envelope>
<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/"xmlns:app="http://schemas.datacontract.org/2004/07/Appian.DRTrack.Entity.Schema.WebService"xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><soapenv:Header/><soapenv:Body><tem:GetOrderDetailsByModifiedDateAndBranchIds><!-- Optional: --><tem:auth><app:authenticationTokenField>stag-appi-20240530135035-SWZS3X</app:authenticationTokenField></tem:auth><!-- Optional: --><tem:requestEnvelope><app:branchIDsField><!-- Zero or more repetitions: --><arr:string>09722</arr:string></app:branchIDsField><!-- Optional: --><app:externalIdField/><app:fromDateField>2024-05-02</app:fromDateField><app:orderDetailReturnOptionsField><app:filtersField><app:accountIDListField/><app:formListField/><app:orderIDListField><!-- Zero or more repetitions: --><arr:string>00110-R</arr:string><arr:string>09801-R</arr:string></app:orderIDListField><app:orderTypeField>AllOrder</app:orderTypeField><app:quantityFieldListField/><app:userFieldListField/></app:filtersField><app:populateAccountDetailsField>true</app:populateAccountDetailsField><!-- Optional: --><app:populateActualsDataField>false</app:populateActualsDataField><app:populateLineItemField>true</app:populateLineItemField><app:populateLineItemFormsField>false</app:populateLineItemFormsField><app:populateOrderFormsField>false</app:populateOrderFormsField><app:populatePlannedDataField>true</app:populatePlannedDataField><app:populateQuantityFieldField>true</app:populateQuantityFieldField><!-- Optional: --><app:populateShipToDetailsField>true</app:populateShipToDetailsField><!-- Optional: --><app:populateStopNotesField>false</app:populateStopNotesField><app:populateUserFieldField>true</app:populateUserFieldField></app:orderDetailReturnOptionsField><app:orderEventTypeField/><!-- Optional: --><app:pageField>1</app:pageField><app:toDateField>2024-05-03</app:toDateField></tem:requestEnvelope></tem:GetOrderDetailsByModifiedDateAndBranchIds></soapenv:Body></soapenv:Envelope>
Request Parameters
Each call uses the same request. Any required parameter that is not a string must have a valid value. If the parameter is a string, the value can be “null.” All timestamps must be sent in UTC time.
Boolean parameter values should be lowercase true or false.
All of the populate fields determine whether that type of information will be returned, if available, for the orders returned by the web service call. The fields are used to limit or get back more information for each order.