Lingxing
切换旧版

查询退款量(旧)

POST/erp/sc/routing/finance/Refund/profitMonthRefund

支持查询ASIN或父ASIN的退款量和退款量数据,对应系统【统计】>【利润统计(旧版)】退款数据

注意:旧版-利润统计已经下线,新版-利润统计的增量数据不会在此接口返回

接口信息

API Path请求协议请求方式令牌桶容量
/erp/sc/routing/finance/Refund/profitMonthRefundHTTPSPOST1

请求参数

asin_typestring必填
1 asin
2 父asin
offsetinteger必填
分页偏移量
lengthinteger必填
分页条数,上限200
start_datestring必填
起始日期
end_datestring必填
结束日期
sidinteger必填
店铺id ,对应查询亚马逊店铺列表接口对应字段【sid】
sort_fieldstring
排序字段:asin
sort_typestring
desc 倒序
asc 顺序

请求示例

{
    "offset": 0,
    "length": 200,
    "start_date": "2020-01-01",
    "end_date": "2024-08-05",
    "asin_type": "1",
    "sid": 109,
    "sort_field": "asin",
    "sort_type": "desc"
}

返回结果

Json Object

codeinteger必填
状态码,0 成功
示例 0
messagestring必填
消息提示
示例 success
error_detailsarray<any>必填
错误信息
request_idstring必填
请求链路id
示例 8D680B8B-3C6F-3E16-F055-73DC70EAD977
response_timestring必填
响应时间
示例 2020-05-18 11:23:47
dataobject必填
隐藏子属性
totalinteger必填
总数
示例 2
listarray<object>必填
明细
隐藏子属性
asin_typeinteger必填
1:asin
2:父asin
示例 1
asinstring必填
asin
示例 XXXX1
parent_asinstring
父asin
asin_type=2的时候会返回
refund_numstring必填
退款量
示例 27
refund_ratestring必填
退款率
示例 2.05%

返回成功示例

{
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "689584F6-8D7F-19F7-B11A-2AC55FA36B81",
    "response_time": "2021-05-10 21:07:17",
    "data": {
        "total": 2,
        "list": [
            {
                "asin_type": 1,
                "asin": "XXXX1",
                "refund_num": "27",
                "refund_rate": "2.05%"
            },
            {
                "asin_type": 1,
                "asin": "XXXX2",
                "refund_num": "0",
                "refund_rate": "0.00%"
            }
        ]
    }
}


// asin_type = 2
{
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "E8BA08C6-EFE7-EE31-8870-7FDFC1EF6C89",
    "response_time": "2021-05-10 21:07:17",
    "data": {
        "total": 2,
        "list": [
            {
                "asin_type": 2,
                "asin": "AAAAA1;AAAAA2;AAAAA3",
                "parent_asin": "AAAAA",
                "refund_num": "34",
                "refund_rate": "1.77%"
            },
            {
                "asin_type": 2,
                "asin": "AAAAA1;AAAAA2;AAAAA4",
                "parent_asin": "AAAAA",
                "refund_num": "27",
                "refund_rate": "2.05%"
            }
        ]
    }
}