Price File Matching Interface#
Through the Price File Matching Interface, orders from external systems can be matched with oTMS price files to calculate prices.Configuration Instructions#
oTMS provides Web Service interfaces in both production and testing environments, where the testing environment is primarily used for integration testing. In both environments, API account credentials must be assigned by the oTMS system administrator before they can be used.Important Notes#
Please use the public interfaces reasonably. If abnormal calls or any issues affecting system performance are detected, we will impose restrictions on the API account calls, or even deactivate them.
Request
Body Params application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<buyingTariffSuggestionRequest version="0.1" login="login" password="password">
<orders>
<order>
<orderId></orderId>
<clientCode></clientCode>
<origin>
<province>ACEH</province>
<town>ACEH SELATAN</town>
<county>KLUET UTARA</county>
</origin>
<destination>
<province>ACEH</province>
<town>ACEH TENGGARA</town>
<county>LAWE ALA</county>
<loading>false</loading>
</destination>
<packageType>A</packageType>
<cargoType>1</cargoType>
<transportMode>
<transportTypes>
<transportType>LTL</transportType>
</transportTypes>
<truckType>2</truckType>
</transportMode>
<timeSchedule>
<pickupDate>2024-10-05T18:00:00</pickupDate>
<deliveryDate>2024-10-08T18:00:00</deliveryDate>
</timeSchedule>
<cargoDetails>
<quantity>100</quantity>
<volume>100</volume>
<weight>1000</weight>
<insurance></insurance>
<loadingMeter></loadingMeter>
</cargoDetails>
</order>
</orders>
<options>
<suggestionMode>1</suggestionMode>
<includeTariffAndVendorInfo>false</includeTariffAndVendorInfo>
<includeRateDetails>false</includeRateDetails>
<truckSizeStrictMatching>false</truckSizeStrictMatching>
<locationStrictMatching>false</locationStrictMatching>
</options>
</buyingTariffSuggestionRequest>
Request Code Samples
curl --location 'https://login.otms.com/ws/tariff/tariffSuggestion/v0/buying' \
--header 'Content-Type: application/xml' \
--data '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<buyingTariffSuggestionRequest version="0.1" login="login" password="password">
<orders>
<order>
<orderId></orderId>
<clientCode></clientCode>
<origin>
<province>ACEH</province>
<town>ACEH SELATAN</town>
<county>KLUET UTARA</county>
</origin>
<destination>
<province>ACEH</province>
<town>ACEH TENGGARA</town>
<county>LAWE ALA</county>
<loading>false</loading>
</destination>
<packageType>A</packageType>
<cargoType>1</cargoType>
<transportMode>
<transportTypes>
<transportType>LTL</transportType>
</transportTypes>
<truckType>2</truckType>
</transportMode>
<timeSchedule>
<pickupDate>2024-10-05T18:00:00</pickupDate>
<deliveryDate>2024-10-08T18:00:00</deliveryDate>
</timeSchedule>
<cargoDetails>
<quantity>100</quantity>
<volume>100</volume>
<weight>1000</weight>
<insurance></insurance>
<loadingMeter></loadingMeter>
</cargoDetails>
</order>
</orders>
<options>
<suggestionMode>1</suggestionMode>
<includeTariffAndVendorInfo>false</includeTariffAndVendorInfo>
<includeRateDetails>false</includeRateDetails>
<truckSizeStrictMatching>false</truckSizeStrictMatching>
<locationStrictMatching>false</locationStrictMatching>
</options>
</buyingTariffSuggestionRequest>'
Responses
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<buyingTariffSuggestionResponse version="0.1">
<successOrderCount>1</successOrderCount>
<matchedTariffs/>
<buyingSuggestions>
<buyingSuggestion>
<orderId></orderId>
<success>true</success>
<suggestions>
<suggestion>
<matchingLane>
<laneOrigin>
<province>ACEH</province>
<town>ACEH SELATAN</town>
<county>KLUET UTARA</county>
<zipcode>23771</zipcode>
</laneOrigin>
<laneDestination>
<province>ACEH</province>
<town>ACEH TENGGARA</town>
<county>LAWE ALAS</county>
<zipcode>24661</zipcode>
</laneDestination>
</matchingLane>
<rate>1500.00</rate>
<leadtime>48</leadtime>
<matchedByCustomFields>false</matchedByCustomFields>
<matchedByDefaultLane>false</matchedByDefaultLane>
</suggestion>
</suggestions>
<responseCodes/>
</buyingSuggestion>
</buyingSuggestions>
</buyingTariffSuggestionResponse>
Modified at 2025-06-06 02:46:48