Loading...
Withdrawals let you move stablecoins out of Celar to your registered external wallet.
Before creating a withdrawal you must:
curl --request POST \
--url https://api.sandbox.celar.io/api/v1/payments/withdraw \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <<your_api_key>>' \
--header 'Idempotency-Key: <<random_uuid>>' \
--data '{
"celar_walletId": "<<celar_walletId>>",
"token": "USDC",
"amount": 1
}'{
"message": "Withdraw successful! 1 USDC sent to your registered wallet address",
"tx_hash": "0xdd10beed45843aae085199d0a8e25d3fccee685574b8b069429398e666b84aae",
"status": "withdrawal_sent"
}| Status | Meaning | Webhook |
|---|---|---|
pending | Withdrawal request created | — |
withdrawal_sent | Funds successfully sent | Yes |
failed | Withdrawal could not be completed | Yes |
Once a withdrawal reaches withdrawal_sent, the stablecoins are available in your registered external wallet. You can view the transaction on-chain using the tx_hash.