API Reference
Mock a scheduled charge
/automatic/recurrences/{id}/mock-schedulinghttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euSchedules 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
Recurrence id.
"e7c925a5-c9a7-4144-b84f-a3d99cc13d97"Body
application/jsonPayer (4442 when incomplete).
Show child attributes
Payer CPF.
"60418443734"Payer bank ISPB.
"30980539"Payer account.
"123456789"Payer name.
"Ana Ribeiro"Due date (yyyy-MM-dd). Default today.
"2026-10-21"Amount in cents. Default the recurrence amount.
2500Your identifier of the charge.
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.
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"401Invalid access token (code 2000).
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"403Missing Authorization header (code 2000, "Full authentication is required to access this resource").
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"