退货创建
事件分组 | 事件标识 |
---|---|
return | return/create |
当订单上创建新退货时就会发生,与资金流动无关
请求头
- X-Shopline-Topic string required事件操作标识Example:
orders/edited
- X-Shopline-Hmac-Sha256 string required签名Example:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
- X-Shopline-Shop-Domain string required店铺域名Example:
shophub.myshopline.com
- X-Shopline-Shop-Id string required店铺idExample:
1610418123456
- X-Shopline-Merchant-Id string required商户IDExample:
2000001234
- X-Shopline-API-Version string required版本号Example:
v20210901
- X-Shopline-Webhook-Id string required消息IDExample:
b54557e48a5fbf7d70bcd043
请求体
- after_sale_order_seq string退货单IDExample:
2606576826460396889110
- created_at string订单更新时间,(格式见IOS8601)Example:
2024-07-30T19:05:13.968+0800
- order_seq string订单IDExample:
21064997045395244145024325
return_line_itemsobject[]
退货商品信息fulfillment_line_itemobject
正向发货单商品line_itemobject
商品attribute string商品属性:名称 - 属性值Example:Color - RED
final_price string商品成交价Example:20
fulfillable_quantity integer可发货数量fulfillment_service string物流商名称Example:Yuan Tong Delivery
fulfillment_status string商品的发货状态Example:fulfilled
gift_card boolean是否礼品卡grams double重量(克),涉及单位换算Example:28350
group_id string商品组idExample:0
id string商品快照表的idExample:7889
image_url string图片urlExample:https://www.asdlj22lljsf.com/gima.image
location_seq string取货地点唯一编号Example:12123898712312
name stringsku标题,同titleExample:mock product title
price string商品售价Example:200.00
product_id stringspu序列号Example:16065603540221212797880910
product_tax_linesobject[]
商品税费信息name string税费名称Example:VAT
price string税金Example:1.39
price_setobject
税费金额明细presentment_moneyobject
市场币种金额明细amount string金额Example:20
currency_code string币种Example:USD
shop_moneyobject
店铺币种金额明细amount string金额Example:20
currency_code string币种Example:USD
rate double税率Example:0.0012
rate_percentage double税率百分比tax_no string税码Example:123343
title string税费名称Example:VAT
type string税费类型Example:product_tax
propertiesobject[]
商品的自定义信息additional string附加信息ext_info string拓展信息name string自定义属性名称Example:Color
show boolean是否要在前端展示Example:true
type string属性类型Example:Color
urls arrayurl列表Example:https://www.asdlj22lljsf.com/mock_title
value string自定义属性值Example:Red
quantity integer订单中的商品数量Example:3
requires_shipping boolean是否需要发货Example:true
sku string商品码Example:T20200925200122
tags string商品标签,逗号分隔Example:BWP,CUSTOM
taxable boolean是否收税title string商品标题Example:mock product title
variant_id string商品sku序列号Example:18065603540226245962750910
variant_title string商品属性值Example:RED
vendor string供应商Example:mock product vendor
version string商品版本Example:0
quantity integer退货单退货数量Example:1
order_package_seq string退货单关联的发货单号Example:22065768243292542110023140
quantity integer退货单退货数量Example:1
refund_detail_seq string退货单商品行号Example:RDP6576826460816319513
return_reason string商品行的退货原因: COLOR 颜色问题 DEFECTIVE 商品损坏或有缺陷 NOT_AS_DESCRIBED 商品与描述不符 OTHER 其他原因 SIZE_TOO_LARGE 尺寸太大 SIZE_TOO_SMALL 尺寸太小 STYLE 款式问题 UNWANTED 客户改变了主意 WRONG_ITEM 收到了错误的商品Example:this is a mock return reason
return_reason_note string商品行退货原因详细信息备注,最大支持128字符Example:this is a mock return reason note
- return_reason string退货原因Example:
this is a test return reason
- status string退货状态:REQUESTED(请求退货)、CLOSED(退货完成且已退款完成)、OPEN(退货中)、DECLINED(拒绝退货)、CANCELED(取消退货)Example:
OPEN
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?