Get Shipping Method
Request Service
- getShippingMethod
Request Method:
- POST
Request Sample:
<?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/">
<SOAP-ENV:Body>
<ns1:callService>
<paramsJson>
{
"warehouseCode":"WPCHI",
"method_type":1
}
</paramsJson>
<appToken>appToken</appToken>
<appKey>appKey</appKey>
<service>getShippingMethod</service>
</ns1:callService>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Request Parameter:
Parameter | Type | Required | Remark | Length Limited |
---|---|---|---|---|
warehouseCode | String | N | Warehouse Code | 30 |
methodType | int | N | Leave this parameter: all, 1: B2C order,2: B2B order,3: Return Order,4: Shipment Order | 1 |
Response Sample:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SOAP-ENV:Envelope xmlns:ns1="http://www.example.org/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<ns1:callServiceResponse>
<response>
{
"ask":"Success",
"count":"3",
"data":[
{
"code":"US_FEDEX_SMART",
"name":"US_FEDEX_SMART",
"name_cn":"美国FEDEX_SMART",
"warehouse_code":"WPCHI",
"is_order":1,
"is_transfer_order":0,
"is_return":0,
"is_delivery":1,
"sm_is_signature":0,
"sm_is_insurance":1
},
{
"code":"US_FEDEX_GROUND",
"name":"US_FEDEX_GROUND",
"name_cn":"美国FEDEX_GROUND",
"warehouse_code":"WPCHI",
"is_order":1,
"is_transfer_order":0,
"is_return":0,
"is_delivery":1,
"sm_is_signature":0,
"sm_is_insurance":1
},
{
"code":"US_FEDEX_HD",
"name":"US_FEDEX_HD",
"name_cn":"美国美国FEDEX_HD",
"warehouse_code":"WPCHI",
"is_order":1,
"is_transfer_order":0,
"is_return":0,
"is_delivery":1,
"sm_is_signature":0,
"sm_is_insurance":1
}
],
"nextPage":false
}
</response>
</ns1:callServiceResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Response Parameter:
Parameter | Type | Remark |
---|---|---|
code | String | Code |
is_delivery | int | Support shipment order: 1-Yes, 0-No |
is_order | int | Support B2C order: 1-Yes, 0-No |
is_return | int | Support Return order: 1-Yes, 0-No |
is_transfer_order | int | Support B2B order: 1-Yes, 0-No |
is_upload_label | int | Required Shipping Label: 1-Yes, 0-No |
name | String | Shipping method name(English) |
name_cn | String | Shipping method name(Chinese) |
warehouse_code | String | Warehouse Code |
sm_is_signature | int | Support Signature service: 1-Yes, 0-No |
sm_is_insurance | int | Support Insurance services: 1-Yes, 0-No |
split_order_flag | int | Support Split order forecast Insurance services: 0-No, 1-Yes, 2-Not supported |
作者:WesternPost 创建时间:2021-06-29 23:50
最后编辑:覃超华 更新时间:2024-12-31 02:56
最后编辑:覃超华 更新时间:2024-12-31 02:56