Payments Refunds
Create Refund for a Payment
Changed onThis endpoint allows you to create a refund for a payment. The refund amount plus its fees must be covered by the available balance of your collection account: otherwise the request is refused with a 409 refund_exceeds_available_balance, whose message states the maximum refundable amount.
post/payments-refund/{id}/refund
Request
- The document declares no server URL.
- Authnone declared. Required headers: ApiKey, MerchantId, Environment
Path parameters
idstring required
Headers
ApiKeystring required
Your api key. To create a key, please get into our dashboard. If you don't have access to it, please reach the Support team.
MerchantIdstring required
Your merchant ID. This information is available in our dashboard. If you don't have access to it, please reach the Support team.
Environment'live' | 'sandbox' required
Allow you to choose between the sandbox mode to perform some tests or the live mode for real world transactions.
Request body
Example request
{
"amount": 100,
"reasonCode": "customer_request",
"reasonDetails": "Customer requested a refund"
}Response
Example response
{
"id": 2
}Changes
- info
endpoint added
- info