- 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
shipPointImport
PUT
/ws/shipPointImport
Pickup and Delivery Point Import
Important Notes#
Call Limitations#
Request
Header Params
Authorization
string
optional
Default:
Body Params application/xml
version
string
required
login
string
optional
password
string
optional
shipPoints
array[object (ImportedShipPoint) {31}]
required
sequence
integer <int32>
required
clientCode
string
optional
clientReferenceNumber
string
optional
type
enum<string>
required
0 - Pickup Point
1 - Delivery Point
2 - Hub
Allowed values:
PICKUP_POINTDELIVERY_POINTHUB
companyName
string
required
nationalCenter
boolean
optional
Default:
false
regionalCenter
boolean
optional
Default:
false
myLocation
string
optional
selectType
enum<string>
required
1 - All Regions
2 - HQ Only
3 - Specific Region
Allowed values:
ALLHQ_ONLYSELECTED
Default:
20
selectedLocations
array[string]
optional
>= 0 items<= 500 items
externalId
string
optional
province
string
optional
town
string
optional
county
string
optional
address
string
optional
shippingId
string
optional
zipcode
string
optional
Match pattern:
\d{6}
updateZipcode
boolean
optional
Default:
false
contact
object (ImportedContactPerson)
optional
loading
boolean
optional
Default:
false
supportXtt
boolean
optional
Default:
false
supportSms
boolean
optional
Default:
false
remark
string
optional
driverOperateRadius
string
optional
latitude
number <double>
optional
longitude
number <double>
optional
notifyDistancePercentage
string
optional
notifyRadius
string
optional
customFields
object (ImportedShipPointCustomFields)
optional
workingDays
array[object (ImportedWorkingDay) {5}]
optional
nonWorkingDays
array[object (ImportedWorkingDay) {5}]
optional
Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<shipPointImportRequest version="0.1" login="username" password="password">
<shipPoints>
<shipPoint sequence="1">
<clientReferenceNumber>sh00105001</clientReferenceNumber>
<type>0</type>
<companyName>Shanghai 001 co.,ltd.</companyName>
<myLocation>Shanghai DC</myLocation>
<selectType>3</selectType>
<selectedLocations>
<location>Shanghai DC</location>
<location>Hangzhou DC</location>
</selectedLocations>
<externalId>11223344</externalId>
<province>shanghai</province>
<town>shanghai</town>
<county/>
<address>1606 Ganghui plaza</address>
<zipcode>200020</zipcode>
<contact>
<name>Mr. Zhang</name>
<phone>12345678</phone>
<phoneAreaCode>021</phoneAreaCode>
<mobile>13812345678</mobile>
<email>peterzhang@testmail.com</email>
</contact>
<loading>true</loading>
<supportXtt>true</supportXtt>
<supportSms>true</supportSms>
<remark/>
<customFields>
<customText1>sh</customText1>
<customNum1>100</customNum1>
</customFields>
</shipPoint>
<shipPoint sequence="2">
<clientReferenceNumber>sh00105002</clientReferenceNumber>
<type>1</type>
<companyName>Hangzhou 001 co.,ltd.</companyName>
<myLocation>Hangzhou DC</myLocation>
<selectType>1</selectType>
<externalId>22334455</externalId>
<province>zhejiang</province>
<town>hangzhou</town>
<county/>
<address>9999 Lian Hua Road</address>
<zipcode>311010</zipcode>
<contact>
<name>Johnny</name>
<phone>87654321</phone>
<phoneAreaCode>0571</phoneAreaCode>
<mobile>13887654321</mobile>
<email>Johnny@testmail.com</email>
</contact>
<loading>false</loading>
<supportXtt>true</supportXtt>
<supportSms>true</supportSms>
<remark/>
<customFields>
<customText1>hz</customText1>
<customNum1>50</customNum1>
</customFields>
</shipPoint>
</shipPoints>
</shipPointImportRequest>
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/shipPointImport' \
--header 'Authorization;' \
--header 'Content-Type: application/xml' \
--data-raw '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<shipPointImportRequest version="0.1" login="username" password="password">
<shipPoints>
<shipPoint sequence="1">
<clientReferenceNumber>sh00105001</clientReferenceNumber>
<type>0</type>
<companyName>Shanghai 001 co.,ltd.</companyName>
<myLocation>Shanghai DC</myLocation>
<selectType>3</selectType>
<selectedLocations>
<location>Shanghai DC</location>
<location>Hangzhou DC</location>
</selectedLocations>
<externalId>11223344</externalId>
<province>shanghai</province>
<town>shanghai</town>
<county/>
<address>1606 Ganghui plaza</address>
<zipcode>200020</zipcode>
<contact>
<name>Mr. Zhang</name>
<phone>12345678</phone>
<phoneAreaCode>021</phoneAreaCode>
<mobile>13812345678</mobile>
<email>peterzhang@testmail.com</email>
</contact>
<loading>true</loading>
<supportXtt>true</supportXtt>
<supportSms>true</supportSms>
<remark/>
<customFields>
<customText1>sh</customText1>
<customNum1>100</customNum1>
</customFields>
</shipPoint>
<shipPoint sequence="2">
<clientReferenceNumber>sh00105002</clientReferenceNumber>
<type>1</type>
<companyName>Hangzhou 001 co.,ltd.</companyName>
<myLocation>Hangzhou DC</myLocation>
<selectType>1</selectType>
<externalId>22334455</externalId>
<province>zhejiang</province>
<town>hangzhou</town>
<county/>
<address>9999 Lian Hua Road</address>
<zipcode>311010</zipcode>
<contact>
<name>Johnny</name>
<phone>87654321</phone>
<phoneAreaCode>0571</phoneAreaCode>
<mobile>13887654321</mobile>
<email>Johnny@testmail.com</email>
</contact>
<loading>false</loading>
<supportXtt>true</supportXtt>
<supportSms>true</supportSms>
<remark/>
<customFields>
<customText1>hz</customText1>
<customNum1>50</customNum1>
</customFields>
</shipPoint>
</shipPoints>
</shipPointImportRequest>'
Responses
🟢200成功
application/xml
Body
version
string
required
responseCode
array [object {3}]
optional
0
string
optional
1
string
optional
2
string
optional
processedShipPoints
string
optional
shipPoints
array [object {5}]
optional
sequence
integer <int32>
optional
clientReferenceNumber
string
optional
importStatus
string
optional
ADDED
UPDATED
REMOVED
FAILED
responseCodes
array [object {27}]
optional
responseCodeParameters
object
optional
Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<shipPointImportResponse version="0.1">
<responseCode/>
<processedShipPoints>2</processedShipPoints>
<shipPoints>
<shipPoint sequence="1">
<clientReferenceNumber>sh00105001</clientReferenceNumber>
<importStatus>UPDATED</importStatus>
<responseCodes>
<responseCode>
<code>1014</code>
</responseCode>
<responseCode>
<code>1031</code>
</responseCode>
<responseCode>
<code>1040</code>
</responseCode>
</responseCodes>
</shipPoint>
<shipPoint sequence="2">
<clientReferenceNumber>sh00105002</clientReferenceNumber>
<importStatus>UPDATED</importStatus>
<responseCodes>
<responseCode>
<code>1018</code>
</responseCode>
<responseCode>
<code>1031</code>
</responseCode>
</responseCodes>
</shipPoint>
</shipPoints>
</shipPointImportResponse>