查询退货单
GET https://{handle}.myshopline.com/admin/openapi/v20260301/return.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handle 是 open001 。根据提供的退货单号或订单号查询相应的退货单详情。
查询参数
- id string退货单 ID,用于指定要查询的退货单的唯一标识符 ID(退货单 ID 与订单 ID 两者必须提供一个,或者两个都提供)。Example:
2605860580357012238342 - order_id string订单 ID,用于指定要查询的订单的唯一标识符 ID(退货单 ID 与订单 ID 两者必须填写一个,或者两个都提供)。Example:
21058605762597644309430942
请求头
- Content-Type string required字段值固定为
application/json; charset=utf-8。 - Authorization string required资源的访问令牌。参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入。Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
状态码
- 200
- 401
- 422
- 429
更多状态码信息,参考 HTTP 状态码。
响应头
traceId
请求的全局唯一标识符。用于追踪请求在系统中的流转,以便于问题发生时进行定位和调试。
响应体
returnsobject[]
退货单的详细信息。return_line_itemsobject[]
退货商品列表。return_reason_note string商品行退货原因详细信息备注。Example:Product does not match the descriptionfulfillment_id string由退货单关联的发货单的唯一标识符 ID。Example:RPP5873267430525507606fulfillment_line_itemobject
退货单关联的发货单信息。line_itemobject
发货单商品行信息。tax_linesobject[]
该商品税费信息。price string税费金额。Example:18.00rate double税率。该信息只做展示作用。Example:0.02title string税费说明标题。该信息只做展示作用。Example:CNMPname stringSKU 标题,该字段值和title一致。Example:It's good Productproduct_id stringSPU 序列号。Example:16056898121352174690861487propertiesobject[]
商品定制信息。type string定制信息类型。有效枚举值包含:text:字符类型picture:图片类型link:链接类型
Example:texturls array商品定制信息链接。Example:["https://image.shopline.com"]value string商品定制信息内容。Example:Freedomname string商品定制信息名称。Example:Textquantity integer需发货的商品数量。Example:20variant_id string商品的 SKU 序列号,商品款式的唯一标识 ID。Example:18056898121355865678441487fulfillment_status string商品行发货状态。fulfilled: 已发货partial: 部分发货null: 未发货
Example:fulfilledgrams double商品重量(克)。Example:1image_url string退货商品的图片链接。Example:https://image.shopline.com/abc.jpglocation_id string本地配送地点编号或普通配送地点编号。Example:5327026538935748524price string商品售价,商品详情页销售价格。Example:100.0requires_shipping boolean商品是否需要发货。true:需要发货false:不需要发货
Example:truetaxable boolean该商品是否含税。true:含税fasle:不含税
Example:truevariant_title string商品属性值,多个以 " / " 分割。Example:L/Redattribute string商品属性信息:名称 - 属性值。当有多个属性值时,以逗号分隔。例如:Color-Red, Size-L。Example:Color-Red, Size-Lfulfillment_service string物流商名称。Example:Sf internationalid string商品行 ID。Example:405tags string商品标签,当存在多个时用逗号分隔。Example:salestitle string该商品的标题。Example:It's good Productvendor string商品供应商。Example:Product supplierfulfillable_quantity integer商品行维度剩余可履约的商品数量。Example:20gift_card boolean该商品是否为礼品卡商品。true:是礼品卡商品false:不是礼品卡商品
Example:truesku string商品 SKU 序列号。Example:SKU1234quantity integer发货单对应的发货数量。Example:20id string退货商品行号。Example:RDP5860580372212396041quantity integer退货单对应的商品退货数量。Example:20return_reason string商品行的退货原因。有效枚举值包含:COLOR:颜色问题DEFECTIVE:商品损坏或有缺陷NOT_AS_DESCRIBED:商品与描述不符OTHER:其他原因SIZE_TOO_LARGE:尺寸太大SIZE_TOO_SMALL:尺寸太小STYLE:款式问题UNWANTED:客户改变了主意WRONG_ITEM:收到了错误的商品
Example:NOT_AS_DESCRIBEDreturn_reason string商品退货原因。Example:Reasonstatus string退货单状态。OPEN:退货中CLOSED:退货完成且已退款完成
Example:OPENcreated_at string退货单创建时间。格式:ISO 8601。例子:2024-08-31T02:20:26+08:00Example:2021-08-31T02:20:26+08:00id string退货单的唯一标识符 ID。Example:2605860580357012238342order_id string订单的唯一标识符 ID。Example:21058605762597644309430942
API Explorer
调试台
示例代码
这篇文章对你有帮助吗?