API Reference
Automatic Pix

Mock a scheduled charge

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

Schedules a charge of an AUTHORIZED recurrence. A charge due today or earlier settles right away; later ones settle on their date. Up to totalRecurrences charges (4520).

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
payerobjectrequired

Payer (4442 when incomplete).

Show child attributes
taxIdstringrequired

Payer CPF.

Example: "60418443734"
ispbstringrequired

Payer bank ISPB.

Example: "30980539"
accountNumberstringrequired

Payer account.

Example: "123456789"
namestring

Payer name.

Example: "Ana Ribeiro"
dueDatestring

Due date (yyyy-MM-dd). Default today.

Example: "2026-10-21"
amountinteger

Amount in cents. Default the recurrence amount.

Example: 2500
externalIdstring

Your identifier of the charge.

isRejectedboolean

The payer's bank rejects the charge (4454).

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"