API Reference
Gaming operatorGETGet operatorPUTUpdate notification URLsDELRemove notification URLsGETGet balanceGETGet balance (v2)
Deposits (classic Pix)POSTCreate a depositGETGet the QR CodePUTRefund a depositPUTAccept a deposit (closed loop)PUTReject a deposit (closed loop)
Automatic PixPOSTCreate a recurrenceGETGet a recurrenceGETGet recurrence statusGETList recurrence transactionsPUTCancel a recurrenceGETGet transaction statusPUTCancel a scheduled transactionPOSTMock pay and authorizePOSTMock QR paymentPOSTMock a scheduled chargePOSTMock scheduling cancellationPOSTMock cancellation by the payer
Biometric PixGETList participantsPOSTCreate an enrollmentGETGet an enrollmentPOSTCreate the enrollment challengePOSTValidate the enrollment challengePUTRevoke an enrollmentGETList enrollments of a CPFPOSTCreate a paymentPOSTValidate the payment challengeGETGet payment statusGETList paymentsPOSTCreate a whitelabel journeyGETGet journey statusGETGet journey payment statusGETList journey payments
Pix by KeyGETGet the wallet keyPOSTRegister a payer bank accountGETList payer bank accountsPUTUpdate a payer bank accountDELDelete payer bank accountsGETList depositsPUTAccept a deposit under reviewPUTReject a deposit under reviewPOSTMock a received PixPOSTMock a received Pix (v2)
Smart PIXPOSTCreate a journeyGETGet journey statusGETList bank enrollmentsPOSTCreate a paymentGETGet payment status
Mock scheduling cancellation
POST
Base URL: /automatic/recurrences/{id}/mock-cancel-schedulinghttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euThe payer cancels the next scheduled charge, which fails with 4501. Without a pending charge, 4140.
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.
"e7c925a5-c9a7-4144-b84f-a3d99cc13d97"Body
application/jsoncancellationReasonstring
Reason code (default 3).
"3"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).
2001messagestringrequired
Fixed message of the code.
"The tax id is invalid."detailedMessagestringrequired
What exactly went wrong.
"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).
2001messagestringrequired
Fixed message of the code.
"The tax id is invalid."detailedMessagestringrequired
What exactly went wrong.
"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).
2001messagestringrequired
Fixed message of the code.
"The tax id is invalid."detailedMessagestringrequired
What exactly went wrong.
"taxId must be a valid CPF"