获取跟踪号--getTrackNumber
POST
/default/svc/web-service
getTrackNumber
请求参数
Body 参数application/xml
reference_no
array[string]
必需
示例
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.example.org/Ec/">
<SOAP-ENV:Body>
<ns1:callService>
<paramsJson>
<![CDATA[
{
"reference_no": ["CR36600008"]
}
]]>
</paramsJson>
<appToken>{{appToken}}</appToken>
<appKey>{{appKey}}</appKey>
<service>getTrackNumber</service>
</ns1:callService>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://8.129.234.2:8085/default/svc/web-service' \
--header 'Content-Type: application/xml' \
--data-raw '<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.example.org/Ec/">
<SOAP-ENV:Body>
<ns1:callService>
<paramsJson>
<![CDATA[
{
"reference_no": ["CR36600008"]
}
]]>
</paramsJson>
<appToken>a106eb7a118d78f92cabbc91586caa84</appToken>
<appKey>a106eb7a118d78f92cabbc91586caa8401ac591bb285b42966f035d8d49a7b5c</appKey>
<service>getTrackNumber</service>
</ns1:callService>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>'
返回响应
🟢200成功
application/xml
Body
ask
enum<string>
请求结果
枚举值:
SuccessFailure
message
string
提示信息
data
array [object {7}]
必需
OrderNumber
string
客户单号
TrackingNumber
string
尾程跟踪号
WayBillNumber
string
系统运单号
PlatformNumber
string | null
平台订单号
trackingnumberlist
object
子单跟踪号节点
channelGroupCode
string | null
渠道分组代码
channelNumber
string | null
渠道转单号
time_cost(s)
string
耗时,单位秒
示例
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.example.org/Ec/">
<SOAP-ENV:Body>
<ns1:callServiceResponse>
<response>{"ask":"Success","data":[{"OrderNumber":"KJGRDMZYQACDOW6VH9NY","TrackingNumber":"794813658901","WayBillNumber":"CR36600008","PlatformNumber":"","trackingnumberlist":{"U001":"794813658901","U002":"794813658912"},"channelGroupCode":"UPS","channelNumber":""}],"Error":{"errCode":50010,"errMessage":""},"message":"全部获取成功","time_cost(s)":0.24880003929138}</response>
</ns1:callServiceResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
🟢200未生成跟踪号
🟢200失败
修改于 2025-01-02 02:20:39