API Reference
Mock QR payment
/automatic/recurrences/{id}/mock-payhttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euThe 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
Recurrence id.
"e7c925a5-c9a7-4144-b84f-a3d99cc13d97"Body
application/jsonPayer name.
"Ana Ribeiro"Payer CPF.
"604.184.437-34"Payer type.
"CPF"Payer bank ISPB.
"30980539"Payer account.
"123456789"Payer branch.
"0001"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"