Available currencies
Returns the currency IDs that this merchant can use to create an invoice now. Every result has an active currency, network, and wallet with no operational fence.
This is a point-in-time result. Currency and network state is checked again during invoice creation, so a later 409 remains possible.
Server-to-server
Backend integration examples
Choose your backend language. Every example reads secret credentials only from environment variables.
API key stays server-side
Node.js 18+ · native fetch
const response = await fetch("https://api.dinakel.com/api/gateway/v1/currencies", {
method: "GET"
headers: {
Authorization: `Bearer ${process.env.DINAKEL_API_KEY}`,
Accept: "application/json"
}
});
const result = await response.json();
if (!response.ok) throw new Error(result.message || "Dinakel request failed");
console.log(result);DINAKEL_API_KEYMerchant secret API key; keep it on the server only
Request
GET https://api.dinakel.com/api/gateway/v1/currencies
Headers:
Authorization: Bearer <your_api_key>
Successful response
{
"status": true,
"statusCode": 200,
"data": {
"currencies": [
{
"currency_id": "<uuid>",
"name": "Tether",
"symbol": "USDT",
"protocol": "TRC20",
"network_name": "Tron",
"network_type": "mainnet",
"decimals": 6,
"is_native": false,
"icon": "https://..."
}
]
}
}
An empty array is valid and means no currency is currently available. Send the selected currency_id unchanged when creating the invoice.
Limits and errors
- 30 requests per minute per API key
- 401 for an invalid, revoked, or expired key
- 403 when the merchant is inactive
- 429 after the limit; honor Retry-After