create_routing_code
Creates a routing code for an establishment. Initiates a two-step process: first call generates a confirmation token, second call confirms the creation.
Instructions
Create a routing code (POST /code-routage).
HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siret | Yes | Establishment SIRET (14 digits) this routing code belongs to. | |
| confirmation_token | No | Confirmation token from a previous call. Omit on the first call. | |
| etat_administratif | No | 'A' (active) or 'F' (closed). | A |
| identifiant_routage | Yes | Routing-code identifier to create (max 100 chars, pattern [-_/@a-zA-Z0-9]). | |
| libelle_code_routage | Yes | Human-readable label for the routing code. | |
| nature_etablissement | Yes | Whether the establishment is private or public. | |
| type_identifiant_routage | Yes | 4-digit type code for the routing-code identifier (typeIdentifiantRoutage). | |
| gestion_engagement_juridique | No | Whether a legal-commitment number (engagement juridique) is mandatory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||