Pix ProcessamentoPix Processamento Docs
API Endpoints

Account

The Account area exposes the holder (profile, permissions, limits, fee rules) and the balance. Use it to validate the token, check the balance before a withdrawal, and read operational limits.

When to use each one

QuestionEndpoint
Is the token valid?GET /user
What is the account's name, document, plan and limits?GET /user
Available balance right now?GET /user/balance
Do I have enough balance to make this withdrawal?GET /user/balance
How much is blocked in pending transactions?GET /user/balance

Examples

Best practices

  • Do not poll balance in a loop: the balance changes on callbacks. React to the webhook instead of hitting GET /user/balance repeatedly.
  • Short cache: for UI, caching the balance for 5 to 10 seconds is enough. Invalidate when receiving a callback of a completed or reversed transaction.
  • Available balance ≠ total balance: available is what you can move now; blocked is held in transactions in progress or MED disputes.
  • /user rarely changes: caching for 1 hour or more is reasonable. Invalidate when support changes limits.

Next steps

On this page