Skip to main content

The invoice lifecycle

E-invoicing reform does not stop at transmitting invoices: it standardizes how they are tracked. Every invoice, sales as well as purchases, moves through a status framework defined by the AIFE (Agence pour l'informatique financière de l'État), from deposit to collection. This page is the lifecycle reference for the whole guide: the observable statuses, the transitions your system can trigger depending on the invoice direction, and the reason codes required for a dispute or a refusal. Issue a sales invoice and Receive supplier invoices build on it without repeating it.

What Scribee does for you​

  • History: every status change is recorded as a lifecycle event, with its timestamp, its code, and its reason, viewable via include=lifecycle_events in chronological order.
  • Automatic collection: recording a payment that settles the invoice triggers collection (212) without a call on your part. Modifying or deleting it does not move the invoice backward: it stays 212 Collected, Scribee writes a corrective 212, and remaining_amount shows the sum owed again - on a negative-amount invoice, it is refund_remaining_amount that goes back up (see Record payments). On a purchase invoice, the payment that settles it moves it to collected without writing a 212 (Pay a purchase invoice).
  • Computed transitions: the lifecycle_available_transitions field lists, on every invoice, the events your next call can trigger from the current state.
  • VAT in euros at deposit: on an invoice denominated in a currency other than EUR, the deposit (deposit) sets the VAT accounting currency to EUR itself and converts the VAT total into it, at the reference rate for the issue date. You only have currency_code to send; with no rate published for that date, the deposit is refused and the invoice stays a draft (see Issue a sales invoice). make_available, the purchase-invoice transition, is not concerned.

Your transition calls and the payments you record are the two levers you hold, but they are not the only sources of writes. Scribee also applies the statuses that reach it through inbound regulatory flows from another platform - 202 Received, 213 Rejected, and 220 Cancelled among them - and records them in the history like any other transition. Depositing a corrective invoice you issue likewise places a 220 Cancelled on the invoice it corrects, when Scribee finds it among your invoices, unless the corrective invoice is already refused (210) or rejected (213) when Scribee processes its deposit; only that of a self-billed corrective invoice is sent, to the seller's platform (Issue a self-billed invoice). An invoice can therefore change state without you calling anything.

On a sales invoice, your customer's statuses also arrive this way: 203 Available, 204 Taken in charge, 205 Approved, 206 Partially approved, 207 Disputed, 208 Suspended, 210 Refused, and 211 Payment sent. Statuses 202 and 203 are optional and your customer's platform may not send them: Scribee therefore applies each of these statuses from 200 Deposited or 202 Received, without waiting for the skipped steps. An earlier status that arrives late - a 202 after a 204, for example - is recorded in the history with applied set to false and never moves the invoice backward. Received statuses previously recorded without effect may also be re-applied: each status that then transitions the invoice is announced a second time, with applied set to true (Webhooks).

A duplicate 213 for an invoice whose receipt was already acknowledged does not change its state. On an invoice you issued - a sales invoice, or a self-billed invoice issued in the seller's name (Issue a self-billed invoice) -, a 213 Rejected whose motives are all REJ_UNI (uniqueness control) or DOUBLON (duplicate invoice) - a 213 that also states another motive is handled like any other 213 - and that arrives over Peppol or Chorus Pro after a 202 Received, a 203 Available or a 204 Taken in charge has already arrived for this invoice over that same channel, whichever platform sent it, whose rejected is false and whose occurred_at (the status date-time, MDT-78) falls no later than the second of the 213's, is recorded in the history with applied set to false, rejected set to false and terminal set to false. Scribee does not apply it because a receipt of the invoice was already acknowledged over that channel: the 213 most often targets a copy sent twice. That acknowledgement alone does not prove that the platform sending the 213 holds the original invoice. lifecycle_state does not change. When in doubt, check with the recipient that the rejection targets the copy only; if it targets the invoice, handle it as a rejection, with its accounting cancellation. The event is announced like the others by invoice.lifecycle_event.created, with applied set to false, and Scribee opens a case on its side, not exposed by the API. Only the statuses of the current send count, that is those recorded in the history after the latest 213 whose applied is true or that a new send of the invoice under the same number answered and with an occurred_at in a later second than its own: after a 202, an applied 213 (with motive REJ_SEMAN for instance) and a new send of the invoice under the same number, a 213 with motive REJ_UNI or DOUBLON received before any new 202, 203 or 204 moves the invoice to rejected. A 202, 203 or 204 whose occurred_at is later than the 213's, even if recorded before it, does not count: it does not show that the platform held the invoice when it pronounced the rejection. Without such an earlier status over the same channel for the current send, a 213 with motive REJ_UNI or DOUBLON is handled like any other 213.

The statuses​

The lifecycle_state field carries the API value, lifecycle_status_code the corresponding AIFE code.

Codelifecycle_stateLabelMeaning
000draftDraftDocument under construction: editable via PATCH. For an invoice created directly in Scribee, not deletable as soon as it carries a final number, that is, a number that is present and does not start with DRAFT-; an invoice imported from a file is exempt from this condition (see Reverting to draft).
200depositedDepositedThe sales invoice is validated and enters the lifecycle. A self-billed invoice received over the e-invoicing network (Peppol or PPF), recorded as a sale, does not go through it: it enters directly at 203.
203availableAvailableThe purchase invoice, or the self-billed invoice received over the e-invoicing network (Peppol or PPF), has entered the lifecycle and is awaiting your processing.
204taken_in_chargeTaken in chargeYou have started processing the purchase invoice.
205approvedApprovedYou accept the purchase invoice.
206approved_partiallyPartially approvedYou accept only part of the purchase invoice, supported by a standardized reason.
207disputedDisputedYou contest all or part of the purchase invoice, supported by a standardized reason.
208suspendedSuspendedYou suspend processing of the purchase invoice pending further information, supported by a standardized reason and a comment; processing then resumes through one of the other decisions.
209completedCompletedOn a self-billed invoice only: the invoice's issuer, the buyer, answers a suspension (208) by supplying the expected additional information; the seller's decisions are open again.
210refusedRefusedYou refuse the purchase invoice, supported by a standardized reason; the refusal is final, except for a reopening from the interface of a refusal that stayed in Scribee (see Reopening a refused purchase invoice).
211payment_sentPayment sentThe payment is issued, awaiting collection.
212collectedCollectedThe payment is received; the invoice is settled.

The AIFE framework has other codes (202 Received, 213 Rejected, 220 Cancelled among them). No call to this API produces them directly, but the processing of inbound regulatory flows applies them and records them in the history, and depositing a corrective invoice places a 220 on the invoice it corrects (see above). One more deviation is worth knowing: modifying or deleting a payment that had settled the invoice leaves it in 212 Collected although it is no longer settled; remaining_amount is what tells you so, or refund_remaining_amount on a negative-amount invoice whose refund was deleted. Treat lifecycle_state as an open value - keep a default branch for a code you do not know rather than assuming the list is closed, and do not assume the state is monotonic.

Another platform may also send you the statuses 214 Endorsed, 224 Direct payment request, 225 Factored, 227 Payee account change, and 228 Unfactored. They do not act on the lifecycle: they appear in the history with applied set to false, their state field reads endorsed, direct_payment_requested, factored, payee_account_changed, and unfactored respectively, and they never change lifecycle_state. Status 226 is never recorded. No call to this API produces these statuses. A 225, 227 or 228 does, however, get a payment batch's handover refused when one of its lines settles the invoice without paying the payee it designates (A line that does not pay the current payee).

Status 209 Completed exists only on a self-billed invoice (see Issue a self-billed invoice). On any other invoice, the complete event is refused with 422, and a 209 received from another platform is recorded in the history with applied set to false, without changing lifecycle_state. On a self-billed invoice received over the e-invoicing network (Peppol or PPF), booked as a sale, the buyer's 209 appears in lifecycle_events: it moves the invoice to completed when it is at 208 Suspended, and otherwise stays with applied set to false.

The transition graph​

The diagram shows the typical path; the table that follows lists each transition individually.

Intermediate statuses are optional: collect (212) accepts any active status after deposit as its starting point. The contract, transition by transition:

EventFromToTriggerreason_code
deposit000200You, sales invoice-
make_available000 or 202203You, purchase invoice; automatic for a self-billed invoice received over the e-invoicing network (Peppol or PPF)-
take_in_charge203, 208, or 209204You, purchase invoice, or self-billed invoice received over the e-invoicing network (Peppol) on which you are the seller-
approve203, 204, 207, 208, or 209205You, purchase invoice, or self-billed invoice received over the e-invoicing network (Peppol) on which you are the seller; on a purchase invoice whose approval is imposed on the account or on which an approval circuit is running, the Scribee application only (purchase_approval_app_only)-
approve_partially203, 204, 207, 208, or 209206You, purchase invoice, or self-billed invoice received over the e-invoicing network (Peppol) on which you are the sellerrequired
dispute203, 204, 208, or 209207You, purchase invoice, or self-billed invoice received over the e-invoicing network (Peppol) on which you are the sellerrequired
suspend203, 204, 207, or 209208You, purchase invoice, or self-billed invoice received over the e-invoicing network (Peppol) on which you are the sellerrequired, with reason
complete208209You, self-billed purchase invoice you issued- (optional reason)
refuse203, 204, 207, 208, or 209210You, purchase invoice, or self-billed invoice received over the e-invoicing network (Peppol or PPF) on which you are the sellerrequired, with reason
send_payment203, 204, 205, or 206211You, purchase invoice-
collect200, 202, 203, 204, 205, 206, 207, 208, 209, or 211212You, sales invoice; automatic when a payment settles the invoice-
revert_to_draft200, or 203 for a purchase000You, under conditions (see below)-

Payment sent (211) requires neither a prior taking in charge nor a prior approval. On an account where approval of purchase invoices is imposed, or while an approval circuit is running on the invoice, however, send_payment only leaves 205 or 206: the invoice must be approved, at least partially, before its payment is declared. A self-billed purchase invoice you issued is not affected.

The purchase events on this page have one exception: on a purchase invoice whose approval is imposed on the account or on which an approval circuit is running, approve is refused to the API (see Errors and edge cases). If the company uses configured approval circuits, approve_partially is refused there too, with 422 and code: operation_failed.

On a sales invoice, make_available, take_in_charge, approve, approve_partially, dispute, suspend, refuse, and send_payment also leave 200 and 202: these are your customer's statuses, and those transitions come only from inbound flows (see What Scribee does for you).

Who triggers what​

The events your system can trigger depend on the invoice direction (direction):

  • Sales (direction: "sales"): deposit, collect, revert_to_draft. On a self-billed invoice received over the e-invoicing network (Peppol or PPF), which enters at 203, you are its addressee: refuse and collect are open, and take_in_charge, approve, approve_partially, dispute, and suspend only when it was received over Peppol; deposit starts from 000, and revert_to_draft from 203 is reserved for purchase invoices. When the company's subscribed offer does not include sales invoicing, such an invoice stays readable but only approve (205), dispute (207), refuse (210), and collect (212) stay open: take_in_charge (204), approve_partially (206), and suspend (208) answer 422 (see 422: the offer does not include sales invoicing).
  • Purchases (direction: "purchases"): make_available, take_in_charge, approve, approve_partially, suspend, dispute, refuse, send_payment, revert_to_draft. The Collected status (212) is the seller's, never the buyer's: a purchase invoice becomes collected when the payments you record settle it - yours to the supplier, or the refund it pays you on a negative-amount invoice or a purchase credit note -, without writing a 212 event or sending anything (Pay a purchase invoice). collect is refused on it, see below.
  • complete is open only on a self-billed purchase invoice you issued, at 208 Suspended, when self-billing is enabled for the workspace (see Issue a self-billed invoice). On an invoice that is not self-billed, it returns 422 with the message Le statut Complétée (209) n'est disponible que sur une facture autofacturée : il répond au statut Suspendue (208) du vendeur sur une facture que vous avez émise en son nom., whatever its state. On another self-billed invoice, it follows the common rule described below.
  • uncollect is not an event of this API: sending it returns 422 with the unknown-event message. A 212 Collected invoice never moves back to 211: a deleted or reduced payment leaves it collected and writes a corrective 212 (Record payments).
  • receive, reject, and cancel exist in the state machine, but no API call can trigger them, whatever the invoice direction. You get 422: La transition receive ne peut pas être déclenchée manuellement. when the current state would permit the transition, and Impossible de passer de ... otherwise.

An event of the wrong direction follows the same rule. approve on a deposited sales invoice returns La transition approve ne peut pas être déclenchée manuellement., because the state permits the transition to your customer's status, never to your call. On a deposited purchase invoice, by contrast, approve returns Impossible de passer de deposited à approve. L'état actuel ne permet pas cette transition.: the state already forbids the transition before the direction rule is evaluated.

collect on a purchase invoice has its own refusal, whatever the invoice's state: 422 with code: operation_failed and the message Le statut Encaissée (212) revient au vendeur, jamais à l'acheteur : sur une facture d'achat, enregistrez plutôt le paiement, qui solde la facture sans 212. A self-billed purchase invoice you issued has its own (Issue a self-billed invoice).

You do not need to recompute these rules: lifecycle_available_transitions lists exactly the events your next call can trigger from the current state, guards and direction rules included. Two exceptions: collect remains accepted on a collected invoice, which does not list it (see Several collections on the same invoice); conversely, on a purchase invoice whose approval is imposed on the account or on which an approval circuit is running, approve stays listed although the API refuses it, as does approve_partially if the company uses configured approval circuits (see above).

On an invoice of an archived company (archived_at set), only take_in_charge (204, the step an approval circuit needs before approve), approve (205), dispute (207), refuse (210) and collect (212) stay open: they are the answers the company still owes on an invoice it holds. Any other event, an unknown event included, answers 403 forbidden, as do PATCH and DELETE /api/v1/invoices/{id}; the open events remain subject to the rules above (Companies and establishments). The same events, except take_in_charge, are the only ones open on a sales invoice (direction: "sales") whose company has not subscribed an offer that includes sales invoicing, except that any other event answers 422 there (see 422: the offer does not include sales invoicing). In both cases, lifecycle_available_transitions lists only those of these events that the current state allows.

lifecycle_state cannot be changed with PATCH​

The lifecycle_state field is read-only on PATCH /api/v1/invoices/{id}. Sending it with a value fails the whole call with 422 and the code invalid_argument: no change is applied, not even to the other fields of the payload.

{
"error": "unprocessable_entity",
"code": "invalid_argument",
"message": "lifecycle_state ne peut pas être modifié sur ce point d'entrée. Utilisez PATCH /api/v1/invoices/{id}/transition pour faire évoluer la facture dans son cycle de vie."
}

The refusal is about the presence of a value: lifecycle_state: null or an empty string passes through the endpoint with no error and no effect. To move the invoice forward, drop lifecycle_state from your PATCH payload and call the transition endpoint, the only one that carries reason_code and reason.

The one place lifecycle_state is still accepted as a write is creation: POST /api/v1/workspaces/{workspace_id}/invoices can create and deposit the invoice in the same call (see Issue a sales invoice).

The reason codes​

Four statuses require a standardized reason (AFNOR XP Z12-012 standard): partial approval (206), dispute (207), suspension (208), and refusal (210). Every other event, deposit (200) included, accepts no code at all: attaching a reason_code returns 422.

The NON_TRANSMISE (Not transmitted) code is nonetheless readable on an invoice in status 200: Scribee sets it itself, when the buyer is registered (SIREN or SIRET), the national directory publishes no active electronic invoicing address for it but does publish an address still attached to the PPF's default platform, the invoice is addressed to one of those addresses, and the copy of the directory Scribee keeps is complete and up to date. Failing either of these last two conditions, the deposit is refused with 422 rather than carrying this reason (The PPF verdict on the deposit). It is not set when the buyer's SIREN is absent from the national directory, or when its legal unit is closed there or carries an ending effect there: the sale is then counted in the B2C aggregate instead of a flux 1 (A buyer absent from the national directory).

This reason can also be set after the fact, when waiting for the recipient platform's acknowledgement is enabled for your workspace. This feature is not enabled by default: Scribee enables it workspace by workspace. For an invoice issued from Scribee whose flow 1 is due, the flow 1 and the 200 status then go to the PPF only once the recipient platform - the buyer's, or the seller's in self-billing - has acknowledged the invoice copy: delivery of the copy confirmed, or a status issued by that platform on the invoice. During this wait, deposit_outcome stays null. With no acknowledgement after 20 hours, or as soon as the copy is refused for good or the recipient is no longer addressable, the wait ends and Scribee transmits the flow 1 and the 200 to the PPF. For a buyer the directory does not yet allow a conclusion on, the wait always runs the full 20 hours. The end of the wait and the reason answer two distinct conditions: Scribee then reads the buyer in the directory again, and sets NON_TRANSMISE on the 200 event already recorded, whose reason_code was null, only if the directory still publishes no active address for it, as at deposit. A buyer that still publishes an active address keeps a 200 whose reason_code is null, even when the copy was refused on the address retained at deposit. A self-billed invoice never receives this reason. The event keeps its id: no new event is recorded and no invoice.lifecycle_event.created delivery is emitted for this change. The 200 delivery therefore carries reason_code as null; read lifecycle_events again to see the reason. An acknowledgement that arrives later does not remove the reason. On a resend after a rejection, the reason is not changed.

Two codes additionally require free text in reason: AUTRE and REF_ERR. For every code, reason remains accepted as a supplement, within a limit of 250 characters, and is never accepted without reason_code.

The Completed status (209) is the exception to this last rule: it accepts no reason_code, and its optional reason carries the expected additional information, within the same limit of 250 characters.

A refusal (210) always requires a reason, whichever reason_code you pick. Rule G7.25 asks for a comment motivating the refusal in the MDT-126 tag, and the MDT-113 reason code does not stand in for it: the code says which check is at stake, the text says why this particular invoice is refused. A refuse without reason returns 422 with code: operation_failed, and the invoice does not move. A dispute (207) is not affected: it is motivated by its reason_code alone, except when that code is AUTRE or REF_ERR. Those two codes do not change either: they already required free text, and they still do, whatever the status.

A suspension (208) requires a reason as well, under the same rule G7.25: a suspend without reason returns 422, and the invoice does not move. A partial approval (206) is motivated, like a dispute, by its reason_code alone, except when that code is AUTRE or REF_ERR.

:::warning Behaviour change Until now, a refuse carrying only reason_code was accepted: the invoice did move to 210, but the refusal acknowledgement owed to the issuer could not be built for want of that comment, and nothing told you so - the transition had answered 200. The check is now made at the moment of the transition, where your call can still supply the text. If your integration refuses invoices sending only reason_code, it now receives 422: add reason to its payload. :::

CodeLabel206207208210
AUTREOther (free text required)xx
COORD_BANC_ERRWrong bank detailsxx
TX_TVA_ERRWrong VAT ratexx
MONTANTTOTAL_ERRWrong total amountxx
CALCUL_ERRInvoice calculation errorxx
NON_CONFORMEMissing legal mentionxx
DOUBLONDuplicate invoicexx
DEST_INCUnknown recipientx
DEST_ERRWrong recipientxx
TRANSAC_INCUnknown transactionxx
EMMET_INCUnknown senderxx
CONTRAT_TERMContract endedxx
DOUBLE_FACTDuplicate F1 regulatory dataxx
CMD_ERRWrong or missing order referencexxxx
ADR_ERRWrong e-invoicing addressxx
SIRET_ERRWrong or missing SIRETxxx
CODE_ROUTAGE_ERRWrong or missing routing codexxx
REF_CT_ABSENTMissing contractual referencexxxx
REF_ERRWrong reference (free text required)xxx
PU_ERRWrong unit pricexx
REM_ERRWrong discountxx
QTE_ERRWrong invoiced quantityxx
ART_ERRWrong invoiced itemxx
MODPAI_ERRWrong payment termsxx
QUALITE_ERRDefective delivered itemxx
LIVR_INCOMPIncomplete or missing deliveryxx
JUSTIF_ABSMissing or insufficient supporting documentx

A code sent on a status where it is not allowed returns 422: the validation is done per target status, not against the global list.

The requested action of a dispute​

A dispute (dispute, status 207) can state, in addition to its reason, what you expect from the supplier. Two optional fields carry it, under invoice, next to reason_code and reason:

  • requested_action_code: the requested action in coded form (MDT-121), taken from the closed list below.
  • requested_action: its free-text description (MDT-122), up to 250 characters.

The two are independent: send one, the other or both. Neither is inferred: a dispute sent without them carries no requested action, not even NOA. An empty or whitespace-only value is treated as absent.

CodeRequested action
NOANo action required
PINProvide additional information
NINIssue a corrective invoice
CNFIssue a full credit note
CNPIssue a partial credit note
CNARefund the amount paid
OTHOther
curl -X PATCH https://app.scribee.tech/api/v1/invoices/12345/transition \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"invoice": {"event": "dispute", "reason_code": "QTE_ERR", "requested_action_code": "CNP", "requested_action": "Avoir pour les 3 unités non livrées"}}'

Each of these cases returns 422 with code: operation_failed, and the invoice does not move:

  • either field sent with an event other than dispute, approve_partially, suspend and refuse included: it is refused, not ignored;
  • a requested_action_code outside the list above;
  • a requested_action sent as a number rather than text, or that exceeds 250 characters.

Both fields are recorded with the 207 event, but include=lifecycle_events does not return them.

The tax-inclusive amount of a partial approval​

A partial approval (approve_partially, status 206) can state, in addition to its reason, the tax-inclusive amount it approves. One optional field carries it, under invoice, next to reason_code and reason: approved_tax_inclusive_amount, a number expressed in the invoice currency. It is accepted wherever approve_partially is (see Who triggers what).

This amount is never inferred: a partial approval sent without it carries none. A null or empty value is treated as absent. The amount is recorded exactly as you send it, or refused, with the same limits as collected_amount: at most 6 decimals and 19 digits (see The amount collected). Scribee then adds it to the status message (CDAR) it transmits for this 206, in an MDG-43 block of type MAPTTC whose amount (MDT-215) carries the invoice currency.

curl -X PATCH https://app.scribee.tech/api/v1/invoices/12345/transition \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"invoice": {"event": "approve_partially", "reason_code": "QTE_ERR", "approved_tax_inclusive_amount": 1200.50}}'

Each of these cases returns 422 with code: invalid_argument, and the invoice does not move:

  • the field sent with an event other than approve_partially: it is refused, not ignored;
  • a non-numeric value, a string carrying a comma or exponent notation included;
  • zero or a negative value;
  • a value that would have to be rounded or truncated: more than 6 decimals or more than 19 digits.

The amount is recorded with the 206 event, but include=lifecycle_events does not return it.

The amount collected​

Collection (212) is the only transition that carries money, and the only one that requires a field beyond event: collected_amount. Every other event ignores it.

That amount is stated, never inferred. Annexe 7 rule P1.15 asks for the sum actually received (montant encaissé, MDT-215), not the invoice total: declaring the total in place of a partial collection would over-declare to the PPF. Scribee does not guess that sum, your call is what names it.

curl -X PATCH https://app.scribee.tech/api/v1/invoices/12345/transition \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"invoice": {"event": "collect", "collected_amount": 812.34}}'
{
"data": {
"id": 12345,
"lifecycle_state": "collected",
"lifecycle_status_code": "212",
"lifecycle_available_transitions": []
}
}

Five rules frame the value:

  • Omitting the field returns 422, with code: operation_failed, and the invoice does not move. There is no default: a collect with no amount is never read as collecting the total.
  • 0.00 is accepted. That is how a correction which moved no cash is declared. Zero is a stated amount, not an absent one: do not send it to mean that you do not know the sum received.
  • A non-numeric value is refused, with 422 and code: invalid_argument, and no collection is recorded. It is refused rather than read as zero, so the invoice never reaches 212 carrying a figure you did not write. A string carrying a comma ("812,34") or exponent notation ("1e3") is refused the same way.
  • The amount is stored exactly as you send it, or refused. It has at most 6 decimals and 19 digits; a minus sign counts as one digit, the decimal point does not, and neither do trailing zeros in the decimal part. A value that would have to be rounded or truncated is refused with 422 and code: invalid_argument, rather than stored as an amount you did not send, and no collection is recorded. A JSON number is judged on the decimal value it writes, read from your request with no float in between, under the same limits as a string. 10000000000000000.01 sent as a JSON number is thus stored exactly.
  • A negative amount declares the cancellation of a collection, see Cancel or reduce a collection.

No ceiling is applied: collected_amount is compared neither to the remaining balance nor to the invoice total.

Several collections on the same invoice​

Every collection is declared, and several 212 on the same invoice are normal. The first collect moves the invoice to collected, whatever its amount. A collect on an invoice already collected is accepted as well: its 212 is recorded in the history and transmitted like any 212, and the invoice stays collected. lifecycle_available_transitions does not list collect on a collected invoice, since the state no longer changes, but the call is accepted.

Cancel or reduce a collection​

A negative collected_amount declares the cancellation or reduction of a collection (a décaissement, Annexe 7 rule P1.17). It requires its cancellation motif in reason, with no reason_code: without a motif, the call returns 422 with code: operation_failed, and nothing is recorded. It is recorded and transmitted like any 212, and never changes the invoice's state: a collected invoice stays so, an invoice not yet collected does not become so. On an invoice not yet collected, it starts from the same states as collect.

curl -X PATCH https://app.scribee.tech/api/v1/invoices/12345/transition \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"invoice": {"event": "collect", "collected_amount": -150.00, "reason": "Chèque impayé"}}'

Deleting or reducing a recorded payment remains the other way to declare that cancellation: Scribee then writes the negative 212 with its motif (Record payments).

Resend a collect without declaring it twice​

A collect that leaves the invoice where it was, a further collection on a collected invoice or a cancellation, changes no state: nothing would stop a request resent after a timeout from declaring the same sum to the PPF twice. Without an Idempotency-Key header, such a collect that repeats the latest 212 recorded on the invoice, same collected_amount to the cent and same reason, is therefore read as a retry and refused with 422 and code: duplicate_collection; nothing is recorded. A different amount or motif is a new collection, accepted without a key.

The Idempotency-Key header is optional and read on collect only; the other events ignore it. A key of 1 to 255 characters (a UUIDv4 is recommended) makes your collect safe to replay:

curl -X PATCH https://app.scribee.tech/api/v1/invoices/12345/transition \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6b0d3c52-9e1a-4f7b-8c24-1a5e7d9f3b60" \
-d '{"invoice": {"event": "collect", "collected_amount": 150.00}}'
  • The same key with the same body and the same query string returns the stored response, with the Idempotency-Replayed: true response header, and records nothing.
  • The same key with a different body or query string returns 409 with code: idempotency_key_reuse; a key whose first request is still in flight returns 409 with code: idempotency_request_in_progress: retry with the same key and the same request during the key's 24-hour retention window, counted from your first send: the retry replays the stored response once the first request has ended with a 2xx response. If it still answers this code, or once those 24 hours have passed, send nothing, under this key or a new one, before you have read the invoice through GET /api/v1/invoices/{id} with include=lifecycle_events and checked whether your 212 is there. Nothing is recorded. Exception: a key stored before the query string was compared, and still held for its 24 hours, replays the stored response to a request that changes only the query string.
  • Only a 2xx response is stored, for 24 hours counted from the first send: a refusal frees the key. Past that window, the same key runs the request again: a collect whose response was lost and that you resend then records a second 212. Recover a lost response under the same key within those 24 hours; beyond them, read the invoice's history before resending anything.
  • The JSON body of a collect is capped at 4 MiB (4,194,304 bytes), with or without a key: past that, 413 with no body before any processing, nothing is recorded, the key is not reserved and the request is not counted against the 300 requests per minute limit (API conventions).

A collect sent under a new key is never read as a retry: to declare a collection identical to the previous one, send it with its own key.

The other door: record a payment​

collect remains reserved for sales invoices (see the Who triggers what section above). On a sales invoice, recording a payment leads to the same collection, and Scribee then supplies the amount collected: that of the payment you have just recorded, never the running paid total.

  • A payment that settles the invoice fires collect itself: the invoice moves to 212 Collected, and the event carries that payment's amount.
  • A partial payment also writes a 212 lifecycle event carrying its own amount, but does not settle the invoice: lifecycle_state does not move. A 212 event in the history is therefore not enough to conclude that the invoice is collected - lifecycle_state is what counts.
  • A deleted or reduced payment writes a corrective 212, of the opposite sign to the collection it cancels, without moving lifecycle_state: a collected invoice stays so, and remaining_amount is what tells you the sum owed again - refund_remaining_amount on a negative-amount invoice, where the payment is a refund.
  • A GoCardless direct debit taken back by the customer's bank after its payout deletes the payment it had recorded, the same way: the negative corrective 212 carries the reason it was taken back in reason (Collect and refund by direct debit).
  • On a purchase invoice, a payment - yours to the supplier, or the refund it pays you on a negative-amount invoice or a purchase credit note - writes no 212, neither when it is recorded, nor when it is modified, nor when it is deleted: the invoice becomes collected when it settles it, and nothing is sent (Pay a purchase invoice).

The detail is in Record payments.

Step by step​

The example follows a purchase invoice imported by file, made available (203). Always start by reading: it has no side effect and gives you the exact list of possible transitions.

1. Read the current status​

GET /api/v1/invoices/{id} returns the lifecycle state and the available transitions; the read scope is enough.

curl https://app.scribee.tech/api/v1/invoices/12345 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Abridged response, lifecycle fields only:

{
"data": {
"id": 12345,
"invoice_number": "FRN-2026-0042",
"direction": "purchases",
"lifecycle_state": "available",
"lifecycle_status_code": "203",
"lifecycle_available_transitions": ["take_in_charge", "approve", "dispute", "refuse", "send_payment", "revert_to_draft"]
}
}

2. Trigger a transition​

This call writes a timestamped lifecycle event to the invoice history; the history is never deleted, and no transition moves an approved invoice backward. Approval (205) is not transmitted to your supplier or to any external network. The write scope is required.

curl -X PATCH https://app.scribee.tech/api/v1/invoices/12345/transition \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"invoice": {"event": "approve"}}'
{
"data": {
"id": 12345,
"lifecycle_state": "approved",
"lifecycle_status_code": "205",
"lifecycle_available_transitions": ["send_payment"]
}
}

3. Give a reason for a dispute or a refusal​

A refusal is final: no transition leaves status 210. Only a Scribee user can, from the interface, reopen a purchase invoice whose refusal never left Scribee (see Reopening a refused purchase invoice). When in doubt, prefer a dispute (dispute), which keeps approval and refusal both open. Both require a reason_code from the table above, and a refusal additionally requires the free text reason.

curl -X PATCH https://app.scribee.tech/api/v1/invoices/12345/transition \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"invoice": {"event": "refuse", "reason_code": "TX_TVA_ERR", "reason": "Taux de TVA à 20 % au lieu de 10 % sur la ligne 2"}}'
{
"data": {
"id": 12345,
"lifecycle_state": "refused",
"lifecycle_status_code": "210",
"lifecycle_available_transitions": []
}
}

4. Read back the history​

include=lifecycle_events returns the audit trail, in ascending chronological order.

curl "https://app.scribee.tech/api/v1/invoices/12345?include=lifecycle_events" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Abridged response:

{
"data": {
"id": 12345,
"lifecycle_state": "refused",
"lifecycle_events": [
{
"id": 881,
"status_code": "203",
"status_label": "Mise à disposition",
"state": "available",
"occurred_at": "2026-03-02T09:15:00+01:00",
"sender_role": null,
"sender_id": null,
"sender_scheme_id": null,
"reason": null,
"reason_code": null,
"terminal": false,
"rejected": false,
"applied": true,
"created_at": "2026-03-02T09:15:00+01:00"
},
{
"id": 902,
"status_code": "210",
"status_label": "Refusée",
"state": "refused",
"occurred_at": "2026-03-04T16:40:00+01:00",
"sender_role": null,
"sender_id": null,
"sender_scheme_id": null,
"reason": "Taux de TVA à 20 % au lieu de 10 % sur la ligne 2",
"reason_code": "TX_TVA_ERR",
"terminal": true,
"rejected": false,
"applied": true,
"created_at": "2026-03-04T16:40:00+01:00"
}
]
}
}

Three fields are always null on the events your calls produce: sender_role, sender_id, and sender_scheme_id. The transition endpoint sends no sender, and the API exposes no parameter to supply one. Do not use these fields to tell events apart by origin. Likewise, applied is always true and rejected always false on those events. terminal is true on a 210, except on a reopened 210, where it is false, and false on a 212.

A 212 is never terminal. terminal is true only on an applied, non-reopened 210 Refused, 213 Rejected, or 220 Cancelled, and false on every other event. A 212 Collected declares a partial or total collection, and another 212 can always follow it: a new partial payment, or a negative corrective 212 after a collection is cancelled (Record payments). Do not infer from terminal that an invoice is paid: lifecycle_state says whether it has reached collection, remaining_amount what is still owed, and refund_remaining_amount what is still to be refunded on a negative-amount invoice, whose corrective 212 is positive.

Behavior change. terminal used to be true on a 212. It is now false on every 212 event, including those recorded before this change: the value is computed on every read, not stored. Only webhook deliveries already frozen keep the value they were emitted with (Webhooks).

Reopening a refused purchase invoice​

For the API, a refusal stays final: no transition leaves refused, lifecycle_available_transitions is empty there, and no event takes the invoice out of it. A single exception exists, and it does not go through the API: a Scribee user can, from the interface, reopen a purchase invoice refused by mistake, with a mandatory reason. Reopening is only possible when the refusal never left Scribee, that is, when all of these conditions hold:

  • the invoice is a received purchase invoice, not a self-billed invoice drawn up in Scribee;
  • it was received neither through the network (PPF or Peppol) nor through Chorus Pro;
  • no transmission was registered for its 210 status, even one that never went out: a registered send is enough to block the reopening.

A refused invoice that fails any of these conditions stays refused, without exception.

What your integration observes after a reopening:

  • lifecycle_state goes back to available and lifecycle_status_code to 203; lifecycle_available_transitions becomes that of an invoice made available again.
  • No lifecycle event is created: reopening is not an AIFE status and nothing is transmitted. The 210 event stays in lifecycle_events, with applied set to true, but its terminal turns to false. The history can therefore end on a 210 while the invoice is available: read the current state from lifecycle_state, never from the last event.
  • No webhook is emitted. The invoice.lifecycle_event.created delivery for the refusal carried terminal set to true, and nothing announces the reopening: re-read GET /api/v1/invoices/{id} for the current state.
  • A new refusal after the reopening creates a new 210 event, terminal again.

Reverting to draft​

revert_to_draft only applies to invoices that entered Scribee by file - POST /api/v1/workspaces/{workspace_id}/invoices/upload, see Import existing invoices - and that were never attached to a Peppol or PPF flow. A deposited invoice reverts from 200 to draft; a purchase invoice made available reverts from 203 to draft.

An invoice created with POST /api/v1/workspaces/{workspace_id}/invoices is never concerned: revert_to_draft does not appear in its lifecycle_available_transitions, and sending it returns 422. A correction goes through a credit note, described in Issue a sales invoice.

Back in draft, the invoice is editable again via PATCH. DELETE /api/v1/invoices/{id} requires the destroy or write scope: a token with neither receives 403 forbidden. With the scope present, deletion stays refused until the invoice meets every one of these conditions: in draft (lifecycle_state: draft), never exchanged over an external network (Peppol or PPF), with no lifecycle event recorded (except for the exception described below), absent from any accounting export, and not created by a conversion, that of a quote for instance. One more condition applies only to invoices created directly in Scribee (the invoice form, quote conversion, or POST /api/v1/workspaces/{workspace_id}/invoices): their number must still start with DRAFT-, or deletion is refused. An invoice imported by file (POST /api/v1/workspaces/{workspace_id}/invoices/upload) escapes that last condition: its original number, even a final one, never blocks deletion. A confirmed purchase match, on the other hand, blocks deletion regardless of the invoice's state, draft or not.

A sales invoice deposited and then taken back to draft is the exception: its 200 and 000 events do not block deletion as long as nothing about it has left Scribee. Deletion stays refused as soon as the invoice carries any other status, one of its statuses was transmitted to or received from another platform, a flow was issued for the invoice or for one of its statuses, it was sent by email, delivered to an accounting software, deposited with the PPF, or an e-reporting declaration counts it or is owed for it. It is also refused when a webhook endpoint subscribed to invoice.lifecycle_event.created existed in the workspace when its last status was recorded, active or not, when a webhook announcement of one of its statuses is recorded, or when one of its statuses was recorded before 14:30 UTC on 10 October 2026. Finally, a corrective invoice is refused when a sales invoice it references received a 220 status since its deposit. A purchase invoice benefits from the same exception, on the same conditions, when it arrived over no network (neither a Peppol or PPF flow, nor a Chorus Pro reception) and its statuses are all among 000, 203, 204, 205, 206, 207 and 208: a 200, 210, 211, 212 or 213 status refuses it. It is also refused as long as an e-reporting declaration of its acquisitions (buyer role BY) still carries it after its return to draft (Declare transactions). An accepted deletion also erases the invoice's lifecycle events.

Each unmet condition returns 422, in an {error, code, message} envelope with no details key, carrying the code operation_failed:

{
"error": "unprocessable_entity",
"code": "operation_failed",
"message": "Cette facture a consommé un numéro séquentiel et ne peut pas être supprimée. Passez par une annulation ou un avoir."
}
messageCause
Cette facture ne peut pas être supprimée car elle est rapprochée d'un bon de commande ou d'un reçu confirmé.confirmed purchase match, regardless of the invoice's state
Cette facture a été échangée via un réseau externe (Peppol/PPF) et ne peut pas être supprimée.draft attached to a Peppol or PPF flow
Cette facture est déjà entrée dans le cycle de vie de facturation et ne peut pas être supprimée.at least one lifecycle event already recorded, outside the exception described above
Cette facture d'achat figure dans une déclaration d'e-reporting et ne peut pas être supprimée tant que cette déclaration n'est pas rectifiée.purchase invoice that entered the lifecycle and that an e-reporting declaration of its acquisitions still carries; this message then replaces the previous one
Cette facture fait partie d'un export comptable et ne peut pas être supprimée.accounting entry already included in an export
Cette facture est issue de la conversion d'un devis et ne peut pas être supprimée.created by converting a quote
Cette facture est issue d'une conversion et ne peut pas être supprimée.created by a conversion other than that of a quote
Cette facture a consommé un numéro séquentiel et ne peut pas être supprimée. Passez par une annulation ou un avoir.created directly in Scribee, with a number that no longer starts with DRAFT-
Seules les factures en brouillon peuvent être suppriméesthe invoice is no longer a draft

In very rare concurrency cases - an invoice entering deposit at the exact moment of its deletion - the failure returns a generic message, "Échec de la suppression de la facture", unrelated to the conditions above.

The deletion can also answer 409, with error = conflict and code = concurrent_modification: another operation registered a network transmission for the invoice, or changed it, while its deletion was being decided. Nothing is deleted. Send the same request again, unchanged; if a transmission is now owed, the retry answers 422.

:::caution Never send an invoice_number starting with DRAFT- DRAFT- is the prefix reserved for the internal placeholder, and invoice_number is not filtered at creation: an invoice created with a number of that shape is deletable, and more importantly its deposit does not keep that number - it is replaced by the company sequence, or refused when no numbering template is configured. Pick any other prefix. :::

An invoice that fails one of these conditions is fixed with PATCH while it stays a draft, or with a credit note once it leaves draft.

The payment status​

Scribee derives a payment status from every lifecycle status, displayed in the Scribee interface. It is not exposed by the API. On the API side, apply the same derivation to lifecycle_state:

Payment statusLifecycle statuses
Pending000, 200, 202, 203, 204, 205, 207
In progress211
Paid212, except after a collection is cancelled (see below)
Not applicable210, 213, 220

A 212 invoice whose payment was deleted or reduced, and which is no longer settled, stays collected but is no longer shown as Paid: its payment status is read from its balance, In progress while a payment or an applied discount settles part of it, Pending otherwise. On the API side, read remaining_amount rather than lifecycle_state in that case - refund_remaining_amount on a negative-amount invoice, where it is the one that goes back up (Record payments).

The PPF verdict on the deposit​

lifecycle_state above is Scribee's own tracking of the invoice's commercial lifecycle. What the French tax administration decided about the deposit of this invoice is an entirely different fact, published by three separate fields, all read-only: deposit_outcome, deposit_outcome_at, and deposit_receptions.

Do not conflate the two. An invoice refused by the buyer is lifecycle_state: "refused" (AIFE code 210): the document was deposited and delivered, and it is your customer rejecting it for a commercial reason. A deposit_outcome of "251" says the opposite: it is the deposit itself the administration did not accept, so the invoice never reached a buyer at all. The two facts have different code lists, different causes, and different follow-ups. An integration that merges them will get both wrong.

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.6.8, Tableau 9), carried back on interface FFE0604A:

ValueMeaning
"250"Deposee (filed): the invoice was checked as conformant and taken into account
"251"Rejetee (rejected): the invoice was checked as non-conformant, it is neither integrated nor taken into account

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

One case where null is permanent, and where reading the invoice again later changes nothing. The reform phases its issuing obligation in by waves, the first of which starts on 1 September 2026. Until the issuing company is declared as part of that wave, Scribee reports nothing to the PPF for its sales invoices: no verdict is expected, so deposit_outcome stays null indefinitely rather than temporarily. This is a company setting, under Company settings > Electronic invoicing, not a property of the invoice and not an API field.

The mirror image of that case, for a company that IS in the wave. A sales invoice from a company declared as part of the wave must be addressed to one of the recipient's electronic invoicing addresses (scheme 0225) before it can be deposited. That resolution only applies to sales to a buyer carrying a SIREN and established in the French VAT territory, or stating no country, the only ones that are deposited as an invoice: a sale to any other buyer - without a SIREN, or carrying a SIREN but established in a foreign country or in the overseas territories outside that territory - is deposited without any directory address being looked up, and e-reporting is what carries it (see Declare transactions). The same holds for a sale to a buyer whose SIREN is absent from the national directory: it is counted in the B2C aggregate (A buyer absent from the national directory). No address is looked up either when the seller is established in Guyane, Mayotte, an overseas collectivity or the French Southern and Antarctic Lands: the invoice is then not deposited with the PPF (see Overseas territories outside the VAT territory). Scribee resolves the address at deposit time, with no network call, in this order: the value carried by the invoice (the buyer's directory_routing_identifier, including the one the invoice copied from the customer record when your creation payload's buyer carries a party_id), then the buyer's electronic address carried by the invoice (endpoint_id) when its endpoint_scheme_id is aife (0225) - the one in your creation payload, or the BT-49 of an imported UBL, CII or Factur-X invoice -, then the value on the customer record, then the national directory. An electronic address under any other scheme (siret, siren...) plays no part in this choice. A lifecycle return address (<SIREN>_cdar_ventes_...) already stored at any of the first three levels does not count there: it never receives an invoice, and Scribee moves on to the next level.

Nine outcomes, and eight are a failure of your call:

  • No active address published for a registered buyer: the deposit succeeds. The invoice moves to 200 and Scribee sets the NON_TRANSMISE reason on it (see The reason codes). This is the normal case of a buyer that is not equipped yet: the invoice is deposited, it is simply not handed to a recipient platform. Scribee sets this reason when the buyer carries a SIREN usable for the lookup - a SIREN, or the first nine digits of a SIRET -, the directory publishes no active line for its legal unit - neither for the establishment a SIRET designates, nor for another establishment with the same SIREN -, and the directory publishes a non-active address for it: a line in force still attached to the PPF's default platform (matricule 9998). Two further conditions. The copy of the directory Scribee keeps must be complete and up to date: no import is missing since the directory's latest full file, and the latest imported file was produced less than 30 hours ago; otherwise, the second-to-last outcome below applies. And the address retained for the invoice must be one of the addresses the buyer publishes on that default platform; otherwise, the next outcome applies. When none of the first three levels carries an address, Scribee retains the only address the buyer publishes on that default platform or, if it publishes several, its bare SIREN when that is one of them. When the directory publishes no line at all for the buyer, neither active nor non-active, Scribee never sets this reason: it reads the buyer's legal unit in the copy of the directory it keeps, if that copy is complete and up to date. If the legal unit is absent from it, closed in it or carries an ending effect in it, no reason is set: the sale is counted in the B2C aggregate (A buyer absent from the national directory). If the copy is not complete and up to date, or if it lists the buyer's legal unit as active, with no ending effect, one of the last two outcomes below applies.
  • Addresses published on the PPF's default platform, the invoice's address not among them: the buyer is in the first outcome's situation - a usable SIREN, no active line for its legal unit, at least one address in force on the PPF's default platform, a complete and up-to-date copy of the directory -, but NON_TRANSMISE is only set on one of those addresses. Two cases: the value retained at one of the first three levels reads as a scheme 0225 address but is none of those addresses; or none of the first three levels carries an address, and the buyer publishes several on that platform, its bare SIREN not among them. Scribee does not rewrite the recorded value and does not choose for you: the deposit is refused with 422, before anything is sent, and nothing is recorded. The message is, in the first case, "The electronic invoicing address recorded for this customer is not a usable directory address. Choose the electronic invoicing address on the customer record, then retry.", in the second, "This customer publishes several electronic invoicing addresses in the directory; Scribee cannot choose for you. Choose the electronic invoicing address on the customer record, then retry.", and details carries, under the buyer.directory_routing_identifier key, "Choose the electronic invoicing address on the customer record, then retry." This refusal is lifted neither by depositing the invoice again as it is, nor by a new directory import as long as the buyer publishes the same addresses there: send one of the addresses the buyer publishes on the PPF's default platform in the buyer's directory_routing_identifier with a PATCH on the draft, correct the customer record too if the value came from it, then deposit again: the invoice can then be deposited with the NON_TRANSMISE reason.
  • Several active addresses published, with no way for Scribee to choose: the deposit is refused with 422, and nothing is recorded.
  • A recorded address the directory gives no way to use: the value carried by the invoice, failing that its aife (0225) electronic address, or failing that again the one on the customer record, does not read as a scheme 0225 address. Scribee does not fall back to the next level - that would reroute the invoice to an address you did not choose - so the deposit is refused with 422 and nothing is recorded either.
  • A recorded address the directory does not publish as active, while it publishes other active addresses for the buyer: the value retained at one of these three levels does read as a scheme 0225 address, but no active line of the buyer carries it - for example the bare SIREN recorded for a buyer that only publishes suffixed addresses, or an address whose line is no longer in force. The buyer is equipped: Scribee therefore does not set NON_TRANSMISE, which would tell the tax administration the opposite. Nor does it retain one of the active addresses for you, even when only one is active - that would reroute the invoice to an address you did not choose. The deposit is refused with 422, before anything is sent, and nothing is recorded. One case, however, offers no other address: the buyer is designated by a SIRET whose establishment publishes no active line, and none of the active lines of the other establishments with the same SIREN carries an identifier that reads as a scheme 0225 address. The refusal is the same, but its message names the refused address in place of %{address} and the published identifiers, separated by , , in place of %{identifiers}, and asks for a directory correction instead of a choice: "The electronic invoicing address %{address} recorded for this customer is not published as an active address in the directory, and none of the active addresses published for this company (%{identifiers}) is a usable Peppol address, so no other address can be chosen. Ask the customer's platform to correct its directory entry, or contact Scribee support, then retry." No recorded value lifts this refusal: it is the buyer's directory entry that has to be corrected, by its platform; then deposit the invoice again. When the directory publishes no active address for the buyer's legal unit, on any of its establishments, the recorded value is kept and the first outcome applies, under the conditions it states.
  • A buyer designated by a SIRET whose only active address is published by another establishment: the directory publishes no active line for the establishment the SIRET designates, but it does publish one for another establishment with the same SIREN. Equipment is judged on the legal unit: the buyer is equipped, and Scribee therefore does not set NON_TRANSMISE. The address of another establishment is not, for all that, the buyer's, and Scribee does not retain it for you. When none of the first three levels carries an address, the deposit is refused with 422, before anything is sent, and nothing is recorded. The message is "The directory publishes an active electronic invoicing address for another establishment of this company, but none for this customer's establishment: Scribee cannot choose for you. Choose the address to use on the invoice or on the customer record, then retry.", and details carries, under the buyer.directory_routing_identifier key, "Choose the electronic invoicing address on the customer record, then retry." Choose one of the other establishments' active addresses - the directory lookup queried on the buyer's siren returns them (The national directory) -, send it in the buyer's directory_routing_identifier with a PATCH on the draft, then deposit again: the deposit succeeds, with no reason. When none of the other establishments' active lines carries an identifier that reads as a scheme 0225 address, there is nothing to choose: the refusal is the same, but its message names those identifiers, separated by , , in place of %{identifiers}, and details repeats that message instead of inviting you to choose: "The directory publishes active electronic invoicing addresses for this company (%{identifiers}), but none for this customer's establishment, and none of them is a usable Peppol address: no address can be chosen, and the invoice can neither be routed to its platform nor be declared as not transmitted. Ask the customer's platform to correct its directory entry, or contact Scribee support, then retry." It is the buyer's directory entry that has to be corrected, by its platform; then deposit the invoice again. A recorded address that no active line of the legal unit carries is refused as in the previous outcome.
  • Active addresses published for the buyer, none of them usable: the directory publishes at least one active line attached to a platform for the buyer (status return addresses excluded), but the identifier of none of those lines reads as a scheme 0225 address. The buyer is equipped: Scribee therefore does not set NON_TRANSMISE, and it has no address to route the invoice to. The deposit is refused with 422, before anything is sent, and nothing is recorded, whatever address the invoice or the customer record carries. The message names the published identifiers, separated by , , in place of %{identifiers}: "The directory publishes an active electronic invoicing address for this customer (%{identifiers}) that is not a usable Peppol address, so the invoice cannot be routed to its platform and cannot be declared as not transmitted either. Ask the customer's platform to correct its directory entry, or contact Scribee support, then retry." It is the buyer's directory entry that has to be corrected, by its platform; then deposit the invoice again.
  • No active address published for the buyer, on a copy of the directory that is not up to date: the buyer carries a usable SIREN, the directory publishes no active line for its legal unit, and the copy of the directory Scribee keeps is not complete and up to date (see the first outcome), whether or not the buyer publishes an address on the PPF's default platform there: it can tell neither that the buyer is a VAT-registered business without a platform, nor that its SIREN is unknown to the directory. Scribee does not set NON_TRANSMISE, which nothing proves. The deposit is refused with 422, before anything is sent, and the invoice stays a draft, whatever address the invoice or the customer record carries. The message names the buyer's SIREN in place of %{siren}: "The directory publishes no active address for SIREN %{siren}, and Scribee's copy of the directory is not up to date enough to tell whether this customer is a VAT-registered business without a platform or a SIREN the directory does not know, so the invoice was not deposited. Check the customer's SIREN on the customer record, or retry after the next directory import (within a day)." Check the buyer's SIREN, then deposit the invoice again, if need be after the next directory import: this refusal falls away as soon as the copy is complete and up to date again, with nothing changed on the invoice, and the deposit then follows one of the other outcomes.
  • No line published for a buyer the directory lists as VAT-registered: the buyer carries a usable SIREN, the directory publishes no line for it, neither active nor non-active, and the copy of the directory Scribee keeps, complete and up to date, lists its legal unit as active, with no ending effect. The directory contradicts itself: the PPF creates a line at SIREN level on its default platform for every VAT-registered business. Scribee therefore does not set NON_TRANSMISE, and it has no address to route the invoice to. The deposit is refused with 422, before anything is sent, and the invoice stays a draft, whatever address the invoice or the customer record carries. The message names the buyer's SIREN in place of %{siren}: "The directory lists the company with SIREN %{siren} as VAT-registered but publishes no electronic invoicing address for it, so the invoice can neither be routed to a platform nor be declared as not transmitted, and was not deposited. Check the customer's SIREN on the customer record, or contact Scribee support." Check the buyer's SIREN; if it is right, contact Scribee support.

In these seven refusals, the response body carries details keyed on buyer.directory_routing_identifier: that is the field to fill in, either on the customer record or in the creation payload, except for the last three, and for the two messages above that ask for a directory correction: no value of that field lifts them, and details repeats the message under them. An endpoint_id under endpoint_scheme_id aife (0225) on the payload's buyer also designates the address, but only when the invoice carries no directory_routing_identifier: when several active addresses are published, it is then what makes the choice. A buyer designated by party_id inherits the customer record's directory_routing_identifier, which wins over that endpoint_id; to choose another address on such an invoice, send directory_routing_identifier in the buyer entry, which takes precedence over the copied value. An eighth refusal, far rarer, comes from concurrency: when the address on the customer record changes during the deposit itself, the invoice is not deposited rather than being announced on one address and stored under another; simply deposit it again. Once the invoice is deposited the address is frozen on it: a retry reads that value back, runs no new lookup, and therefore never silently reroutes an invoice that was already announced elsewhere.

The refusal of an inactive address names the refused address. Its message quotes the value Scribee read, without the 0225: prefix, and details repeats that same text under buyer.directory_routing_identifier:

{
"error": "unprocessable_entity",
"code": "operation_failed",
"message": "L'adresse de facturation électronique 123456789 enregistrée pour ce client n'est pas publiée comme adresse active dans l'annuaire : la facture ne parviendrait pas à la plateforme du client. L'annuaire publie d'autres adresses actives pour ce client : choisissez-en une sur la facture ou sur la fiche client, puis réessayez.",
"details": {
"buyer.directory_routing_identifier": ["L'adresse de facturation électronique 123456789 enregistrée pour ce client n'est pas publiée comme adresse active dans l'annuaire : la facture ne parviendrait pas à la plateforme du client. L'annuaire publie d'autres adresses actives pour ce client : choisissez-en une sur la facture ou sur la fiche client, puis réessayez."]
},
"violations": [
{
"source": "request",
"field": "buyer.directory_routing_identifier",
"rule": null,
"type": null,
"severity": "error",
"message": "L'adresse de facturation électronique 123456789 enregistrée pour ce client n'est pas publiée comme adresse active dans l'annuaire : la facture ne parviendrait pas à la plateforme du client. L'annuaire publie d'autres adresses actives pour ce client : choisissez-en une sur la facture ou sur la fiche client, puis réessayez.",
"message_fr": null,
"message_en": null,
"xpath": null
}
]
}

What you do: choose one of the active addresses the directory publishes for this customer - the directory lookup returns them (National directory) -, send it in the directory_routing_identifier of the buyer entry with a PATCH on the draft, then deposit again. Correct the customer record too: an invoice created from that record through party_id would copy its old value. If the message continues with et aucune des adresses actives publiées pour cette entreprise, there is no address to choose: have the buyer's directory entry corrected by its platform, or contact Scribee support, then deposit again. The same refusal applies to a deposit requested in a single call (POST /api/v1/workspaces/{workspace_id}/invoices with lifecycle_state: "deposited"), and no invoice is then created.

An address that does not start with the buyer's SIREN is refused (BR-FR-21). The buyer's electronic address (BT-49) starts with its SIREN: it is its bare SIREN, or its SIREN followed by a suffix (<SIREN>_<suffixe>). The buyer's SIREN is the one the invoice carries, or the first nine digits of its SIRET. Scribee checks this rule at deposit on the value retained at one of the first three levels - the invoice's, its endpoint_id under endpoint_scheme_id aife (0225), or the customer record's -, as soon as it reads as a scheme 0225 address and before looking up whether the directory publishes it as active. It therefore applies whether or not the buyer publishes addresses in the directory: an address under another company's SIREN is refused even for a buyer that is not equipped, whose declared address is otherwise kept as stated. Such an address names another company, which would receive the invoice instead of your customer. The deposit is refused with a 422, before anything is sent, and nothing is saved. The message names the address read, without the 0225: prefix, and the buyer's SIREN, and details repeats that same text under buyer.directory_routing_identifier:

{
"error": "unprocessable_entity",
"code": "operation_failed",
"message": "L'adresse de facturation électronique 123456789_VENTES enregistrée pour ce client ne commence pas par son SIREN 987654321 : elle désigne une autre entreprise, et la facture lui serait remise à la place de votre client. Choisissez sur la fiche client une adresse de l'annuaire publiée pour le SIREN 987654321, puis réessayez.",
"details": {
"buyer.directory_routing_identifier": ["L'adresse de facturation électronique 123456789_VENTES enregistrée pour ce client ne commence pas par son SIREN 987654321 : elle désigne une autre entreprise, et la facture lui serait remise à la place de votre client. Choisissez sur la fiche client une adresse de l'annuaire publiée pour le SIREN 987654321, puis réessayez."]
},
"violations": [
{
"source": "request",
"field": "buyer.directory_routing_identifier",
"rule": null,
"type": null,
"severity": "error",
"message": "L'adresse de facturation électronique 123456789_VENTES enregistrée pour ce client ne commence pas par son SIREN 987654321 : elle désigne une autre entreprise, et la facture lui serait remise à la place de votre client. Choisissez sur la fiche client une adresse de l'annuaire publiée pour le SIREN 987654321, puis réessayez.",
"message_fr": null,
"message_en": null,
"xpath": null
}
]
}

What you do: send the buyer's own address, under scheme 0225 - its bare SIREN or <SIREN>_<suffixe>, preferably one of the addresses the directory lookup returns for that SIREN (National directory) - in the directory_routing_identifier of the buyer entry with a PATCH on the draft, then deposit again. Correct the customer record too if the value came from it: an invoice created from that record through party_id would copy the refused address. If it is the buyer's SIREN that is wrong, and not the address, correct its registration. The corrected address then goes through the other checks described above. The same refusal applies to a deposit requested in a single call (POST /api/v1/workspaces/{workspace_id}/invoices with lifecycle_state: "deposited"), and no invoice is then created.

These refusals come before the semantic check, and you will notice. The address is resolved before the invoice is validated, because the bytes being checked carry that address themselves (BT-49). An invoice with both problems - an unaddressable recipient and a fatal semantic assertion - therefore surfaces the address error first, and the Schematron verdict never gets to speak. Do not read its absence as the invoice being semantically valid: fix the address, then deposit again to get the verdict.

A separate refusal, and one that is not fixed in the same place. A buyer established in the French VAT territory whose registration number is on file but reads as neither a SIREN nor a SIRET makes the deposit fail with 422, before the address is even resolved. The response body carries details keyed on buyer.legal_registration_id: it is the registration number that has to be fixed on the customer record, not the address. That is where the line falls: a registration number that is present but unreadable is data to fix, whereas a buyer carrying none at all is a customer with no registration number - its invoice is deposited, and the sale goes to e-reporting (see Declare transactions).

One more refusal, on a piece of data your payload does not always carry. A sales invoice whose seller or buyer carries no country makes the deposit fail with 422. The country of every party is mandatory on an electronic invoice - BT-40 for the seller, BT-55 for the buyer - and Scribee fabricates none: a party recorded with no country stays without one, and it is the deposit that asks for it. The response body carries details keyed on seller.address.country_code, buyer.address.country_code, or both when both parties are silent - the exact path under which reading the invoice returns that field. The seller's country is filled in on your company's headquarters establishment, the buyer's in the address on the customer record or in the creation payload. This refusal follows the same perimeter as the address resolution above: it only applies to sales that are deposited as an invoice, never to a sale carried by e-reporting, whose report asks for no country.

:::warning Behaviour change Until now, a party with no country was given one by default: Scribee wrote FR, and the invoice was deposited asserting a territory nobody had declared. That code is no longer fabricated. A customer record whose address carries no country, like a headquarters establishment with no country, now produces a party with no country, and its deposit is refused rather than accepted on invented data. Fill the country in on the records concerned before your next deposit. :::

The rest of the lifecycle is unchanged for those companies: the invoice is created, edited, deposited (status 200), exported, delivered to a connected accounting system and notified to your webhooks exactly as described above. Only the regulatory transmissions to the PPF and to Peppol wait for the wave to start.

Their deposit is not judged against the electronic-invoice rules either. Since nothing a company outside the wave issues is transmitted, the Schematron check described below does not apply to its sales, and neither do the B2C refusals. The other deposit checks apply as they do to everyone: blocking import errors, conformance of the PDF you supplied, mandatory legal mentions, numbering template, exchange rate.

deposit_outcome_at: the instant of the verdict​

String or null. This is the instant the PPF stamped that verdict, 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, unlike created_at, updated_at, and a reception's received_at, which 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 a deposited invoice as well as for one with no answer yet.

Each entry corresponds to one rejection verdict ("251") the PPF issued on this invoice's deposit, with the motives that came with it. A "250" verdict carries no motive and therefore adds no entry. It carries two fields:

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

One reception can carry several verdicts. A single FFE0604A reception can carry several successive verdicts on the same invoice, for instance two rejections with different motives. Each rejection is a separate entry there, with its own motives, and those entries then share the same received_at. Entries are ordered by reception, oldest first; the verdicts of one reception appear in the order the PPF timestamped them, oldest first. Never merge two entries because they share a received_at: you would attribute the first rejection's motives to the second.

Each motive in turn carries:

  • code: the control that failed (MDT-113), exactly as the PPF sent it. A string, never empty. Section 3.6.9, Tableau 11, provides three for an invoice deposit:

    ValueFailed control
    REJ_SEMANSemantic or format control
    REJ_UNIUniqueness control: the data was already transmitted and processed
    REJ_COHData coherence control

    This list is not closed. The administration also motivates invoice-deposit rejections with codes that Tableau 11 does not contain: it has already sent REJ_RG, which the specification reserves for other objects. Scribee publishes such a code as sent rather than dropping it. Your integration must therefore accept any code, including one it does not know, and never reject a response because of it.

    REJ_PER, the period control, does not belong to Tableau 11: it comes from the e-reporting list (section 3.7.10, Tableau 6, see E-reporting). The two lists look alike and are not the same.

  • off_specification: boolean, always present. false when Tableau 11 contains code, true otherwise. Read this field rather than comparing code against your own list: Scribee computes it from the same list as the one above. A motive at true is still a real rejection motive: the deposit was indeed rejected, and anomaly_source remains the text to display.

  • anomaly_source: string or null (MDT-126). The PPF's own free text saying where the anomaly is, as opposed to code, which says which control failed. This is the actionable part for your user: display it. It carries up to 2,000 characters and is never truncated. Only the code is mandatory on a rejection, so this field is null when the PPF sent no text.

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 invoice. The administration can rule more than once on the same invoice, and each answer carries its own reasons. 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 answer different questions, and a later verdict does not erase an earlier reception's motives.

The sequence for an invoice that was rejected, corrected, and re-deposited:

  1. The PPF rejects the deposit. deposit_outcome is "251", deposit_outcome_at carries the instant of that rejection, and deposit_receptions holds one entry: the reception that carried the motives.
  2. The invoice is corrected and re-deposited, and the PPF accepts it. deposit_outcome becomes "250" and deposit_outcome_at carries the instant of that acceptance. But the previous rejection's entry stays in deposit_receptions, with its received_at and its motives unchanged.

At step 2, the invoice looks like this:

{
"id": 4312,
"invoice_number": "FA-2026-0087",
"lifecycle_state": "deposited",
"lifecycle_status_code": "200",
"deposit_outcome": "250",
"deposit_outcome_at": "2026-03-11T14:05:00",
"deposit_receptions": [
{
"received_at": "2026-03-04T09:30:15Z",
"motives": [
{
"code": "REJ_COH",
"off_specification": false,
"anomaly_source": "Ligne 3 : total incohérent"
},
{
"code": "REJ_SEMAN",
"off_specification": false,
"anomaly_source": null
}
]
}
]
}

An integration that flattens deposit_receptions into a plain list of motives and displays them as "the reasons this invoice was rejected" will therefore be wrong at exactly the moment the customer has already fixed the problem: it will announce a rejection on a deposited invoice.

The rule is simple. To know where the deposit 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 alongside a deposit_outcome of "250" is not an inconsistency: it is the record of a rejection that was since corrected.

No entry carries its verdict's code or instant. The verdict in force is read from deposit_outcome and deposit_outcome_at, never from the last entry of deposit_receptions: one reception can carry a rejection followed by an acceptance, and only the rejection leaves an entry.

What happens next​

  • Every transition pushes an invoice.lifecycle_event.created event to your webhook endpoints (Webhooks, Platform category), including the collections and reversals triggered by your payments. Your system does not need to poll the API in a loop to track the transitions it triggers.
  • Two statuses follow a transmission rule of their own. A 212 Collected is sent only on a sales invoice, and is declared to the PPF only when the invoice's VAT is due on collection: a prepayment invoice, tax_due_date_code at 72, or, without that code, a billing framework (BT-23) that does not start with B; otherwise it goes only to the other party's platform. A 213 Rejected that Scribee raises when issuing a sales invoice goes to the PPF alone, never to the recipient's platform.
  • Deposit assigns a number from the company's numbering sequence only when the invoice still carries a DRAFT- prefixed number, which is the case for invoices created from the Scribee interface - and would equally be the case for an API invoice you gave a number of that shape yourself. An invoice created with POST /api/v1/workspaces/{workspace_id}/invoices therefore keeps its number at deposit as long as it does not carry that prefix: the one you sent, or the TEMP-... placeholder generated at creation if you sent none. If you want a partner-controlled number, send it at creation or correct it with PATCH before depositing.
  • On entering the lifecycle (deposit or make_available from draft), Scribee regenerates the invoice files: UBL, CII, Factur-X, and PDF (see Formats and downloads). The PDF is the exception in two cases: when you supplied the PDF yourself, and when the invoice was imported as a PDF or an image - the original file is then kept as is. Factur-X is an exception too when the invoice was deposited in that form: the deposited file is returned rather than regenerated. Generation is asynchronous: a download started immediately after the transition may still return the previous file.

Errors and edge cases​

Transition failures return 422 with error: "unprocessable_entity", a machine code, a message in French, a details object, and a violations array (API conventions). The code is invalid_argument when the event itself is unknown or missing or an approved_tax_inclusive_amount is refused, duplicate_collection when a collect without an Idempotency-Key repeats the invoice's latest 212 (see Resend a collect without declaring it twice), purchase_approval_app_only when an approve targets a purchase invoice whose approval is given in the Scribee application, operation_failed in most other cases, one of the three Schematron-check codes described further down when it is that check refusing the deposit, and one of the two codes of the PDF/A-3 check of an imported Factur-X, also described further down, when it is that one. details is empty, except when the refusal designates the field to correct: it is then keyed on that field, as for the mandatory legal mentions and the Factur-X that is not PDF/A-3 conformant, described further down, and for the sales deposit refusals described in The PPF verdict on the deposit: recipient address, buyer registration, a party's country. violations restates each message of details as a source: "request" element whose field is the details key: it is therefore [] when details is empty. Only the schematron_fatal refusal fills it otherwise, as described further down. Base your handling on the HTTP status and on code, never on the message text (API conventions).

{
"error": "unprocessable_entity",
"code": "operation_failed",
"message": "Un motif normalisé est requis pour le statut En litige",
"details": {},
"violations": []
}
messageCauseWhat you do
Évènement de cycle de vie inconnu ou manquant. Fournissez un nom d'évènement valide parmi les transitions disponibles de la facture.event missing, unknown, or uncollectsend an event listed in lifecycle_available_transitions
Impossible de passer de approved à deposit. L'état actuel ne permet pas cette transition.the transition does not exist from the current statereread the invoice and start again from lifecycle_available_transitions
La facture comporte des erreurs d'import bloquantes. Corrigez-les avant de changer son statut.deposit or make_available on a draft carrying a blocking import error other than a Factur-X non-compliance verdictPATCH the whole invoice to clear the errors, then replay the transition
Le PDF Factur-X joint n'est pas conforme. Remplacez-le par un fichier conforme avant de déposer la facture.deposit of an invoice whose PDF you supplied and which was evaluated as non-compliantsupply a compliant PDF with PATCH, then deposit again
Des mentions légales obligatoires sont absentes de la facture (pénalités de retard, frais de recouvrement et escompte). Renseignez-les dans les paramètres de facturation de l'entreprise, puis réessayez.deposit of a sales invoice missing one of the three mandatory legal mentionsread details, which names the attributes to fill in
Cette facture a été créée alors que la société était membre d'un assujetti unique, mais elle ne le déclare pas en entier (SIREN du vendeur sous le schéma 0231, raison sociale, numéro de TVA et adresse de l'assujetti unique, note MEMBRE_ASSUJETTI_UNIQUE). Complétez l'assujetti unique dans les paramètres de la société, puis réenregistrez le brouillon avant de le déposer.deposit of a sale created while the company declared a single taxable entity, which does not carry the complete statementcomplete the company's single taxable entity settings, PATCH the draft, then deposit again
Le SIREN de l'acheteur est celui du vendeur : la facture vous serait adressée à vous-même. Corrigez le SIREN de l'acheteur avant de déposer la facture. Si votre entreprise facture une société en participation dont elle est le gérant, activez plutôt le paramètre "Gérant de sociétés en participation (SEP)" dans l'onglet Facturation électronique des paramètres de la société.deposit of a sale whose buyer carries the seller's SIREN without a foreign VAT number, the company not having sep_manager at truecorrect the buyer party with PATCH, then deposit again
Un avoir ou une facture rectificative doit indiquer la date d'émission de la facture antérieure à laquelle il se rapporte (BT-26, règles BR-FR-CO-04 et BR-FR-CO-05). Renseignez cette date avant de déposer la facture.deposit of a corrective invoice (384, 471, 472, 473) or credit note (261, 381, 396, 502, 503), a sale or a self-billed invoice you issue, one of whose invoice_references entries does not carry invoice_date (BT-26)fill in invoice_date on the entry with PATCH, then deposit again
L'IBAN du bénéficiaire (BT-84) d'un moyen de paiement par virement ne passe pas le contrôle ISO 13616 (format ou clé MOD-97) : la banque du client ne pourrait pas effectuer le virement. Corrigez l'IBAN dans les moyens de paiement du brouillon avant de déposer la facture.deposit of a sales invoice, or of a self-billed purchase invoice you issue, one of whose credit transfer payment_means entries carries a payee_account_id (BT-84) that fails the ISO 13616 check: always under type_code 58, and under 30 only when the value starts like an IBAN, with two letters then two digitscorrect payee_account_id with PATCH, then deposit again
Le statut Complétée (209) n'est disponible que sur une facture autofacturée : il répond au statut Suspendue (208) du vendeur sur une facture que vous avez émise en son nom.complete on an invoice that is not self-billedsend complete only on a self-billed invoice you issued, at 208
La transition receive ne peut pas être déclenchée manuellement.event reserved for the state machine, or event of the wrong direction while the state would permit the transitioncheck direction and start again from lifecycle_available_transitions
Cette transition n'est pas disponible via l'API pour une facture d'achat sur cet espace : la validation comptable est un acte signé, elle s'effectue dans l'application Scribee par un membre d'un groupe comptable. Réessayer cet appel ne changera pas le résultat.approve on a purchase invoice whose approval is imposed on the account or on which an approval circuit is running (code: purchase_approval_app_only), even though approve stays listed in lifecycle_available_transitionsdo not replay the call: have the invoice approved in the Scribee application
La facture ne peut pas être validée tant que son écriture comptable n'est pas générée. Motif : Le tiers ACME Fournitures n'a pas de compte auxiliaire configuré : impossible de générer l'écriture comptable.approve on a purchase invoice with no accounting entry that Scribee cannot generate, for example for a supplier with no auxiliary account; only if the company generates its purchase entries and the approval circuit is available on the account without applying to the invoicefix what the reason names (Customers and suppliers for the auxiliary account), then replay approve: the invoice has not changed status
Un motif normalisé est requis pour le statut Approuvée partiellementapprove_partially without reason_codeadd a code from the reason-code table
Un montant TTC approuvé ne peut accompagner que le statut Approuvée partiellement, pas le statut En litigeapproved_tax_inclusive_amount sent with an event other than approve_partially (here dispute); the final label names the target statusremove the field, or send approve_partially
Le montant TTC approuvé doit être un nombre (séparateur décimal : point)approved_tax_inclusive_amount is not a number, carries a comma or uses exponent notationsend a number
Le montant TTC approuvé comporte plus de 6 décimalesapproved_tax_inclusive_amount with more than 6 decimals; the message becomes Le montant TTC approuvé comporte plus de 19 chiffres (un signe moins compte pour un) past 19 digitssend at most 6 decimals and 19 digits
Le montant TTC approuvé doit être strictement positifapproved_tax_inclusive_amount is zero or negativesend an amount greater than zero, or remove the field
Un motif normalisé est requis pour le statut En litigedispute without reason_codeadd a code from the reason-code table
Un motif normalisé est requis pour le statut Suspenduesuspend without reason_codeadd a code from the reason-code table
Un motif normalisé est requis pour le statut Refuséerefuse without reason_codeadd a code from the reason-code table
Un statut Refusée (210) exige un commentaire motivant le refus dans la balise MDT-126 (règle G7.25) ; le code motif MDT-113 ne le remplace pas, et aucun commentaire n'a été enregistré avec ce statut.refuse without reasonadd the free text motivating the refusal
Marquer une facture comme encaissée exige le montant encaissé. Transmettez collected_amount avec la transition, ou enregistrez le paiement sur la facture, ce qui déclare l'encaissement avec le montant réellement reçu.collect without collected_amountadd collected_amount, or record a payment
Le statut Encaissée (212) revient au vendeur, jamais à l'acheteur : sur une facture d'achat, enregistrez plutôt le paiement, qui solde la facture sans 212.collect on a purchase invoice, whatever its statedo not replay the call: record the payment (Pay a purchase invoice)
collected_amount doit être un nombre. Le montant réellement encaissé (MDT-215) est enregistré tel qu'il est transmis, jamais déduit : une valeur non numérique est donc refusée plutôt qu'interprétée comme zéro.collected_amount is not a number, carries a comma or uses exponent notationsend a number
collected_amount comporte plus de 6 décimales. Le montant réellement encaissé (MDT-215) est enregistré exactement tel qu'il est transmis, sur au plus 19 chiffres dont 6 décimales : une valeur qu'il faudrait arrondir ou tronquer est donc refusée plutôt qu'enregistrée en un montant que vous n'avez pas transmis.collected_amount with more than 6 decimals; the start of the message becomes collected_amount comporte plus de 19 chiffres (un signe moins compte pour un) past 19 digitssend at most 6 decimals and 19 digits
Un décaissement sous le statut 212 exige un motif d'annulation dans le commentaire MDT-126 (règle P1.17).collect with a negative collected_amount, without reasonadd the cancellation motif in reason
Cet encaissement (statut 212) reprend le dernier enregistré sur la facture, même montant et même motif, et a été transmis sans Idempotency-Key : il est lu comme une nouvelle tentative et n'est pas déclaré deux fois. Pour déclarer un nouvel encaissement identique, transmettez-le avec une Idempotency-Key.collect on a collected invoice, or a cancellation, identical to the latest 212, without an Idempotency-Key (code: duplicate_collection)if it is a retry, nothing to do; if it is a new collection, resend it with an Idempotency-Key
Le motif REJ_SEMAN n'est pas autorisé pour le statut En litigecode outside the target status's list, or reason_code sent on an event that accepts nonechoose an allowed code, or remove the code
Un commentaire est requis pour le motif AUTREAUTRE or REF_ERR without reasonadd the free text
Le motif doit comporter au maximum 250 caractèresreason too longshorten the text
Le motif doit être une valeur textuellereason sent as a number or a booleansend a string
Un code motif est requis lorsqu'un commentaire est fournireason sent without reason_codeadd the code, or remove the text
Impossible de déposer la facture : veuillez renseigner un numéro de facture unique.deposit of an imported invoice whose number stayed at the internal DRAFT- placeholderset the invoice's original number with PATCH before depositing
Impossible de déposer la facture : aucun modèle de numérotation configuré pour cette entreprisedeposit of an invoice at the DRAFT- placeholder coming from the Scribee interface, with no numbering templateconfigure the numbering template from the Scribee interface
Impossible de déposer la facture : le numéro FAC-2026-0198 est déjà utilisé en 2026 par une facture émise sous le SIREN de ce vendeur, or un numéro de facture doit être unique par vendeur et par année (règle AIFE G1.45). Ajustez le compteur de numérotation dans les paramètres de l'entreprise.deposit of a sale at the DRAFT- placeholder whose number drawn from the company's sequence is already reserved, for the same year, under the seller's SIRENhave the numbering counter adjusted from the Scribee interface, then deposit again
Le numéro de facture FAC-2026-0198 ne peut pas être utilisé pour ce vendeur en 2026 : un numéro de facture doit être unique par vendeur et par année (règle AIFE G1.45).deposit of a sale whose number is already reserved, for the same year, under the seller's SIREN: by another company carrying that SIREN, whatever its workspace, or by a self-billed invoice issued in this seller's namechange invoice_number with a PATCH, then deposit again (Issue a sales invoice)
Impossible de déposer cette facture en USD : aucun taux de change n'est disponible pour le 12/03/2026. Une facture en devise étrangère doit porter son total de TVA en EUR, ce qui exige un taux publié. Attendez la synchronisation des taux, puis relancez le dépôt.deposit of an invoice denominated in a currency other than EUR, with no rate published for its issue datedeposit again once the rate is available, or fix issue_date if it is wrong
La facture ne porte aucun cadre de facturation, que la réforme exige sur chaque facture pour préciser si l'opération porte sur des biens, des services ou les deux, et la nature de certaines de ses lignes n'est pas connue. Ouvrez la facture en modification ou dans la revue des factures, choisissez si les lignes sans type sont des biens ou des services, ou indiquez le type de chaque ligne (colonne Type), enregistrez, puis redéposez-la.deposit of a sale imported through POST /api/v1/workspaces/{workspace_id}/invoices/upload, with no invoicing framework, where a detail line has no product_typesend invoicing_process_id with a PATCH, or product_type on each line, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Cette déclaration précise si l'opération porte sur des biens ou sur des services, or la facture ne porte aucun cadre de facturation et la nature de certaines de ses lignes n'est pas connue. Ouvrez la facture en modification ou dans la revue des factures, choisissez si les lignes sans type sont des biens ou des services, ou indiquez le type de chaque ligne (colonne Type), enregistrez, puis redéposez-la.deposit of a sale to an unidentified buyer, with no invoicing framework, whose lines supply nonesend invoicing_process_id, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Cette déclaration précise si l'opération porte sur des biens ou sur des services, or la facture ne porte aucun cadre de facturation et n'a aucune ligne dont lire la nature. Ouvrez la facture en modification ou dans la revue des factures, choisissez son cadre de facturation (biens ou services), enregistrez, puis redéposez-la.deposit of a sale to an unidentified buyer, with no invoicing framework and no line at allsend invoicing_process_id, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Son cadre de facturation M1 couvre à la fois des biens et des services, que cette déclaration compte séparément, ligne à ligne. Ses lignes ne permettent pas cette répartition : l'une est typée à la fois bien et service ou, sur une facture importée, n'indique pas sa nature, aucune ligne ne porte de montant, ou la facture ne porte aucune ventilation de TVA. Indiquez dans la colonne Type de chaque ligne s'il s'agit d'un bien ou d'un service, puis redéposez-la.deposit of a sale to an unidentified buyer, under a mixed invoicing framework (M1, M2, M4), whose lines do not split between goods and servicessend product_type as good or service on each line, add the VAT breakdown, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture, sous la catégorie biens ou services que donne son cadre de facturation. Les lignes lues sur la facture peuvent être incomplètes : son cadre de facturation B1, déduit de ces seules lignes, ne dit pas si les lignes manquantes portent des biens ou des services. Ouvrez la facture en modification, ajoutez les lignes manquantes s'il y en a, puis cochez « Les lignes saisies sont complètes (toutes les lignes de la facture) », enregistrez et redéposez-la.deposit of a sale imported through POST /api/v1/workspaces/{workspace_id}/invoices/upload, to an unidentified buyer, whose PDF was read on its first pages only, or whose read lines differ from the printed total excluding VAT, below or above it, by an amount Scribee could not attribute (a gap of 0.05 or less, in that total's currency, is not one), and whose invoicing framework is inferred from the lines read (not stated by the sender)first pages read: add any missing lines, then confirm them complete in the Scribee interface (a PATCH does not lift this refusal) and deposit again; gap with the total: send the corrected lines with a PATCH, the refusal lifting as soon as the lines, plus the document charges and minus the document allowances, are within 0.05 of the total excluding VAT the gap was raised under, in that total's currency (lines retyped in another currency do not lift this refusal), or confirm them complete in the Scribee interface, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Son cadre de facturation M1 couvre à la fois des biens et des services, que cette déclaration répartit ligne à ligne, or les lignes lues sur la facture peuvent être incomplètes. Ouvrez la facture en modification, ajoutez les lignes manquantes s'il y en a, puis cochez « Les lignes saisies sont complètes (toutes les lignes de la facture) », enregistrez et redéposez-la.deposit of a sale imported through POST /api/v1/workspaces/{workspace_id}/invoices/upload, to an unidentified buyer, whose sender states a mixed invoicing framework (M1, M2, M4) and whose PDF was read on its first pages only, or whose read lines differ from the printed total excluding VAT, below or above it, by an amount Scribee could not attribute (a gap of 0.05 or less, in that total's currency, is not one)first pages read: add any missing lines, then confirm them complete in the Scribee interface (a PATCH does not lift this refusal) and deposit again; gap with the total: send the corrected lines with a PATCH, the refusal lifting as soon as the lines, plus the document charges and minus the document allowances, are within 0.05 of the total excluding VAT the gap was raised under, in that total's currency (lines retyped in another currency do not lift this refusal), or confirm them complete in the Scribee interface, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Cette déclaration porte une vente relevant du régime de la marge dans une catégorie qui lui est propre, or la facture mêle des ventilations de TVA relevant du régime de la marge et des ventilations ordinaires - une répartition qui n'est pas encore prise en charge. Émettez les ventes relevant du régime de la marge sur une facture distincte, puis redéposez-les.deposit of a sale to an unidentified buyer that mixes a margin-scheme VAT breakdown with another VAT breakdownissue the margin-scheme sales on a separate invoice
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Relevant du régime de la marge, elle y est déclarée sur sa marge hors TVA et la TVA due sur cette marge, deux montants que la facture n'indique pas : sa ventilation au régime de la marge porte le prix de vente au taux nul. Renseignez la base de marge de la vente pour chaque taux de TVA (marge hors TVA et TVA sur la marge, réelles ou estimées), puis redéposez-la.deposit of a sale to an unidentified buyer that carries a margin-scheme VAT breakdown, with no margin basesupply the bases with a PATCH carrying only margin_bases, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Une base de marge fournie pour cette vente relevant du régime de la marge n'est pas cohérente : son taux n'est pas un taux de TVA français admis, sa TVA sur la marge s'écarte de plus d'un centime de sa marge hors TVA taxée à ce taux, ou les marges TVA comprise dépassent le prix de vente de la facture. Corrigez la base, la TVA ou le taux de chaque base de marge pour que la marge ne dépasse pas le prix de vente, puis redéposez-la.deposit of a margin-scheme sale to an unidentified buyer with an inconsistent margin basecorrect the bases with a PATCH carrying only margin_bases, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Cette déclaration additionne les opérations de la journée, or la facture ne porte pas de montant total hors TVA ou pas de montant total de TVA. Complétez les totaux de la facture, puis redéposez-la.deposit of a sale to an unidentified buyer, with no total excluding VAT or no total VAT amountcomplete the totals, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Cette déclaration est faite en euros, or la facture est libellée en USD et ne porte aucune contre-valeur en euros de son montant de TVA. Renseignez le montant de TVA en euros, puis redéposez-la.deposit of a sale to an unidentified buyer, denominated in a currency other than EUR and with no euro equivalent of the VAT totalsupply the VAT total in euros, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Cette déclaration porte toujours une ventilation par taux de TVA, or la facture n'en porte aucune, y compris lorsque ses montants sont nuls. Ajoutez au moins une ligne de ventilation de TVA - au taux 0 et pour un montant nul s'il s'agit d'un ticket exonéré -, puis redéposez-la.deposit of a sale to an unidentified buyer carrying no VAT breakdown line at alladd at least one breakdown line, then deposit again
Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. Cette déclaration porte les totaux de la journée en regard de leur ventilation par taux de TVA, or les totaux de la facture ne correspondent pas à la somme de sa ventilation de TVA. Corrigez la ventilation de TVA ou les totaux de la facture pour qu'ils concordent exactement, au centime près, puis redéposez-la.deposit of a sale to an unidentified buyer whose totals do not match the sum of its VAT breakdownalign the breakdown and the totals to the centime, then deposit again
Cette facture ne peut pas être déposée au Portail Public de Facturation : toute sa ventilation de TVA relève de la catégorie O (hors champ de la TVA), que le portail rejette sur une facture électronique (règle G2.32). S'il s'agit de débours, marquez chaque ligne comme débours pour que la facture sorte de la réforme ; sinon, corrigez les catégories de TVA, puis redéposez-la.deposit of a sale deposited with the PPF (flux 1), to a buyer that is not a public entity, whose VAT breakdown lines are all in category Omark every disbursement line with disbursement, or correct the VAT categories, then deposit again

The message Le motif X n'est pas autorisé pour le statut ... interpolates a status label that does not exist for revert_to_draft (000): the text then contains a raw translation key. One more reason never to parse message text.

Check refusals name their cause​

Some transitions are declared from the current state yet remain blocked by a business check. The state is not at fault then, and the message does not say Impossible de passer de ...: each of these checks has its own message. Three target every invoice, one targets only credit notes that are sales or self-billed invoices you issue, one targets only the sales of a company that belongs to a single taxable entity, one targets only the sales whose buyer carries the seller's SIREN, one targets only corrective invoices and credit notes that are sales or self-billed invoices you issue, one targets only the credit transfers of sales or self-billed invoices you issue, nine target the B2C lane only, and one targets only the deposit with the PPF.

  • deposit - Le PDF Factur-X joint n'est pas conforme. Remplacez-le par un fichier conforme avant de déposer la facture. You supplied the invoice PDF and its Factur-X conformance was evaluated as non-compliant. A conformance still unknown does not block the deposit; only a non-compliant verdict does. That verdict is also recorded on the invoice as a blocking import error, but this check is evaluated before the import-error one: this is therefore the message you receive.
  • deposit and make_available - La facture comporte des erreurs d'import bloquantes. Corrigez-les avant de changer son statut. This is the case for an invoice created without invoice_number, issue_date, type_code, or currency_code: Scribee fills the missing field with a placeholder and records a blocking error. A PATCH on the draft clears those errors and unblocks the transition.
  • deposit - Un avoir ne peut pas porter un total TTC négatif (-240.0). Saisissez ses montants avec les signes de la facture qu'il rectifie : c'est le type avoir qui en donne le sens. Pour annuler un avoir, émettez une facture qui le référence ; pour corriger une facture négative, émettez une facture rectificative. The invoice, a sale or a self-billed invoice you issue (Issue a self-billed invoice), is a credit note - credit_note (381), self_billed_credit_note (261), factored_credit_note (396), self_billed_factored_credit_note (502), retainer_credit_note (503), or consolidated_credit_note (262) - whose total including tax, tax_inclusive_amount (BT-112), is negative; the parenthesis of the message repeats that total. A credit note carries totals of the same sign as the invoice it cancels (XP Z12-012, §4.4.4): its type_code, not the sign of its amounts, gives them their direction. Negative lines remain accepted as long as the total including tax is not negative; an invoice (invoice, 380) whose total is negative is not concerned, nor are received invoices. As long as the refusal holds, deposit does not appear in lifecycle_available_transitions. Resend the amounts with the signs of the corrected invoice through a PATCH on the draft, then deposit again. To cancel a credit note, issue an invoice that cites it in invoice_references; to correct a negative invoice, issue a corrective invoice (corrected_invoice, 384) (Issue a sales invoice).
  • deposit - Des mentions légales obligatoires sont absentes de la facture (...). Renseignez-les dans les paramètres de facturation de l'entreprise, puis réessayez. One of the three mandatory legal mentions is missing as an item note. Together with the refusal of a Factur-X that is not PDF/A-3 conformant (see further down), it is one of the two transition refusals that fill details; it is detailed right below.
  • deposit - Cette facture a été créée alors que la société était membre d'un assujetti unique, mais elle ne le déclare pas en entier (SIREN du vendeur sous le schéma 0231, raison sociale, numéro de TVA et adresse de l'assujetti unique, note MEMBRE_ASSUJETTI_UNIQUE). Complétez l'assujetti unique dans les paramètres de la société, puis réenregistrez le brouillon avant de le déposer. The sales invoice was created by Scribee while the company declared a single taxable entity, but it does not carry the three items of that statement: the single taxable entity's SIREN on the seller, the complete tax_representative party, and the single tax_declaration note MEMBRE_ASSUJETTI_UNIQUE. This is the case when the company's settings only carried the SIREN when the invoice was created. Complete them in the Scribee interface, send a PATCH on the draft, then deposit again (Issue a sales invoice).
  • deposit - Le SIREN de l'acheteur est celui du vendeur : la facture vous serait adressée à vous-même. Corrigez le SIREN de l'acheteur avant de déposer la facture. Si votre entreprise facture une société en participation dont elle est le gérant, activez plutôt le paramètre "Gérant de sociétés en participation (SEP)" dans l'onglet Facturation électronique des paramètres de la société. The buyer of the sales invoice carries the seller's SIREN: once deposited, the invoice would come back to the company itself. The SIREN is read from the buyer's legal_registration_id and from the seller's; a SIRET counts as its SIREN. Only a buyer whose vat_identifier is a foreign VAT number escapes this refusal: this is the intra-EU stock transfer to an establishment of the company in another Member State (XP Z12-014 Annexe A, case 43b). The refusal does not apply either when the invoice's company has sep_manager at true: it declares itself the manager of sociétés en participation (SEP), which have no legal personality, so the invoice it addresses to them carries its own SIREN as the buyer's (XP Z12-014 Annexe A, case 37; Companies and establishments). This check targets neither purchases nor a buyer without a SIREN. Correct the buyer party with a PATCH on the draft, then deposit again.
  • deposit - Un avoir ou une facture rectificative doit indiquer la date d'émission de la facture antérieure à laquelle il se rapporte (BT-26, règles BR-FR-CO-04 et BR-FR-CO-05). Renseignez cette date avant de déposer la facture. The invoice, a sale or a self-billed invoice you issue (Issue a self-billed invoice), is a corrective invoice - corrected_invoice (384), self_billed_corrected_invoice (471), corrected_factored_invoice (472), or self_billed_corrected_factored_invoice (473) - or a credit note - credit_note (381), self_billed_credit_note (261), factored_credit_note (396), self_billed_factored_credit_note (502), or retainer_credit_note (503) -, and an entry of its invoice_references does not carry invoice_date, the issue date of the cited invoice (BT-26). Rules BR-FR-CO-04 (corrective invoice) and BR-FR-CO-05 (credit note) of the XP Z12-012 standard, Annexe A V1.4, require it. A credit note with no entry in invoice_references may cite the preceding invoice on its lines (invoice_reference_number and invoice_reference_date, EXT-FR-FE-136 and EXT-FR-FE-138); the deposit is then refused as soon as a line carries invoice_reference_number without invoice_reference_date. The two modalities are exclusive (rule G1.31): dated lines do not make up for an entry without invoice_date. Any other purchase invoice is not concerned, nor is a consolidated credit note (consolidated_credit_note, 262). Fill in invoice_date on the entry with a PATCH on the draft, then deposit again (Issue a sales invoice).
  • deposit - L'IBAN du bénéficiaire (BT-84) d'un moyen de paiement par virement ne passe pas le contrôle ISO 13616 (format ou clé MOD-97) : la banque du client ne pourrait pas effectuer le virement. Corrigez l'IBAN dans les moyens de paiement du brouillon avant de déposer la facture. A payment_means entry of the invoice, a sale or a self-billed invoice you issue (Issue a self-billed invoice), is a credit transfer - type_code 58 (SEPA credit transfer) or 30 - whose payee_account_id, the payee account (BT-84), fails the ISO 13616 check: the format (two country letters, two check digits, then 11 to 30 alphanumeric characters) and the MOD-97 check digits. The value is checked once its spaces are removed and its letters upper-cased. Under 58, the account is an IBAN and is always checked. Under 30, the account may be an identifier other than an IBAN (EN 16931, BT-84): only a value that starts like an IBAN, with two letters then two digits, is checked. A credit transfer without payee_account_id, the other payment means, and received invoices are not concerned. As long as the refusal holds, deposit does not appear in lifecycle_available_transitions. Correct payee_account_id with a PATCH on the draft, which resends every payment_means entry, then deposit again (Issue a sales invoice).

On deposit, these eight checks are evaluated in that order and the first one to fail supplies the message: an invoice that carries both a blocking import error and a missing legal mention only reports the import error, and you have to deposit again to discover the next one.

Nine further refusals target only sales, by a company declared in the emission wave, to a buyer the invoice does not identify: no SIREN, no legal_registration_id, no vat_identifier, or no buyer party at all. Such a sale is never sent as an invoice; unless every line is marked as a disbursement, it is declared in the daily B2C aggregate (Declare transactions), so its deposit is checked against what that declaration requires. Outside the wave, none of these nine refusals can reach it - and no Schematron check does either, as described below. The messages of these nine refusals all start with Cette vente s'adresse à un client que la facture n'identifie pas : elle est déclarée en données de transaction et non transmise comme facture. and then name the cause; they appear in full in the table above and return code: "operation_failed" with an empty details, like the eight checks before them.

  • Invoicing framework absent - the declared operation's category is derived from the invoicing framework alone, and neither invoicing_process_id nor the invoice lines supply one. Send invoicing_process_id on the invoice. The message differs depending on whether the invoice carries lines or none. A sale imported from a PDF or an image through the assisted extraction takes its framework from the nature read on each of its detail lines (product_type), and only when the extraction read it on all of them: a single line whose nature was not read supplies none.
  • Mixed invoicing framework that cannot be split - goods_and_services_invoice (M1), paid_goods_and_services_invoice (M2), and goods_and_services_final_invoice_after_retainer (M4) announce goods and services together, which the declaration counts apart by splitting the VAT breakdown according to each line's nature. Such a sale is refused only when its lines do not allow that split: no detail line, a line whose product_type is both, no VAT breakdown, or line amounts that net to zero. A sale under the margin scheme, or whose whole VAT breakdown is outside the scope of French VAT, is not affected. Send product_type as good or service on each line.
  • Margin-scheme sale mixed with other breakdowns - the declaration counts a margin-scheme sale in a category of its own. An invoice that carries both a VAT breakdown of category E whose exemption reason is VATEX-EU-F, VATEX-EU-I, VATEX-EU-J, or VATEX-EU-D, and another VAT breakdown - taxable, G or O -, is refused, whatever its currency. Issue the margin-scheme sales on a separate invoice.
  • Margin-scheme sale without a margin base - the declaration states such a sale on its margin excluding VAT and the VAT due on that margin, two amounts the invoice does not carry. An invoice that carries a VAT breakdown of category E whose exemption reason is VATEX-EU-F, VATEX-EU-I, VATEX-EU-J, or VATEX-EU-D is refused, whatever its currency, for want of a margin base. Supply these amounts in margin_bases, with a PATCH carrying only that key, then deposit the invoice again (Sales under the margin scheme).
  • Inconsistent margin base - the bases supplied are declared as stated, and Scribee checks their plausibility. A margin-scheme sale is refused, whatever its currency, as soon as a margin_vat_amount differs by more than one cent from its margin_base_amount taxed at its vat_rate, or the margins including VAT exceed the invoice's selling price. Correct the bases with a PATCH carrying only margin_bases, then deposit the invoice again.
  • Totals missing - the declaration sums the day's operations: both the total excluding VAT and the total VAT amount are required.
  • VAT total not in euros - the declaration is made in euros. An invoice denominated in another currency must carry the euro equivalent of its VAT total.
  • VAT breakdown absent - the declaration always carries a breakdown by VAT rate, including when the amounts are nil. An invoice carrying no breakdown line has nothing to record there: add at least one, at rate 0 and for a nil amount when the ticket is exempt.
  • Breakdown and totals disagree - the declaration carries the day's totals alongside their breakdown. The invoice's total excluding VAT and total VAT amount must therefore equal the sum of its VAT breakdown, exactly and to the centime, in the invoice's own currency.

These nine refusals are evaluated after the eight checks above, and in the order they are listed: a sale that carries both a blocking import error and an absent invoicing framework only reports the import error.

One refusal targets only sales, by a company declared in the emission wave, that you imported through POST /api/v1/workspaces/{workspace_id}/invoices/upload, other than sales to an unidentified buyer: no invoicing framework and a detail line with no product_type. The invoicing framework (BT-23) resolves from invoicing_process_id, from a profile_id that is a BT-23 code, or from the nature read on every detail line; without one, the generated invoice would fail rule BR-FR-08. Scribee therefore refuses the deposit by name, after the eight checks above and before any Schematron check. The message, in full in the table above, starts with La facture ne porte aucun cadre de facturation and answers code: "operation_failed" with an empty details. Send invoicing_process_id with a PATCH on the draft, or product_type on each line, then deposit it again. A sale created through POST /api/v1/workspaces/{workspace_id}/invoices is not affected.

A last refusal targets only sales, by a company declared in the emission wave, whose invoice is deposited with the PPF (flux 1) - a buyer carrying a SIREN and established in the French VAT territory (Declare transactions): an invoice whose VAT breakdown lines are all in category O (outside the scope of VAT). The PPF rejects a flux 1 whose VAT breakdown is entirely O (rule G2.32); Scribee therefore refuses the deposit itself, after the eight checks above and before any Schematron check. The message, in full in the table above, starts with Cette facture ne peut pas être déposée au Portail Public de Facturation and returns code: "operation_failed" with an empty details. An invoice that mixes an O breakdown with a taxable breakdown is not affected, nor is an invoice whose every line is marked as a disbursement: that one leaves the reform and is not deposited with the PPF (Issue a sales invoice). If these are disbursements, mark every line with disbursement through a PATCH on the draft; otherwise, correct the invoice's VAT categories; then deposit it again. This refusal does not apply when the buyer is a public entity, which rule G2.32 excludes: Scribee recognizes one when the buyer's SIREN designates, in the national directory, a legal unit of public type, decides it at deposit and keeps that answer for the whole transmission of the invoice. Such an invoice is deposited; nor does the flux 1 check apply G2.32 to it when its whole VAT breakdown is in category E with an exemption reason from article 261 of the CGI (VATEX-FR-CGI261-1, VATEX-FR-CGI261A...), or when it mixes O and E breakdowns.

One more refusal targets, for a company declared as part of the wave, every invoice Scribee issues - a sales invoice, except a self-billed sales invoice received from your customer, or a self-billed purchase invoice issued in the seller's name (Issue a self-billed invoice): no mandate of the invoice's company authorises the emission of its invoices on the day of the deposit. It takes a mandate that is signed, Active and in effect that day, covering send_invoices, a formal agreement designating the Approved Platform or a delegation mandate. The message is Aucun mandat en vigueur aujourd'hui n'autorise l'émission des factures de cette société. Il faut un accord formel désignant la Plateforme Agréée, ou une délégation couvrant l'émission des factures, signé et en vigueur à la date du dépôt : faites signer ou renouveler ce mandat, puis déposez de nouveau la facture. Rien n'a été déposé., with code: "operation_failed" and an empty details. It is evaluated after the eight checks above and before any Schematron check. Only deposit (200) is subject to it: reception statuses, the statuses that follow an accepted deposit, such as 212, and revert_to_draft (000) are not (Issue a sales invoice).

Two refusals, on the other hand, do keep the generic Impossible de passer de ... message, because no named check is at fault:

  • make_available on an invoice with direction sales that is in neither 200 nor 202, a draft for example. From 200 or 202, the state permits the transition to your customer's status, never to your call: you get La transition make_available ne peut pas être déclenchée manuellement.
  • revert_to_draft when the invoice did not enter Scribee by file, or when it is attached to a Peppol or PPF flow.

The three mentions are normally inherited from the company's disclaimer settings when you omit item_notes. You can also supply them yourself as item notes with the codes payment_detail_remittance_information, payment_information, and terms_of_payment. Sending your own item_notes array replaces the inherited mentions entirely: an explicit array that omits them blocks the deposit. The check only targets sales invoices Scribee itself issues: an invoice created with POST /api/v1/workspaces/{workspace_id}/invoices counts, an invoice that came in through POST /api/v1/workspaces/{workspace_id}/invoices/upload or another external channel does not. Purchase invoices are never concerned.

The refusal lists the missing mentions in the message, and repeats them field by field in details, under the key of the attribute to fill in in the company's invoicing settings:

{
"error": "unprocessable_entity",
"code": "operation_failed",
"message": "Des mentions légales obligatoires sont absentes de la facture (pénalités de retard, frais de recouvrement et escompte). Renseignez-les dans les paramètres de facturation de l'entreprise, puis réessayez.",
"details": {
"late_payment_disclaimer": ["Cette mention légale obligatoire est absente des paramètres de facturation de l'entreprise."],
"recovery_costs_disclaimer": ["Cette mention légale obligatoire est absente des paramètres de facturation de l'entreprise."],
"cash_discount_disclaimer": ["Cette mention légale obligatoire est absente des paramètres de facturation de l'entreprise."]
}
}

details only carries the mentions that are genuinely missing: a single key when a single mention is missing. The three possible keys, in the order they appear:

details keyMention quoted in the message
late_payment_disclaimerpénalités de retard
recovery_costs_disclaimerfrais de recouvrement
cash_discount_disclaimerescompte

The message repeats the same labels in the same order, in parentheses, separated by commas with the last one introduced by et.

A deposit requested in a single call - POST /api/v1/workspaces/{workspace_id}/invoices with lifecycle_state: "deposited" - is refused by the same checks, with the same message and the same details. One difference in shape only: where the transition endpoint always sends details, even empty, creation omits the key when it has nothing to put there. Treat details as optional on both sides.

Sending the original from the interface​

When validating in the interface, if no electronic delivery to the customer is planned, Scribee offers to email the original invoice. This includes a French B2B customer without an active directory address: the deposit then carries the NON_TRANSMISE reason. A selected email is prepared as soon as validation succeeds, without waiting for Peppol or the PPF. The PPF flow is still submitted when owed. A valid customer email address is required when the option is checked; unchecking it allows validation without that email.

The email uses the available original file without a duplicate watermark. When electronic delivery to the customer is planned, the duplicate option keeps its existing behavior. Schematron controls remain blocking before validation and sending for sales by a company declared in the emission wave, except for a sale to a buyer the invoice does not identify: such a sale, unless every line is marked as a disbursement, produces no document to submit to Schematron, and the nine B2C refusals described above guard its deposit instead. Outside the wave, no Schematron control guards the deposit.

The Schematron refusal: three causes, three codes​

The Schematron check applies at deposit and can refuse it for three distinct reasons, which you do not act on the same way. The code field tells them apart. The status is 422 in all three cases and the refusal is the same on every workspace.

This check only targets sales by a company declared in the emission wave. Before depositing such an invoice, Scribee validates the UBL document generated from its current data, including the final number, recipient address and VAT amounts selected for sending. When flux 1 is owed, its extract is also checked against the AIFE rules. This covers invoices created through the API, entered in Scribee or imported from SAP, even without an original XML file. An earlier export report does not replace this new check. Controls on an imported source file still apply when one exists.

:::warning Behaviour change Until now, this check applied to every sales invoice, including those of a company outside the emission wave - whose invoices are nonetheless never transmitted: no flux 1, no e-reporting, no Peppol copy. An invoice refused with 422 was refused in the name of rules no transmission applied to it. Outside the wave, the deposit no longer submits any document to Schematron: none of the three codes below can be raised against those invoices any more, and they deposit where they used to receive a 422. If your integration relied on that refusal to detect incomplete data, it is no longer what will tell you. :::

Within the wave, what the buyer carries as identifiers decides what is checked, because it decides what is transmitted.

A buyer the invoice does not identify - no SIREN, no legal_registration_id, and no vat_identifier, or no buyer party at all - is declared in the daily B2C aggregate and never sent as an invoice, so no UBL document is generated or judged for it: none of the three codes below can be raised against it, and its deposit is guarded by the nine B2C refusals described above. A sale whose every line is marked as a disbursement, and which therefore leaves the reform (Issue a sales invoice), is the exception: it is not declared in the B2C aggregate, none of the nine B2C-lane refusals reaches it, and its UBL document is generated and checked like that of the buyer described below, without the two addressing rules withdrawn from it.

A buyer with no SIREN but carrying a legal_registration_id or a vat_identifier - a business established outside the French VAT territory -, like a buyer carrying a SIREN but established outside that territory, also falls under a transaction declaration rather than an invoice deposit (Declare transactions). Its UBL document is generated and checked, and it is checked against the complete rule set: its profile's - EN 16931, or the EXTENDED-CTC-FR extended structures depending on the customization_id the invoice carries - and the BR-FR-Flux2 rule set, the business rules specific to France, which remain applicable to an international B2B sale.

Exactly two rules are withdrawn from it: BR-FR-12_BT-49, which requires the buyer's electronic address, and BR-FR-13_BT-34, which requires the seller's. The reform imposes them only "once the electronic invoice must be transmitted and awaits lifecycle statuses in return"; a sale declared through e-reporting transmits no invoice and awaits no status, so neither rule bears on it and neither is raised as a refusal or as a warning. Every other BR-FR-* rule keeps judging the document: invoice identifiers BR-FR-01 and BR-FR-02, type codes BR-FR-04, legal mentions BR-FR-05, and the BR-FR-BD-*, BR-FR-CO-*, BR-FR-DEC-* and BR-FR-MV-* families. An invoice that breaks one of them is refused at deposit, exactly as a domestic invoice is.

The flux 1 extract is not checked, since no flux 1 is owed. An invoice that only those two addressing rules refused now deposits; an invoice that breaks a rule of its profile - a VAT-breakdown rule such as BR-E-10, for example - is refused exactly as before.

On refusal, the existing invoice stays in draft, no final number is consumed and validation-triggered deliveries are not launched. Correct the reported data, then request deposit again. Warnings alone do not block validation. When creating with lifecycle_state: "deposited", refusal also rolls back creation: no invoice is recorded.

codeCauseWhat you do
schematron_fatalThe invoice carries a fatal Schematron assertion; a fatal assertion is never a mere warning.Deterministic refusal: fix the fields the response names, then deposit again.
schematron_engine_unavailableThe validation engine owed a verdict and could not produce one.Transient refusal: nothing says the invoice is invalid, it was not judged. Deposit the same document again later.
schematron_profile_unsupportedNo rule set the reform admits applies to this profile.Deterministic refusal: depositing again changes nothing, send the invoice under a profile the reform admits.

The checked document carries no character XML forbids. The control characters U+0000 to U+001F, except tab, line feed and carriage return, as well as U+FFFE and U+FFFF, are removed from the generated UBL document before it is checked; the value stored on the invoice is not modified. A field whose text consists only of such characters would be written empty: the deposit is then refused with 422 and code: "operation_failed", in the common envelope, and the message names the XML elements in question. Correct the stored text, then deposit again.

On the transition endpoint, schematron_fatal answers in a specific envelope: a top-level errors object, with no error, no message, and no details. code and violations sit beside errors, and nothing is removed from it. When creation requests a deposit, the same refusal keeps the error, message, code envelope, with the affected fields in details. Its message quotes each assert as <rule>: <text>, except two rules explained in French: BR-S-05 (a line in category S at a 0 % rate), tied to the line at fault (La ligne 2 est en catégorie de TVA S ...), and BR-IC-12 (an intra-community supply of goods, category K, with no delivery country), tied to the invoice (Cette facture est une livraison intracommunautaire de biens ...). details and violations always carry the rule text as the Schematron states it: rely on them rather than on message.

{
"errors": {
"document.payment_means[].payee_account.id": ["BR-61: [BR-61]-If the Payment means type code (BT-81) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (BT-84) shall be present."],
"document.payment_means[].type_code": ["BR-61: [BR-61]-If the Payment means type code (BT-81) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (BT-84) shall be present."]
},
"code": "schematron_fatal",
"violations": [
{
"source": "schematron",
"field": "document.payment_means[].payee_account.id",
"rule": "BR-61",
"type": null,
"severity": "fatal",
"message": "[BR-61]-If the Payment means type code (BT-81) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (BT-84) shall be present.",
"message_fr": null,
"message_en": null,
"xpath": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:PaymentMeans[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]"
},
{
"source": "schematron",
"field": "document.payment_means[].type_code",
"rule": "BR-61",
"type": null,
"severity": "fatal",
"message": "[BR-61]-If the Payment means type code (BT-81) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (BT-84) shall be present.",
"message_fr": null,
"message_en": null,
"xpath": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:PaymentMeans[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]"
}
]
}

The errors keys are field paths, the values arrays of messages in the form IDENTIFIER: message. violations restates each assertion under each of its fields, with the rule identifier apart in rule, the message as the engine reports it, without the IDENTIFIER: prefix, and the location of the failing node in xpath.

One assertion may be listed under several keys, as BR-61 is above. When the rule stands on a set of elements - the same constraint replayed over several parties, a calculation tying several amounts together, a test comparing two fields - it appears under each of the fields the rule puts in question, with the same text every time: the set is what is at fault, and naming a single member of it would blame a conformant field. So do not assume one key per assertion, and do not count keys to count assertions - deduplicate on the whole message, identifier included, or on the triple rule, xpath and message in violations. The identifier alone is not enough: for the AIFE PPF rules F1-* and F10-*, it is the AIFE pattern identifier, shared by several assertions. The shape of the body is unchanged by this: errors is still an object whose keys are field paths and whose values are arrays of strings.

The paths use the API field names, not the BT codes. A path names the field as you write it and as GET /api/v1/invoices/{id} returns it to you: the VAT breakdown therefore reads document.tax_subtotals[].vat_amount, document.tax_subtotals[].tax_category_id or document.tax_subtotals[].vat_rate, never BT-117 or BT-118. Only the message still quotes the BT terms of the standard. If your integration had frozen a correspondence between assertion identifier and field path, check it again: several paths have been corrected, those of the VAT breakdown in particular.

An assertion that no single field carries on its own arrives under document._schematron. That covers the rules constraining the structure of the document or the format of a value, and those bearing on a field the API does not publish. The message is still actionable, there is simply no field to point at: in violations, its field is null.

SCRIBEE-XML-02: the imported invoice's XML is not well-formed XML. When the XML parser refuses the file of an imported invoice, no rule could run, and the deposit is refused with schematron_fatal by this fatal assertion, specific to Scribee, under document._schematron. The refusal is permanent: depositing the same file again gives the same result. Correct the data at the source, then import the invoice again. It is the opposite of schematron_engine_unavailable, a transient refusal where the document was not judged: here, it was.

{
"errors": {
"document._schematron": ["SCRIBEE-XML-02: The document is not well-formed XML"]
},
"code": "schematron_fatal",
"violations": [
{
"source": "schematron",
"field": null,
"rule": "SCRIBEE-XML-02",
"type": null,
"severity": "fatal",
"message": "The document is not well-formed XML",
"message_fr": null,
"message_en": null,
"xpath": null
}
]
}

The message is in English whatever the language of the request, like that of the Schematron rules.

BR-FR-21_BT-49: the buyer's address, judged on the transmitted document. The BR-FR-Flux2 set only asserts rule BR-FR-21 on an invoice carrying a #BAR# processing note, which Scribee does not emit. Scribee therefore adds it itself to the check of the generated UBL document of an invoice transmitted as an electronic invoice - a sale subject to flux 1 -, self-billed invoices excepted: the buyer's electronic address (BT-49) must start with the buyer's SIREN (BT-47) and be emitted under scheme 0225. An invoice that breaks it is refused with schematron_fatal by this fatal assertion, specific to Scribee, under document.buyer.directory_routing_identifier, with rule set to BR-FR-21_BT-49 in violations. It is added to the Schematron's fatal assertions without replacing them. Unlike that of the Schematron rules, its message is in French and names the address, the scheme and the SIREN. Since address resolution comes before this check, an address it has already refused under another SIREN (see above) never reaches it. The fix is the same: send in the buyer's directory_routing_identifier an address under its own SIREN, then deposit again.

The other two refusals have no field to name - the invoice was not judged at fault, it was not judged at all - and take the common envelope, with an empty details and an empty violations:

{
"error": "unprocessable_entity",
"code": "schematron_engine_unavailable",
"message": "La facture n'a pas pu être contrôlée : le moteur de validation est indisponible. Réessayez le dépôt dans quelques instants.",
"details": {},
"violations": []
}
{
"error": "unprocessable_entity",
"code": "schematron_profile_unsupported",
"message": "La facture n'a pas pu être déposée : aucun jeu de règles sémantiques ne s'applique à ce profil. Transmettez-la sous un profil admis par la réforme.",
"details": {},
"violations": []
}

So handle both shapes on deposit: the body carries either errors, code, and violations, or error/code/message/details/violations. code and violations are present in both, and code is what you branch on.

The same three codes reach you when you request the deposit as part of the import - POST /api/v1/workspaces/{workspace_id}/invoices/upload with lifecycle_state: "deposited", see Import existing invoices - but never in the errors shape: that endpoint keeps its common envelope and passes the map of offending fields through its details, in place of the file key it usually puts there. The asymmetry is deliberate: each endpoint keeps the shape it already published, one errors, the other details, and code, like violations, is added to both without removing anything.

The PDF/A-3 check of an imported Factur-X​

A sales invoice imported as a Factur-X (source_format: "facturx", provided_pdf: false) is transmitted byte for byte. On deposit, after the Schematron check and before status 200, Scribee checks the PDF/A-3b (ISO 19005-3) conformance of that file with veraPDF. Purchase invoices and the invoices Scribee generates itself are not concerned.

A non-conformant file is refused. The invoice stays a draft, and details.file repeats the message, which names the failed PDF/A rules (three at most) and the file:

{
"error": "unprocessable_entity",
"code": "facturx_not_pdfa",
"message": "Factur-X non conforme PDF/A-3 (ISO 19005-3) : 6.8.1: The MIME type of an embedded file shall be specified using the Subtype key - FA-2026-0042.pdf. Corrigez le fichier puis déposez-le à nouveau.",
"details": {
"file": ["Factur-X non conforme PDF/A-3 (ISO 19005-3) : 6.8.1: The MIME type of an embedded file shall be specified using the Subtype key - FA-2026-0042.pdf. Corrigez le fichier puis déposez-le à nouveau."]
}
}

The facturx_not_pdfa code signals a final verdict for that file: do not replay the call. The verdict is recorded on the invoice, whose facturx_conformance becomes non_compliant, deposit disappears from lifecycle_available_transitions, and a new deposit request returns the same message and the same code. Fix the file, delete the draft, then import the corrected file (Import existing invoices, which also details the most frequent cause and how to avoid it).

If veraPDF cannot produce a verdict, the deposit is refused with the facturx_validation_unavailable code and an empty details. The file was not judged and nothing is recorded, facturx_conformance included: deposit the same invoice again later.

{
"error": "unprocessable_entity",
"code": "facturx_validation_unavailable",
"message": "La conformité PDF/A-3 (ISO 19005-3) du Factur-X n'a pas pu être contrôlée : le service de validation est indisponible. Réessayez le dépôt dans quelques instants.",
"details": {}
}

Branch on code: facturx_not_pdfa calls for a corrected file, facturx_validation_unavailable for the same call replayed later. An accepted deposit carries facturx_conformance: "compliant"; before any check, this field is null.

422: the offer does not include sales invoicing​

On a self-billed invoice received over the e-invoicing network (Peppol or PPF), of which your company is the seller, while the company's subscribed offer does not include sales invoicing:

{
"error": "unprocessable_entity",
"code": "operation_failed",
"message": "Votre offre n'inclut pas la facturation de vente. Contactez votre cabinet comptable pour mettre à niveau votre offre."
}

The invoice stays readable, but is written only through the answers the seller owes it whatever its offer - approve (205), dispute (207), refuse (210), collect (212) - and through its payments, which you keep recording, correcting, and deleting (Record payments). Refused with this response, without details:

  • PATCH /api/v1/invoices/{id}/transition for any other event a user may pose on this invoice, including take_in_charge (204), approve_partially (206), and suspend (208);
  • POST /api/v1/invoices/{id}/send_by_email (Send by email);
  • POST /api/v1/invoices/{invoice_id}/supporting_documents, DELETE /api/v1/invoices/{invoice_id}/supporting_documents/{id}, and PATCH /api/v1/invoices/{invoice_id}/supporting_documents/{id}/toggle_attachable (Supporting documents);
  • POST /api/v1/invoices/{invoice_id}/gocardless_payment (Collect by direct debit).

An event no user may pose on this invoice - complete (209), send_payment (211), reject (213), cancel (220) - is not concerned: it is refused for its own reason, as for a company whose offer includes sales. The same message answers POST /api/v1/workspaces/{workspace_id}/invoices with direction: "sales" (Issue a sales invoice). The refusal comes from the offer, not the invoice: replaying the call changes nothing as long as the company's offer does not include sales.

The other HTTP statuses​

401 (missing or expired token) and 403 (missing write scope) follow the common format described in API conventions.

404 covers more cases than an unknown invoice:

  • the invoice belongs to a workspace your application has no access to;
  • your IP address is refused by the workspace allowlist. The response is indeed 404, not the 403 documented elsewhere: refused workspaces are filtered out before the invoice is looked up;
  • the invoice direction is sales and the company's offer does not cover sales, except a self-billed invoice received over the e-invoicing network, which stays readable;
  • the invoice has been withdrawn from the workspace after it was created. A draft can be withdrawn from the Scribee interface: it then leaves GET /api/v1/workspaces/{workspace_id}/invoices and its identifier stops being resolved.

This withdrawal applies to every operation that designates the invoice by its identifier, without exception: GET /api/v1/invoices/{id}, PATCH /api/v1/invoices/{id}, PATCH /api/v1/invoices/{id}/transition, DELETE /api/v1/invoices/{id}, POST /api/v1/invoices/{id}/send_by_email, GET /api/v1/invoices/{id}/email_deliveries and GET /api/v1/invoices/{id}/download. It applies as well to the collections attached to the invoice, which resolve through that same identifier: the payments (/api/v1/invoices/{invoice_id}/payments) and the supporting documents (/api/v1/invoices/{invoice_id}/supporting_documents) go with their invoice, for reads as for writes. All answer 404 where they answered 200 before the withdrawal. No response field reports this withdrawal, and none was added for it: the v1 contract is unchanged. Nor is there any endpoint that lists withdrawn invoices or restores them.

Treat a withdrawn invoice like an invoice deleted by DELETE /api/v1/invoices/{id}, which already produces the same 404: your integration therefore already handles the case of an invoice it knew about becoming unavailable. Remove it from your local store and stop querying it. A 404 is not a transient error: replaying the call will change nothing.