售后API / 查詢換貨單
售后API / 查詢換貨單
發布日期:2025-05-21
瀏覽次數:36
1.1 說明
路徑 | //www.your_website_domain.com/FeiE🍌ditor/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 | No | int | 相關訂單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": "2025-05-20 10:25:26", "create_date_gmt": "2025-05-20 02:25:26", "status": "replacement_new", //狀態: replacement_processing, replacement_reviewing, replacement_completed, replacement_rejected, replacement_new "modified": "2025-05-20 10:25:51", "modified_gmt": "2025-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" }] } |