Endpoints
Learn how to automatize your reconciliation tasks by integrating the endpoints of our Reconciliation API
Login Endpoint
Example: Merchants API Authentication request body
Example: Merchants API Authentication response success
Example: Merchants API Authentication response failure
Staging POST
https://merchants-api-stg.directa24.com/v1/auth/login
Production POST
https://merchants-api.directa24.com/v1/auth/login
Once your account is ready to use the Merchants API, the first step will be authenticating yourself. This has to be done through a POST request to the login endpoint mentioned above specifying the accessKey (email) and the secretKey (password) in JSON format.
Please see the examples.
Make sure you add in the header of the request the following value: Content-Type: application/json
BEARER_TOKEN cookie
Once successfully authenticated, along with the response there will come a field in the header called Set-Cookie. This field will contain a cookie called BEARER_TOKEN that has to be sent back to the server in all the following requests to stay logged in.
Example of a cookie in the header with the BEARER_TOKEN value:
cookie: BEARER_TOKEN=U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk
See this page to learn more about cookies.
Transactions Endpoints
Described below the endpoints for each kind of transactions.
All the requests sent have to have the BEARER_TOKEN obtained from the Login Endpoint in the Authentication's header field of the requests like follows:
Authorization: Bearer U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk
Or as a cookie:
cookie: BEARER_TOKEN=U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk
There are certain parameter you can send in the GET request. These parameters are pairs of names and their corresponding values, so-called name-value pairs. These are added to the URL with a โ?โ sign. The name and value are always separated using an โ=โ sign. Multiple parameters can be used. Here, the various parameters are separated using an โ&โ sign.
The syntax is as follows (examples):
Staging https://merchants-api-stg.directa24.com/v1/cashouts?page=0&from=1577836800&to=1580515200
Production https://merchants-api.directa24.com/v1/cashouts?page=0&from=1577836800&to=1580515200
The from and to values are in unixTimeStamp format and the maximum difference between them is up to 60 days. The from value canยดt be bigger than the to one.
A basic response has the following format:
{ "data": [], "page": 0, "rows": 0, "maxRows": 50 }
The data field, is an array that will contain multiple JSON objects, one for each transaction. Each with its own details.
The responses from these endpoints will containt up to 50 records per page. In case there are 50 records, you will have to request for the next page using the page parameter in the GET request. Always start with page=0.
The rows field, indicates how many transactions the request returned.
The maxRows field shows the maximum transactions a request can have. In case the field rows is equal to maxRows, you should do another request specifying the page plus one. Repeat this until the rows value is lesser than the maxRows one.
Deposits Endpoint
Example: Merchants API Deposits Endpoint output
Staging GET
https://merchants-api-stg.directa24.com/v1/deposits
Production GET
https://merchants-api.directa24.com/v1/deposits
This endpoint allows you to retrieve the details of all your Deposits in a given time.
Deposits Endpoint Parameters
Parameter | Mandatory | Format | Default | Description |
from | Integer | null | Transaction creation date interval in UnixTimeStamp format. | |
to | Integer | null | Transaction creation date interval in UnixTimeStamp format - max difference with "from" value 60 days. | |
page | Integer | 0 | The page number. Each page contains as many transactions as indicated in the maxRows value. | |
country | String (max length: 2) | all | Countryยดs code. Click here to see the list of countries. | |
paymentMethod | String (max length: 2) | all | Payment Method code. See Payment Methods for its codes. | |
status | String | all | Transactionยดs status. Values:
| |
clientDocument | String | all | The customerยดs document. |
Cashouts Endpoint
Example: Merchants API Cashouts Endpoint output
Staging GET
https://merchants-api-stg.directa24.com/v1/cashouts
Production GET
https://merchants-api.directa24.com/v1/cashouts
This endpoint allows you to retrieve the details of all your Cashouts in a given time.
Cashouts Endpoint Parameters
Parameter | Mandatory | Format | Default | Description |
from | Integer | null | Transaction creation date interval in UnixTimeStamp format. | |
to | Integer | null | Transaction creation date interval in UnixTimeStamp format - max difference with "from" value 60 days. | |
page | Integer | 0 | The page number. Each page contains as many transactions as indicated in the maxRows value. | |
country | String (max length: 2) | all | Countryยดs code. Click here to see the list of countries. | |
status | String | all | Transactionยดs status. Values:
| |
clientDocument | String | all | The customerยดs document. |
Credit and Debit Notes Endpoint
Example: Merchants API Credit and Debit Notes Endpoint output
Staging GET
https://merchants-api-stg.directa24.com/v1/notes
Production GET
https://merchants-api.directa24.com/v1/notes
This endpoint allows you to retrieve the details of all your Credit and Debit Notes in a given time.
Credit and Debit Notes Endpoint Parameters
Parameter | Mandatory | Format | Default | Description |
from | Integer | null | Transaction creation date interval in UnixTimeStamp format. | |
to | Integer | null | Transaction creation date interval in UnixTimeStamp format - max difference with "from" value 60 days. | |
page | Integer | 0 | The page number. Each page contains as many transactions as indicated in the maxRows value. | |
type | String | all | Cred/deb note types:
|
Refunds Endpoint
Staging GET
https://merchants-api-stg.directa24.com/v1/refund
Production GET
https://merchants-api.directa24.com/v1/refund
This endpoint allows you to retrieve the details of all your Refunds in a given time.
Refunds Endpoint Parameters
Parameter | Mandatory | Format | Default | Description |
from | Integer | null | Transaction creation date interval in UnixTimeStamp format. | |
to | Integer | null | Transaction creation date interval in UnixTimeStamp format - max difference with "from" value 60 days. | |
page | Integer | 0 | The page number. Each page contains as many transactions as indicated in the maxRows value. | |
country | String (max length: 2) | all | Countryยดs code. Click here to see the list of countries. | |
paymentMethod | String (max length: 2) | all | Payment Method code. See Payment Methods for its codes. | |
status | String | all | Transactionยดs status. Values:
|
Chargebacks Endpoint
Staging GET
https://merchants-api-stg.directa24.com/v1/chargeback
Production GET
https://merchants-api.directa24.com/v1/chargeback
This endpoint allows you to retrieve the details of all your Chargebacks in a given time.
Chargebacks Endpoint Parameters
Parameter | Mandatory | Format | Default | Description |
from | Integer | null | Transaction creation date interval in UnixTimeStamp format. | |
to | Integer | null | Transaction creation date interval in UnixTimeStamp format - max difference with "from" value 60 days. | |
page | Integer | 0 | The page number. Each page contains as many transactions as indicated in the maxRows value. | |
country | String (max length: 2) | all | Countryยดs code. Click here to see the list of countries. | |
status | String | all | Transactionยดs status. Values:
|
Settlements Endpoint
Example: Merchants API Settlements Endpoint output
Staging GET
https://merchants-api-stg.directa24.com/v1/settlements
Production GET
https://merchants-api.directa24.com/v1/settlements
This endpoint allows you to retrieve the details of all your Settlements in a given time.
Settlements Endpoint Parameters
Parameter | Mandatory | Format | Default | Description |
from | Integer | null | Transaction creation date interval in UnixTimeStamp format. | |
to | Integer | null | Transaction creation date interval in UnixTimeStamp format - max difference with "from" value 60 days. | |
page | Integer | 0 | The page number. Each page contains as many transactions as indicated in the maxRows value. | |
status | String | all | Transactionยดs status. Values:
|
Balance Report Endpoint
Example: Merchants API Balance Report Endpoint output
Staging GET
https://merchants-api-stg.directa24.com/v1/balance/report
Production GET
https://merchants-api.directa24.com/v1/balance/report
This endpoint allows you to retrieve the details of your daily Balance Report in a given time.
Balance Report Endpoint Parameters
Parameter | Mandatory | Format | Default | Description |
from | Integer | null | Transaction creation date interval in UnixTimeStamp format. | |
to | Integer | null | Transaction creation date interval in UnixTimeStamp format - max difference with "from" value 60 days. | |
page | Integer | 0 | The page number. Each page contains as many transactions as indicated in the maxRows value. |
Total Available Balance Endpoint
Staging GET
https://merchants-api-stg.directa24.com/v1/balance
Production GET
https://merchants-api.directa24.com/v1/balance
This endpoint allows you to retrieve the details of your Total Available Balance.
Logout Endpoint
Staging DELETE
https://merchants-api-stg.directa24.com/v1/auth/session/destroy
Production DELETE
https://merchants-api.directa24.com/v1/auth/session/destroy
The token expires after 15 minutes of its last usage. In case of wanting to terminate the session earlier, you will have to use the above mentioned endpoint with the DELETE method.
This will take the BEARER_TOKEN in the header of the request and invalidate it for future usages.
Once the token was deleted, you will need to authenticate again before sending a new request.
Last updated