A AjnaPay suporta recebimento em criptomoedas via gateway Transfi. Crie invoices crypto temporárias ou use wallets permanentes para receber pagamentos.
Antes de receber crypto, habilite as moedas desejadas na sua conta:
POST /api/v1/account/enable-currency
{
"currency": "USDTBSC"
}
Crie uma invoice temporária para receber um valor específico:
POST /api/v1/deposits
{
"type": "crypto",
"currency": "USDTBSC",
"amount": "100.00",
"description": "Pagamento em USDT",
"split": [
{
"account_id": "uuid-da-conta",
"percentage": 100
}
]
}
Para receber múltiplos pagamentos, use a wallet permanente da conta:
GET /api/v1/account/crypto-balances
{
"success": true,
"data": [
{
"currency": "USDTBSC",
"balance": "250.00",
"wallet_address": "0x1234...abcd",
"network": "BSC"
},
{
"currency": "BTC",
"balance": "0.005",
"wallet_address": "bc1q...xyz",
"network": "Bitcoin"
}
]
}
| Moeda | Rede | Precisão | Mínimo |
|---|---|---|---|
| USDTBSC | Binance Smart Chain | 6 casas | 1.00 USDT |
| USDTETH | Ethereum | 6 casas | 1.00 USDT |
| BTC | Bitcoin | 8 casas | 0.0001 BTC |
| ETH | Ethereum | 8 casas | 0.001 ETH |
Receba notificações sobre depósitos crypto:
| Evento | Descrição |
|---|---|
crypto.deposit.received |
Depósito crypto recebido |
crypto.deposit.confirmed |
Depósito confirmado na blockchain |
crypto.deposit.converted |
Crypto convertida para BRL |
# Habilitar USDT
curl -X POST "https://ajnapay.com.br/api/v1/account/enable-currency" \
-H "Authorization: Bearer SEU_TOKEN" \
-H "Content-Type: application/json" \
-d '{"currency": "USDTBSC"}'
# Criar invoice de 100 USDT
curl -X POST "https://ajnapay.com.br/api/v1/deposits" \
-H "Authorization: Bearer SEU_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "crypto",
"currency": "USDTBSC",
"amount": "100.00"
}'
# Consultar wallets
curl -X GET "https://ajnapay.com.br/api/v1/account/crypto-balances" \
-H "Authorization: Bearer SEU_TOKEN"