API Reference
KYC

Look up a ZIP code

GET/kyc/zip-codes/{zipCode}
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Address of a ZIP code (8 digits). In Mimicr every valid ZIP code returns the same sample address.

Authorization

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

Path parameters

zipCodestringrequired

ZIP code, 8 digits.

Example: "01414001"

Responses

200Address.
zipCodestring

ZIP code.

Example: "01414-001"
streetstring

Street.

neighborhoodstring

Neighborhood.

citystring

City.

cityCodestring

IBGE city code.

statestring

State.

ufstring

State abbreviation.

Example: "SP"
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"