# 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. Endpoint: POST /v3/payments/{id}/refunds Version: v3.0 Security: Api-Key ## Path parameters: - `id` (string, required) Payment identifier ## Request fields (application/json): - `amount` (number) 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 ## Response 200 fields (application/json): - `message` (string, required) Message to be displayed to the user. Example: "Message."