---
title: "🇫🇷 Norme · Search for a routing code"
method: POST
path: "/directory-service/v1/routing-code/search"
tags: ["AFNOR XP Z12-013/DirectoryService"]
---

# 🇫🇷 Norme · Search for a routing code

`POST /directory-service/v1/routing-code/search`

Search for routing codes that meet all the criteria passed as parameters and return the routing codes in the desired format.

## Request body

- RoutingCodeSearch
  - `filters` RoutingCodeSearchFilters
    - `routingIdentifier` RoutingCodeSearchFiltersRoutingIdentifier
      - `op` 'Contains' | 'Strict' — \"contains\" or \"strict\" comparison operator
      - `value` string, nullable
    - `siret` SearchSiretFiltersSiret
      - `op` 'Strict' — \"strict\" comparison operator
      - `value` string, nullable
    - `routingCodeName` RoutingCodeSearchFiltersRoutingCodeName
      - `op` 'Contains' | 'Strict' — \"contains\" or \"strict\" comparison operator
      - `value` string, nullable
    - `administrativeStatus` RoutingCodeSearchFiltersAdministrativeStatus
      - `op` 'Strict' — \"strict\" comparison operator
      - `value` 'A' | 'C' — Administrative status of the routing code [A - Active , C - Closed]
    - `addressLines` SearchSiretFiltersAddressLines
      - `op` 'Contains' | 'StartWith' — \"contains\" or \"startWith\" comparison operator
      - `value` string, nullable
    - `postalCode` SearchSiretFiltersPostalCode
      - `op` 'StartWith' | 'Strict' — \"strict\" or \"startWith\" comparison operator
      - `value` string, nullable
    - `locality` SearchSiretFiltersLocality
      - `op` 'Contains' | 'Strict' | 'StartWith' — \"contains\", \"strict\" or \"startWith\" comparison operator
      - `value` string, nullable
  - `sorting` RoutingCodeSearchSortingInner[], nullable — Sorting criteria on a field and an order (ascending or descending).
    - `field` 'Siret' | 'RoutingIdentifierType' | 'RoutingCodeName' | 'RoutingIdentifier' | 'ManagesLegalCommitmentCode' | 'AdministrativeStatus' | 'Address' — Fields of the routing code resource.
    - `order` 'Ascending' | 'Descending' — Sorting order (ascending or descending)
  - `fields` RoutingCodeField[], nullable — Allows you to filter the desired fields in the response.
  - `include` Include2[], nullable
  - `limit` integer, nullable
  - `ignore` integer, nullable

## Response `200`

OK

- RoutingCodeSearchPost200Response
  - `search` RoutingCodeSearch
    - `filters` RoutingCodeSearchFilters
      - `routingIdentifier` RoutingCodeSearchFiltersRoutingIdentifier
        - `op` 'Contains' | 'Strict' — \"contains\" or \"strict\" comparison operator
        - `value` string, nullable
      - `siret` SearchSiretFiltersSiret
        - `op` 'Strict' — \"strict\" comparison operator
        - `value` string, nullable
      - `routingCodeName` RoutingCodeSearchFiltersRoutingCodeName
        - `op` 'Contains' | 'Strict' — \"contains\" or \"strict\" comparison operator
        - `value` string, nullable
      - `administrativeStatus` RoutingCodeSearchFiltersAdministrativeStatus
        - `op` 'Strict' — \"strict\" comparison operator
        - `value` 'A' | 'C' — Administrative status of the routing code [A - Active , C - Closed]
      - `addressLines` SearchSiretFiltersAddressLines
        - `op` 'Contains' | 'StartWith' — \"contains\" or \"startWith\" comparison operator
        - `value` string, nullable
      - `postalCode` SearchSiretFiltersPostalCode
        - `op` 'StartWith' | 'Strict' — \"strict\" or \"startWith\" comparison operator
        - `value` string, nullable
      - `locality` SearchSiretFiltersLocality
        - `op` 'Contains' | 'Strict' | 'StartWith' — \"contains\", \"strict\" or \"startWith\" comparison operator
        - `value` string, nullable
    - `sorting` RoutingCodeSearchSortingInner[], nullable — Sorting criteria on a field and an order (ascending or descending).
      - `field` 'Siret' | 'RoutingIdentifierType' | 'RoutingCodeName' | 'RoutingIdentifier' | 'ManagesLegalCommitmentCode' | 'AdministrativeStatus' | 'Address' — Fields of the routing code resource.
      - `order` 'Ascending' | 'Descending' — Sorting order (ascending or descending)
    - `fields` RoutingCodeField[], nullable — Allows you to filter the desired fields in the response.
    - `include` Include2[], nullable
    - `limit` integer, nullable
    - `ignore` integer, nullable
  - `totalNumberOfResults` integer, nullable
  - `results` RoutingCodePayloadHistoryLegalUnitFacility[], nullable
    - `routingIdentifier` string, nullable
    - `siret` string, nullable
    - `routingIdentifierType` string, nullable
    - `routingCodeName` string, nullable
    - `managesLegalCommitmentCode` boolean, nullable
    - `administrativeStatus` 'A' | 'C' — Administrative status of the routing code [A - Active , C - Closed]
    - `address` AddressRead — Wrapper for postal addresses
      - `addressLine1` string, nullable
      - `addressLine2` string, nullable
      - `addressLine3` string, nullable
      - `postalCode` string, nullable
      - `countrySubdivision` string, nullable
      - `locality` string, nullable
      - `countryCode` string, nullable
      - `countryName` string, nullable
    - `legalUnit` LegalUnitPayloadIncluded
      - `siren` string, nullable
      - `businessName` string, nullable
      - `entityType` 'Public' | 'PrivateVatRegistered' — Business structure type
      - `administrativeStatus` 'A' | 'C' — Refers to the administrative status of the legal unit [A - Active , C - Closed]
      - `instructions` SirenInstructions — Instructions regarding the SIREN
        - `isSalesProspectingForbidden` boolean, nullable
    - `facility` FacilityPayloadIncluded
      - `siret` string, nullable
      - `siren` string, nullable
      - `name` string, nullable
      - `facilityType` 'P' | 'S' — Indicates whether the facility is listed as the main facility or not [P - Main facility , S - Secondary facility]
      - `administrativeStatus` 'A' | 'C' — Facility administrative status [A - Active , C - Closed]
      - `instructions` SiretInstructions — Instructions regarding the SIRET
        - `isSalesProspectingForbidden` boolean, nullable
      - `address` AddressRead — Wrapper for postal addresses
        - `addressLine1` string, nullable
        - `addressLine2` string, nullable
        - `addressLine3` string, nullable
        - `postalCode` string, nullable
        - `countrySubdivision` string, nullable
        - `locality` string, nullable
        - `countryCode` string, nullable
        - `countryName` string, nullable
      - `b2gAdditionalData` FacilityPayloadHistoryUleB2gAdditionalData
        - `pm` boolean, nullable
        - `pmOnly` boolean, nullable
        - `managesPaymentStatus` boolean, nullable
        - `managesLegalCommitmentCode` boolean, nullable
        - `managesLegalCommitmentOrServiceCode` boolean, nullable
        - `serviceCodeStatus` boolean, nullable

---

[API](https://skmtc.net/neotimo/apis/neotimo-api.md) · [All operations](https://skmtc.net/neotimo/apis/neotimo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neotimo/neotimo-api/revisions/2ecf51b1543e/schema)
