基本信息 | |
---|---|
HTTP URL | 正式环境: https://developer.toutiao.com/api/apps/ecpay/v1/query_refund沙盒环境: https://open-sandbox.douyin.com/api/apps/ecpay/v1/query_refund |
HTTP Method | POST |
接口频次 | 30QPS(小程序app_id维度) |
错误码err_no | 描述err_tips | 排查建议 |
---|---|---|
0 | 成功 | |
1000 | 内部异常 | 系统异常,请稍后重试 |
1001 | 业务繁忙,请稍后重试 | 请降低频率后重试 |
2008 | 签名校验异常,请使用正确的签名 | 请检查签名参数,详见签名DEMO |
2010 | 参数错误 | 请检查参数后重试 |
2042 | 小程序appid无效,请检查app_id字段 | 检查app_id字段信息是否有误 |
2047 | 服务商id无效,请检查thirdparty_id字段 | 检查thirdparty_id字段信息是否有误 |
2048 | 未查询到服务商与小程序的授权关系 | 检查服务商与小程序的授权关系 |
3101 | 退款记录不存在 | 检查请求中的退款单号正确,确认后重新发起 |
curl --location --request POST 'https://developer.toutiao.com/api/apps/ecpay/v1/query_refund' \
--header 'Content-Type: application/json' \
--data-raw '{
"out_refund_no": "out_refund_0",
"app_id": "tt07e3715e98c9aac0",
"sign": "74ee89952aed606de6f2a08d0bc54c0b"
}'
{
"err_no": 0,
"err_tips": "string",
"refundInfo": {
"refund_no": "string",
"refund_amount": 0,
"refund_status": "string",
"refunded_at": 0,
"is_all_settled": true,
"cp_extra": "string",
"msg": "string"
}
}