Solicita saque em USDT (rede BEP20). O saldo é debitado em BRL e convertido.
/api/crypto/withdraw
| Parâmetro | Tipo | Descrição |
|---|---|---|
| amount * | number | Valor em BRL para saque. |
| wallet * | string | Wallet BEP20 (formato 0x...). |
| projectWebhook | string | Webhook opcional de retorno. |
| gateway | string | Gateway crypto opcional. |
curl -X POST 'https://api.vexuspay.com/api/crypto/withdraw' \
--header 'Authorization: Bearer SEU_JWT' \
--header 'Content-Type: application/json' \
--data '{
"amount": 100,
"wallet": "0x1234567890123456789012345678901234567890",
"projectWebhook": "https://seusistema.com/webhooks/crypto"
}'
{
"message": "Crypto withdrawal processed successfully.",
"withdrawal": {
"transaction_id": "crypto-abc123",
"status": "PROCESSING",
"amount": 100,
"fee": 3,
"total": 103,
"usdt_amount": 19.047619,
"wallet": "0x1234567890123456789012345678901234567890"
}
}