Refund Status Endpoint
Retrieve the status of a previously created refund
Refund Status
GET
https://api-stg.directa24.com/v3/refunds/{refund_id}
This endpoint allows you to retrieve the status of a refund request.
Path Parameters
Name | Type | Description |
---|---|---|
refund_id* | Integer | Directa24 refund_id. It is obtained when creating the refund |
Query Parameters
Name | Type | Description |
---|---|---|
voucher | Boolean |
|
Headers
Name | Type | Description |
---|---|---|
X-Date* | String | ISO8601 Datetime with Timezone: |
X-Login* | String | Merchant X-Login API Key |
Authorization* | String | Authentication signature hash |
Description
You can trigger the check of the status of a refund at any moment you consider pertinent. However, every time a refund changes its status, we will send you a notification containing the ID of the refund so that you can check its status back to retrieve the new refund's status.
Refunds Status Request
In order to check the status of the refunds, you need to:
Send the request with GET method.
Use the headers described here.
Specify a valid
refund_id
in the URL of the request as PATH PARAMETERS.Send the Authorization header, as explained here.
Regarding the Authorization value, since the body of the requests will be empty, you should use an empty ("") string or nothing as the jsonPayload
field.
Example response
Response fields
Field name | Format | Description |
| Integer | ID of the deposit refunded |
| String | Merchant invoice id of the deposit refunded |
| Enum | |
| Number | Amount of the refund |
| String | Proof of refund in base64 coding for generation of |
In order to make the experience more personalized, we may add more fields to this response's object in the future. Please develop your integration to be able to ignore new fields considering that it will continue working fine no matter if we add new fields.
Proof of refund
In order to generate an invoice as proof of refund, you need to:
Send the request with GET method.
Use the headers described here.
Specify a valid
refund_id
in the URL of the request as PATH PARAMETERS.Send the query parameter
voucher
astrue.
Send the Authorization header, as explained here.
Requesting a Refund and including the field voucher
as a query parameter with value true
will generate a voucher in base64, this voucher will need to be decoded to create the .pdf
Status Flow
Click here to see each Refund Status meaning.
Refund Status Flow
DECLINED is not a status by itself. It means the refund failed to be created.
As soon as the refund request is created, its status will be PENDING.
In case we need more information to complete the request or any of the details were incorrect, we will change the status to INCORRECT_DETAILS and you will need to provide the correct details. Once the details have been provided, its status will be PENDING again.
The status CANCELLED means the refund was manually cancelled by you. Only refunds in PENDING or INCORRECT_DETAILS can be cancelled. Final status.
If everything is fine we will send the refund for processing and the status will be marked as DELIVERED. It can't be cancelled at this point.
As soon as the processor/bank confirms the refund, it will be marked as COMPLETED or REJECTED (by the bank).
There are some corner cases in which the receiver's bank tell us that the refund was completed but days after it gets rejected. In those cases the status changes from COMPLETED to REJECTED.
Status codes
Check all the possible status in the following page:
API CodesLast updated