创建与管理国际发货单
POST /v1/fulfillment/shipments/create {#create}
核心字段与 预览 相同,另可选:
external_shipment_id— 幂等键remark
total.payment 应与预览的 total 一致:
"total": {
"freight": { "amount": 8900, "currency": "CNY" },
"services": { "amount": 1500, "currency": "CNY" },
"discount": { "amount": 200, "currency": "CNY" },
"payment": { "amount": 10200, "currency": "CNY" }
}返回 shipment_id 和 status(如 wait_payment)。
POST /v1/fulfillment/shipments/pay {#pay}
{
"shipment_id": "shp_01HXYZ"
}从 履约钱包 扣款。余额不足 → INSUFFICIENT_BALANCE。
POST /v1/fulfillment/shipments/cancel {#cancel}
{
"shipment_id": "shp_01HXYZ",
"cancel_reason": "buyer_request"
}POST /v1/fulfillment/shipments/detail {#detail}
{
"shipment_id": "shp_01HXYZ"
}