Balance and statement
Check the balance and every transaction.
Balance
| Field | Meaning |
|---|---|
available | Available for payouts. Can become negative after a refund. |
held | Held: what is reserved for payouts not yet completed (amount and fee) plus what is blocked by MED. |
curl "https://api.raspay.io/v1/balance" \
-H "Authorization: Bearer $GATEWAY_API_KEY"Response
{
"object": "balance",
"livemode": false,
"currency": "BRL",
"available": 125000,
"held": 15150
}Statement
Each balance change creates a line in GET /v1/balance/transactions. amount is the change in available, held is the change in the held amount, balanceAfter is the available balance and heldAfter the held amount after the transaction. source points to the originating charge or payout.
| type | Transaction |
|---|---|
charge_paid | Pix received. |
charge_fee | Charge fee. |
charge_refund | Pix refund. |
charge_dispute_hold | Pix in MED: amount moved to held. |
charge_dispute_release | MED closed without a return: amount back to available. |
payout_hold | Amount moved to the hold of a payout. |
payout_settle | Payout completed, hold cleared. |
payout_release | Payout not completed, hold returned. |
payout_returned | Paid payout sent back by the receiving bank, fully or in part: returned amount back to available, without the fee. The first return has source.type payout; later returns of the same payout have payout_reversal (use payout.returned to link them to the payout). |
curl "https://api.raspay.io/v1/balance/transactions" \
-H "Authorization: Bearer $GATEWAY_API_KEY"