ImportOrders

Contents

The ImportOrders API automates the process of entering orders into DRTrack. You can enter as many orders as necessary in one call.

If the orders pass all the SOAP validation, they will then be placed in an Order Import Queue where a scheduled task in DRTrack will run (normally set to run every 5 minutes) and process the orders. The Order Import Queue exists so this method can be called as frequently as possible and not be tied up processing an order already sent.

If the account that is listed in the order exists, it will update the account according to the settings in DRTrack. Otherwise, it will add the account to DRTrack.

Schema

<soapenv:Envelope xmlns: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:ImportOrders>
         <!--Optional:-->
         <tem:auth>
            <!--type: string-->
            <app:authenticationTokenField></app:authenticationTokenField>
         </tem:auth>
         <!--Optional:-->
         <tem:requestEnvelope>
            <app:dRStopEnvelopeField>
               <!--Zero or more repetitions:-->
               <app:DRStop>
                  <!--type: short-->
                  <app:aMAdjField>0</app:aMAdjField>
                  <!--type: dateTime-->
                  <app:aMEndField>0001-01-01T00:00:00</app:aMEndField>
                  <!--type: dateTime-->
                  <app:aMStartField>0001-01-01T00:00:00</app:aMStartField>
                  <!--type: string-->
                  <app:address2Field />
                  <!--type: string-->
                  <app:addressField>6994 NE 23rd St</app:addressField>
                  <!--type: string-->
                  <app:branchField>BAKERY TEST OKC</app:branchField>
                  <!--type: string-->
                  <app:cityField>Oklahoma City</app:cityField>
                  <!--type: boolean-->
                  <app:closeTWField>false</app:closeTWField>
                  <!--type: string-->
                  <app:colorField />
                  <app:contactField>John Doe</app:contactField>
                  <app:dRAccountScheduleField>
                     <!--type: dateTime-->
                     <app:activationDateField>0001-01-01T00:00:00</app:activationDateField>
                     <!--type: float-->
                     <app:frequencyField>0</app:frequencyField>
                     <!--type: int-->
                     <app:maxDaysBtwnDeliveriesField>0</app:maxDaysBtwnDeliveriesField>
                     <!--type: int-->
                     <app:minDaysBtwnDeliveriesField>0</app:minDaysBtwnDeliveriesField>
                     <app:profilesField/>
                     <!--type: int-->
                     <app:servicesPerDayField>0</app:servicesPerDayField>
                     <!--type: dateTime-->
                     <app:terminationDateField>0001-01-01T00:00:00</app:terminationDateField>
                  </app:dRAccountScheduleField>
                  <app:dRMasterStopEnvelopeField/>
                  <app:dRTimeWindowField>
                     <!--Zero or more repetitions:-->
                     <app:DRTimeWindow>
                        <!--type: dateTime-->
                        <app:closeField>0001-01-01T17:00:00</app:closeField>
                        <!--type: dateTime-->
                        <app:openField>0001-01-01T08:00:00</app:openField>
                        <!--type: string-->
                        <app:patternField>MTWRF</app:patternField>
                     </app:DRTimeWindow>
                  </app:dRTimeWindowField>
                  <app:dRUserFieldField>
                  	 <app:DRUserField>
                  		<app:nameField>Order Instructions</app:nameField>
                  		<app:valueField>Deliver to side door.</app:valueField>
                  	 </app:DRUserField>
                  </app:dRUserFieldField>
                  <app:dRVolumeField>
                     <!--Zero or more repetitions:-->
                     <app:DRVolume>
                        <!--type: string-->
                        <app:nameField>Trays</app:nameField>
                        <!--type: boolean-->
                        <app:noField>0</app:noField>
                        <app:noFieldSpecified>false</app:noFieldSpecified>
                        <!--type: decimal-->
                        <app:unloadRateField>0</app:unloadRateField>
                        <!--type: decimal-->
                        <app:valueField>48</app:valueField>
                     </app:DRVolume>
                  </app:dRVolumeField>
                  <!--type: int-->
                  <app:earlyBufferField />
                  <app:eqCodeField>@COLD</app:eqCodeField>
                  <app:fixedTimeField>15</app:fixedTimeField>
                  <app:geoFenceField>0</app:geoFenceField>
                  <!--type: string-->
                  <app:geoResultField>Level1</app:geoResultField>
                  <app:iD1Field>2240400</app:iD1Field>
                  <!--type: ImportAccountType - enumeration: [MODIFY,ADD]-->
                  <app:importAccountTypeField>MODIFY</app:importAccountTypeField>
                  <!--type: decimal-->
                  <app:lateBufferField />
                  <app:latitudeField>35.481918</app:latitudeField>
                  <!--type: decimal-->
                  <app:longitudeField>-97.508469</app:longitudeField>
                  <!--type: int-->
                  <app:maxSplitsField>0</app:maxSplitsField>
                  <app:nameField>AccountName</app:nameField>
                  <!--type: OnFinalize - enumeration: [DEFAULT,DELETE,LEAVE]-->
                  <app:onFinalizeField>DEFAULT</app:onFinalizeField>
                  <!--type: short-->
                  <app:pMAdjField>0</app:pMAdjField>
                  <!--type: dateTime-->
                  <app:pMEndField>0001-01-01T00:00:00</app:pMEndField>
                  <!--type: dateTime-->
                  <app:pMStartField>0001-01-01T00:00:00</app:pMStartField>
                  <!--type: decimal-->
                  <app:penaltyCostField>0</app:penaltyCostField>
                  <app:phoneField />
                  <!--type: int-->
                  <app:rotationField>0</app:rotationField>
                  <app:sizeField>0</app:sizeField>
                  <!--type: decimal-->
                  <app:sizeRestrictionField>0</app:sizeRestrictionField>
                  <!--type: string-->
                  <app:stateField>OK</app:stateField>
                  <app:symbolField />
                  <!--type: string-->
                  <app:zipField>73141-1016</app:zipField>
                  <!--type: int-->
                  <app:zoneField>0</app:zoneField>
                  <app:cummulativeDrvTmField />
                  <app:cummulativeWrkTmField />
                  <!--type: int-->
                  <app:legField>0</app:legField>
                  <!--type: int-->
                  <app:rtField>0</app:rtField>
                  <!--type: boolean-->
                  <app:selectedField>false</app:selectedField>
                  <!--type: int-->
                  <app:seqField>0</app:seqField>
                  <!--type: dateTime-->
                  <app:earliestDateField>0001-01-01T00:00:00</app:earliestDateField>
                  <!--type: string-->
                  <app:iD2Field>2091</app:iD2Field>
                  <!--type: dateTime-->
                  <app:latestDateField>0001-01-01T00:00:00</app:latestDateField>
                  <!--type: int-->
                  <app:priorityBumpField>0</app:priorityBumpField>
                  <!--type: int-->
                  <app:priorityField>0</app:priorityField>
                  <app:reservationIDField />
                  <app:typeField />
                  <!--type: string-->
                  <app:iD3Field />
                  <!--type: dateTime-->
                  <app:estimatedDeliveryDateField>2017-08-11T00:00:00</app:estimatedDeliveryDateField>
                  <!--type: ImportOrderType - enumeration: [Add,Modify,Delete,DeleteAll]-->
                  <app:importOrderTypeField>Modify</app:importOrderTypeField>
                  <!--type: int-->
                  <app:keyField>1</app:keyField>
                  <!--type: boolean-->
                  <app:keyFieldSpecified>false</app:keyFieldSpecified>
               </app:DRStop>
            </app:dRStopEnvelopeField>
         </tem:requestEnvelope>
      </tem:ImportOrders>
   </soapenv:Body>
</soapenv:Envelope>

Request Parameters

Any parameter that is required and not a string, must have a valid value. If it is a string, the value can be null. Also, all timestamps must be sent in UTC time.

ImportOrders

NameDescriptionTypeRequiredSample Value
authOptional, but the import will not work without it.AuthenticationNoSee Authentication
requestEnvelopeOptional, but the import will not work without it.ImportOrdersRequestEnvelopeNoSee ImportOrdersRequestEnvelope

Authentication

NameDescriptionTypeRequiredSample Value
AuthenticationTokenFieldRetrieved from WS Call GetAuthenticationToken.
string
Yesdev1-appi-20160617175057-XXIB8E

ImportOrdersRequestEnvelope

NameDescriptionTypeRequiredSample Value
DRStopEnvelopeFieldContains the array of stops to be imported.ArrayOfDRStopYesSee ArrayOfDRStop

ArrayOfDRStop

NameDescriptionTypeRequiredSample Value
DRStopContains the stop information.DRStopNoSee DRStop

DRStop

NameDescriptionTypeRequiredSample Value
aMAdjFieldThe adjustment percent of the PM field.
short
Yes0
aMEndFieldThe end time of the adjustment period.
dateTime
Yes2019-06-07T08:30:00-06:00
aMStartFieldThe start time of the adjustment period.
dateTime
Yes2019-06-07T08:30:00-06:00
address2FieldThe address 2 field.
string
YesSuite A200
addressFieldThe address field.
string
Yes123 Main St.
branchFieldA branch entered in DRTrack.
string
YesMAIN
cityFieldThe city address field.
string
YesDallas
closeTWFieldSet to True, if you want to close the time window of the stop.
boolean
YesFalse
colorFieldThe color of the stop. Only used in DirectRoute.
string
YesRed
contactFieldThe stop’s contact name.
string
YesPhil Dunphy
dRAccountScheduleFieldThe account’s schedule for this stop.DRAccountScheduleYesSee DRAccountSchedule
dRMasterStopEnvelopeFieldHow the master order is handled.ArrayOfDRStopYesSee ArrayOfDRStop
dRTimeWindowFieldThe time window of the stop.ArrayOfDRTimeWindowYesSee ArrayOfDRTimeWindow
dRUserFieldFieldThe user fields of the stop.ArrayOfDRUserFieldYesSee ArrayOfDRUserField
dRVolumeFieldThe volumes of the stop.ArrayOfDRVolumeYesSee ArrayOfDRVolume
earlyBufferFieldThe buffer time the order can be delivered (in min). If null, send 0 (zero).
string
Yes15
eqCodeFieldThe equipment code for the stop.
string
YesLG
fixedTimeFieldThe fixed time it takes to deliver this stop (in minutes).
string
Yes15
geoFenceFieldThe geofence for this stop (in feet).
int
Yes150
geoResultFieldThe accuracy of the geocode.
string
YesLevel 1
iD1FieldThe account ID for the order.
string
YesA123
importAccountTypeFieldHow to import the account. See type for options.ImportAccountTypeYesModify
lateBufferFieldThe buffer time the order can be delivered (in min). If null, send 0 (zero).
string
Yes0
latitudeFieldThe latitude coordinate of the stop.
decimal
Yes35.481918
longitudeFieldThe longitude coordinate of the stop.
decimal
Yes-97.508469
maxSplitsFieldThe number of times this order can split (only for DirectRoute).
int
yes2
nameFieldThe account name.
string
YesTMW Systems
onFinalizeFieldWhat happens to the order when the route is finalized. See type for options.OnFinalizeYesDefault
pMAdjFieldThe adjustment percent of the PM field.
short
Yes0
pMEndFieldThe end time of the adjustment period.
dateTime
Yes2019-06-07T08:30:00-06:00
pMStartFieldThe start time of the adjustment period.
dateTime
Yes2019-06-07T08:30:00-06:00
penaltyCostFieldThe penalty cost for a time violation on the route.
decimal
Yes0
phoneFieldThe phone number of the account.
string
Yes405-555-1234
rotationFieldThe orientation of the order in degrees.
int
YesThe orientation of the order in degrees.
sizeFieldThe size of the icon used in Direct Route.
int
Yes20
sizeRestrictionFieldThe size restriction of the order.
decimal
Yes100
stateFieldThe address state of the order.
string
YesOK
symbolFieldThe symbol of the order for the display in DirectRoute.
string
YesCircle
zipFieldThe zip code of the order address (last 4 optional).
string
Yes73141-1016
zoneFieldDefault is 100. Used in conjunction with adj fields.
int
Yes100
cummulativeDrvTmFieldNot in use.
string
YesNULL
cummulativeWrkTmFieldNot in use.
string
YesNULL
legFieldThe leg the order should go on.
int
Yes1
rtFieldThe route the order should be placed on.
int
Yes1
selectedFieldIf the stop is selected when pulled into Direct Route.
boolean
YesFalse
seqFieldThe sequence of the stop.
int
Yes1
earliestDateFieldThe earliest date the stop can be delivered. Can be null.
dateTime
Yes2019-06-07T08:30:00-06:00
iD2FieldThe order number of the order. Cannot be null.
string
YesSO123
latestDateFieldThe latest date the stop can be delivered. Can be null.
dateTime
Yes2019-06-07T08:30:00-06:00
priorityBumpFieldThe number to bump the priority of the order.
int
Yes5
priorityFieldThe priority of the order.
int
Yes40
reservationIDFieldThe reservation ID to reserve a time slot in Route Calendar.
string
Yes34
typeFieldNot in use.
string
YesNot in use.
iD3FieldThe line item ID.
string
Yes12-34
estimatedDeliveryDateFieldThe estimated delivery date of the order.
dateTime
Yes2019-06-07T08:30:00-06:00
importOrderTypeFieldHow the order is imported. See type for options.ImportOrderTypeYesSee ImportOrderType
keyFieldThe key of the order in the web service call.
int
Yes1
keyFieldSpecifiedIf the key field was specified.
boolean
YesFalse

DRAccountSchedule

NameDescriptionTypeRequiredSample Value
activationDateFieldThe activation date of the account.
dateTime
Yes2019-06-07T08:30:00-06:00
frequencyFieldThe frequency of deliveries for this account per week.
float
Yes2
maxDaysBtwnDeliveriesFieldThe maximum days between deliveries for this account per week.
int
Yes3
minDaysBtwnDeliveriesFieldThe minimum days between deliveries for this account per week.
int
Yes3
profilesFieldThe profile the account is tied too.array of
string
YesRegular
servicesPerDayFieldThe number of services this account receives per day.
int
yes1
terminationDateFieldThe termination date of the account.
dateTime
yes2019-06-07T08:30:00-06:00

ArrayOfDRTimeWindow

NameDescriptionTypeRequiredSample Value
DRTimeWindowAn array of the time window of the order.DRTimeWindowNoSee DRTimeWindow

DRTimeWindow

NameDescriptionTypeRequiredSample Value
closeFieldThe close time of the order.
dateTime
Yes2019-06-07T08:30:00-06:00
OpenFieldThe open time of the order.
dateTime
Yes2019-06-07T08:30:00-06:00
patternFieldThe days the order can be delivered.
string
YesSMTWRFA

ArrayOfDRUserField

NameDescriptionTypeRequiredSample Value
DRUserFieldAn array of all the user fields on this order.DRUserFieldNoSee DRUserField

DRUserField

NameDescriptionTypeRequiredSample Value
nameFieldThe name of the user field.
string
YesComments
valueFieldThe value of the user field.
string
YesDeliver product in from Main St.

ArrayOfDRVolume

NameDescriptionTypeRequiredSample Value
volumeAn array of the volumes on this order.VolumeNoSee Volume

Volume

NameDescriptionTypeRequiredSample Value
nameFieldThe name of the volume.
string
YesWeight
noFieldNot in use.
int
Yes0
noFieldSpecifiedNot in use.
boolean
YesFalse
unloadRateFieldThe unload rate of the volume per hour.
decimal
Yes200
valueFieldThe value of the volume.
decimal
Yes400

ImportAccountType

NameDescription
ModifyThe account will be modified.
AddThe account will be added. If the account already exists, but another field is specified during the next transaction that doesn’t exists, the new field will be added.

OnFinalize

NameDescription
DefaultThe default behavior set in the DRTrack configuration.
DeleteThe order will be deleted when finalized.
LeaveThe order will stay on the route when finalized.

ImportOrderType

NameDescription
AddThe order will be added. If the order already exists, but a new field is specified during the next transaction that doesn’t exists, the new field will be added.
ModifyThe order will be modified to what was sent in the transaction.
DeleteThe order will be deleted. If a line item is specified, only the line item will be deleted.
DeleteAllThe order will be deleted and any line items attached to the order.

Response Parameters

ImportOrdersResult

NameDescriptionTypeSample Value
responseStatusFieldThe response of the request.ResponseStatusSee ResponseStatus

ResponseStatus

NameDescriptionTypeSample Value
errorFieldAny error of the request will appear here.ArrayOfResponseStatusErrorSee ArrayOfResponseStatusError
warningFieldAny warning of the request will appear here.ArrayOfResponseStatusWarningSee ArrayOfResponseStatusWarning

ArrayOfResponseStatusError

NameDescriptionTypeSample Value
ResponseStatusErrorAn array of any errors.ResponseStatusErrorSee ResponseStatusError

ArrayOfResponseStatusWarning

NameDescriptionTypeSample Value
ResponseStatusWarningAn array of any warnings.ResponseStatusWarningSee ResponseStatusWarning

ResponseStatusError

NameDescriptionTypeSample Value
codeFieldThe code of the error.
int
100
messageFieldThe message of the error.
string
Could not parse the XML.

ResponseStatusWarning

NameDescriptionTypeSample Value
codeFieldThe code of the warning.
int
100
messageFieldThe message of the warning.
string
Could not parse the XML.

Sample Code

private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                DateTime importDate = DateTime.Now.AddDays(1);
                var authentication = GetAuthenticationObj();
                ImportOrdersRequestEnvelope request = new ImportOrdersRequestEnvelope
                {
                    dRStopEnvelopeField = GetStops()
                };

                request.dRStopEnvelopeField[0].estimatedDeliveryDateField = importDate;
                ImportOrdersResponseEnvelope response = wc.ImportOrders(authentication, request);
            }
            catch (Exception ex)
            {

            }
        }

Sample DRStop

private static DRStop[] GetStops()
        {
            List<DRStop> drStopList =
                new List<DRStop>();
            {
                {
                    DRStop stop1 = new DRStop
                    {
                        keyField = 1,
                        aMAdjField = 0,
                        aMEndField = Convert.ToDateTime("0001-01-01T00:00:00"),
                        aMStartField = Convert.ToDateTime("0001-01-01T00:00:00"),
                        closeTWField = false,
                        colorField = "green",
                        contactField = "GMan",
                        importOrderTypeField = ImportOrderType.Modify,
                        estimatedDeliveryDateField = Convert.ToDateTime(DateTime.Now.AddDays(1)),
                        branchField = "OKC",
                        nameField = "Home Depot #3909",
                        iD1Field = "WS3909",
                        iD2Field = "t3-3940",
                        reservationIDField = null,
                        iD3Field = "BG20886",
                        addressField = "7620 Nw Expressway",
                        address2Field = null,
                        cityField = "Oklahoma City",
                        stateField = "OK",
                        zipField = "73132",
                        fixedTimeField = "PT15M",
                        maxSplitsField = 0,
                        geoFenceField = 0,
                        geoResultField = null,
                        earlyBufferField = null,
                        lateBufferField = null,
                        pMAdjField = 0,
                        pMEndField = Convert.ToDateTime("0001-01-01T00:00:00"),
                        pMStartField = Convert.ToDateTime("0001-01-01T00:00:00"),
                        penaltyCostField = 0,
                        phoneField = "405-773-6077",
                        sizeField = 15,
                        sizeRestrictionField = 0,
                        symbolField = null,
                        zoneField = 0,
                        cummulativeDrvTmField = null,
                        cummulativeWrkTmField = null,
                        legField = 0,
                        rtField = 0,
                        seqField = 0,
                        eqCodeField = "LG",
                        dRVolumeField = new DRVolume[2]
                    };
                    stop1.dRVolumeField[0] = new DRVolume { noField = 1, nameField = "Weight", valueField = Convert.ToDecimal(1700) };
                    stop1.dRVolumeField[1] = new DRVolume { noField = 2, nameField = "Cube", valueField = Convert.ToDecimal(75) };
                    stop1.dRTimeWindowField = new DRTimeWindow[1];
                    stop1.dRTimeWindowField[0] = new DRTimeWindow
                    {
                        openField = Convert.ToDateTime("0001-01-01T08:00:00"),
                        closeField = Convert.ToDateTime("0001-01-01T17:00:00"),
                        patternField = "MTWRF"
                    };
                    stop1.latitudeField = Convert.ToDecimal(0);
                    stop1.longitudeField = Convert.ToDecimal(0);
                    stop1.dRUserFieldField = new DRUserField[2];
                    stop1.dRUserFieldField[0] = new DRUserField { nameField = "Item", valueField = "John Deere D170" };
                    stop1.dRUserFieldField[1] = new DRUserField { nameField = "Price", valueField = "2899.00" };
                    drStopList.Add(stop1);
                }
            }
            return drStopList.ToArray();
        }

Sample XML Request

<?xml version="1.0" encoding="utf-8"?>
<ImportOrdersRequestEnvelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <dRStopEnvelopeField>
    <DRStop>
      <aMAdjField>0</aMAdjField>
      <aMEndField>0001-01-01T00:00:00</aMEndField>
      <aMStartField>0001-01-01T00:00:00</aMStartField>
      <addressField>7620 Nw Expressway</addressField>
      <branchField>OKC</branchField>
      <cityField>Oklahoma City</cityField>
      <closeTWField>false</closeTWField>
      <colorField>green</colorField>
      <contactField>GMan</contactField>
      <dRTimeWindowField>
        <DRTimeWindow>
          <closeField>0001-01-01T17:00:00</closeField>
          <openField>0001-01-01T08:00:00</openField>
          <patternField>MTWRF</patternField>
        </DRTimeWindow>
      </dRTimeWindowField>
      <dRUserFieldField>
        <DRUserField>
          <nameField>Item</nameField>
          <valueField>John Deere D170</valueField>
        </DRUserField>
        <DRUserField>
          <nameField>Price</nameField>
          <valueField>2899.00</valueField>
        </DRUserField>
      </dRUserFieldField>
      <dRVolumeField>
        <DRVolume>
          <nameField>Weight</nameField>
          <noFieldSpecified>false</noFieldSpecified>
          <unloadRateField>0</unloadRateField>
          <valueField>1700</valueField>
        </DRVolume>
        <DRVolume>
          <nameField>Cube</nameField>
          <noFieldSpecified>false</noFieldSpecified>
          <unloadRateField>0</unloadRateField>
          <valueField>75</valueField>
        </DRVolume>
      </dRVolumeField>
      <eqCodeField>LG</eqCodeField>
      <fixedTimeField>PT15M</fixedTimeField>
      <geoFenceField>0</geoFenceField>
      <iD1Field>WS3909</iD1Field>
      <importAccountTypeField>MODIFY</importAccountTypeField>
      <latitudeField>0</latitudeField>
      <longitudeField>0</longitudeField>
      <maxSplitsField>0</maxSplitsField>
      <nameField>Home Depot #3909</nameField>
      <onFinalizeField>DEFAULT</onFinalizeField>
      <pMAdjField>0</pMAdjField>
      <pMEndField>0001-01-01T00:00:00</pMEndField>
      <pMStartField>0001-01-01T00:00:00</pMStartField>
      <penaltyCostField>0</penaltyCostField>
      <phoneField>405-773-6077</phoneField>
      <rotationField>0</rotationField>
      <sizeField>15</sizeField>
      <sizeRestrictionField>0</sizeRestrictionField>
      <stateField>OK</stateField>
      <zipField>73132</zipField>
      <zoneField>0</zoneField>
      <legField>0</legField>
      <rtField>0</rtField>
      <selectedField>false</selectedField>
      <seqField>0</seqField>
      <earliestDateField>0001-01-01T00:00:00</earliestDateField>
      <iD2Field>ts3-3940</iD2Field>
      <latestDateField>0001-01-01T00:00:00</latestDateField>
      <priorityBumpField>0</priorityBumpField>
      <priorityField>0</priorityField>
      <iD3Field>BG20886</iD3Field>
      <estimatedDeliveryDateField>2017-03-14T20:33:40.7154542-05:00</estimatedDeliveryDateField>
      <importOrderTypeField>Modify</importOrderTypeField>
      <keyFieldSpecified>false</keyFieldSpecified>
    </DRStop>
    <DRStop>
      <aMAdjField>0</aMAdjField>
      <aMEndField>0001-01-01T00:00:00</aMEndField>
      <aMStartField>0001-01-01T00:00:00</aMStartField>
      <addressField>3040 Nw 59th Street</addressField>
      <branchField>OKC</branchField>
      <cityField>Oklahoma City</cityField>
      <closeTWField>false</closeTWField>
      <dRTimeWindowField>
        <DRTimeWindow>
          <closeField>0001-01-01T17:00:00</closeField>
          <openField>0001-01-01T08:00:00</openField>
          <patternField>MTWRF</patternField>
        </DRTimeWindow>
      </dRTimeWindowField>
      <dRUserFieldField>
        <DRUserField>
          <nameField>Item</nameField>
          <valueField>John Deere D125</valueField>
        </DRUserField>
        <DRUserField>
          <nameField>Price</nameField>
          <valueField>1799.00</valueField>
        </DRUserField>
      </dRUserFieldField>
      <dRVolumeField>
        <DRVolume>
          <nameField>Weight</nameField>
          <noFieldSpecified>false</noFieldSpecified>
          <unloadRateField>0</unloadRateField>
          <valueField>1700</valueField>
        </DRVolume>
        <DRVolume>
          <nameField>Cube</nameField>
          <noFieldSpecified>false</noFieldSpecified>
          <unloadRateField>0</unloadRateField>
          <valueField>75</valueField>
        </DRVolume>
      </dRVolumeField>
      <eqCodeField>LG</eqCodeField>
      <fixedTimeField>PT15M</fixedTimeField>
      <geoFenceField>0</geoFenceField>
      <iD1Field>WS3909</iD1Field>
      <importAccountTypeField>MODIFY</importAccountTypeField>
      <latitudeField>0</latitudeField>
      <longitudeField>0</longitudeField>
      <maxSplitsField>0</maxSplitsField>
      <nameField>Home Depot #3902</nameField>
      <onFinalizeField>DEFAULT</onFinalizeField>
      <pMAdjField>0</pMAdjField>
      <pMEndField>0001-01-01T00:00:00</pMEndField>
      <pMStartField>0001-01-01T00:00:00</pMStartField>
      <penaltyCostField>0</penaltyCostField>
      <phoneField>405-843-5008</phoneField>
      <rotationField>0</rotationField>
      <sizeField>15</sizeField>
      <sizeRestrictionField>0</sizeRestrictionField>
      <stateField>OK</stateField>
      <zipField>73112</zipField>
      <zoneField>0</zoneField>
      <legField>0</legField>
      <rtField>0</rtField>
      <selectedField>false</selectedField>
      <seqField>0</seqField>
      <earliestDateField>0001-01-01T00:00:00</earliestDateField>
      <iD2Field>ts3-3940</iD2Field>
      <latestDateField>0001-01-01T00:00:00</latestDateField>
      <priorityBumpField>0</priorityBumpField>
      <priorityField>0</priorityField>
      <iD3Field>BG20874</iD3Field>
      <estimatedDeliveryDateField>2017-03-14T20:33:44.0441178-05:00</estimatedDeliveryDateField>
      <importOrderTypeField>Modify</importOrderTypeField>
      <keyFieldSpecified>false</keyFieldSpecified>
    </DRStop>
    <DRStop>
      <aMAdjField>0</aMAdjField>
      <aMEndField>0001-01-01T00:00:00</aMEndField>
      <aMStartField>0001-01-01T00:00:00</aMStartField>
      <addressField>14201 N Pennsylvania Ave</addressField>
      <branchField>OKC</branchField>
      <cityField>Oklahoma City</cityField>
      <closeTWField>false</closeTWField>
      <dRTimeWindowField>
        <DRTimeWindow>
          <closeField>0001-01-01T17:00:00</closeField>
          <openField>0001-01-01T08:00:00</openField>
          <patternField>MTWRF</patternField>
        </DRTimeWindow>
      </dRTimeWindowField>
      <dRUserFieldField>
        <DRUserField>
          <nameField>Item</nameField>
          <valueField>John Deere D155</valueField>
        </DRUserField>
        <DRUserField>
          <nameField>Price</nameField>
          <valueField>2199.00</valueField>
        </DRUserField>
      </dRUserFieldField>
      <dRVolumeField>
        <DRVolume>
          <nameField>Weight</nameField>
          <noFieldSpecified>false</noFieldSpecified>
          <unloadRateField>0</unloadRateField>
          <valueField>1700</valueField>
        </DRVolume>
        <DRVolume>
          <nameField>Cube</nameField>
          <noFieldSpecified>false</noFieldSpecified>
          <unloadRateField>0</unloadRateField>
          <valueField>75</valueField>
        </DRVolume>
      </dRVolumeField>
      <eqCodeField>LG</eqCodeField>
      <fixedTimeField>PT15M</fixedTimeField>
      <geoFenceField>0</geoFenceField>
      <iD1Field>WS3919</iD1Field>
      <importAccountTypeField>MODIFY</importAccountTypeField>
      <latitudeField>0</latitudeField>
      <longitudeField>0</longitudeField>
      <maxSplitsField>0</maxSplitsField>
      <nameField>Home Depot #3919</nameField>
      <onFinalizeField>DEFAULT</onFinalizeField>
      <pMAdjField>0</pMAdjField>
      <pMEndField>0001-01-01T00:00:00</pMEndField>
      <pMStartField>0001-01-01T00:00:00</pMStartField>
      <penaltyCostField>0</penaltyCostField>
      <phoneField>405-749-1590</phoneField>
      <rotationField>0</rotationField>
      <sizeField>15</sizeField>
      <sizeRestrictionField>0</sizeRestrictionField>
      <stateField>OK</stateField>
      <zipField>73134</zipField>
      <zoneField>0</zoneField>
      <legField>0</legField>
      <rtField>0</rtField>
      <selectedField>false</selectedField>
      <seqField>0</seqField>
      <earliestDateField>0001-01-01T00:00:00</earliestDateField>
      <iD2Field>ts3-3919</iD2Field>
      <latestDateField>0001-01-01T00:00:00</latestDateField>
      <priorityBumpField>0</priorityBumpField>
      <priorityField>0</priorityField>
      <iD3Field>BG20876</iD3Field>
      <estimatedDeliveryDateField>2017-03-14T20:33:44.0441178-05:00</estimatedDeliveryDateField>
      <importOrderTypeField>Modify</importOrderTypeField>
      <keyFieldSpecified>false</keyFieldSpecified>
    </DRStop>
    <DRStop>
      <aMAdjField>0</aMAdjField>
      <aMEndField>0001-01-01T00:00:00</aMEndField>
      <aMStartField>0001-01-01T00:00:00</aMStartField>
      <addressField>3040 Nw 59th Street</addressField>
      <branchField>OKC</branchField>
      <cityField>Oklahoma City</cityField>
      <closeTWField>false</closeTWField>
      <dRTimeWindowField>
        <DRTimeWindow>
          <closeField>0001-01-01T17:00:00</closeField>
          <openField>0001-01-01T08:00:00</openField>
          <patternField>MTWRF</patternField>
        </DRTimeWindow>
      </dRTimeWindowField>
      <dRUserFieldField>
        <DRUserField>
          <nameField>Item</nameField>
          <valueField>John Deere D125</valueField>
        </DRUserField>
        <DRUserField>
          <nameField>Price</nameField>
          <valueField>1799.00</valueField>
        </DRUserField>
      </dRUserFieldField>
      <dRVolumeField>
        <DRVolume>
          <nameField>Weight</nameField>
          <noFieldSpecified>false</noFieldSpecified>
          <unloadRateField>0</unloadRateField>
          <valueField>1700</valueField>
        </DRVolume>
        <DRVolume>
          <nameField>Cube</nameField>
          <noFieldSpecified>false</noFieldSpecified>
          <unloadRateField>0</unloadRateField>
          <valueField>75</valueField>
        </DRVolume>
      </dRVolumeField>
      <eqCodeField>LG</eqCodeField>
      <fixedTimeField>PT15M</fixedTimeField>
      <geoFenceField>0</geoFenceField>
      <iD1Field>WS3908</iD1Field>
      <importAccountTypeField>MODIFY</importAccountTypeField>
      <latitudeField>0</latitudeField>
      <longitudeField>0</longitudeField>
      <maxSplitsField>0</maxSplitsField>
      <nameField>Home Depot #3902</nameField>
      <onFinalizeField>DEFAULT</onFinalizeField>
      <pMAdjField>0</pMAdjField>
      <pMEndField>0001-01-01T00:00:00</pMEndField>
      <pMStartField>0001-01-01T00:00:00</pMStartField>
      <penaltyCostField>0</penaltyCostField>
      <phoneField>405-843-5008</phoneField>
      <rotationField>0</rotationField>
      <sizeField>15</sizeField>
      <sizeRestrictionField>0</sizeRestrictionField>
      <stateField>OK</stateField>
      <zipField>73112</zipField>
      <zoneField>0</zoneField>
      <legField>0</legField>
      <rtField>0</rtField>
      <selectedField>false</selectedField>
      <seqField>0</seqField>
      <earliestDateField>0001-01-01T00:00:00</earliestDateField>
      <iD2Field>ts3-3908</iD2Field>
      <latestDateField>0001-01-01T00:00:00</latestDateField>
      <priorityBumpField>0</priorityBumpField>
      <priorityField>0</priorityField>
      <iD3Field>BG20874</iD3Field>
      <estimatedDeliveryDateField>2017-03-14T20:33:44.0441178-05:00</estimatedDeliveryDateField>
      <importOrderTypeField>Modify</importOrderTypeField>
      <keyFieldSpecified>false</keyFieldSpecified>
    </DRStop>
    <DRStop>
      <aMAdjField>0</aMAdjField>
      <aMEndField>0001-01-01T00:00:00</aMEndField>
      <aMStartField>0001-01-01T00:00:00</aMStartField>
      <addressField>14201 N Pennsylvania Ave</addressField>
      <branchField>OKC</branchField>
      <cityField>Oklahoma City</cityField>
      <closeTWField>false</closeTWField>
      <dRTimeWindowField>
        <DRTimeWindow>
          <closeField>0001-01-01T17:00:00</closeField>
          <openField>0001-01-01T08:00:00</openField>
          <patternField>MTWRF</patternField>
        </DRTimeWindow>
      </dRTimeWindowField>
      <dRUserFieldField>
        <DRUserField>
          <nameField>Item</nameField>
          <valueField>John Deere D155</valueField>
        </DRUserField>
        <DRUserField>
          <nameField>Price</nameField>
          <valueField>2199.00</valueField>
        </DRUserField>
      </dRUserFieldField>
      <dRVolumeField>
        <DRVolume>
          <nameField>Weight</nameField>
          <noFieldSpecified>false</noFieldSpecified>
          <unloadRateField>0</unloadRateField>
          <valueField>1700</valueField>
        </DRVolume>
        <DRVolume>
          <nameField>Cube</nameField>
          <noFieldSpecified>false</noFieldSpecified>
          <unloadRateField>0</unloadRateField>
          <valueField>75</valueField>
        </DRVolume>
      </dRVolumeField>
      <eqCodeField>LG</eqCodeField>
      <fixedTimeField>PT15M</fixedTimeField>
      <geoFenceField>0</geoFenceField>
      <iD1Field>WS3907</iD1Field>
      <importAccountTypeField>MODIFY</importAccountTypeField>
      <latitudeField>0</latitudeField>
      <longitudeField>0</longitudeField>
      <maxSplitsField>0</maxSplitsField>
      <nameField>Home Depot #3919</nameField>
      <onFinalizeField>DEFAULT</onFinalizeField>
      <pMAdjField>0</pMAdjField>
      <pMEndField>0001-01-01T00:00:00</pMEndField>
      <pMStartField>0001-01-01T00:00:00</pMStartField>
      <penaltyCostField>0</penaltyCostField>
      <phoneField>405-749-1590</phoneField>
      <rotationField>0</rotationField>
      <sizeField>15</sizeField>
      <sizeRestrictionField>0</sizeRestrictionField>
      <stateField>OK</stateField>
      <zipField>73134</zipField>
      <zoneField>0</zoneField>
      <legField>0</legField>
      <rtField>0</rtField>
      <selectedField>false</selectedField>
      <seqField>0</seqField>
      <earliestDateField>0001-01-01T00:00:00</earliestDateField>
      <iD2Field>ts3-3907</iD2Field>
      <latestDateField>0001-01-01T00:00:00</latestDateField>
      <priorityBumpField>0</priorityBumpField>
      <priorityField>0</priorityField>
      <iD3Field>BG20876</iD3Field>
      <estimatedDeliveryDateField>2017-03-14T20:33:44.0441178-05:00</estimatedDeliveryDateField>
      <importOrderTypeField>Modify</importOrderTypeField>
      <keyFieldSpecified>false</keyFieldSpecified>
    </DRStop>
  </dRStopEnvelopeField>
</ImportOrdersRequestEnvelope>

Sample XML Response

<?xml version="1.0" encoding="utf-8"?>
<ImportOrdersResponseEnvelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ExtensionData />
  <responseStatusField>
    <ExtensionData />
    <errorField />
    <warningField />
  </responseStatusField>
</ImportOrdersResponseEnvelope>
Last updated January 6, 2020.