Deposit Asset
Create a deposit for DEPIX, LBTC, or Lightning.
POST /api/deposit/asset
Create a deposit that converts BRL to the specified crypto asset and sends it to the provided address.
Request
{
"value": 5000,
"address": "lnbc500u1pj...",
"asset": "LIGHTNING"
}Parameters
| Field | Type | Required | Description |
|---|---|---|---|
value | integer | Yes | Amount in BRL cents. Must be a positive integer. |
address | string | Yes | Destination address. Liquid address for DEPIX/LBTC, Lightning invoice or LNURL email for LIGHTNING. |
asset | string | Yes | Asset type: DEPIX, LBTC, or LIGHTNING. |
Address Formats
For LIGHTNING assets, the address can be:
- A Lightning invoice starting with
lnbc,lntb, orlnbcrt - An LNURL email in the format
user@domain.com
Response
{
"success": true,
"qrCode": "lnbc500u1pj...",
"fee": 100,
"fxRateAtTx": 408000.50,
"walletCharge": "charge_abc123"
}Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the deposit was created. |
qrCode | string | null | QR code for the deposit. |
fee | number | Fee charged for the deposit. |
fxRateAtTx | number | BTC/BRL exchange rate at the time of transaction. |
walletCharge | string | null | Wallet charge identifier. |
Errors
{
"success": false,
"error": "Validation failed",
"details": [
{ "field": "value", "message": "Expected number, received string" }
]
}