Refund payment by Id

Refunds all or part of the amount of a payment. This operation can only be carried out in businesses that collect in a Khipu account and before the corresponding funds are delivered.

SecurityApi-Key
Request
path Parameters
id
required
string <= 255 characters

Payment identifier

Request Body schema: application/json
amount
number <double>

The amount to be returned. Without thousands separator and using '.' as a decimal separator. Up to 4 decimal places, depending on currency. If it is omitted, the refund will be made for the total payment amount.

Example: 1000
Responses
200

Successful operation.

Response Schema: application/json
message
required
string

Message to be displayed to the user.

Example: "Message."
400

Bad request

401

Unauthorized - Invalid or missing credentials

403

Forbidden

404

Not found - Resource not available

500

Internal server error

post/v3/payments/{id}/refunds
Request samples
application/json
{ }
Response samples
application/json
{
  • "message": "Message."
}