Pix deposits
There are two ways to receive BRL via Pix.
Charge with an amount
POST /v1/deposits creates a Pix charge with an amount, valid for 30 minutes.
curl -X POST https://api-sandbox.rivusfinance.com/v1/deposits \
-H "Authorization: Bearer $RIVUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ "amount_brl": 250, "description": "Order 4821" }'
The response includes pix_copia_e_cola (Pix copy-and-paste code) and qr_code_data_uri (PNG image as a data URI) to show the payer.
- When paid with the exact amount, the status becomes
pago, the balance is credited and thedeposit.paidwebhook is sent. expiradois computed on read: there is no expiration webhook. A charge may also end upcancelado.- Limits (minimum, maximum and validity) are in
GET /v1/deposits/config.
Permanent Pix
GET /v1/deposits/static-code returns a fixed Pix code for the account, with no amount. Every Pix received on it credits the balance and triggers the balance.credited webhook. Useful for frequent depositors, with no need to create a charge each time.