2.3 o2o订单取消接口
基本信息
| 接口名称 | TOM_TIMELINESS_WAYBILL_INSTRUCTION |
|---|---|
| 请求方式 | Post application/x-www-form-urlencoded |
| 功能描述 | O2O商家通知EDI取消订单 |
| 编码 | UTF-8 |
入参
| 项目 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 对接码 | logistic_provider_id | String | 是 | 双方约定 |
| 签名 | data_digest | String | 是 | Base64(Md5(logistics_interface+双方约定的secretKey)) ,具体方法参见文档最后 |
| 业务报文 | logistics_interface | String | 是 | JSON/XML都可以 |
logistics_interface内容
| 项目 | 名称 | 类型 | 必填 |
|---|---|---|---|
| 订单号 | TomTimelinessWaybillInstructionRequest-->extendsFeatures(outOrderCode) | String | 是 |
| 运单号 | TomTimelinessWaybillInstructionRequest-->bizNo | String | 否 |
| 取消原因 | TomTimelinessWaybillInstructionRequest-->remark | String | 是 |
| 客户编码 | TomTimelinessWaybillInstructionRequest-->extendsFeatures(customerCode) | String | 是 |
出参
| 项目 | 名称 | 类型 | 必填 |
|---|---|---|---|
| 成功标识 | success | boolean | 是 |
| 错误码 | errorCode | String | 否 |
| 错误说明 | errorMsg | String | 否 |
d.示例报文
url:
http://edi-daily.xpm.cainiao.com/ext/gateway/ediStandardTimelinessWaybillInstruction/ediStandardTimelinessWaybillInstruction/api
请求:
logistic_provider_id: edi_test_o2o_json
logistics_interface:
{
"extendsFeatures": [{
"key": "customerCode",
"value": "edi_test_o2o_json"
}, {
"key": "outOrderCode",
"value": "test181224001"
}],
"remark": "不想要了",
"bizNo": ""
}
data_digest: C7j9VP43D4V8SODTWM+/qA==
返回:
{"success":true}