售后API / 查询换货单

发布日期:2024-05-21
浏览次数:759
  

 

1.1 说明

 
路径 http://www.your_website_domain.com/FeiEditor/api_v1/shop/services-replacement
方法 POST
说明 根据条件查询换货单
 
 

1.2 参数

 
名称 必须 类型 描述
filter[] No array 过滤器。使用方法请点这里
filter[limit] No int 一次查询返回的单据数量,默认是10。有效范围是1到1000。
page No int 当前查询的页数,和filter[limit]配合使用。用来实现分页查询。
order_id
Noint相关订单id
 
 

1.3 返回结果

 
正确结果
返回格式:JSON
{
    "replacements": [
        {
            "ID": 104069,
            "code": "013",
            "request_type": "replacement",
            "order_id": "104068",
            "tracking_code": "",
            "tracking_provider": "",
            "return_tracking_code": "",
            "return_tracking_provider": "",
            "request_tracking_code": "",
            "price": "33.00",
            "creator": "1",
            "create_date": "2024-05-20 10:25:26",
            "create_date_gmt": "2024-05-20 02:25:26",
            "status": "replacement_new",  //状态: replacement_processing, replacement_reviewing, replacement_completed, replacement_rejected, replacement_new
            "modified": "2024-05-20 10:25:51",
            "modified_gmt": "2024-05-20 02:25:51",
            "replacement_reject": "3333333",
            "field_1790425781": "无理由换货",
            "products": [
                {
                    "id": "12",
                    "request_id": "104069",
                    "product_id": "96089",
                    "order_item_index": "929",
                    "quantity": "1",
                    "price": "33.00",
                    "product_name": "test-blue-5"
                }
            ]
        }
    ]
}

错误返回
{
    "errors":[{
        "code":"api_order_status_error",
        "message":"Order status is cancelled"
    }]
}

 

1.4 相关API

登录后即可发表评论,立即登录.

  API相关文档