Through the Order Cost Update Interface, trunk line costs for orders can be updated in bulk. The maximum number of orders that can be updated in a single request is 100.
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.
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.
Currently, the call limit for this interface is set to a maximum of 20 requests per second per company.
Request
Header Params
Authorization
string
optional
Basic Authorization. If not empty, this value will be prioritized for authentication. Otherwise, the username and password in the request body will be used.
Default:
Body Params application/xml
version
string
required
Version number of the request. Current version number is 0.1
login
string
optional
Username. Used for API caller authentication. This value will be ignored if the Authorization header is not empty.
password
string
optional
Password. Used for API caller authentication. This value will be ignored if the Authorization header is not empty.
orders
array[object (UpdatedOrderRevenue) {6}]
required
List of orders to be updated. A single request can update up to 100 orders.
erpNumber
string
optional
Unique order number in the external system
orderNumber
string
optional
oTMS order number. If erpNumber is provided, the oTMS order number is considered invalid.
lineHaul
string
optional
Base rate, precise to 12 digits with 2 decimal places