> For the complete documentation index, see [llms.txt](https://docs.smartfastpay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartfastpay.com/thesmartway/api-requests/document-type.md).

# Document Types

***

### <mark style="color:green;">GET</mark> /documents-type

{% hint style="info" %}
**Request**
{% endhint %}

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

{% hint style="info" %}
**Parameters details**
{% endhint %}

<table><thead><tr><th width="138.33333333333331">Parameter</th><th width="197" align="center">Type</th><th width="103">Required</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:red;"><code>country</code></mark></td><td align="center"><mark style="color:red;"><code>string (3)</code></mark><br><mark style="color:red;"><code>min: 3 | max: 3</code></mark></td><td><strong>yes</strong></td><td>This parameter is required. Please, choose a country.<br><br><strong>Eg.: BRA, COL, ECU ...</strong></td></tr></tbody></table>

{% hint style="info" %}
**Response**
{% endhint %}

```bash
{
    "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
        }
    ]
}
```

{% hint style="info" %}
**Response details**
{% endhint %}

<table><thead><tr><th width="189">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:red;"><code>abbreviation</code></mark></td><td>Acronym for document type abbreviation</td></tr><tr><td><mark style="color:red;"><code>name</code></mark></td><td>Document type name</td></tr><tr><td><mark style="color:red;"><code>country</code></mark></td><td>Country</td></tr><tr><td><mark style="color:red;"><code>regex_validation</code></mark></td><td>Regex validation (if there is)</td></tr></tbody></table>
