API Reference
Mock pay and authorize
/automatic/recurrences/{id}/mock-pay-and-authorizehttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euThe payer pays the QR Code of the immediate payment and authorizes the recurrence: it becomes AUTHORIZED (VALIDATION_SUCCEEDED). pixChargeTextContent must be the recurrence brcode (4446). Test CPFs of the KYC table make it fail.
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/jsonThe brcode of the recurrence.
Payer CPF.
"60418443734"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"