- 新平台
该接口用于获取一笔支付对应的全生命周期业务,按照时间倒叙进行展示:
https://api-reference.checkout.com/#operation/getPaymentActions
HTTP调用方式为Get
沙箱环境地址:https://api.sandbox.checkout.com/payments/{id}/actions
生产环境地址:https://api.checkout.com/payments/{id}/actions
通过URL中添加Path参数来发起调用
Path 参数名 | 是否必填 | 说明 |
---|---|---|
id | - [x] |
| 正则表达式:^(pay|sid)_(\w{26})$
该id为调用Create HPP或者Payment完成支付后返回。
具体见后文如何获取pay | sid i |
成功返回报文示例:
[
{
"id": "act_fd3h6evhpn3uxdoqbuu3lqnqbm",
"type": "Refund",
"processed_on": "2018-01-20T10:30:48Z",
"amount": 1000,
"approved": true,
"response_code": "10000",
"response_summary": "Approved"
},
{
"id": "act_gefycn3jcvuupboxfmqrhk2aym",
"type": "Capture",
"processed_on": "2018-01-17T10:30:48Z",
"amount": 6540,
"approved": true,
"response_code": "10000",
"response_summary": "Approved",
"processing": {
"acquirer_reference_number": "24021219099007452440793",
"acquirer_transaction_id": "00745244079"
},
"metadata": {
"shipping_ref": "MQIBN2"
}
},
{
"id": "act_y3oqhf46pyzuxjbcn2giaqnb44",
"type": "Authorization",
"processed_on": "2018-01-17T09:30:48Z",
"amount": 6540,
"approved": true,
"auth_code": "643381",
"response_code": "10000",
"response_summary": "Approved",
"reference": "ORD-5023-4E89",
"processing": {
"retrieval_reference_number": "909913440644",
"acquirer_transaction_id": "440644309099499894406"
}
}
]
对于一笔卡支付来说,可能产生的业务类型有:
Authorization,授权记录
Capture,请款记录
Refund,退款记录
Card Verificatin,卡验证记录
Void,撤销记录