API Reference
Pix by Key

Register a payer bank account

POST/by-key/payer-bank-accounts
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Registers an account the player may pay from (up to 3 per CPF). A Pix from an account that is not registered for the payer CPF (including a CPF with no accounts) waits for review (reviewing).

Authorization

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

Body

application/json
taxIdstringrequired

Payer CPF.

Example: "604.184.437-34"
bankCodestringrequired

ISPB of the bank.

Example: "18236120"
branchCodestring

Branch.

Example: "1"
accountTypestring

Account type.

checkingsalarysavingspayment
Example: "checking"
accountNumberstringrequired

Account number.

Example: "12345678"

Responses

201Account registered.
idstring

Account id.

taxIdstring

Payer CPF.

bankCodestring

ISPB.

branchCodestring | null

Branch.

accountTypestring | null

Account type.

accountNumberstring

Account number.

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"