Document Types

An API to help you get information about the types of documents allowed for the country you want to work.


GET /documents-type

circle-info

Request

curl -v --location --request GET 'https://sandbox.smartfastpay.com/documents-type?country=BRA' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <Access-Token>' \'

circle-info

Parameters details

Parameter
Type
Required
Description

country

string (3) min: 3 | max: 3

yes

This parameter is required. Please, choose a country. Eg.: BRA, COL, ECU ...

circle-info

Response

{
    "requestId": "167ffff1-b58b-4d1b-909e-ff714c594967",
    "data": [
        {
            "id": 1,
            "abbreviation": "CPF",
            "name": "Cadastro de Pessoa Física",
            "country": "BRA",
            "regex_validation": null
        },
        {
            "id": 2,
            "abbreviation": "CNPJ",
            "name": "Cadastro Nacional de Pessoa Jurídica",
            "country": "BRA",
            "regex_validation": null
        }
    ]
}
circle-info

Response details

Parameter
Description

abbreviation

Acronym for document type abbreviation

name

Document type name

country

Country

regex_validation

Regex validation (if there is)

Last updated