API Reference
Automatic Pix

Get a recurrence

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

Details of a recurrence. Unknown ids answer 4502.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

idstringrequired

Recurrence id.

Example: "e7c925a5-c9a7-4144-b84f-a3d99cc13d97"

Responses

200Recurrence.
idstring

Recurrence id.

externalIdstring

Your identifier.

bankingIdstring

Central Bank id.

statusstring

Status.

Example: "AUTHORIZED"
subStatusstring

Detailed status.

Example: "VALIDATION_SUCCEEDED"
amountinteger

Amount in cents.

Example: 2500
frequencystring

Frequency.

totalRecurrencesinteger

Number of charges.

contractobject

Contract the recurrence pays.

Show child attributes
idstring

Contract id, up to 35 alphanumeric chars. Generated when omitted.

Example: "assinatura0001"
descriptionstring

Contract description. Defaults to descriptionToPayer.

Example: "Assinatura do clube"
canBePaidAfterRecurrencyDateboolean

Whether a charge can be paid after its date.

Example: false
dateFirstRecurrencestring

First charge.

dateLastRecurrencestring

Last charge.

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"