API Reference
Gaming operator

Get balance

GET/operator/balance
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Balance of the operator wallet in cents. newBalance is the current balance (paid deposits minus successful withdrawals) and previousBalance the balance at the start of the day (Brasília time).

Authorization

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

Responses

200Balance.
lastUpdatedstring<date-time>

Last movement.

Example: "2026-10-21T19:09:06.127Z"
newBalanceinteger

Current balance in cents.

Example: 204000
previousBalanceinteger

Balance at the start of the day in cents.

Example: 200000
400Validation or business error. Okto also answers "not found" errors with 400 and an error list.
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"
401Invalid access token (code 2000).
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"
403Missing Authorization header (code 2000, "Full authentication is required to access this resource").
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"