# Code Postal

## En entrée ?

Un code postal 5 caractères dont je recherche les informations détaillées. Défini comme ci-dessous&#x20;

// TODO

## En sortie ?

Ce que je peux récupérer à partir d'un Code postal.&#x20;

| Nom du champ | Description | Type |
| ------------ | ----------- | ---- |
|              |             |      |

## Intégration ?&#x20;

### API

Swagger: <https://tables-correspondances.apprentissage.beta.gouv.fr/api/v1/docs/#/Outils/post_code_postal>

## Récupérer les informations liées à un code postal&#x20;

<mark style="color:green;">`POST`</mark> `https://tables-correspondances.apprentissage.beta.gouv.fr/api/v1/code-postal`

Cette api vous permet de récupérer les informations relatives à un code postal.\
Si **malencontreusement** vous appelez cette adresse avec un code commune Insee, l'api corrigera l'information&#x20;

#### Request Body

| Name       | Type   | Description |
| ---------- | ------ | ----------- |
| codePostal | string |             |

{% tabs %}
{% tab title="200 CODE POSTAL successfully retrieved." %}

```javascript
```

{% endtab %}
{% endtabs %}

#### Exemple:

<https://tables-correspondances.apprentissage.beta.gouv.fr/api/v1/docs/#/Outils/post_code_postal>

![](https://1191786081-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6ZLIoTJurOYqstj6y_%2F-MZx5p2KSXHD5U3XfCIm%2F-MZx6USAadtBPNu3o43i%2Fimage.png?alt=media\&token=43391867-441e-4c6c-8b5c-e418640e576b)

### SDK

```javascript
// TODO
```

## Annexes
