API Reference
Deposits (classic Pix)

Get the QR Code

GET/transactions/qrcode/{depositId}
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Returns the QR Code of a deposit: the copia e cola text (format=payload), a PNG image (format=png) or the PNG in base64 (default).

Authorization

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

Path parameters

depositIdstringrequired

Deposit id.

Example: "1268321722477579"

Query parameters

formatstring

Output format.

base64pngpayload
sizeinteger

Scale of the image modules (1–250, default 8).

Responses

200QR Code as text (payload, base64) or image/png.
string

Copia e cola or base64 PNG.

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"