获取token

请求地址
https://cashier.camelfin.com/api/oauth2/token
HTTP请求header参数
参数名 必须 说明 示例
Accept 请求参数提交类型 application/json
Client-Id 商户号 50517365
Secret 商户密钥 WWdxJxwpwelij098723klhj089KSLi
返回值
  • API请求失败
{"status":"02","error_code":"E0002"}
  • API请求成功,返回data为查询结果
{
    "status": "01",
    "data": {
        "expires_in": 28800,
        "token_type": "Bearer",
        "access_token": "6817F5DEB3B0FB690FD8C0289F811F97"
    }
}

拒付查询API

请求地址
https://cashier.camelfin.com/api/payments/chargeback/v1
HTTP请求header参数
参数名 是否必须 说明 示例
Content-Type 指定参数类型 application/json
Authorization auth请求得到的token类型和值 Bearer 5448780132C1E8DEA0F45E00DAB5866B
version API版本 目前版本是v1,传v1即可
请求参数
参数名 是否必须 长度 说明 示例
merchant_id 2-50 商户号 200000000167187
begin_date 8 起时间 20160211
end_date 8 止时间 20170211
invoice_id 50 商户平台唯一订单号 15018336544883089
hash 200 签名,同签名算法 898A2FD7

请求示例

{
  "merchant_id":"200000000167187",
  "begin_date":"20170211",
  "end_date":"",
  "invoice_id":"",
  "hash":"6960A6A48343898A2FD7A6B931D6899CBC4B3B4A100D68B91B895EDBFB9859CC"
}
返回值
  • API请求失败
{"status":"02","error_code":"E0002"}
  • API请求成功,返回data为查询结果
{
    "status": "01",
    "data": {
        "chargeback_list": [
            {
                "chargeback_id": "20170818165455_179820",
                "trans_amount": "20.0",
                "chargeback_amount": "20.0",
                "cb_reason_type": "1",
                "cb_request_time": "2017-08-18 16:54:55",
                "cb_complete_time": "",
                "record_no": null,
                "currency": "USD",
                "status": "00",
                "merchant_id": "200000000167187",
                "invoice_id": "15018336544883089",
                "ref_no": "20170804160210_179576"
            }
        ],
        "status": "01",
        "failure_reason": null
    }
}
返回参数说明
参数 长度 示例 说明
chargeback_id 50 20170818165455_179820 拒付ID
trans_amount 20,2 101.02 交易金额
chargeback_amount 20,2 101.02 拒付金额
cb_reason_type 10 1 拒付原因
currency 3 USD 币种
status 2 00 拒付状态; 00 处理中 01 胜诉 02 败诉
invoice_id 30 MaTest346 商户平台交易流水号
failure_reason 10 M0023 失败原因错误码;成功时为空
ref_no 50 20180102151521_051768 DHPAY交易参考号
merchant_id 500 200000000167187 商户号
cb_request_time 30 2017-08-18 16:54:55 拒付发起日期
cb_complete_time 30 2017-08-18 16:54:55 拒付完成日期
record_no 50 ALLLWWER9230420 档案号/arn

拒付原因

代码 定义
1 货物损坏/名不符实
2 收不到服务/货物
3 退款未处理
4 重复扣帐
5 未授权交易

API通信错误码

E0001=resource is not exsits
E0002=token is not exsits
E0003=module not exists or disabled
E0004=api not exists or disabled
E0005=module not exists or disabled
E0006=api not exists or disabled
E0007=IP black list
E0008=unknown error
E0009=DomainName black list
E0010=not found Client-Id, token may be out of date
E0011=Account black list
E0012=not found Api-Id, resource not found
E0013=do not have this Api-Authority
E0014=Accept is empty
E0015=Client-Id is empty
E0016=Secret-Id is empty
E0017=Client-Id or Secret is not correct
E0018=Route failure, Please contact Cashier
E0404=404
E0405=405
E0505=505

results matching ""

    No results matching ""