Skip to main content

E-reporting

The French reform does not stop at e-invoices exchanged between companies established in France: operations outside that scope - B2C sales, cross-border B2B and B2G operations - as well as the payment data for B2C and international B2B services under VAT on collection, must be declared periodically to the tax administration (DGFiP). This is e-reporting. For every company in your workspaces subject to the obligation, Scribee opens declaration periods in advance and aggregates into them the data from your invoicing. Your integration reads these declarations and completes the data for operations handled outside Scribee.

What e-reporting covers​

Every company subject to the obligation keeps two types of declarations, identified by the kind field:

  • Transactions (transactions): operations outside the scope of e-invoicing. A seller-role (SE) transactions declaration carries both B2C sales aggregates and individual invoices, for example cross-border invoices. A buyer-role (BY) declaration carries individual invoices only: an aggregate attaches only to a seller-role declaration, and each invoice to the declaration whose role matches the direction of the operation (Declare transactions).
  • Payments (payments): collections received on B2C and international B2B services whose VAT is due on collection, declared in euros. The collection of a domestic B2B sale is not in it: it is declared by the invoice's 212 Collected lifecycle status.

Data is declared by company and by declarant role. The role is carried by the role field, whose values are the regulatory codes SE (declaring seller) and BY (declaring buyer). Transactions declarations therefore exist in two series, one per role: for the same period, two distinct declarations sharing the same bounds and the same deadline, differing only by id and role. Payments declarations exist only in the seller series: their role is always SE. Companies of your workspace carrying the same SIREN each keep their declarations, but only one transmits them for all (Transmit a declaration).

What Scribee does for you​

  • Periods are created in advance. You never create a declaration: for every company subject to the obligation, Scribee opens periods from the first day of the current month to the end of the month three months later, each with its bounds (start_date, end_date) and its declaration deadline (due_date). The period in progress is included even when it started before the current month. Periods appear in the list even before any data attaches to them.
  • Opening happens through a daily sweep. The periods of a newly created company do not appear immediately: they arrive on the next sweep, which runs once a day - usually within 24 hours, but that is not a commitment. The sweep processes companies one at a time; one whose opening fails or whose lock is already held is simply skipped, with no retry inside the same sweep, and waits for the next one. A period does appear at once, however, when Scribee's invoicing needs one to attach a document.
  • The cadence follows from the VAT regime. The length of each period and its deadline are calculated from the VAT regime set on the company in Scribee (see the table further below). That regime is set in Scribee, not through the API, and the API does not return it: derive the cadence from each declaration's start_date and end_date bounds.
  • For its e-reporting periods, Scribee takes a regime change into account from the next 1 January. A regime change recorded during the year does not change the periods straight away: Scribee takes it into account from the next 1 January (or from that day if the change is made on 1 January). Only empty periods starting on or after that date are recalculated; those starting earlier keep the cadence they were opened under. Since the opening horizon does not exceed three months, the list does not move until that 1 January enters the horizon.
  • Invoicing feeds the payments declaration. Every payment recorded on a sales invoice whose VAT is due on collection is carried through to the payments declaration of its period, with no extra call, when e-reporting covers the sale: an international B2B sale (buyer identified without a SIREN, or carrying a SIREN but established outside the French VAT territory) or a B2C sale (buyer with no identifier) - and provided the issuing company's VAT regime carries the payment reporting obligation on the payment date. A sale whose buyer carries a SIREN and is established in the French VAT territory is not in it, nor is a sale of goods (unless it is a down-payment invoice, retainer_invoice or self_billed_retainer_invoice: a sale under the margin scheme for second-hand goods, works of art, or collector's items stays excluded, down-payment invoices included), nor a sale wholly under reverse charge, nor a sale whose VAT breakdowns are all in category G or O; of a sale that mixes goods and services, only the services share is declared, a G or O breakdown never is, and amounts are declared in euros. Outside these conditions nothing is created, and the API does not signal it (Record payments, Declare payments).
  • You never create, modify, or delete a declaration. You act on the data attached to it, and you can trigger its transmission (see Transmit a declaration). That is the only call that acts on the declaration itself.
  • Automatic deposit of due periods is off by default. When it is enabled for the company, once your due_date has passed - that is your own deadline for depositing data, not Scribee's for forwarding it to the administration - a closed period that carries data and has never been deposited is transmitted automatically, within the eight hours that follow the end of that window. You then keep the whole of your due_date to complete the period, and the transmission call is there to deposit earlier, or to deposit again after a rejection. Without it, Scribee transmits nothing on its own, even once the due_date has passed: the declaration is deposited only by a call to the transmission endpoint or from the screen. Schedule that call once the period is over and its data complete, no later than the day of your due_date: the platform's deadline for forwarding it to the administration expires eight hours after the end of that day.
  • Automatic deposit is set per workspace, then per company. Scribee enables it on request for a workspace: it then applies to all of its companies. Each company can depart from it in its settings on Scribee, Electronic invoicing tab, by inheriting the workspace setting, enabling it or disabling it, whatever the workspace setting. The API neither reads nor changes this setting, and no declaration says whether it applies.

The state field​

Every declaration carries a state field, read-only: no API call modifies it. Its value is always draft - the period is open and data accumulates in it, from your API calls as well as from Scribee's invoicing. Do not build a conditional branch on this field, and do not sort on it: sort_by=state is accepted but orders nothing.

Every declaration also carries an available_transitions array. That field is deprecated - it is marked deprecated in the OpenAPI reference - and its value is always []: no transition is triggerable on a declaration, neither by you nor by Scribee. It is kept only so that clients already generated against /api/v1 do not break. Do not build anything on it.

The PPF verdict on the deposit​

The state field above is a local marker. What the administration decided about the deposit of your declaration is published by three separate fields, all read-only: deposit_outcome, deposit_outcome_at, and deposit_receptions. They are returned by the declarations list and by the response of its transmission. None of the three is filterable or sortable.

deposit_outcome: the verdict code​

String or null. Once the Portail Public de Facturation (PPF) has ruled, this field carries its verdict as the reform's own code (Dossier de specifications externes FE v3.2, section 3.7.9, Tableau 5):

ValueMeaning
"300"Deposee (filed): the PPF accepted the deposit of the declaration
"301"Rejetee (rejected): the PPF refused the deposit

null means the PPF has not yet ruled on this declaration. It is not an error, not a default, and not a third status: read it as "no answer yet" and read the declaration again later.

deposit_outcome_at: the instant of the verdict​

String or null. This is the instant the PPF stamped that verdict (MDT-78), republished exactly as it sent it, in the YYYY-MM-DDTHH:MM:SS format.

It deliberately carries no time zone designator. The reform declares no time reference for this field: attaching an offset would publish a precision the message never carried. So do not parse it as a UTC instant. It is the only timestamp on the resource in that case; created_at, updated_at, and a reception's received_at are full zoned instants.

This field is null exactly when deposit_outcome is null.

deposit_receptions: rejection motives, grouped by reception​

Always an array, never null. An empty array means no rejection motive is on file, which is the normal case for an accepted declaration as well as for one with no answer yet.

Each entry corresponds to one FFE0624A reception that carried rejection motives for this declaration, oldest first. It carries two fields:

  • received_at: when Scribee received that reception.
  • motives: the motives it carried, in document order. A rejection carries at least one.

Each motive in turn carries:

  • code: the control that failed (MDT-113, section 3.7.10, Tableau 6). Four possible values:

    ValueFailed control
    REJ_SEMANSemantic or format control
    REJ_UNIUniqueness control
    REJ_COHData coherence control
    REJ_PERPeriod control: the transmission date is inconsistent with the declared period
  • anomaly_source: string or null (MDT-114). The PPF's own free text saying where the anomaly is, whereas code says which control failed. Only the code is mandatory on a rejection, so this field is null when the PPF sent no text.

  • notes: the detailed rejection information sent by the PPF, in document order. Each note contains content_code (for example G6.26), contents (all explanatory texts, without truncation) and subject_code (for example /Report/ReportDocument/Issuer/Id). Both codes can be null and contents can be empty. Display these details alongside anomaly_source: the generic reason may only say "Contrôle de cohérence de données", while the note identifies the SIREN issue. An empty array means no notes were recorded. Older receptions may require reprocessing by Scribee to recover their notes.

deposit_outcome is the latest verdict, not the history​

This is the point not to miss, and the reason motives are grouped by reception rather than listed flat on the declaration. deposit_outcome carries the latest known verdict and nothing else. deposit_receptions carries the history of what was held against it. The two never contradict each other: they do not answer the same question.

The sequence for a declaration that is rejected, corrected, then re-deposited:

  1. The PPF rejects the deposit. deposit_outcome is "301", deposit_outcome_at carries the instant of that rejection, and deposit_receptions holds one entry: the reception that carried the motives.
  2. The declaration is corrected and re-deposited, and the PPF accepts it. deposit_outcome becomes "300" and deposit_outcome_at carries the instant of that acceptance. But the entry for the earlier rejection stays in deposit_receptions, with its received_at and its motives unchanged.

At step 2, the declaration looks like this:

{
"id": 287,
"kind": "transactions",
"role": "SE",
"state": "draft",
"start_date": "2025-11-01",
"end_date": "2025-11-30",
"due_date": "2025-12-10",
"available_transitions": [],
"deposit_outcome": "300",
"deposit_outcome_at": "2025-12-18T09:30:00",
"deposit_receptions": [
{
"received_at": "2025-11-03T06:15:00Z",
"motives": [
{
"code": "REJ_PER",
"anomaly_source": "période déclarée hors bornes"
},
{
"code": "REJ_UNI",
"anomaly_source": null
}
]
}
],
"company_id": 7
}

An integration that flattens deposit_receptions into a plain list of motives and shows them as "the reasons this declaration was rejected" will therefore be wrong exactly when the customer has already fixed the problem: it will report a rejection on a filed declaration.

The rule is simple. To know where the declaration stands, read deposit_outcome. To know what was held against it and when, read deposit_receptions, keeping each group of motives attached to its received_at. A non-empty deposit_receptions next to a deposit_outcome of "300" is not an inconsistency: it is the record of a rejection that has since been corrected.

The declaration cadence by VAT regime​

The length of each period and its declaration deadline follow from the declarant company's VAT regime; each declaration carries its own in due_date.

Company VAT regimeTransactions declarationsPayments declarations
Standard regime (monthly)By decade: the 1st to the 10th (due on the 20th of the month), the 11th to the 20th (due on the last day of the month), the 21st to the end of the month (due on the 10th of the following month)Monthly, due on the 10th of the following month
Standard regime (quarterly)Monthly, due on the 10th of the following monthMonthly, due on the 10th of the following month
Simplified regimeMonthly, due on the last day of the following monthMonthly, due on the last day of the following month
VAT franchise (small business)By calendar two-month period (January-February, March-April, ...), due on the last day of the month following the periodBy calendar two-month period, same due date
Not subject to VAT, Not subject to and not liable for VATNo obligation: no declaration is createdNo obligation: no declaration is created

View your declarations​

This call is a read: it creates nothing and can be replayed freely. The read scope is enough.

GET /api/v1/workspaces/{workspace_id}/e_reportings lists the e-reporting declarations of the workspace's companies (your workspace_id).

curl "https://app.scribee.tech/api/v1/workspaces/YOUR_WORKSPACE_ID/e_reportings?sort_by=due_date&sort_order=asc" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response extract: only a few declarations and a few fields are shown (the full response also includes created_at, updated_at, the three PPF verdict fields described above, the two rectification fields, and the two declarant-company fields described below).

{
"data": [
{
"id": 311,
"kind": "transactions",
"role": "SE",
"state": "draft",
"start_date": "2026-06-21",
"end_date": "2026-06-30",
"due_date": "2026-07-10",
"available_transitions": [],
"company_id": 7
},
{
"id": 312,
"kind": "transactions",
"role": "BY",
"state": "draft",
"start_date": "2026-06-21",
"end_date": "2026-06-30",
"due_date": "2026-07-10",
"available_transitions": [],
"company_id": 7
},
{
"id": 322,
"kind": "payments",
"role": "SE",
"state": "draft",
"start_date": "2026-07-01",
"end_date": "2026-07-31",
"due_date": "2026-08-10",
"available_transitions": [],
"company_id": 7
}
],
"meta": {
"current_page": 1,
"per_page": 20,
"total_pages": 2,
"total_count": 28
}
}

The first two rows are the same transactions period in its two role series. The volume climbs fast: a company under the monthly standard regime opens 28 declarations over the horizon - 4 months x 3 decades x 2 roles for transactions, plus 4 payments periods.

The endpoint accepts no filter: no company_id, no kind, no role, no date range. Fetch the list and filter client-side.

The list is paginated (page, per_page - 20 by default, 100 maximum) and sortable (sort_by: start_date, end_date, due_date, kind, state, created_at, or updated_at; sort_order: asc or desc; default sort: start_date descending). When sort values tie - the two declarations of the same transactions period share start_date, end_date, and due_date - rows are broken by id descending. The ordering is therefore total and reproducible: on a dataset unchanged between page requests, walking the pages neither skips nor repeats a declaration. Pagination remains offset-based: a declaration opened or modified mid-walk shifts the rows after it, so on a live dataset, use per_page=100 to reduce the number of pages and deduplicate on id as you receive them.

The include parameter (comma-separated values: company, invoices, transactions, payments) adds the attached data in abridged form, not the full records: company returns id, name, and legal_identifier; invoices, transactions, and payments return a summary of each attached record. This is useful for checking a period's content before its deadline, not for retrieving its detail.

What happens next​

  • Nothing is expected from you for the declarations themselves: subsequent periods open over time and data accumulates in them.
  • What remains your responsibility is the data: operations handled outside Scribee - B2C sales collected in another system, payments tracked elsewhere - attach to the declaration of their period via the API (Declare transactions, Declare payments).
  • Payments recorded on your B2C and international B2B services invoices under VAT on collection are already covered when the issuing company carries the payment reporting obligation on the payment date: they then join the payments declaration of their period with no extra call. Those on your domestic B2B sales need not be attached to it: the invoice's 212 Collected status declares them.

Transmit a declaration​

POST /api/v1/workspaces/{workspace_id}/e_reportings/{id}/submit

This call builds the declaration from its period's data, validates it against the reform's conformance rules, and deposits it. It requires the write scope.

Transmission is asynchronous. A 201 means the deposit is registered and being carried, not that the administration has answered: its verdict arrives later and is read from deposit_outcome (see above). The response body carries the up-to-date declaration and a meta object:

FieldMeaning
transmittedtrue when this call deposited the declaration, or queued it for a grouped deposit; false when it was already in the administration's hands or already queued, and nothing was deposited or queued again
transmission_idThe name of the deposited flux. The administration echoes it back on its transport acknowledgement: it is the reference a deposit is correlated by. It is null whenever the declaration goes through a grouped deposit, before and after that deposit (see below)

With grouped deposit, transmission_id is null. When grouped deposit to the PPF is enabled for your workspace, the declaration is not deposited on its own: it is queued, then deposited together with other declarations in a single flux, within the hour, or sooner when its filing deadline requires it. Exception: an initial declaration submitted too close to its filing deadline to wait for a grouped deposit is deposited on its own, as without grouped deposit, and transmission_id then carries its flux name. Otherwise, the call replies 201 with transmitted: true and transmission_id: null; replaying it while it waits replies 200 with transmitted: false and transmission_id: null. This null is final: the declaration has no flux name of its own, neither before nor after the grouped deposit. Track its verdict on deposit_outcome, deposit_outcome_at and deposit_receptions, never on transmission_id.

Replaying the call is safe. A declaration already deposited and still unanswered replies 200 with transmitted: false and deposits nothing: no second flux is created, however many times you call. Only the first call replies 201.

A 409 means another process is depositing this declaration at the same moment - your own automation, Scribee's automatic deposit when it is enabled, or the screen. Nothing was transmitted by your call and the body carries code: "submission_contested"; retry shortly. It is not a verdict about your data. The same 409 answers a call that transmits a rectificative (see below) when a payment or an invoice of the period is being modified at the same instant: nothing is transmitted, the period still owes its rectificative, and the same call is retried shortly. The same 409 also answers any call, initial or rectificative, that finds the declaration itself held by another operation at the same moment, such as an import or a payment being recorded: nothing is transmitted, and the same call is retried shortly. Finally, the same 409 answers the transmission of the declarant company's declaration while a declaration it carries, that of another company with the same SIREN, still has a deposit awaiting its transport or the administration's answer (see below): nothing is transmitted, and the call is retried once that verdict is received.

An accepted declaration is closed. When deposit_outcome is "300", the period's data can no longer be edited. A payment of that period recorded, corrected or deleted on an invoice after the acceptance, or while the verdict that pronounced it was awaited, is not lost: the change is set aside and the period owes a rectificative transmission (TT-4 = RE) (Declare payments). Calling this endpoint again on a declaration that owes a rectification transmits it, when the rectificative transmission is activated for your workspace (see below): the declaration is retransmitted in full, set-aside changes included, and replaces everything the administration held for the period under that declaration. A foreign-currency payment whose date still has no published rate stays on hold and is not in it (Declare payments). The response is 201 with transmitted: true; replaying the call while the rectificative awaits its answer replies 200 with transmitted: false, as for any deposit. In every other case - the period owes no rectification, or the rectificative transmission is not activated for your workspace - the call is refused with 422 and nothing is transmitted.

The rectificative transmission is activated per workspace. It is not activated by default: Scribee activates it, on request, for each workspace concerned. A rectificative leaves on a call to this endpoint, from the screen, or by automatic deposit (see above): when automatic deposit is enabled for the declarant company (see below) and the rectificative transmission is activated for your workspace, a declaration that owes a rectification is transmitted like a first deposit, once the period and your due_date have passed. Otherwise, Scribee does not transmit it on its own.

An owed rectification is read on the declaration. Every declaration, in the declarations list as in the response of this endpoint, carries two read-only fields, always present:

FieldMeaning
rectification_owedtrue when the declaration owes a rectificative transmission (TT-4 = RE) and the rectificative transmission is activated for your workspace. false when no rectification is owed, or when the rectificative transmission is not activated for your workspace: false never means that the administration holds up-to-date data
rectification_owed_atThe instant, with time zone, at which Scribee recorded that the rectification became owed. It is not a deadline. It is null exactly when rectification_owed is false

It is an obligation, not a status. It arises when data lands in a period the administration has already accepted (deposit_outcome of "300"). It stays owed while the rectificative awaits its verdict, and after that rectificative is rejected ("301"); only a "300" on a rectificative clears it. Read it together with deposit_outcome and transmitted: next to a deposit_outcome of "300", rectification_owed at true does not say whether the rectificative has already left; transmitted does (see above). To transmit an owed rectification, call this endpoint again, as described above.

A rectificative's verdict is read like any deposit's. A 300 closes the period again; a change that arrived while it awaited its answer makes the period owe a new rectification. A 301 makes the period's data editable: correct it, then call this endpoint again - the new deposit is a rectificative again. In the meantime, deposit_outcome is "301", but the administration still holds the declaration it accepted earlier.

A rejected declaration is corrected, then retransmitted. When deposit_outcome is "301", the period's data becomes editable again: correct what the rejection motives point at (deposit_receptions), then call this endpoint again. Outside a rectification (see above), the new deposit is an initial transmission - nothing had been accepted.

While a deposit awaits its answer, the period is closed to edits. Adding, modifying, or deleting a transaction, an invoice, or a collection is refused until the administration has answered: what was transmitted and what Scribee holds must not diverge with no verdict to reconcile them.

A 422 carries the reason in details.base, and the code field separates two situations. With code: "validation_failed", it is a verdict about the declaration: the period carries no data to declare, a party has no identifier in an accepted scheme, a conformance rule is violated, or the administration has already accepted the declaration and no rectificative transmission can leave (see above). Correct what the reason points at: replaying the call unchanged gives the same result.

No transmission without a mandate authorising e-reporting on the day itself. Every transmission - the first declaration, those of the following periods, an initial declaration corrected after a rejection, a rectificative - requires the declaration's company to hold, on the day of the transmission, a mandate that authorises e-reporting: signed (signature_status at signed), Active and in effect that day, covering the e_reporting scope, and either a formal agreement designating the Approved Platform or a delegation mandate (Electronic invoicing mandates). There is no grace period: a mandate that ended the day before authorises nothing, even for a period it covered. Otherwise the call is refused with 422 and code: "validation_failed", and nothing is transmitted:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Aucun mandat en vigueur aujourd'hui n'autorise la transmission de l'e-reporting de cette société. Il faut un accord formel désignant la Plateforme Agréée, ou une délégation couvrant l'e-reporting, signé et en vigueur à la date de transmission : faites signer ou renouveler ce mandat, puis transmettez de nouveau. Rien n'a été transmis."]
}
}

Have the mandate signed, approved or renewed, then call this endpoint again. The same check applies to automatic deposit and to transmission from the screen: without such a mandate, nothing is transmitted.

A company registered abroad declares only under the SIREN it holds. E-reporting designates the declarant by its SIREN (Annexe 7, rule G6.26). A company whose legal_registering_country is FR or blank carries one; a company registered in another country carries one only when its legal_identifier is one: exactly 9 digits, with no space, whose check key (Luhn algorithm) is valid, 000000000 excepted (Companies and establishments). It then declares under that SIREN, like a company registered in France. Otherwise, the transmission of its declaration is refused with 422 and code: "validation_failed", and nothing is transmitted: the reason, in details.base, names the company and its country. Its registration number is never declared as a SIREN, whatever its digits: 14 digits are not truncated to their first 9.

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["L'entreprise déclarante Acme GmbH est immatriculée dans le pays DE et son identifiant légal n'est pas un SIREN français (9 chiffres dont la clé de contrôle est valide), alors que l'e-reporting désigne le déclarant par son SIREN (Annexe 7, règle G6.26). La déclaration a été refusée plutôt que de déclarer un numéro d'immatriculation étranger comme un SIREN : si l'entreprise détient un SIREN, saisissez-le comme identifiant légal."]
}
}

Characters XML forbids are removed from the transmitted declaration. The control characters U+0000 to U+001F, except tab, line feed and carriage return, as well as U+FFFE and U+FFFF, are not written into the deposited file; your stored data is not modified. A field whose text consists only of such characters would be written empty: the call is then refused with 422 and code: "validation_failed", nothing is transmitted, and the reason names the XML elements in question.

With code: "schematron_engine_unavailable", nothing was judged. The conformance engine could not run: this is not a verdict about your data, and nothing was transmitted. Retry the same call, with the declaration unchanged, once the engine is back.

A declaration deposited on its own cannot weigh 100 MB or more. When the declaration is deposited on its own, rather than with others in a grouped deposit (see above), a file of 100 MB (100000000 bytes) or more is refused before any deposit: the administration would declare the whole flux inadmissible. The call is refused with a 422 carrying code: "validation_failed" and nothing is transmitted:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["La déclaration pèse 100000000 octets ; le PPF refuse tout fichier de 100 Mo ou plus (taille maximale admise : 99999999 octets, DSE v3.2 note 67) et déclarerait tout le flux irrecevable (IRR_TAILLE_F). Rien n'a été transmis."]
}
}

One declaration per SIREN. The administration knows the declarant by its SIREN alone and expects one declaration per SIREN for a given period, kind and role. When several companies of your workspace carry the same SIREN - the first 9 characters of their legal_identifier for a company whose legal_registering_country is FR or blank, its whole legal_identifier for a company registered in another country that holds a SIREN (see above) -, only one of them declares the period: its declaration carries the transactions, invoices and payments each of these companies recorded in its own declaration of the same period, kind and role. Each company keeps its records in its declaration, where the API returns them; they are brought together only in the transmitted file, where the transactions of the same day, currency and category_code form a single aggregate, whichever company recorded them (Declare transactions).

Which company declares the period. For a given period, kind and role, the declarant company is, in this order:

  1. the company one of whose declarations already holds the period; when several hold it, the one whose declaration was deposited first (see below);
  2. failing that, the company your workspace designated for this SIREN (see below);
  3. failing that, the only company that has data for the period. When several have data and none is designated, none can declare the SIREN alone: the transmission of each of them is refused until your workspace designates the declarant company.

A declaration holds its period from its deposit on, whether it awaits its verdict or has been accepted ("300"). A declaration whose only answer is a rejection ("301") does not hold it, unless a new deposit awaits its verdict or that rejection answers a rectificative.

Each declaration says who declares. Each declaration, in the list of declarations as in the response of the transmission endpoint, carries two read-only fields, always present:

FieldMeaning
e_reporting_declarantThe status of the declaration's company, with the values of the company's e_reporting_declarant field (Companies and establishments): designated, another_company_designated, not_designated, sole_company, or null when the first 9 characters of its legal_identifier are not a SIREN, or its legal_registering_country names a country other than France and its legal_identifier is not a SIREN with a valid check key
declared_by_company_idThe identifier of the company that declares the declaration's period, in the order above. It is that of the declaration's company when no other company of your workspace carries its SIREN, or when the first 9 characters of its legal_identifier are not a SIREN, or when it is registered in a country other than France without its legal_identifier being a SIREN with a valid check key, and also, without a designation, when no company has data for the period yet. null when no company can declare the period alone: several have data for the period and none is designated

declared_by_company_id names the company that declares the period, which is not always the designated company: a period a company already holds stays with that company, even when another company has been designated since. e_reporting_declarant only states the situation of the declaration's company with regard to the current designation. Transmit the declaration of the same period of the company that declared_by_company_id names.

The declaration of a company other than the declarant company is not transmitted. Its transmission call is refused with a 422 carrying code: "validation_failed" and nothing is transmitted: transmit the declarant company's declaration of the same period, which carries its data. When another company of your workspace with the same SIREN already holds a period that overlaps the declaration's, or when, without a designation, it is the only one with data for the period, the message does not name the other company:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Une autre société portant le même SIREN déclare cette période au PPF pour ce type de données et ce rôle : elle détient la période, ou elle est la seule à porter des opérations pour celle-ci. Le PPF identifie le déclarant par son seul SIREN : sa déclaration porte donc les opérations de toutes les sociétés du SIREN qui n'ont pas déclaré la période elles-mêmes. Transmettez-la depuis cette société. Rien n'a été transmis."]
}
}

When your workspace designated another company carrying the same SIREN, and the declaration's company does not already hold the period:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Votre espace a désigné une autre société portant le même SIREN pour transmettre l'e-reporting. Sa déclaration de la période porte les opérations de toutes les sociétés du SIREN, celles de la présente société comprises : transmettez-la depuis la société désignée. La présente société peut toujours compléter ou rectifier les périodes qu'elle a déjà déclarées. Rien n'a été transmis."]
}
}

When several companies carrying the same SIREN have data for the period and none is designated, the transmission of each of them is refused; designate the declarant company, then transmit its declaration:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Plusieurs sociétés de cet espace portant le même SIREN ont des opérations pour cette période, ce type de données et ce rôle, et aucune n'est désignée pour déclarer l'e-reporting du SIREN. Le PPF attend une seule déclaration par SIREN qui les porte toutes : désignez la société déclarante dans les paramètres de la société, onglet Facturation électronique, section Société déclarante pour l'e-reporting, puis transmettez depuis celle-ci. Rien n'a été transmis."]
}
}

The companies brought together declare at the same rhythm and under the same VAT regime. The declarant company's transmission is refused with a 422 carrying code: "validation_failed", and nothing is transmitted, when another company of your workspace carrying this SIREN is under another VAT regime on the first day of the period, or has a declaration of the same kind and role that overlaps the period without having exactly its bounds, or that has exactly its bounds but another recorded periodicity. The regime is checked first: when both differences exist, only the regime refusal is returned, and the period refusal appears only once the regimes are aligned. The message names the company at issue and the SIREN: your application, authorized on the whole workspace, reads every one of its companies, so the name is always given (the Scribee interface hides it from a member limited to some companies). For a regime difference, the VAT regimes of the two companies must be aligned in Scribee for the period concerned. For its e-reporting periods, Scribee takes a regime change made on 1 January into account from that day, and one made on any other day from the next 1 January, so for a period starting before the date the change is taken into account, contact support. Then transmit again:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Filiale Nord partage le SIREN 123456789 avec la présente société, qui déclare l'e-reporting du SIREN, mais relève d'un autre régime de TVA sur cette période. Une seule déclaration par SIREN et par période porte les opérations de toutes les sociétés du SIREN, qui forment un seul assujetti sous un seul régime. Les régimes de TVA de Filiale Nord et de la présente société doivent être alignés pour la période concernée. Pour ses périodes d'e-reporting, Scribee prend en compte un changement de régime fait le 1er janvier dès ce jour, et un changement fait un autre jour à partir du 1er janvier suivant : pour une période qui commence avant la date à laquelle le changement est pris en compte, contactez donc le support. Rien n'a été transmis."]
}
}

For a period difference, the message states that the company at issue is under the same VAT regime for this period, but that its recorded declarations do not cover this exact period (another periodicity or other bounds). The regimes already match, so saving them again changes nothing: contact support. Nothing is transmitted while the difference remains.

A period already deposited by two companies of your workspace with the same SIREN. Such a period was deposited by each of them before the rule of a single declaration per SIREN. Its declarant company is the one whose declaration was deposited first, and declared_by_company_id names it. A rectificative annuls and replaces all the data the administration holds for the SIREN, the period, the kind and the role: the declarant company's rectificative therefore restates the records of the other company's declaration, like those of any sister company, and replaces both deposited declarations. Its transmission is accepted when its declaration owes a rectification; a rectification the other company's declaration owed is taken over by the declarant company's declaration.

The other company no longer transmits for the period: the transmission of its declaration receives the first message of The declaration of a company other than the declarant company is not transmitted. A write in its declaration follows the sister-company rule described below: refused with a 422 while the declarant company's declaration awaits the administration's answer, it is then accepted and puts that declaration in rectification owed when rectificative transmission is enabled for your workspace. Once the declarant company's rectificative is deposited, the other company's declaration no longer carries rectification_owed at true, unless it keeps a payment put on hold (Declare payments), which the next rectificative will carry.

A deposit of the other company still without a verdict holds back the declarant company's transmission. The other company may have deposited for the period a flux that, when its declaration is taken over, still awaits its transport or the administration's answer. As long as that is the case, the transmission of the declarant company's declaration answers 409 with code: "submission_contested", and nothing is transmitted: deposited now, it could be overtaken by that flux, which would replace the combined data with the other company's earlier content. Retry the call once deposit_outcome of the other company's declaration carries the verdict on that flux; Scribee's automatic deposit, when it is enabled, retries on its own:

{
"error": "conflict",
"code": "submission_contested",
"message": "Une autre société de même SIREN, dont cette déclaration porte désormais la déclaration de la période, a encore une transmission au PPF en attente de réponse. Transmise maintenant, cette déclaration pourrait être devancée par elle et remplacée par son contenu antérieur : elle attend cette réponse et sera retentée. Rien n'a été transmis."
}

The designation chooses the declarant company. Your workspace can designate, among its companies carrying the same SIREN, the one that declares the periods of this SIREN. The designation is chosen in the company's settings on Scribee, Electronic invoicing tab, by a member whose access covers the whole workspace; the API neither sets nor removes it, and each company's e_reporting_declarant field returns it (Companies and establishments). It is what lifts the refusal of companies that all have data for the same period.

The designation moves no period already held. A company keeps the periods it already holds and can still complete or rectify them; a period held by another company, designated or not, stays with that company, and another company's transmission on it receives the refusal described above, even when the designated company is the one transmitting. A designation counts only while the designated company carries this SIREN; otherwise, the declarant company is determined as without a designation.

Data recorded on a sister company after the declarant company's deposit. The records of a sister company's declaration are transmitted by the declarant company's declaration of the same period. Creating, updating or deleting a transaction, an invoice or a payment in the sister company's declaration is therefore refused with a 422, and nothing is changed, while the declarant company's declaration awaits the administration's answer. Once that declaration is accepted ("300"), the write is accepted when rectificative transmission is enabled for your workspace: the declarant company's declaration then owes a rectification (rectification_owed at true), and its rectificative restates the data of every company of the SIREN for the period. Without that enablement, the write is refused with a 422. The messages of these refusals are listed under Declare transactions and Declare payments.

Automatic deposit transmits the declarant company's declaration. With automatic deposit (see above), a sister company's declaration is not deposited on its own: when its overdue period would be transmitted, Scribee transmits instead the declarant company's declaration of the same period, opening it when it does not exist yet. That declaration is transmitted only when automatic deposit is enabled for the declarant company, and while it still owes a first deposit or a rectificative; otherwise nothing is transmitted automatically for the period, and the declarant company's declaration is transmitted through the call above. When several companies have data for the period and none is designated, nothing is transmitted: designate the declarant company.

Companies of your workspace with the same SIREN belong to the same assujetti unique. The setting is made on each company's screen, one company at a time; until these companies all state the same assujetti unique (or all none), transmitting for any of them is refused with a 422 carrying code: "validation_failed" and nothing is transmitted:

{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Une autre société de votre espace portant le même SIREN n'appartient pas au même assujetti unique. Des sociétés partageant un SIREN forment une seule entreprise : alignez le réglage d'assujetti unique de chacune d'elles avant de transmettre. Rien n'a été transmis."]
}
}

Two companies of your workspace with the same SIREN transmitting at the same instant a declaration of the same kind and the same role may receive the 409 described above, with code: "submission_contested": nothing is transmitted by that call; replay it shortly.

Errors and edge cases​

401 Unauthorized​

Missing, expired, or invalid token. Empty body; request a new token at /oauth/token (Authentication).

403 Forbidden: workspace access​

Your OAuth client is not attached to this workspace:

{
"error": "forbidden",
"message": "L'application n'a pas accès à cet espace de travail"
}

Check the workspace_id against GET /api/v1/workspaces; if it is correct, ask your Scribee contact to attach it.

403 Forbidden: IP address refused​

The workspace's IPv4 allowlist rejects your address (Your first call). The message tells this case apart from the previous one:

{
"error": "forbidden",
"message": "Cette adresse IP n'est pas autorisée pour cet espace de travail"
}

404 Not Found​

No workspace exists with this identifier:

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

400 Bad Request: page beyond the last​

Requesting a page beyond the last page of a non-empty collection returns:

{
"error": "bad_request",
"message": "Le numéro de page dépasse le nombre de pages disponibles"
}

Bound your requests with meta.total_pages.

Empty list​

An empty data array is not an error. Three possible causes: the workspace contains no company; all its companies are outside the scope of the obligation (Not subject to VAT or Not subject to and not liable for VAT regime); or the daily sweep has not yet run for a recently created company. In that last case the periods appear on their own, usually on the next sweep; if a company is skipped by a sweep (a failure, or a lock already held), the wait can span one more sweep.