Skip to main content

The national directory

The national directory is the reform's reference registry, kept by the PPF (Portail Public de Facturation) operated by the AIFE (Agence pour l'informatique financière de l'État): it links every French SIREN or SIRET to the platform that receives its e-invoices. Until a company is registered there with Scribee as the receiving platform, its invoices cannot be addressed to it through the reform. This page covers both sides of the directory: looking up the addressing of any French company before invoicing it, and registering, modifying, or masking the directory entries of your own companies.

What Scribee does for you​

  • Fills in the regulatory fields of each entry: the SIREN (from the company record), the receiving platform (Scribee's registration), and the routing code qualifier. You provide only the addressing level and the effective dates.
  • Checks the shape of your request before transmission - required fields, J+1 dates, internal consistency - and rejects with an immediate 422 whatever it can decide on its own. The directory's own rules stay arbitrated by the PPF: a 202 does not prejudge them, and a deferred rejection remains possible.
  • Orders requests when an entry references a new routing code: the directory requires the code to be registered before the entry; Scribee submits the two in that order.
  • Publishes the entry's addressing to the Peppol network, with no extra call on your part, once the registration request has been transmitted to the directory - never before. If the directory then rejects the registration, Scribee withdraws that publication in the background, unless another of the company's entries, in force or upcoming with Scribee as receiving platform, or another registration request that succeeded or is still in progress, carries the same address. The publication is also kept while the company holds an active mandate covering the sending of its invoices that has not ended, even one that only starts later: Scribee also uses that address for its sales.
  • Serves your lookups from the copy of the directory that Scribee maintains: reads answer immediately, without depending on the PPF's availability on every request.

Asynchronous writes by design​

The national directory is an external registry: Scribee cannot write to it synchronously. Every write (POST, PATCH, DELETE) therefore responds 202 Accepted with a change_request_id - the request is recorded locally and queued, neither transmitted nor applied at the time of the response. You read back what became of the request with that change_request_id at GET /api/v1/companies/{company_id}/france/pid/change_requests/{id} (step 6): accepted, rejected and at which level, or still pending, with the action expected from you. The created or modified entry appears in the company's list of entries (step 3) once the request has been processed.

Event kinds and statuses​

Every entry carries an event kind (event_kind), set at creation and immutable afterward:

event_kindLabelOrigin
regularRegularA registration (POST) always creates an entry of this kind
maskingMaskingResults from a masking request (DELETE, step 5)

An entry's registration status is read from its effective dates - the end date is exclusive, an entry stops being in force on the day of its effective_to_on:

StatusLabelCondition
upcomingUpcomingeffective_from_on is later than today
in_forceIn forceeffective_from_on has been reached and effective_to_on is absent or in the future
endedEndedeffective_to_on is today or in the past

Who manages a directory entry​

A directory entry is an address: the SIREN alone, the SIREN with a suffix_code, a SIRET, or a SIRET with a routing_code_identifier. Several companies may carry the same SIREN, in your workspace as in any other - typically a sole trader whose every activity keeps its own books -, and each may hold its own reception mandate. Exclusivity is decided address by address:

  • an entry registered through Scribee belongs to the company it was created through (step 2), and an address another company holds is not registered again (see 422: address held by another company);
  • the company that manages an entry reads it in full, modifies it and masks it: its owner, as long as it holds a reception mandate in force; for an entry with no owner known to Scribee - registered by another platform, for example -, the company of the SIREN holding a reception mandate in force, when it is the only one; otherwise, nobody;
  • the other companies carrying the SIREN read the in-force entries they do not manage in the shape of the step 1 lookup (step 3).

For example, for a SIREN carrying a BNC activity and an LMNP activity, kept by two companies in two workspaces:

AddressRegistered throughManaged by
SIREN alonethe BNC company (workspace 1)the BNC company
SIREN + suffix_code BNCthe BNC company (workspace 1)the BNC company
SIREN + suffix_code LMNPthe LMNP company (workspace 2)the LMNP company

Each reads the other's in-force entries without id, and a write by one on the other's address is refused.

Step 1: look up the directory before invoicing​

This call is a read: it creates nothing and transmits nothing externally - the read scope is enough. It returns the directory entries in force as of today for a SIREN or a SIRET - exactly one of the two parameters, never both.

An entry is in force from its start date (effective_from_on), inclusive, until its end, exclusive. That end is its end date (effective_to_on, DT-7-3-2) when the entry carries one; failing that, its effective end date (effective_to_confirmed_on, DT-7-3-3), unless its year is after 2099 - a value such as 9999-12-31 means "no end" and leaves the entry open; failing that too, the entry has no end. An effective_to_on, when present, alone sets the end, even when it is later than effective_to_confirmed_on: once effective_to_confirmed_on is reached, the entry is still returned until effective_to_on, with a directory_line_status of null (see below). The entries in force that step 3 and the single-entry read return follow the same rule.

curl "https://app.scribee.tech/api/v1/workspaces/YOUR_WORKSPACE_ID/france/pid/directory_lookups?siret=12345678900012" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"data": [
{
"directory_identifier": "FR000000001",
"peppol_addressing_value": "FR000000001",
"siren": "123456789",
"siret": "12345678900012",
"suffix_code": null,
"routing_code_identifier": null,
"routing_code_qualifier": null,
"nature_label": "D",
"disclosure_status": "Diffusible",
"directory_line_status": "Enabled",
"sales_prospecting_forbidden": false
}
],
"meta": {
"current_page": 1,
"per_page": 20,
"total_pages": 1,
"total_count": 1
}
}

These eleven fields make up the response for every caller.

peppol_addressing_value is the address the entry actually routes to, and it is the one to keep when addressing a document. It equals directory_identifier whenever the directory assigned one; otherwise it is composed from the entry's addressing level (SIREN, SIREN_SUFFIXE, SIREN_SIRET, or SIREN_SIRET_CODEROUTAGE). The distinction matters: directory_identifier is legitimately null on an entry whose address the directory composes, so a caller reading only that field concludes "no address" for a perfectly reachable recipient. peppol_addressing_value therefore carries an address where directory_identifier is empty. It is itself null in exactly one case, deliberately: when the entry resolves to no usable address. directory_identifier is validated nowhere - the import writes whatever the PPF sent - so it can carry text that is not a Peppol identifier. Rather than publish an address nothing can route to, which you would store only to have the deposit refused later, this field is null for such an entry. Read null as "this entry is not addressable", not as "field missing".

This is the value to write into directory_routing_identifier on the customer record or on the invoice (see Invoice lifecycle), except on an entry whose suffix_code starts with cdar_ventes_: the lookup can return such entries, but their <SIREN>_cdar_ventes_... address only receives lifecycle statuses, never an invoice, and directory_routing_identifier refuses it with a 422 (Customers and suppliers). directory_identifier is unchanged and still carries exactly what it carried: the field is not replaced, it is complemented. nature_label here carries the Annexe 3 DT-7-2 regulatory code, "D" (Definition, an entry an invoice can be addressed to): since the lookup only returns regular entries, the other value "M" (Masking) never appears here. This field does not carry the same value as at step 3, where it reports the entry's addressing level; here, the addressing level is read from siret, suffix_code, and routing_code_identifier, never from nature_label. disclosure_status is most often "Diffusible", "Partiellement diffusible", "Refus de prospection", or null: Scribee derives it from its local copy of the recipient's legal unit or establishment, and returns null when that copy is absent or carries no disclosure value. The list is not closed: a non-blank value Scribee cannot translate is returned verbatim rather than replaced by null. Treat the field as a free-form display string, with a null case and a default case. The list is paginated (page, per_page) and filters by routing_code_identifier when the recipient routes its invoices by department.

directory_line_status reports the entry's regulatory status (AFNOR XP Z12-013 §6.2.2) as of as_of (today by default) for every caller, with one exception: for a Plateforme Agréée using include_history (detailed below), as_of plays no part in this computation, which stays anchored on today's date instead. It is "Enabled" (in force and not on the PPF's default platform code), "Disabled" (in force but still on the PPF's default platform code, for lack of an assigned receiving platform), or null when the entry's confirmed effective end - the earlier of effective_to_on and effective_to_confirmed_on, the latter detailed below - has been reached or passed as of that date. The value "Upcoming" (not yet in force) exists only for a Plateforme Agréée using the include_history parameter: without it, the lookup never returns an upcoming entry for any caller, so directory_line_status cannot be "Upcoming" either. Reserved to that same Plateforme Agréée-with-include_history case, two other null values are possible: the upcoming entry is still on the PPF's default platform code - a combination the reference standard leaves undefined - or the entry surfaced is already ended, the same computation as the first null case but made visible here because include_history lifts the date window that would otherwise have excluded it from the response. The field itself is returned to every caller.

sales_prospecting_forbidden (XP Z12-013 §6.2.3) is a boolean derived from disclosure_status: true when it is "Refus de prospection", false in every other case, including when disclosure_status is null. Returned to every caller.

Integrators operating white-label as Plateforme Agréée (French approved e-invoicing platform) receive six extra fields, bringing their response to seventeen fields - platform_registry_number, platform_registry_qualifier, effective_from_on, effective_to_on, effective_to_confirmed_on, and instance_number. effective_to_confirmed_on (DT-7-3-3, the effective end date as computed by the PPF) can be earlier than effective_to_on; whichever of the two is earlier is what flips directory_line_status to null (see above). These integrators also have the include_history parameter, reserved to them: it lifts the lookup's date window and returns entries regardless of their effective dates, without lifting the other two filters - masked entries and masking-type entries stay excluded in every case.

as_of moves the lookup window to another date - the response is still the entries in force on that date, not a history. It is honored for every caller, except a Plateforme Agréée using include_history (see above): for it, as_of is not taken into account at all, including for an invalid value, and the lookup responds 200 as if the parameter had not been supplied. Outside that case, an invalid value (a non-ISO-8601 format, a date that does not exist, or a year outside the bounds of the database's DATE column) is handled differently depending on your status: a standard caller gets a silent fallback to today's date, the lookup responds 200 as if as_of had not been supplied; a Plateforme Agréée without include_history gets a 422 instead (see Errors and edge cases), because for it as_of must be honored and an invalid value cannot be silently ignored.

An empty data response means no entry in force matches the filters you supplied - the identifier you searched for, but also routing_code_identifier when you send one: the entity may exist without carrying that routing code. This filter compares the code exactly, case included: ACHATS and achats are two distinct routing codes, and a lookup on achats does not return an entry on code ACHATS. That is not the same as "the company has no entry": a search by SIRET does not surface an entry registered under the SIREN alone, which nonetheless covers the whole legal entity. Search again on the SIREN before concluding.

Step 2: register a company in the directory​

This call records a registration request and transmits it to the national directory: the resulting entry is visible to every platform in the reform. While it is Upcoming, it is masked with the DELETE of step 5; once In force, it is closed by setting its end date (step 4). The company is a record in your workspace (Companies and establishments) and must itself hold a reception mandate in force (see 403: reception mandate required); a new entry also requires a formal agreement, in place of which Scribee also accepts a signed delegation mandate covering receive_invoices (see 403: formal agreement required for a new entry). The entry created belongs to it (see Who manages a directory entry); an address another company already holds is refused with a 422 (see 422: address held by another company).

curl -X POST https://app.scribee.tech/api/v1/companies/YOUR_COMPANY_ID/france/pid/entries \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"entry": {
"siret": "12345678900012",
"effective_from_on": "2026-09-01"
}
}'
{
"data": {
"change_request_id": 99
}
}

202 response: the request is recorded, not yet applied - read back what became of it with the change_request_id (step 6). effective_from_on must be at least J+1. Its year, like that of effective_to_on if you provide one, must be between 2000 and 2099 (Annexe 7, rule G1.36): for an entry with no time limit, omit effective_to_on rather than sending a distant date such as 9999-12-31, which is refused with a 422 carrying "code": "validation_failed". The addressing level is chosen by the fields provided: none (the entry carries the SIREN alone), siret (an establishment), suffix_code with the SIREN alone, or siret plus routing_code_identifier to route by department. A siret provided must be the SIRET (legal_identifier) of one of the company's establishments: declare the establishment before its directory entry (Companies and establishments), otherwise the request responds 422 (see 422: write request rejected). The addressing level retained sets the created entry's nature_label, which step 3 returns: "Etablissement" as soon as a siret is supplied, "Suffixe" for an entry carrying a suffix_code and no siret, and "Unite legale" for an entry carrying the SIREN alone. The SIREN itself and the receiving platform are not provided: Scribee sets them from the company record and its own registration.

A suffix_code is written only with digits, unaccented Latin letters, -, _ and ., in at most 100 characters (Annexe 7, rule G1.115). It also cannot start with cdar_ventes_, in any case: this prefix is reserved, Scribee allocates it itself. In both cases, the request answers 422 and nothing is recorded (see Errors and edge cases).

The API only ever registers a routing code, with the first entry that references it: it does not modify, deactivate or reactivate it, and an address is retired by closing (step 4) or masking (step 5) its entries. A routing code's label is modified, and the code deactivated or reactivated, from Scribee's interface only, on an entry that carries it and that the company manages. An entry that references an inactive routing code answers 422 and nothing is recorded (see 422: inactive routing code).

Step 3: track the request and read the entries​

GET /api/v1/companies/{company_id}/france/pid/entries lists the entries of the company's SIREN. Each entry is judged on its own, as of today (see Who manages a directory entry):

  • an entry managed by the company itself appears in full, whatever its effective dates, excluding a masked entry;
  • any other entry of the SIREN, including an entry managed by another company of your workspace, appears in the shape of the step 1 lookup response, with the same eleven fields, without the six fields reserved to a Plateforme Agréée, even for an integrator that is one - and only when it is in force today, not masked and of kind regular.

Both shapes are sorted and paginated together, from most recent to oldest by default (sort_by: created_at, effective_from_on, or effective_to_on; sort_order: asc or desc), and total_count counts them all.

To tell which shape you are reading, test for the presence of id on each element of data: a full entry always carries it, an entry of the step 1 response never does. One response may mix both shapes. nature_label changes meaning from one shape to the other: the regulatory code "D" in the step 1 response, the addressing level on a full entry.

curl https://app.scribee.tech/api/v1/companies/YOUR_COMPANY_ID/france/pid/entries \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

A response carrying a full entry, abridged to the fields useful here:

{
"data": [
{
"id": 512,
"siren": "123456789",
"siret": "12345678900012",
"routing_code_identifier": null,
"event_kind": "regular",
"effective_from_on": "2026-09-01",
"effective_to_on": null,
"directory_identifier": "FR000000001",
"masked": false
}
],
"meta": {
"current_page": 1,
"per_page": 20,
"total_pages": 1,
"total_count": 1
}
}

The entry from step 2 appears here once the request has been processed by the directory; what became of the request itself is read back in step 6. An entry can also be read individually, without going through the company: GET /api/v1/france/pid/entries/{id}. The entry is found when a company of a workspace accessible to your application carries its SIREN, and the company that manages it decides its shape:

  • if a company of a workspace accessible to your application manages it, the response is the full entry, masked included - this path is used in particular to reread a masked entry, which the list no longer displays;
  • otherwise, only an entry in force today, not masked and of kind regular is found, in the shape of the step 1 response (without id); any other entry responds 404.

Step 4: modify an entry​

This call records a modification request and transmits it to the national directory; the response is a 202 with change_request_id, as in step 2. It bears only on the entry's end-of-validity date: set effective_to_on (at least J+1, the end date is exclusive) to end an In force entry, or send it as null to clear it - Scribee then transmits an explicitly null dateFinEffet to the directory, and the end-of-validity date it stores is cleared once the request has been processed. The year of an effective_to_on must be between 2000 and 2099 (rule G1.36): an entry with no time limit is obtained with null, never with a distant date such as 9999-12-31, which is refused with a 422 carrying "code": "validation_failed". Masking goes through the DELETE of step 5, never through a modification.

:::danger effective_to_on is the only attribute transmitted to the directory effective_to_on (DT-7-3-2) is the only attribute this API transmits to the directory; Annexe 3 V1.8 DG-7 also allows the receiving-platform matricule (DT-7-6) to be changed on a line not yet in force, which this API does not yet support. Any other attribute sent in entry is refused: the request answers 422 with "code": "invalid_argument", the entry is left untouched, and no modification request is created. The refusal is on the keys you send, including a key sent empty and a key the API does not know. Refused this way are siren, siret, suffix_code, routing_code_identifier, routing_code_qualifier, platform_registry_number, platform_registry_qualifier, nature_label, presence_reason, and effective_from_on, which earlier versions accepted with a 202 before ignoring them, along with event_kind, which never had any effect here. To correct an addressing level, end the existing entry with effective_to_on and then create a new one (step 2). :::

curl -X PATCH https://app.scribee.tech/api/v1/companies/YOUR_COMPANY_ID/france/pid/entries/512 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"entry": {
"effective_to_on": "2026-12-31"
}
}'

To clear an end of validity already set, send the same date as null:

{
"entry": {
"effective_to_on": null
}
}

Once the request has been processed by the directory, rereading the entry (step 3) reports the new effective_to_on - null if you cleared it.

A masked entry can no longer be modified.

Step 5: mask an upcoming entry​

This call records a masking request and transmits it to the national directory: the entry is withdrawn from active publication without its history being erased. Masking only targets an Upcoming entry - the directory's regulations reserve it for entries not yet in force; an In force entry is closed through its end date (step 4), and the call responds 403 on such an entry.

curl -X DELETE https://app.scribee.tech/api/v1/companies/YOUR_COMPANY_ID/france/pid/entries/512 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"data": {
"change_request_id": 101
}
}

202 response. Once the masking has taken effect, the entry carries "masked": true, drops out of the company's list, and remains readable individually at GET /api/v1/france/pid/entries/{id} as long as a company accessible to your application manages it (step 3). The write scope is sufficient; a token carrying only the destroy scope also works.

Step 6: read back what became of a request​

Every write (POST, PATCH, DELETE) responds 202 with a change_request_id. This call reads it back: it tells you where the request stands, whether the directory accepted or rejected it, at which level, and what you should do next. It is a read: the read scope is enough, and no reception mandate is required.

curl https://app.scribee.tech/api/v1/companies/YOUR_COMPANY_ID/france/pid/change_requests/99 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response for a registration deposited in a file, which the directory rejected on the entry:

{
"data": {
"id": 99,
"status": "rejected",
"rejection_level": "line",
"next_action": "correct_and_resubmit",
"quarantined": false,
"transport": null,
"flux_verdict": {
"status": "500",
"reason_code": null,
"label": "Recevable",
"reason_label": null,
"motives": []
},
"line_verdict": {
"status": "401",
"label": "Rejetee",
"verdict_at": "2026-09-01T10:00:00+02:00",
"motives": [
{
"code": "REJ_RG",
"label": "Une ou plusieurs règles de gestion ne sont pas respectées",
"anomaly_source": "LIGNE",
"notes": [
{
"rule": null,
"message": null,
"subject": "3"
}
]
}
]
},
"correlation": {
"change_request_id": 99,
"flux_name": "FFE1235A_AAA000_AAA0001235000000000000042",
"instance_number": null,
"operation": "create",
"processing_method": "EDI"
},
"created_at": "2026-08-30T09:12:00+02:00",
"updated_at": "2026-09-01T10:00:05+02:00"
}
}

Who can read back a request​

A request is read back through the company that submitted it: the one whose company_id was in the write's URL. Every request of that company is readable, whichever application submitted it. A request submitted by another company responds 404, including when that company carries the same SIREN, in your workspace as in any other: managing an entry (see Who manages a directory entry) gives no right over the requests another company made. A company_id outside your application's scope also responds 404, and directory access not activated 403 (see Errors and edge cases).

status: where the request stands​

statusMeaningnext_action
queuedRecorded, not yet picked up for transmissionwait
in_progressBeing transmitted to the directorywait
outcome_unknownTransmitted, but its result is not known yet: the file is deposited and awaits the directory's verdict, or the call to the directory got no answer and Scribee reads the directory back before settling itwait or contact_support
acceptedAccepted by the directorynone
rejectedRejected; rejection_level says at which levelcorrect_and_resubmit or contact_support

As long as the request is neither accepted nor rejected, next_action is contact_support instead of wait when quarantined is true: Scribee stopped settling this request automatically, either because following its deposit failed several times in a row, or because reading the directory back could not reach a conclusion (see below).

An outcome_unknown request whose call to the directory API got no answer has next_action set to wait: no deposited file will bring back its verdict, so Scribee reads the directory back itself. If the written entry is there, the request moves to accepted. If two reads, spaced apart, do not find it, Scribee retransmits the request, under the same change_request_id, and it moves back to in_progress. A read that cannot reach a conclusion is retried later; when reading again would change nothing, for example because a more recent request concerns the same entry, Scribee sets the request aside: quarantined becomes true and next_action becomes contact_support.

:::warning outcome_unknown: poll this endpoint, do not resend the write For an outcome_unknown request whose next_action is wait, query this endpoint again until status changes. Do not resend the POST (nor the PATCH or the DELETE) to learn its status: a new submission is a new write request, not a read of the first one. Scribee retransmits a request in this state itself only after finding, through two reads of the directory, that the write is not there. :::

rejection_level: three rejections not to confuse​

rejection_level carries a value only on a rejected request, and is null otherwise:

rejection_levelWhat was rejectedDetail
transportThe PPF directory API answered an HTTP errortransport
fluxThe deposited file was declared inadmissible as a whole (status 501), except for the IRR_UNCITE motiveflux_verdict
lineThe directory rejected the entry (status 401)line_verdict

A 501 file with the IRR_UNCITE motive (a file the PPF already holds) does not reject the request: flux_verdict reports it, but status and next_action follow the request's state and the entry verdict, and a request still pending stays at wait.

A rejected request whose rejection_level is null was refused by Scribee itself, with no answer from the directory; next_action is then contact_support.

An HTTP 401 and an entry 401 share a number and nothing else. The first is a transport rejection: the directory API refused Scribee's credentials, the request was not examined, and nothing you could send fixes it. The second is a line rejection: the directory examined the entry and rejected it for the motives in line_verdict, which you can correct. An HTTP 401 is never a line rejection.

next_action: what you do next​

next_actionWhenWhat to do
noneacceptedNothing: reread the entry (step 3)
waitqueued, in_progress, outcome_unknown of a deposited file or of a call to the directory API that Scribee reads backRead this endpoint back later
correct_and_resubmitline rejection, or transport rejection on an HTTP 4xx other than 401 and 403Correct the request from the motives and submit a new one
contact_supportflux rejection, transport rejection on an HTTP 401, 403 or 5xx, rejection with no rejection_level, or pending request with quarantined set to trueContact your Scribee representative, quoting the change_request_id

A flux rejection calls for contact_support: the deposited file is built by Scribee, so its inadmissibility cannot be corrected from your request.

transport, flux_verdict, line_verdict​

transport carries a value only on a transport rejection: { "http_status": 422 }, the HTTP status the directory API answered, and only that - the body of its response is never passed back.

flux_verdict carries the directory's verdict on the deposited file, as soon as it exists and whatever the status: status ("500" admissible, "501" inadmissible), label (that status's label, "Recevable" or "Irrecevable"), reason_code and reason_label (the main inadmissibility motive and its label, null without a motive) and motives (every inadmissibility motive, detailed below). It is null as long as no file verdict is known, and for a request transmitted by a direct call to the directory API, which deposits no file.

line_verdict carries the directory's verdict on the entry itself, once it has arrived: status ("400" accepted, "401" rejected), label (the status label the directory sends with a rejection, null on an acceptance), verdict_at (the verdict's timestamp) and motives. Only the most recent verdict is kept: a 400 replacing a 401 reads accepted, with empty motives. On a rejection, each motive carries:

  • code: the rejection motive, among REJ_RG, REJ_HAB, REJ_COH and REJ_VAL_INC;
  • label: that motive's label;
  • anomaly_source: the source of the anomaly as stated by the directory, or null;
  • notes: the directory's details on the entry concerned, each with subject (the iteration number of the entry within the deposited file), message (the invalid tag, the code of the business rule that caused the rejection - for example G1.92 - and the error message) and rule (optional, most often null), each of which may be null.

The motives of flux_verdict have the same shape, and list every motive for which the directory declared the file inadmissible, in the order it numbered them:

  • code: the inadmissibility motive, for example IRR_SYNTAX;
  • label: that motive's label;
  • anomaly_source: the motive's label as the directory sends it, or null;
  • notes: each with subject (where the anomaly is: the name of the file concerned), message (the anomaly message) and rule (most often null on an inadmissible file), each of which may be null.

On a 500 file, motives is empty. A request whose file was declared 501 before Scribee kept every motive carries only one, the reason_code one, with anomaly_source set to null and empty notes.

Response for a registration deposited in a file that the directory declared inadmissible for two motives:

{
"data": {
"id": 100,
"status": "rejected",
"rejection_level": "flux",
"next_action": "contact_support",
"quarantined": false,
"transport": null,
"flux_verdict": {
"status": "501",
"reason_code": "IRR_SYNTAX",
"label": "Irrecevable",
"reason_label": "Erreur de syntaxe",
"motives": [
{
"code": "IRR_SYNTAX",
"label": "Erreur de syntaxe",
"anomaly_source": "Contrôle syntaxique des fichiers",
"notes": [
{
"rule": null,
"message": null,
"subject": "FFE1235A_AAA000_AAA0001235000000000000043"
}
]
},
{
"code": "IRR_TAILLE_F",
"label": "Taille de fichier excessive",
"anomaly_source": "Contrôle de taille des fichiers",
"notes": [
{
"rule": null,
"message": null,
"subject": "FFE1235A_AAA000_AAA0001235000000000000044"
}
]
}
]
},
"line_verdict": null,
"correlation": {
"change_request_id": 100,
"flux_name": "FFE1235A_AAA000_AAA0001235000000000000043",
"instance_number": null,
"operation": "create",
"processing_method": "EDI"
},
"created_at": "2026-08-30T09:20:00+02:00",
"updated_at": "2026-08-30T09:45:05+02:00"
}
}

rule, message, subject and anomaly_source are passed back as the directory sends them; in the examples above, message is left null because its text is the directory's own. The labels (label, reason_label) are in French.

correlation: the correlation keys​

KeyContent
change_request_idThe request's identifier, the one the write returned with the 202 (equal to id)
flux_nameThe name of the file deposited with the PPF (FFE1235A_...), null as long as the file has not been given a number
instance_numberThe entry's instance identifier in the directory, null as long as it is not known
operationcreate (POST), update (PATCH) or delete (DELETE, masking)
processing_methodAPI (direct call to the directory API) or EDI (file deposit)

created_at and updated_at date the recording of the request and its latest change.

What happens next​

  • The transmitted request is processed by the national directory; read back what became of it with the change_request_id (step 6), then relist the company's entries (step 3) to read the resulting entry. The change_request_id also identifies each request in your exchanges with your Scribee contact.
  • Approval of a mandate covering invoice reception is the prerequisite for directory activation on the company concerned, and approval of a standard or delegation mandate can trigger it: when the entry meets the conditions, approval starts a background activation. It does not take place when another company carrying the same SIREN already holds the SIREN-alone entry, which activation registers, nor when several companies of the SIREN await their activation. It is not guaranteed for all that - re-list the company's entries to observe their state, and contact your Scribee representative if activation does not appear (Electronic invoicing mandates).
  • Once the entry is In force, the invoices your suppliers issue through the reform are addressed to Scribee and appear in your workspace: Receive supplier invoices.

Errors and edge cases​

422: invalid lookup parameter​

The lookup requires exactly one identifier - siren or siret, neither none nor both:

{
"error": "unprocessable_entity",
"code": "invalid_argument",
"message": "La validation a échoué",
"details": {
"base": ["un seul paramètre parmi siren ou siret doit être fourni"]
}
}

An invalid format produces "le siren doit contenir exactement 9 chiffres" or "le siret doit contenir exactement 14 chiffres" in the same format.

422: invalid as_of (Plateforme Agréée)​

Reserved to Plateformes Agréées without include_history: a standard caller, or a Plateforme Agréée using include_history, always gets a 200 for an invalid as_of - a silent fallback to today's date for the standard caller, as_of being simply ignored in the include_history case (see step 1). A Plateforme Agréée without include_history gets this 422 instead, because as_of must be honored for it:

{
"error": "unprocessable_entity",
"code": "invalid_argument",
"message": "La validation a échoué",
"details": {
"base": ["invalid date"]
}
}

This message is the underlying date parser's own, untranslated - a deliberate departure from the French of this page's other errors. The same response covers a non-ISO-8601 format and a date that does not exist.

422: write request rejected​

The directory's rules are checked before transmission; the cause is in details:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Date d'effet doit être au moins J+1 (demain ou plus tard)"]
}
}

Other frequent causes, in the same format: "SIRET la racine (9 premiers chiffres) doit correspondre au SIREN" when the SIRET provided does not descend from the company record's SIREN, and "Code suffixe ne peut pas être renseigné lorsqu'un SIRET est présent" when the two addressing levels are mixed, "Code suffixe n'est pas valide" when the suffix_code carries a character outside rule G1.115 or exceeds 100 characters. A SIRET that does descend from the SIREN but matches none of the company's establishments responds "Ce SIRET ne correspond à aucun établissement de cette entreprise. Ajoutez d'abord l'établissement à l'entreprise, puis déclarez sa ligne d'annuaire."; the root check runs before this one. Correct the request and replay the call.

422: reserved suffix​

A suffix_code starting with cdar_ventes_, in lowercase as in uppercase, is refused and no request is recorded:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Les suffixes commençant par \"cdar_ventes_\" sont réservés : Scribee les attribue pour publier l'adresse de retour des statuts de cycle de vie. Choisissez un autre suffixe."]
}
}

Choose a suffix outside this prefix and replay the call.

422: address held by another company​

A registration (POST) on an address - same SIREN, same siret, same suffix_code regardless of case, same routing_code_identifier exactly, case included - that another company registered through Scribee is refused, whatever that company's workspace, as long as its entry is not masked and has not ended by the requested effective_from_on. No request is recorded, and an address never changes owner through a new registration:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Cette adresse d'annuaire est déjà détenue par une autre entreprise."]
}
}

An entry of another company on code ACHATS therefore does not block a registration on code achats: they are two addresses. An entry on suffix_code BNC, on the other hand, blocks a registration on suffix_code bnc.

Register another address - another suffix_code, for example -, or date the entry no earlier than the day the other company's entry ends. An entry with no owner known to Scribee does not block the registration: the national directory arbitrates.

422: inactive routing code​

A registration (POST) with a siret and a routing_code_identifier that Scribee's local copy of the national directory holds as inactive (status Inactif or Fermé) is refused before any transmission, and no request is recorded: the directory would reject the entry (rule G1.92, routing code nonexistent or inactive), and the API does not reactivate a routing code:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Ce code routage est inactif dans l'annuaire. Une ligne d'annuaire ne peut pas référencer un code routage inactif, réactivez-le d'abord depuis la ligne qui le porte."]
}
}

Register the entry on the siret alone, or on another routing_code_identifier. The code can also be reactivated from Scribee's interface, on an entry that carries it and that the company manages: the local copy holds it as active only once the directory has accepted the reactivation, and the registration can then be sent again. A routing code Scribee does not know yet is not affected: Scribee registers it before the entry.

422: attribute not modifiable (PATCH)​

A modification bearing on anything other than effective_to_on is refused before any transmission, and no request is recorded:

{
"error": "unprocessable_entity",
"code": "invalid_argument",
"message": "effective_to_on (DT-7-3-2) est le seul attribut que cette API transmet à l'annuaire ; l'Annexe 3 V1.8 DG-7 autorise également le matricule de la plateforme de réception (DT-7-6) sur une ligne pas encore en vigueur, ce que cette API ne prend pas encore en charge. Retirez : nature_label, presence_reason",
"details": {
"nature_label": ["ne peut pas être modifié sur une ligne d'annuaire existante"],
"presence_reason": ["ne peut pas être modifié sur une ligne d'annuaire existante"]
}
}

details is keyed by refused attribute, and message lists them in the order you sent them. Remove those keys from the body and replay the call.

403: reception mandate required​

Writes (POST, PATCH, DELETE) go through a company that itself holds a reception mandate: a mandate in the active state covering the receive_invoices scope whose contractual period covers the relevant day. Other companies carrying the same SIREN, in your workspace or in another, may hold one too: each writes the addresses it manages (see Who manages a directory entry). Without that mandate, the write responds:

{
"error": "forbidden",
"message": "Cette entreprise ne détient pas de mandat de réception en vigueur pour ce SIREN."
}

The relevant day depends on the write:

WriteDay on which the mandate must be in force
POST (registration)the later of today and the submitted effective_from_on
PATCH (end date)today
DELETE (masking)the later of today and the entry's effective_from_on

The two bounds do not work the same way: start_date counts the day itself, end_date does not - a mandate whose end_date falls on the relevant day already refuses the write. An approved mandate whose period only starts later therefore permits registering an entry whose effective_from_on falls within its period, but refuses with a 403 an entry dated before its start, as well as any PATCH modification until its period has begun.

This 403 also responds when the company's mandate covers only send_invoices or e_reporting: only the receive_invoices scope counts, even for an active mandate under way.

It also answers for a company whose legal_registering_country names a country other than France: only a company registered in France carries a SIREN, and a company registered elsewhere is never taken as reception-mandated, even with an active mandate covering receive_invoices and designating Scribee, whatever the digits of its legal_identifier.

A modification (PATCH) or a masking (DELETE) also goes through the company that manages the entry. On an entry managed by another company carrying the same SIREN - including another company of your workspace -, the write responds:

{
"error": "forbidden",
"message": "Cette adresse d'annuaire est déjà détenue par une autre entreprise."
}

Replay the call through the company that manages the entry. An entry nobody manages can be neither modified nor masked: the write responds 403 with the message of the next section.

Reads (GET) never respond with this 403: in the list, an entry the company does not itself manage reads in the shape of the step 1 response; read individually, an entry no company of a workspace accessible to your application manages reads in that same shape, and an entry you cannot read individually responds 404 (step 3).

The mandate is obtained and approved via Electronic invoicing mandates.

403: formal agreement required for a new entry​

A registration (POST) requires more than a reception mandate: a formal agreement, that is a mandate of type standard in the active state, covering receive_invoices, designating Scribee as the Approved Platform and in effect on the day concerned - the later of today and the effective_from_on sent. That agreement is signed by the company itself or, under its delegation, by your own representative (Signing the agreement on the strength of a delegation). A signed delegation mandate in the active state, covering receive_invoices, designating Scribee and in effect that day stands as the formal agreement for registration. When the company holds no such mandate, for instance an unsigned delegation, the registration responds as follows, and no request is recorded or transmitted to the directory:

{
"error": "forbidden",
"message": "Aucun accord formel désignant la Plateforme Agréée ne couvre cette ligne (réception des factures, en vigueur à sa date de prise d'effet, adresse comprise dans le périmètre d'adressage signé). Une nouvelle ligne d'annuaire exige un accord formel désignant la Plateforme Agréée et couvrant cette adresse, signé par l'entreprise ou, au titre de sa délégation, par son mandataire, ou une délégation signée couvrant la réception des factures."
}

Get the formal agreement or the delegation signed and approved, then replay the call. This check only targets registration: modifying (PATCH) and masking (DELETE) an existing entry stay open to the company that manages it under a delegation mandate in force.

403: directory access not activated or insufficient scope​

Directory access is activated by Scribee on your workspace according to your plan; until it is, the endpoints on this page respond:

{
"error": "forbidden",
"message": "Vous n'êtes pas autorisé à effectuer cette action"
}

The same body answers a token without the required scope (write for POST and PATCH; write or destroy for DELETE; read for reading back a request, step 6). If your scopes are correct, request directory activation from your Scribee contact. On the lookup, a workspace not attached to your OAuth client responds 403 with "L'application n'a pas accès à cet espace de travail" (Your first call).

This activation check is the last one in the chain. On writes, a company_id outside your application's scope responds 404 and a company without a reception mandate in force responds 403 with the mandate message above - or, on a registration, without a formal agreement, with the formal agreement message -, before activation is checked at all; on the lookup, workspace attachment is checked first. So do not conclude from the absence of this message that the directory is activated: fix the reported error first, then replay the call.

404 Not Found​

The company or the entry does not exist, or belongs to a workspace outside your application's scope:

{
"error": "not_found",
"message": "La ressource demandée est introuvable"
}

On GET /api/v1/france/pid/entries/{id}, the same 404 answers an entry that is masked, upcoming, ended or of kind masking when no company accessible to your application manages the entry (step 3).

On GET /api/v1/companies/{company_id}/france/pid/change_requests/{id}, the same 404 answers a request the company company_id did not submit, including one from another company carrying the same SIREN (step 6).

400 Bad Request: page beyond the last​

Both lists on this page are paginated and respond 400 beyond the last page, as everywhere else: API conventions.