Deposit Status Endpoint
Retrieve the status of a previously created deposit
get
https://api-stg.directa24.com
/v3/deposits/{deposit_id}
Deposit Status

Request

You can trigger the check of the status of a deposit at any moment you consider pertinent. However, every time a deposit changes its status, we will send you a notification containing the ID of the deposit so that you can check its status back to retrieve the new deposit's status.

Example request

In the status endpoint, all the request have to be sent as GET, containing the usual headers.
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.
cURL
JAVA
C#
PHP
1
curl --location --request GET 'https://api-stg.directa24.com/v3/deposits/300004285' \
2
--header 'X-Login: xxxxxxx' \
3
--header 'X-Date: 2020-06-24T17:13:21Z' \
4
--header 'Authorization: D24 e339247fb57b10c053159cf87d3a88415f9be567beb46a93f6839d9fc45d2c8a' \
5
--data-raw ''
6
7
Copied!
1
import java.io.*;
2
import okhttp3.*;
3
4
public class main {
5
public static void main(String []args) throws IOException{
6
OkHttpClient client = new OkHttpClient().newBuilder()
7
.build();
8
Request request = new Request.Builder()
9
.url("https://api-stg.directa24.com/v3/deposits/300004285")
10
.method("GET", null)
11
.addHeader("X-Login", "xxxxxxx")
12
.addHeader("X-Date", "2020-06-24T17:13:21Z")
13
.addHeader("Authorization", "D24 e339247fb57b10c053159cf87d3a88415f9be567beb46a93f6839d9fc45d2c8a")
14
.build();
15
Response response = client.newCall(request).execute();
16
System.out.println(response.body().string());
17
}
18
}
19
20
Copied!
1
using System;
2
using RestSharp;
3
4
namespace HelloWorldApplication {
5
class HelloWorld {
6
static void Main(string[] args) {
7
var client = new RestClient("https://api-stg.directa24.com/v3/deposits/300004285");
8
client.Timeout = -1;
9
var request = new RestRequest(Method.GET);
10
request.AddHeader("X-Login", "xxxxxxx");
11
request.AddHeader("X-Date", "2020-06-24T17:13:21Z");
12
request.AddHeader("Authorization", "D24 e339247fb57b10c053159cf87d3a88415f9be567beb46a93f6839d9fc45d2c8a");
13
request.AddParameter("application/json", "", ParameterType.RequestBody);
14
IRestResponse response = client.Execute(request);
15
Console.WriteLine(response.Content);
16
}
17
}
18
}
19
20
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => "https://api-stg.directa24.com/v3/deposits/300004285",
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => "",
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => "GET",
14
CURLOPT_HTTPHEADER => array(
15
"X-Login: xxxxxxxx",
16
"X-Date: 2020-06-24T17:13:21Z",
17
"Authorization: D24 e339247fb57b10c053159cf87d3a88415f9be567beb46a93f6839d9fc45d2c8a"
18
),
19
));
20
21
$response = curl_exec($curl);
22
23
curl_close($curl);
24
echo $response;
25
26
Copied!

Example response

COMPLETED
PENDING
CREATED
1
{
2
"user_id": "11",
3
"deposit_id": 300004285,
4
"invoice_id": "989409592",
5
"country": "BR",
6
"currency": "BRL",
7
"local_amount": 53162.00,
8
"usd_amount": 1000.00,
9
"bonus_amount": 100.00,
10
"bonus_relative": "false",
11
"payment_method": "VI",
12
"payment_type": "CREDIT_CARD",
13
"status": "COMPLETED",
14
"payer": {
15
"document": "17532655253",
16
"document_type": "CPF",
17
"email": "[email protected]",
18
"first_name": "John",
19
"last_name": "Smith",
20
"address": {
21
"city": "Sao Paulo",
22
"state": "SP",
23
"street": "John Street 2453",
24
"zip_code": "938475-234"
25
}
26
},
27
"fee_amount": 2.50,
28
"fee_currency": "USD",
29
"card_detail": {
30
"card_holder": "John Smith",
31
"brand": "Visa",
32
"masked_card": "1234 56** **** 6789",
33
"expiration": "2023-12",
34
"card_type": "DEBIT",
35
"transaction_result": "Transaction Approved"
36
}
37
}
38
Copied!
1
{
2
"user_id": "11",
3
"deposit_id": 300004284,
4
"invoice_id": "1000000001",
5
"currency": "BRL",
6
"amount": 1000.00,
7
"bonus_amount": 1.50,
8
"payment_method": "VI",
9
"payment_type": "CREDIT_CARD",
10
"status": "PENDING",
11
"fee_amount": 2.50,
12
"fee_currency": "USD",
13
}
Copied!
1
{
2
"user_id": "11",
3
"deposit_id": 300004284,
4
"invoice_id": "1000000001",
5
"currency": "BRL",
6
"amount": 1000.00,
7
"bonus_amount": 1.50,
8
"status": "CREATED"
9
}
Copied!

Response fields

Field name
Format
Description
user_id
String
ID generated for the user on Directa24 end
deposit_id
Number
ID of the deposit on Directa24 end
invoice_id
String
ID of the deposit on the merchant end
country
String
currency
String
local_amount
Number
Amount in local currency
usd_amount
Number
Amount in USD
bonus_amount
Number
The amount specified as bonus in the request
bonus_relative
Boolean
Specifies if the bonus_amount is absolute or relative. It will be shown only if the bonus_amount is not null
payment_method
String
Payment method code specified on the deposit request or selected by the user on our checkout. It will be shown only if the user has selected a payment method
payment_type
String
Type of the payment method. It will be shown only if the user has selected a payment method
status
String
payer[]
Object
Object containing information about the payer. Only the values you've sent or we've collected will be shown.
payer.document
String
Payer's document of identity
payer.document_type
String
Payer's type of their document of identity
payer.email
String
Payer's email
payer.first_name
String
Payer's first name
payer.last_name
String
Payer's last name
payer.address[]
Object
Object containing the address details about the payer. Only the values you've sent or we've collected will be shown.
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 to avoid any issues.
If you are not sending all the payer details in the deposit request, make sure you store the details we collect and share with this endpoint so that in future attempts you can re-use them instead of having the payers to fill in the same details every time they deposit.

Status Flow

Click here to see each Deposit Status meaning.

Hosted Checkout Status Flow

Hosted Checkout Status Flow Diagram

OneShot Checkout Status Flow

OneShot Status Flow Diagram
  1. 1.
    The DECLINED status is not a status by itself. It means the transaction couldn't be created because of an error with the data, the customer or the merchant configuration. No transaction will change its status from DECLINED.
  2. 2.
    COMPLETED and CANCELLED* are final status.
  3. 3.
    *There are cases in which the users pays after the deposit expired, or paid an incorrect amount and the deposit gets expired. When that happens manual intervention is required to approve the deposit hence a deposit could change its status from EXPIRED or CANCELLED to COMPLETED.
  4. 4.
    EARLY RELEASED will only be used if you specified it in the deposit request.
  5. 5.
    FOR REVIEW is a transient status we use to specify that the deposit is under revision.
  6. 6.
    If the user doesn't pays, the transaction will be marked as EXPIRED. After 7 days it will change to CANCELLED.

Status codes

Check all the possible status in the following page: