Guides
Account and management

Balance, statement and invoices

Read the balance and statement of the transactional and owner accounts, reconcile by endToEnd and check the fee invoices.

The merchant has two accounts with identical contracts:

AccountPurpose
transactionalWhere transaction money comes in and goes out: deposits received, payments sent and refunds
ownerOwner (billing) account: fees and settlements with Pay4Fun

For day-to-day reconciliation you almost always want transactional. There is no route to transfer between the accounts.

Balance

bash
curl --url https://pay4fun.mimicr.dev/account/api/v1/transactional/balance \
  --header 'Authorization: Bearer <token>'
json
{
  "accountId": "404dc4c2-806e-4f61-ba02-0000000b",
  "balance": 9734.88,
  "availableBalance": 9484.88,
  "blockedBalance": 250,
  "currency": "BRL"
}
FieldMeaning
balanceTotal balance
availableBalanceWhat you can move now; check this before paying
blockedBalanceHeld by transactions in flight. In Mimicr: payments not yet settled and requested refunds

In Mimicr, transactional starts with R$ 10,000.00 and owner with R$ 500.00. Get the account returns the registration data (holder, branch, account and addresses).

Statement

startDate and endDate are required and the interval can't exceed 30 days. For longer periods, call in windows.

bash
curl --url 'https://pay4fun.mimicr.dev/account/api/v1/transactional/statement?startDate=2026-10-01T00:00:00Z&endDate=2026-10-30T23:59:59Z&pageSize=5' \
  --header 'Authorization: Bearer <token>'
json
{
  "items": [
    {
      "id": 20,
      "date": "2026-10-23T01:17:37Z",
      "branch": "1",
      "account": "404428",
      "accountId": "404dc4c2-806e-4f61-ba02-0000000b",
      "operationType": "DEBIT",
      "historyCategory": "Pix",
      "historyCode": 201,
      "amount": 150,
      "counterpartTaxId": "35795854875",
      "counterpartName": "Recebedor de Teste",
      "endToEnd": "E29079725202610230117Dur2utScejU",
      "movementReference": "2fedb148-78d7-4101-b752-10db9d677a56",
      "legacyTransactionId": 20,
      "legacyMerchantInvoiceId": "pedido-123"
    }
  ],
  "totalCount": 9,
  "page": 1,
  "pageSize": 5,
  "totalPages": 2,
  "hasPreviousPage": false,
  "hasNextPage": true
}

amount is always positive; the direction comes from operationType. Filters: operationType, counterpartTaxId, endToEnd, historyCategory, historyCode and sortOrder (asc or desc, default desc in Mimicr). More than 30 days answers 400 with {"success": false, "code": 1001, ...}.

The entries Mimicr generates:

historyCodehistoryCategoryAccountSource
101Pixtransactional, creditPaid deposit
102Devolução Pixtransactional, debitCompleted refund
201Pixtransactional, debitSettled payment
301Tarifaowner, debitDeposit fee: 0.99%, R$ 0.10 minimum
302Tarifaowner, debitPayment fee: R$ 0.50

Reconciliation

endToEnd is the bridge between the statement and your transactions: it matches payment.endToEndId in Pay Out and deposits[].providerEndToEnd in Pay In. legacyMerchantInvoiceId carries your externalId.

For the receipt of an entry, use its legacyTransactionId:

bash
curl --url https://pay4fun.mimicr.dev/account/api/v1/transactional/statement/receipt/20 \
  --header 'Authorization: Bearer <token>'

The response is JSON (not PDF), with holder, counterparty, amount and EndToEndId. PDF receipts live on the intents: payment and deposit.

Invoices

bash
curl --url https://pay4fun.mimicr.dev/billings/api/v1 \
  --header 'Authorization: Bearer <token>'
json
[
  {
    "id": "404dc4c2-806e-4f61-ba02-ccfd2610",
    "merchantName": "Sua Org LTDA",
    "billingTemplateName": "Monthly",
    "status": "OPEN",
    "totalAmount": 4.98,
    "currency": "BRL",
    "periodStart": "2026-10-01T00:00:00Z",
    "periodEnd": "2026-10-31T23:59:59Z",
    "createdAt": "2026-10-01T00:00:00Z"
  }
]

With no invoices, the body is []. In Mimicr, each month with fees produces a Monthly invoice: OPEN for the current month, CLOSED before. Invoice transactions lists the fees that make it up, with each payment's or deposit's externalId, operation (PAYMENT or DEPOSIT) and a search filter.