API Reference
Automatic Pix

Mock QR payment

POST/automatic/recurrences/{id}/mock-pay
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

The payer pays the immediate QR Code without authorizing the recurrence (FIRST_PAYMENT_SUCCESS).

Test endpoint of Okto's demo environment: it plays the payer side and does not exist in production. Mimicr's controlled chaos never affects mock routes.

Authorization

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

Path parameters

idstringrequired

Recurrence id.

Example: "e7c925a5-c9a7-4144-b84f-a3d99cc13d97"

Body

application/json
payerNamestringrequired

Payer name.

Example: "Ana Ribeiro"
payerTaxIdstringrequired

Payer CPF.

Example: "604.184.437-34"
payerTypestringrequired

Payer type.

Example: "CPF"
payerPspstringrequired

Payer bank ISPB.

Example: "30980539"
payerAccountstringrequired

Payer account.

Example: "123456789"
payerAgencystring

Payer branch.

Example: "0001"

Responses

200Done (empty body).
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"