更新履约单库存地点
POST https://{handle}.myshopline.com/admin/openapi/v20260601/fulfillment_orders/:order_id/:fulfillment_order_id/move.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handle 是 open001 。移动履约单到新地点,变更履约单的库存地点
路径参数
- fulfillment_order_id string required履约单id例子:
"4005740193290131085320" - order_id string required订单id例子:
"21057401932826316666967110"
请求头
- Content-Type string required字段值固定为
application/json; charset=utf-8。 - Authorization string required资源的访问令牌。参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入。例子:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
fulfillment_orderobject required
入参new_location_id string required新地点id例子:"134429880"
状态码
- 200
- 401
- 429
更多状态码信息,参考 HTTP 状态码。
响应头
traceId
请求的全局唯一标识符。用于追踪请求在系统中的流转,以便于问题发生时进行定位和调试。
响应体
original_fulfillment_orderobject
原履约单详情assigned_location_id string被分配的地点id例子:"5327026538935748524"line_itemsobject[]
商品行信息id string履约单商品行id例子:"1039283"line_item_id string商品行id例子:"518995019"quantity long订单商品行商品数量例子:1shop_id string店铺id例子:"1644828244663"variant_id string商品sku例子:"18055128824718541486811487"fulfillable_quantity long可履约商品数量例子:1fulfillment_order_id string履约单id例子:"4005740193290131085320"request_status string请求状态,包括:accepted,cancellation_accepted, cancellation_rejected,cancellation_Requested,closed,rejected,submitted,unsubmitted例子:"submitted"assigned_locationobject
被分配的地点详情address2 string地址2例子:"Chestnut Street 92"name string地点名称例子:"Apple Api Shipwire"phone string地点电话号码例子:"+1(502)-459-3417"city string城市例子:"Louisville"zip string地点邮编例子:"40202"address1 string地址1例子:"Chestnut Street 92"country_code string国家码例子:"US"location_id string地点id例子:"5327026538935748524"province string地点省份例子:"Kentucky"id string履约单id例子:"4005740193290131085320"shop_id string店铺id例子:"1644828244663"supported_actions array履约单支持的操作,包括:create_fulfillment -- 创建发货,move -- 移动到新地点,hold -- 暂停发货,release_hold -- (暂停之后)开始发货例子:["[\"create_fulfillment\"]"]destinationobject
收货人信息address1 string收货人地址1例子:"Chestnut Street 92"city string收货人城市例子:"Louisville"province string收货人省份例子:"Kentucky"address2 string收货人地址2例子:"Chestnut Street 92"company string收货人公司例子:"Apple inc"last_name string收货人姓氏例子:"Norman"zip string收货人地址邮编例子:"40202"email string收货人邮箱例子:"bob.norman@mail.example.com"first_name string收货人名称例子:"Bob"phone string收货人电话号码例子:"+1(502)-459-2181"country string收货人国家例子:"United States"order_id string订单id例子:"21057401932826316666967110"status string履约单状态,包括:open,in_progress,closed,cancelled,incomplete,on_hold,scheduled例子:"open"moved_fulfillment_orderobject
新履约单详情order_id string订单id例子:"21057401932826316666967110"id string履约单id例子:"4005740193290131085320"request_status string请求状态,包括:accepted,cancellation_accepted, cancellation_rejected,cancellation_Requested,closed,rejected,submitted,unsubmitted例子:"submitted"status string履约单状态,包括:open,in_progress,closed,cancelled,incomplete,on_hold,scheduled例子:"open"destinationobject
收货人信息phone string收货人电话号码例子:"+1(502)-459-2181"province string收货人省份例子:"Kentucky"address2 string收货人地址2例子:"Chestnut Street 92"city string收货人城市例子:"Louisville"company string收货人公司例子:"Apple inc"country string收货人国家例子:"United States"zip string收货人地址邮编例子:"40202"email string收货人邮箱例子:"bob.norman@mail.example.com"first_name string收货人名称例子:"Bob"last_name string收货人姓氏例子:"Norman"address1 string收货人地址1例子:"Chestnut Street 92"line_itemsobject[]
商品行信息shop_id string店铺id例子:"1644828244663"variant_id string商品sku例子:"18055128824718541486811487"fulfillable_quantity long可履约商品数量例子:1fulfillment_order_id string履约单id例子:"4005740193290131085320"id string履约单商品行id例子:"1039283"line_item_id string商品行id例子:"518995019"quantity long订单商品行商品数量例子:1assigned_locationobject
被分配的地点详情location_id string地点id例子:"5327026538935748524"address1 string地址1例子:"Chestnut Street 92"address2 string地址2例子:"Chestnut Street 92"name string地点名称例子:"Apple Api Shipwire"phone string地点电话号码例子:"+1(502)-459-3417"province string地点省份例子:"Kentucky"city string城市例子:"Louisville"country_code string国家码例子:"USzip string地点邮编例子:"40202"shop_id string店铺id例子:"1644828244663"supported_actions array履约单支持的操作,包括:create_fulfillment -- 创建发货,move -- 移动到新地点,hold -- 暂停发货,release_hold -- (暂停之后)开始发货例子:["[\"create_fulfillment\"]"]assigned_location_id string被分配的地点id例子:"5327026538935748524"
API Explorer
调试台
这篇文章对你有帮助吗?