更新面单
POST
/ark/open_api/v3/common_controller
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ark.xiaohongshu.com/ark/open_api/v3/common_controller' \
--header 'Content-Type: application/json;charset=utf-8' \
--data-raw '{
"cpCode": "",
"waybillCode": "",
"objectId": "1",
"logisticsServices": "",
"packageInfo": {
"items": [
{
"count": "",
"name": "",
"specification": ""
}
],
"volume": "",
"weight": "",
"length": "",
"width": "",
"height": ""
},
"recipient": {
"address": {
"city": "",
"detail": "",
"district": "",
"province": "",
"town": ""
},
"mobile": "",
"name": "",
"phone": "",
"openAddressId": ""
},
"sender": {
"mobile": "",
"name": "",
"phone": ""
},
"templateId": ""
}'
响应示例响应示例
{
"error_code": "",
"error_msg": "",
"success": "true",
"data": {
"waybill": {
"objectId": "1",
"waybillCode": "78689455849606",
"printData": "{\\\"encryptedData\\\":\\\"打印数据密文\\\",\\\"signature\\\":\\\"MD:lH0r2gNxcIuY7dY3VvV4ag==\\\",\\\"templateURL\\\":\\\"http://cloudprint.cainiao.com/template/standard/644703\\\",\\\"ver\\\":\\\"waybill_print_xiaohongshu_secret\\\"}",
"parentWaybillCode": "",
"extraInfo": "",
"cpCode": "",
"customerPrintData": "{\\\"data\\\":{\\\"item\\\":[\\\"商品名称\\\"],\\\"order\\\":[\\\"P000000001\\\"]},\\\"templateURL\\\":\\\"https://cloudprint.cainiao.com/template/standard/629505/24\\\"}"
},
"subErrorCode": ""
}
}
请求参数
Header 参数
Content-Type
string
可选
默认值:
application/json;charset=utf-8
Body 参数application/json