Multiple Requests and Using the RequestID

The Fortune3 Ecommerce API allows you to send multiple requests within the same message. For example, within the same message, you can send multiple OrderQueryRs requests, or multiple types of requests such as a ProductQueryRs and a CategoryQueryRs, or a OrderQueryRq and a CustomerQueryRq. In order to track which response goes with which message, use the RequestID attribute within the request tag. The RequestID attribute will be returned with every Request's response, so that you can track which request each response is for.

Sample Code:

<sendRequestXML>
<authenticate>
<APIUsername>TWmY6WBft</APIUsername>
<APIPassword>SKW8ssAmDu6xTGDl</APIPassword>
</authenticate>
<ProductQueryRq RequestID="1">
  <Filters>
    <Filter>
      <SKU>ABC1</SKU>
    </Filter>
  </Filters>
</ProductQueryRq>
<CategoryQueryRq RequestID="2">
  <Filters>
    <Filter>
      <Name>Televisions</Name>
      <Name>Appliances</Name>
    </Filter>
  </Filters>
</CategoryQueryRq>
</sendRequestXML>
Print/export