Our API Docs just got a new look!

OneShot

Deposit with OneShot redirect

1

Create a deposit request

You will need to create a deposit request to our OneShot API, taking into care the following considerations:

curl -L \
  --request POST \
  --url 'https://api-stg.directa24.com/v3/deposits' \
  --header 'Content-Type: application/json' \
  --header 'X-Date: 2025-07-17T13:13:15.442Z' \
  --header 'X-Login: text' \
  --header 'Authorization: text' \
  --data '{
    "invoice_id" : "1000000001",
    "amount": "1000",
    "country": "MX",
    "currency": "MXN",
    "payer": {
        "id": "11",
        "document": "CURP4321TEST",
        "first_name": "Ricardo",
        "last_name": "Carlos",
        "email": "[email protected]"
    },
    "payment_method": "CC",
    "client_ip": "123.123.123.123",
    "back_url": "https://www.mercahnt.com/deposit_cancelled",
    "success_url": "https://www.merchant.com/deposit_completed",
    "error_url": "https://www.merchant.com/deposit_error",
    "notification_url": "https://www.d24.com/d24/notify"
    "logo": "https://www.merchant.com/merchant-logo.png",
}'
2

Open the redirect_url in a new tab

In the response you will receive the redirect_url where the user should be sent in order to visualize the credit card checkout hosted on our systems.

Note that you can include your brand logo in our checkout!

3

Retrieve the Deposit final status

Everytime that the deposit changes it's status, you will receive a webhook notification with the deposit_id for you to retrieve the status.

{
  "deposit_id": 301623200
}

For more information on this point visit Notifications.

Last updated

Was this helpful?