search_routing_code
Find routing codes in the PPF directory using SIRET, SIREN, or exact code to route invoices to the correct internal unit.
Instructions
Search routing codes registered in the PPF directory for a recipient.
Routing codes subdivide a SIRET receiving address to department or service level, allowing a company to route invoices to different internal units (e.g. purchasing, accounting).
BEHAVIOR:
Returns a paginated list of matching routing codes; empty list if none defined for the criteria.
At least one of siret, siren, or routing_code should be provided.
A SIRET may have zero or more routing codes; zero means invoices go to the SIRET-level address.
RESPONSE: each item includes instanceId, siret, siren, routingCode, label (optional), and timestamps. The instanceId is required to update or delete a routing code.
USAGE GUIDELINES:
Call before create_directory_line with a routing_code to confirm the code exists on the target SIRET.
Call to enumerate available routing codes when helping a sender choose the correct recipient address.
If no routing codes exist for a SIRET, the invoice must be addressed at SIRET level without a routing code.
Use create_routing_code to create a new code; use update_routing_code with instanceId to rename it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siret | No | Establishment SIRET (14 digits). Returns all routing codes associated with this establishment. Most common filter: use when building a directory line for a specific SIRET. | |
| siren | No | Company SIREN (9 digits). Returns routing codes for all establishments under this company. | |
| routing_code | No | Exact routing code value to look up (e.g. 'ACCOUNTS-DEPT', 'REGION-WEST'). Use to verify a routing code exists before referencing it in an invoice. | |
| limit | No | Maximum number of results per page (1-500, default 50). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||