1. Deposit
Odetam API
  • API Response Codes and Messages
  • Credit Card Info & Test Cards
  • Deposit
    • Bank List
      GET
    • Create Deposit (Bank Transfer)
      POST
    • Create Deposit (Credit Card)
      POST
    • Check Deposit Status
      GET
    • Create Deposit (Crypto)
      POST
  • Withdraw
    • Create Withdraw (Bank Transfer)
      POST
    • Check Withdrawal Status
      GET
    • Create Withdraw (Crypto)
      POST
  • Callback
    • Callback Request
      POST
  1. Deposit

Create Deposit (Crypto)

POST
/api/v2/deposit
Opens a crypto deposit. No coin is chosen yet, so the response carries a redirect_url to the Odetam hosted crypto page. Send the customer there: they pick a coin and network and are shown a one-time deposit address with the exact amount to send and a countdown.
payment_method must be crypto. payment_type is still required by validation but is always normalised to redirect for this rail, so any allowed value may be sent.
The deposit settles asynchronously: it stays pending until the transfer is confirmed on-chain, and the final result arrives at your callback_url. Do not treat the 200 here as a paid deposit.

Request

Header Params

Body Params application/json

Examples

Responses

🟢200
application/json
Bodyapplication/json

🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/v2/deposit' \
--header 'x-api-key: {{api_key}}' \
--header 'x-secret-key: {{secret_key}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "transaction_id": "DEP_{{$randomInt}}",
    "first_name": "John",
    "last_name": "Doe",
    "username": "johndoe",
    "email": "john.doe@example.com",
    "phone": "+905551234567",
    "amount": 1000.0,
    "currency": "TRY",
    "payment_method": "crypto",
    "payment_type": "redirect",
    "callback_url": "https://www.site.com/callback/odetam",
    "success_url": "https://www.site.com/success",
    "failure_url": "https://www.site.com/failure/",
    "extra_fields": {
        "order_id": "12345"
    }
}'
Response Response Example
200 - Success
{
    "success": true,
    "message": null,
    "data": {
        "transaction_id": "DEP_264",
        "hashed_transaction_id": "533f0795-e822-4a67-ab10-f8d9c00ba9b2",
        "status": "pending",
        "redirect_url": "https://pay.odetam.com/crypto/533f0795-e822-4a67-ab10-f8d9c00ba9b2",
        "amount": 1000,
        "currency": "TRY"
    },
    "code": 200
}
Modified at 2026-10-03 10:00:55
Previous
Check Deposit Status
Next
Create Withdraw (Bank Transfer)
Built with