Simulate a crypto deposit
curl --request POST \
--url https://merchant.bitliva.com/api/v1/sandbox/customers/{id}/deposits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>",
"amount": 123,
"network": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({currency: '<string>', amount: 123, network: '<string>'})
};
fetch('https://merchant.bitliva.com/api/v1/sandbox/customers/{id}/deposits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://merchant.bitliva.com/api/v1/sandbox/customers/{id}/deposits"
payload = {
"currency": "<string>",
"amount": 123,
"network": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://merchant.bitliva.com/api/v1/sandbox/customers/{id}/deposits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => '<string>',
'amount' => 123,
'network' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": "success",
"message": "Deposit simulated.",
"data": {
"deposit": {
"id": "5b8f0e2d-1c64-4a0f-8d77-3a9e2c1b6f40",
"customer_id": "2f6d1c0a-8a3e-4d59-b8a1-71e0c4d5f9a3",
"currency": "usdt",
"network": "trc20",
"amount": "25",
"address": "sandbox_usdt_9f2c1d...",
"txid": "4c1e9a07d3b25f8e61a0c9d7b4e2f3a58c1d6e0b9f7a4c2d3e5b8a1f0c6d9e72",
"explorer_url": "https://tronscan.org/#/transaction/4c1e9a07d3b25f8e61a0c9d7b4e2f3a58c1d6e0b9f7a4c2d3e5b8a1f0c6d9e72",
"created_at": "2026-10-18T10:20:00+01:00"
}
}
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}Sandbox helpers
Simulate a crypto deposit
Credits a customer’s test balance and fires crypto.deposit.received. The txid is random, so its explorer link will not resolve.
Sandbox only.
POST
/
sandbox
/
customers
/
{id}
/
deposits
Simulate a crypto deposit
curl --request POST \
--url https://merchant.bitliva.com/api/v1/sandbox/customers/{id}/deposits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>",
"amount": 123,
"network": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({currency: '<string>', amount: 123, network: '<string>'})
};
fetch('https://merchant.bitliva.com/api/v1/sandbox/customers/{id}/deposits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://merchant.bitliva.com/api/v1/sandbox/customers/{id}/deposits"
payload = {
"currency": "<string>",
"amount": 123,
"network": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://merchant.bitliva.com/api/v1/sandbox/customers/{id}/deposits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => '<string>',
'amount' => 123,
'network' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": "success",
"message": "Deposit simulated.",
"data": {
"deposit": {
"id": "5b8f0e2d-1c64-4a0f-8d77-3a9e2c1b6f40",
"customer_id": "2f6d1c0a-8a3e-4d59-b8a1-71e0c4d5f9a3",
"currency": "usdt",
"network": "trc20",
"amount": "25",
"address": "sandbox_usdt_9f2c1d...",
"txid": "4c1e9a07d3b25f8e61a0c9d7b4e2f3a58c1d6e0b9f7a4c2d3e5b8a1f0c6d9e72",
"explorer_url": "https://tronscan.org/#/transaction/4c1e9a07d3b25f8e61a0c9d7b4e2f3a58c1d6e0b9f7a4c2d3e5b8a1f0c6d9e72",
"created_at": "2026-10-18T10:20:00+01:00"
}
}
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}{
"status": "error",
"message": "Invalid or missing API key.",
"code": "invalid_api_key"
}Authorizations
Your API key.
Path Parameters
Body
application/json

