RASPAY

Balance and statement

Check the balance and every transaction.

Balance

FieldMeaning
availableAvailable for payouts. Can become negative after a refund.
heldHeld: 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.

typeTransaction
charge_paidPix received.
charge_feeCharge fee.
charge_refundPix refund.
charge_dispute_holdPix in MED: amount moved to held.
charge_dispute_releaseMED closed without a return: amount back to available.
payout_holdAmount moved to the hold of a payout.
payout_settlePayout completed, hold cleared.
payout_releasePayout not completed, hold returned.
payout_returnedPaid 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"