Get a deposit
curl --request GET \
--url https://api.yara.cash/v1/deposits/{id} \
--header 'X-Yara-API-Key: <api-key>'import requests
url = "https://api.yara.cash/v1/deposits/{id}"
headers = {"X-Yara-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Yara-API-Key': '<api-key>'}};
fetch('https://api.yara.cash/v1/deposits/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.yara.cash/v1/deposits/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Yara-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.yara.cash/v1/deposits/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Yara-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.yara.cash/v1/deposits/{id}")
.header("X-Yara-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.yara.cash/v1/deposits/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Yara-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"amount": "100.000000",
"amount_raw": "100000000",
"amount_usd": "100.000000",
"asset": "USDC",
"chain": "BASE",
"confirmations": 12,
"contract_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"created_at": "2026-06-16T03:00:00Z",
"deposit_address_id": "7f7c6713-3fdc-43fb-a9e7-d3c364e7c763",
"fee_usd": "0.000000",
"from_address": "0x9a5f8dcb7b0d3f2eb59f20e30aa7d0b93af8abcd",
"id": "741eec3c-5596-45b6-a88d-3627a236192f",
"merchant_id": "8fca3c8d-5d48-4f4d-a286-2ef6d1cd2f01",
"net_amount_usd": "100.000000",
"status": "CONFIRMED",
"to_address": "0x24c3538f4d5302ac58a4c05e7496f4ca4bb551d4",
"tx_hash": "0x4f5d2d7a2c8a95c3"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}Deposits
Get a deposit
Returns a single deposit owned by the authenticated merchant.
GET
/
v1
/
deposits
/
{id}
Get a deposit
curl --request GET \
--url https://api.yara.cash/v1/deposits/{id} \
--header 'X-Yara-API-Key: <api-key>'import requests
url = "https://api.yara.cash/v1/deposits/{id}"
headers = {"X-Yara-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Yara-API-Key': '<api-key>'}};
fetch('https://api.yara.cash/v1/deposits/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.yara.cash/v1/deposits/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Yara-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.yara.cash/v1/deposits/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Yara-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.yara.cash/v1/deposits/{id}")
.header("X-Yara-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.yara.cash/v1/deposits/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Yara-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"amount": "100.000000",
"amount_raw": "100000000",
"amount_usd": "100.000000",
"asset": "USDC",
"chain": "BASE",
"confirmations": 12,
"contract_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"created_at": "2026-06-16T03:00:00Z",
"deposit_address_id": "7f7c6713-3fdc-43fb-a9e7-d3c364e7c763",
"fee_usd": "0.000000",
"from_address": "0x9a5f8dcb7b0d3f2eb59f20e30aa7d0b93af8abcd",
"id": "741eec3c-5596-45b6-a88d-3627a236192f",
"merchant_id": "8fca3c8d-5d48-4f4d-a286-2ef6d1cd2f01",
"net_amount_usd": "100.000000",
"status": "CONFIRMED",
"to_address": "0x24c3538f4d5302ac58a4c05e7496f4ca4bb551d4",
"tx_hash": "0x4f5d2d7a2c8a95c3"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}⌘I