代收查询
请求地址
| method | url |
|---|---|
| POST | /api/pay/payment/query/v1 |
头部信息(header)
| header参数 | 入参参数描述 |
|---|---|
| timestamp | 请求时间戳 |
| nonce | 随机值 |
| country | CL |
| app_code | app编号 |
请求参数
| 字段 | 类型 | 必需 | 长度 | 描述 |
|---|---|---|---|---|
| merchantOrderNo | String | yes | 32 | 商户订单号 |
| sign | String | yes | 签名 |
{ "merchantOrderNo": "OrderNoExample", "sign": "YOUR_SIGN"}返回参数
| 参数 | 类型 | 必需 | 长度 | 描述 |
|---|---|---|---|---|
| merchantOrderNo | String | yes | 32 | 商户订单号 |
| tradeNo | String | yes | 平台订单号 | |
| paymentType | Int | yes | 1 | 代收方式 |
| transactionAmount | String | yes | 订单交易金额 | |
| amount | String | yes | 收款金额 | |
| status | Int | yes | 2-成功 3-失败 | |
| statementList | Object | no | 代收流水信息 | |
| — paymentSingleOrderNo | String | yes | 单次支付流水号 | |
| — paymentStatementAmount | String | yes | 单次代收金额 | |
| — paymentStatementStatus | Int | yes | 单次代收交易状态: 2-代收成功 | |
| — paymentStatementStatusName | String | yes | 交易状态名称 | |
| — message | String | no | 交易信息 |
{ "code": 200, "data": { "merchantOrderNo": "OrderNoExample", "amount": "10000.00", "transactionAmount": "10000.00", "tradeNo": "TS2501010001CO0000000000000000", "paymentType": 601, "status": 2, "statementList": [ { "paymentSingleOrderNo": "TSOPaymentOrderNoExample", "paymentStatementAmount": "10000.00", "paymentStatementStatus": 2, "paymentStatementStatusName": "代收成功", "message": null } ], }, "msg": "success", "traceId": "0801113131dd4951a36d19022a31b303.94.17423567008990449"}错误码
| 异常码 | 异常信息 | 处理方案 |
|---|---|---|
| 412 | Please try again later | 请稍后重试 |
| 414 | * | 更改对应参数 |
| 416 | Application not found | app_code异常,请更改 |
| 434 | Merchant order not exist | 请检查提交的订单号 |
| 500 | Business Error | 请联系我们 |
{ "code": 416, "data": null, "msg": "Application not found", "traceId": "0801113131dd4951a36d19022a31b303.94.17423567008990449"}