The following URL will allow you to query an order :

    https://api.logistech.us/lomacs/xml/query_order?client=client_code&order_id=order_id

where order_id is the Logistech order id of the order in question and client_code is your client code given to you by a Logistech customer service representative.

If successful, this query should return an XML document with order information with the format described in the order schema description. Otherwise, it will return an <error> element.

Multiple Orders

You can query multiple orders with one transaction by specifying a comma-separated list of order ids for the order_id variable. The orders will be returned in an <order_list> element in the order they were requested. Any errors will show up in the proper place in the returned list.

Querying By Customer Reference Number

In addition to querying by order ID, you can query an order by its customer reference number. To do this, use the variable client_ref_id instead of ther order_id variable.

You may query by customer reference number and order ID in the same transaction simply by specifying both variables. The client_ref_id variable will also accept a comma-separated list. If a transaction queries by order ID and customer reference number, the orders retrieved by order ID are listed first in the returned list.

Example Query

The following example shows the process of querying orders :

URL: https://api.logistech.us/lomacs/xml/query_order?client=1234&order_id=01-03062481,01-03062480

Returns:
<?xml version="1.0"?>
<order_list>
  <order>
    <order_id>01-03062481</order_id>
    <status>OPEN</status>
    <est_delivery_date>03/08/2001</est_delivery_date>
    <service>POVERN</service>
    <request_ship_date>03/07/2001</request_ship_date>
    <address>
      <comp_name>BedRock Widget Sales</comp_name>
      <attn_name>Sam R Flintstone</attn_name>
      <address_1>102 Stone Circle</address_1>
      <city>BedRock</city>
      <state>FL</state>
      <zip_code>00987</zip_code>
      <country_code>US</country_code>
    </address>
    <item>
      <item_no>1</item_no>
      <product_id>XYZ-TEST1</product_id>
      <quantity>1</quantity>
      <description>Test insurance/customs in new product</description>
    </item>
  </order>
  <order>
    <order_id>01-03062480</order_id>
    <status>OPEN</status>
    <est_delivery_date>03/20/2001</est_delivery_date>
    <service>TRGND</service>
    <request_ship_date>03/07/2001</request_ship_date>
    <address>
      <comp_name>BHS Widget Installers</comp_name>
      <attn_name>Homer Simpson</attn_name>
      <address_1>Suite 600</address_1>
      <address_2>607 East Main Street</address_2>
      <city>Springfield</city>
      <state>IL</state>
      <zip_code>67354</zip_code>
      <country_code>US</country_code>
    </address>
    <item>
      <item_no>1</item_no>
      <product_id>660729144111</product_id>
      <quantity>1</quantity>
      <description>Mega Shield</description>
    </item>
  </order>
</order_list>