- oTMS API
- Order ImportPUT
- orderOutboundPOST
- shipPointImportPUT
- Delete delivery pointDELETE
- Order Assignment to DriverPOST
- TruckAndDriverImportPUT
- Assign Driver to OrderPOST
- Job Sheet ImportPUT
- Delete Job SheetPUT
- Order RecallPOST
- Share LinkPUT
- Carrier ExportPOST
- Order UpdatePUT
- Order DispatchPOST
- Order RevokePUT
- Order RatingPOST
- Order Handover CreationPUT
- Oorder Custom UpdatePOST
- Price File MatchingPOST
- Order cost updatePOST
- Shipper/Receiver export POST
- Job Sheet OutboundPOST
- Job Sheet RecallPUT
- TruckPositionPOST
- GPS DevicePOST
- Jobsheet To DriverPUT
- TrackandTracePOST
- H5 LinkPUT
Order Update
PUT
/ws/orderUpdate
Order Update
Order Update Interface#
Configuration Instructions#
Important Notes#
Call Limitations#
Request
Header Params
Authorization
string
optional
Default:
Body Params application/xml
version
string
required
login
string
optional
password
string
optional
orders
array[object (UpdatedOrder) {27}]
required
sequence
integer <int32>
required
clientCode
string
optional
clientReferenceNumber
string
optional
importId
string
optional
index
integer <int32>
optional
branch
string
optional
erpNumber
string
optional
orderNumber
string
optional
orderRemarks
string
optional
policyNumber
string
optional
shipFrom
object (UpdatedLocation)
optional
shipTo
object (UpdatedLocation)
optional
timeSchedule
object (UpdatedTimeSchedule)
optional
orderLines
array[object (UpdatedOrderLine) {7}]
optional
>= 0 items<= 10000 items
concealOrderLines
boolean
optional
Default:
false
rejectDraft
boolean
optional
Default:
false
cargoDetails
object (UpdatedCargoDetails)
optional
transportMode
object (UpdatedTransportMode)
optional
revenue
object (UpdatedRevenue)
optional
cost
object (UpdatedRevenue)
optional
tempThreshold
object (UpdatedTemperature)
optional
customFields
object (UpdatedCustomFields)
optional
requireEpod
boolean
optional
Default:
false
businessType
string
optional
container
object (UpdatedContainer)
optional
transportDistance
number
optional
result
object (OrderImportResult)
optional
onlyUpdateCustomFiled
boolean
optional
Default:
false
Example
<?xml version="1.0" encoding="UTF-8"?>
<orderUpdateRequest version="0.1" login="login" password="password">
<orders>
<order sequence="1">
<branch></branch>
<columnName></columnName>
<orderNumber>AXDHBMAV009887</orderNumber>
<allowUpdate>true</allowUpdate>
<cargoDetails>
<totalWeight>900</totalWeight>
<totalVolume>3</totalVolume>
<cargoType>1</cargoType>
</cargoDetails>
<orderLines>
<orderLine>
<cargoDescription>
<productCode>1211</productCode>
<productName>wenju</productName>
<unitType>2</unitType>
</cargoDescription>
<customFields>
<customText5></customText5>
<customText38>12.00</customText38>
<customText46>LC00151</customText46>
<customText50>2022-10-25</customText50>
<customText55>Y151-1802</customText55>
</customFields>
<quantity>50</quantity>
<weight>900</weight>
<volume>3</volume>
<remarks></remarks>
</orderLine>
</orderLines>
</order>
</orders>
</orderUpdateRequest>
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://login.otms.com/ws/orderUpdate' \
--header 'Authorization;' \
--header 'Content-Type: application/xml' \
--data-raw '<?xml version="1.0" encoding="UTF-8"?>
<orderUpdateRequest version="0.1" login="login" password="password">
<orders>
<order sequence="1">
<branch></branch>
<columnName></columnName>
<orderNumber>AXDHBMAV009887</orderNumber>
<allowUpdate>true</allowUpdate>
<cargoDetails>
<totalWeight>900</totalWeight>
<totalVolume>3</totalVolume>
<cargoType>1</cargoType>
</cargoDetails>
<orderLines>
<orderLine>
<cargoDescription>
<productCode>1211</productCode>
<productName>wenju</productName>
<unitType>2</unitType>
</cargoDescription>
<customFields>
<customText5></customText5>
<customText38>12.00</customText38>
<customText46>LC00151</customText46>
<customText50>2022-10-25</customText50>
<customText55>Y151-1802</customText55>
</customFields>
<quantity>50</quantity>
<weight>900</weight>
<volume>3</volume>
<remarks></remarks>
</orderLine>
</orderLines>
</order>
</orders>
</orderUpdateRequest>'
Responses
🟢200成功
application/xml
Body
version
string
required
responseCode
string
optional
processedOrders
string
optional
orders
array[object (UpdateResult) {7}]
optional
sequence
integer <int32>
optional
erpNumber
string
optional
orderNumber
string
optional
updateStatus
string
optional
UPDATED - Order was successfully updated
FAILED - Order update failed
NOT UPDATED - No changes were made to the order
strResponseCodes
array[string]
optional
errorColumnName
string
optional
strErrorMsgs
array[string]
optional
Error code prompt
object
optional
7000
string
optional
7001
string
optional
7002
string
optional
7003
string
optional
7004
string
optional
7005
string
optional
7006
string
optional
7007
string
optional
7008
string
optional
7009
string
optional
7010
string
optional
7011
string
optional
7012
string
optional
7013
string
optional
7014
string
optional
7015
string
optional
7016
string
optional
7017
string
optional
7018
string
optional
7019
string
optional
7020
string
optional
7021
string
optional
7022
string
optional
7023
string
optional
7024
string
optional
7025
string
optional
7026
string
optional
7027
string
optional
7028
string
optional
7029
string
optional
7030
string
optional
7031
string
optional
7032
string
optional
7033
string
optional
7034
string
optional
7035
string
optional
7036
string
optional
7037
string
optional
7038
string
optional
7039
string
optional
7040
string
optional
7041
string
optional
7042
string
optional
7043
string
optional
7044
string
optional
7045
string
optional
7046
string
optional
7047
string
optional
7048
string
optional
7049
string
optional
7050
string
optional
7051
string
optional
7052
string
optional
7053
string
optional
7054
string
optional
7100
string
optional
Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orderUpdateResponse version="0.1">
<responseCode></responseCode>
<processedOrders>1</processedOrders>
<orders>
<order sequence="1">
<erpNumber>241108001</erpNumber>
<orderNumber>AXDHBMAV009887</orderNumber>
<updateStatus>UPDATED</updateStatus>
<responseCodes/>
</order>
</orders>
</orderUpdateResponse>