1.1 Refund
Request URL
{domain}/open-api/payment/refund
Request Method
Parameter Name | Required | Type | Description |
Content-Type | Y | string | application/json |
Request Body Param
Parameter Name | Required | Type | Description |
appId | Y | string | Application Id |
param | Y | string | param |
sign | Y | string | signature |
param
Parameter Name | Required | Type | Length | Example | Description |
mchRefundOrderId | Y | string | 1-32 | 1677495496979 | Merchant refund order id (unique for customer) format: letter + num, 1-32 characters: CCP20220428011068111 |
originalTransactionId | Y | string | 1-32 | CCP20220428011068111 | Original transaction id |
refundAmount | Y | Long | - | - | Refund amount (Unit is in cents) |
refundReason | N | string | 1-200 | - | Refund reason |
refundCallbackUrl | Y | string | 1-256 | - | Refund callback URL |
timestamp | Y | long | - | 1677495496979 | timestamp |
Request Example
Request Body
How to construct request body
Response Param
Parameter Name | Type | Description |
code | integer | response code |
message | string | response message |
data | Object | data |
data
Parameter Name | Type | Description |
mchRefundOrderId | string | Merchant refund order id (unique for customer) |
refundTransactionId | string | Platform refund transaction id |
refundCreateTime | string | Refund create time |
refundAmount | Long | Refund amount (Unit is in cents) |
refundStatus | string | Refund status |
Response Example
Code Collection
Failed Response Example