Create refund
Allows for the creation of a full or partial refund for a previously completed deposit.
For credit card deposits, the refund is processed to the same card, requiring only deposit identification.
For other payment methods, beneficiary bank account details are necessary.
Multiple partial refunds can be issued for a single deposit, provided the total refunded amount does not exceed the original deposit amount.
Media type of the body sent to the API.
application/json
ISO8601 Datetime with Timezone (e.g., 2023-05-27T10:00:00Z).
Merchant X-Login API Key.
Authorization control hash, calculated as explained in the Directa24 documentation.
Unique idempotency key to prevent duplicate processing of the same request.
Directa24 deposit_id
. It is obtained when creating the deposit. Must be a valid deposit_id
of a completed deposit.
300533646
The invoice_id
you sent while creating the deposit or the merchant_invoice_id
auto-generated by Directa24. Must be a valid invoice_id
of a completed deposit.
newIUnit45328731
Amount to refund. Positive, up to 2 decimal places. Must be equal to or smaller than the deposit amount. If not sent, a full refund is assumed.
100
Optional comments about the refund.
Test refund over v3
Valid HTTPS URL (URI) used to send asynchronous notifications about the refund's status changes.
https://webhook.site/url
Refund request accepted and processing initiated, or completed synchronously (for some credit card refunds). The response structure might be more detailed for synchronously processed credit card refunds.
Error in the request, such as invalid amount or missing bank account information.
Unauthorized access. Indicates an issue with authentication credentials (X-Login, X-Date, Authorization).
Resource not found, typically meaning the specified deposit_id or invoice_id does not correspond to an existing deposit.
POST /v3/refunds HTTP/1.1
Host: api-stg.directa24.com
Content-Type: application/json
X-Date: 2025-08-29T14:56:57.962Z
X-Login: text
Authorization: text
Accept: */*
Content-Length: 280
{
"deposit_id": 300533646,
"invoice_id": "newIUnit45328731",
"amount": 100,
"bank_account": {
"beneficiary": "Carlos Ramirez",
"bank_code": "1",
"branch": "9283",
"account_number": "18293435",
"account_type": "SAVING"
},
"comments": "Test refund over v3",
"notification_url": "https://webhook.site/url"
}
{
"refund_id": "168284"
}
Last updated
Was this helpful?