Refund a transaction
Refunds an identified transaction either in full or partially.
- application/json
Request Body
- amount float
Amount to be refunded. Eligible amount can't exceed the amount of the transaction and varies based on country and currency. If you do not specify a value, the system performs a full refund of the transaction.
Responses
- 204
- 404
- 409
No Content
- application/json
- No Body
{}
Not Found
- application/json
- Schema
- Example (from schema)
- Not_ Found
Schema
- message string
Short description of the error.
- error_code string
Platform code for the error.
{
"message": "string",
"error_code": "string"
}
{
"error_code": "NOT_FOUND",
"message": "Resource not found"
}
Conflict
- application/json
- Schema
- Example (from schema)
- Transaction_ Not_ Refundable
Schema
- message string
Short description of the error.
- error_code string
Platform code for the error.
{
"message": "string",
"error_code": "string"
}
{
"error_code": "CONFLICT",
"message": "The transaction is not refundable in its current state"
}