Initiate a refund request
POST/refund/createRefundOrder
The merchant creates a refund order, which needs to be approved on the management platform. After the transaction is successful, the system will send a refund result notification to the callback address provided by the merchant.
Request
- application/json
Body
Refund request form
Refund amount
Note: Actual amount, must be a positive number, can be a decimal. If not passed, the full amount received for the order will be refunded
Note: The merchant needs to confirm the amount again before approving on the management platform, and can make modifications
Refund callback address
Must be a publicly accessible HTTPS protocol address, otherwise the callback notification cannot be received
Payment order number
Merchant order number
Refund address
Note: The user's receiving address, must be a valid wallet address, if not passed, it will be refunded to the payment address of this order
Responses
- 200
- 201
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
Status code
Status message on success or error message on failure
Detailed description when error
data
object
required
Refund order ID
{
"code": 0,
"msg": "string",
"description": "string",
"data": {
"refundId": 0
}
}
{
"code": 200,
"msg": "success",
"data": {
"refundId": 33
}
}
Created
Unauthorized
Forbidden
Not Found