API Reference
Account

Get the balance

GET/account/api/v1/{conta}/balance
Base URL: https://pay4fun.mimicr.dev · provider: https://go.dev.pay4fun.com

Total, available and blocked balance of the account. In Mimicr, the transactional account starts with R$ 10,000.00 and owner with R$ 500.00; deposits, payments, refunds and fees move the balances.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

contastringrequired

Which account to read: transactional (where deposits come in and payments go out) or owner (the owner/billing account, for fees and settlements with Pay4Fun). The contracts are identical.

transactionalowner

Responses

200Balance.
accountIdstring

Account id.

balancenumber

Total account balance.

Example: 15230.45
availableBalancenumber

What you can move now. Check this, not balance, before a batch of payments.

Example: 14980.45
blockedBalancenumber

Amounts held by transactions in flight (in Mimicr, payments in progress and requested refunds).

Example: 250
currencystring

Currency.

Example: "BRL"
401Missing, expired or invalid token. Empty body.
404Account not found.
successbooleanrequired

Always false on errors.

Example: false
codeintegerrequired

5001 resource not found, 2001 unprocessable input, 1001 validation error (in Mimicr), 4009 key already registered (in Mimicr).

Example: 5001
messagestringrequired

Error message.

Example: "Deposit intent not found."