Electronic invoicing mandates
The mandate is the document by which a company authorizes Scribee, as a Plateforme Agréée (French approved e-invoicing platform), to act on its behalf in the e-invoicing reform: issuing its invoices, receiving them, transmitting its e-reporting. It is the onboarding gate for every client you bring on: without an Active mandate, the company cannot be registered in the national directory or receive its invoices through Scribee, and without a signed mandate in effect that covers the relevant scope, Scribee does not deposit its issued invoices and does not transmit its e-reporting. This page walks through the entire journey, to be replayed for each company: creation, signature (two paths), KYC documents, submission for review, activation - then termination and deletion.
What Scribee does for you
- Determines the mandate type (
kind). When your workspace is an accounting firm, a tax representative or a bank:delegation, unless you senddelegation_mandate_id- the mandate is then astandardagreement your own representative signs on the strength of that delegation (see Signing the agreement on the strength of a delegation). In any other workspace:standard. You never send it in the request. - Assigns the mandate number (
mandate_number) at creation, in the regulatory four-segment format{SIREN_entreprise}_{identifiant_PA}_{AAAAMMJJ}_{compteur}: the SIREN of the company record - its nine-digitlegal_identifier, or the first nine digits of a fourteen-digitlegal_identifier-, read only when itslegal_registering_countryisFRor blank, the identifier of the Plateforme Agréée the mandate designates - Scribee's, or the workspace's SIREN when the workspace operates its own Plateforme Agréée -, the date the mandate is numbered under - for a mandate created through the API, its creation date - and a counter of at least two digits. The counter is decimal, left-padded with a zero below10, and it widens past99instead of being capped:01,02, ...99,100,1000. It runs per (SIREN, date) pair, is never reassigned, and can therefore skip values. If you derive a regular expression from it, the last segment is[0-9]{2,}, never[0-9]{2}. The number is assigned once and never revised. Two cases carry a shorter historical number: mandates predating this format, and any mandate created for a company record that carries no SIREN: itslegal_registering_countrynames a country other than France, whatever the digits of itslegal_identifier, or itslegal_identifieris blank or does not read as a SIREN. That historical number is made of the mandate's creation timestamp, in milliseconds, and a counter of at least two digits, for example1762345678901_01.mandate_numbertherefore carries both shapes, and the response does not distinguish them - treat it as an opaque string, neither composing nor parsing it. - Locks that SIREN: while an Incomplete, Pending review or Active mandate covers the company, its
legal_identifiercan no longer change (Companies and establishments). - For the electronic signature, generates the regulatory mandate document (PDF, in French) from the declared company record and signer, sends it by email to the signer, then attaches the signed document to the mandate with no action on your part.
- When that electronic signature completes, submits the mandate for review with no call on your part, provided it already meets the other submission conditions (step 4).
- Creates, as soon as the mandate is created, the three KYC document requests for a mandate whose
kyc_requiredistrue: Kbis extract - for an association, its RNA extract (association_registration_proof) -, identity document, proof of signing capacity (KYC documents). For anagentsigner, creates the identity document and the proof of signing capacity whatever the value ofkyc_required. - Derives the signer's quality (
signer_quality) when you do not send it at creation:delegatewithdelegation_mandate_id,legal_representativeotherwise (see step 1). - Refuses, with a
422, a mandate whose scope overlaps that of another mandate of the same company - at creation, on modification when a scope is added or when the date window widens, and on resubmission of a Rejected mandate (see The three scopes). - On approval of a
standardmandate, or of a signeddelegationmandate, coveringreceive_invoices, Scribee triggers the company's registration in the national directory (The national directory). - Terminates the mandate on the scheduled date, through a daily sweep that runs at 00:15 UTC - that is 01:15 in Paris in winter time and 02:15 in summer time. You call nothing on the day itself.
- On closing each dossier through which the company leaves Scribee for another Plateforme Agréée, terminates its reception mandate when every address it covers has left (see Departure to another Plateforme Agréée).
The three scopes
A mandate carries 1 to 3 scopes (scopes), each at most once:
scope | Label | What the mandate authorizes |
|---|---|---|
receive_invoices | Receive invoices | Receiving its e-invoices - a prerequisite for registration in the national directory |
send_invoices | Send invoices | Issuing its e-invoices |
e_reporting | E-reporting | The e-reporting of its transactions |
The same scope can be covered by only one of the company's mandates of the same type (kind) over overlapping dates, counting all of its mandates except the Rejected, Terminated and Deleted ones. A creation that would produce a duplicate responds 422. A Rejected mandate therefore does not block the replacement mandate you create on the same scope and dates. A delegation mandate and a standard mandate never block each other: the agreement signed on the strength of a delegation covers that delegation's scopes, over the same dates.
This check does not run on every save. It runs at creation, on a modification that adds a scope, on a modification that widens the date window: start_date moved earlier, end_date moved later or cleared - clearing it opens the window to infinity - on POST /api/v1/mandates/{id}/submit_for_review from Rejected, since the resubmitted mandate covers its scopes again, and on POST /api/v1/mandates/{id}/terminate when it cancels a scheduled termination or pushes its end_date later, since the window widens just the same (see Terminate an active mandate). In the modification cases, a PATCH that would make two mandates carrying the same scope overlap is refused with a 422, exactly as at creation (the dates being signed terms, such a PATCH presupposes an unlocked mandate anyway - see The lifecycle). A PATCH that only shrinks the window - start_date moved later, end_date moved earlier - or that resends the scopes list unchanged is not checked: a shrink cannot create an overlap the window did not already carry, and that exemption keeps a scheduled termination possible on a company that carries a legacy overlap.
The receive_invoices scope is not exclusive between companies: several companies carrying the same SIREN, in your workspace or in another, may each hold a reception mandate. Exclusivity is decided address by address, in the national directory (Who manages a directory entry).
The lifecycle: two independent tracks
The mandate carries two distinct tracks, and they advance independently: the mandate state (state) tracks the administrative journey, the signature status (signature_status) tracks the signing of the document. Sending the mandate for electronic signature does not change its state - it stays Incomplete - and review does not change the signature status. A single automatic link connects them: when the electronic signature completes on a mandate that is otherwise complete, Scribee submits it for review itself (see Path A).
That independence stops at the terms the document carries: the signature locks them. As long as signature_status is pending or signed, a PATCH that changes any of the ten signed terms - scopes, start_date, end_date, previous_approved_platform_name, previous_approved_platform_siren, previous_approved_platform_matricule, signer_first_name, signer_last_name, signer_role, signer_quality - is refused with a 422 carrying code: "operation_failed", and details names each offending term. The mandate does not move: the refusal is total, never partial.
Two details that matter for integration: signer_email is not one of the ten terms - it does not appear in the signed document - and resending a locked term with its current value is accepted. Only an actual change is refused, which lets you replay a full PATCH without splitting it up. Depending on the signature provider that carries the request, signer_email is nevertheless frozen while the request sent to that address is Pending: a PATCH that changes it then responds 422 with code: "operation_failed" and details.signer_email (see Errors and edge cases), and resending the current address unchanged is still accepted. To change the address in that case, cancel the request (POST /api/v1/mandates/{id}/cancel_signature), edit, then trigger the signature again; or call trigger_signature directly with the new signer_email, which this refusal does not affect: the call cancels the Pending request, sends a new one to the new address and records it on the mandate.
To really change those terms, the signature must not have completed yet: cancel the pending request (POST /api/v1/mandates/{id}/cancel_signature), edit, then trigger a new signature. A completed signature is sealed: it cannot be undone, DELETE /api/v1/mandates/{id}/signed_document refuses it, and the ten terms stay locked permanently. A signed mandate carrying the wrong terms is not corrected: it is replaced by a new mandate (see Undoing step 2).
The mandate state:
The signature status:
signature_status | Label | Meaning |
|---|---|---|
not_initiated | Not initiated | No signature request yet; both paths of step 2 remain open |
pending | Pending | Electronic signature request in progress with the signer; manual upload responds 422 |
signed | Signed | The signed document is attached to the mandate (has_signed_document becomes true); the signature is sealed and this status is final |
refused | Refused | The signer declined or the request expired; start a new signature |
cancelled | Cancelled | The pending signature request was cancelled through POST /api/v1/mandates/{id}/cancel_signature (or from the Scribee interface), or by a trigger_signature that cancelled the pending request without completing; the mandate is modifiable and signable again, exactly like not_initiated |
pending and signed are the two statuses that lock the mandate's terms; not_initiated, refused, and cancelled leave it modifiable. A single endpoint lifts that lock, and only before the signature completes: POST /api/v1/mandates/{id}/cancel_signature cancels a Pending request and moves the status to cancelled. From signed there is no way back: the signature is sealed and DELETE /api/v1/mandates/{id}/signed_document responds 422 (see Undoing step 2).
Step 1: create the mandate
This call creates the mandate in the Incomplete state in your workspace; nothing is transmitted externally, and the mandate stays deletable as long as it is not Active. The company is a record in your workspace (Companies and establishments). The write OAuth scope is required.
curl -X POST https://app.scribee.tech/api/v1/companies/YOUR_COMPANY_ID/mandates \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"mandate": {
"start_date": "2026-09-01",
"signer_first_name": "Jean",
"signer_last_name": "Dupont",
"signer_role": "Dirigeant",
"signer_quality": "legal_representative",
"signer_email": "jean.dupont@exemple.fr",
"scopes": ["receive_invoices", "send_invoices", "e_reporting"]
}
}'
Response 201, abbreviated to the fields useful here:
{
"data": {
"id": 42,
"company_id": 7,
"scopes": ["e_reporting", "receive_invoices", "send_invoices"],
"kind": "standard",
"delegation_mandate_id": null,
"state": "incomplete",
"mandate_number": "123456789_987654321_20240101_01",
"start_date": "2026-09-01",
"end_date": null,
"signer_quality": "legal_representative",
"signer_email": "jean.dupont@exemple.fr",
"has_signed_document": false,
"kyc_required": true,
"signature_status": "not_initiated"
}
}
start_date (the effective date), signer_first_name, signer_last_name, signer_role, and scopes are required. signer_email is required at creation of a mandate of type delegation (accounting-firm, tax-representative or bank workspace, without delegation_mandate_id); for a standard mandate, it can be supplied later, but the electronic signature requires it. end_date is optional and cannot precede start_date (an end_date equal to start_date is accepted).
signer_quality declares the signer's legal quality, beside the free-text title signer_role printed on the agreement:
signer_quality | The signer | Its proof |
|---|---|---|
legal_representative | the company's legal representative | at approval, the latest registry check run by Scribee must have found them among the company's legal representatives, under the first and last name the mandate carries (step 5) |
delegate | the delegate of the delegation mandate on the strength of which the agreement is signed | the delegation mandate itself; requires delegation_mandate_id (see Signing the agreement on the strength of a delegation) |
agent | an agent acting under a power of attorney | their power of attorney (signing_capacity_proof) and identity document (identity_paper), uploaded as KYC documents before submission (steps 3 and 4) |
Omitted at creation, signer_quality is derived: delegate when you send delegation_mandate_id, legal_representative otherwise - never agent, which only a call that names it records. Sent, it is kept as is: a value outside the table, empty or null responds 422, as does delegate without delegation_mandate_id. It is modified by PATCH like the mandate's other terms, and it is locked with them by the signature (see The lifecycle).
If the company is leaving another Plateforme Agréée for Scribee, provide previous_approved_platform_name, along with either previous_approved_platform_siren (French operator, 9 digits) or previous_approved_platform_matricule (foreign operator without a SIREN).
As long as the mandate is Incomplete or Rejected, it can be modified via PATCH /api/v1/mandates/42 with the same fields; a scopes array sent on modification replaces the mandate's entire set of scopes. The mandate state says whether it is modifiable; the signature status says what still is: as soon as a signature is Pending or completed, the ten terms the signed document carries are locked (see The lifecycle).
Signing the agreement on the strength of a delegation
This case is reserved for accounting-firm, tax-representative and bank workspaces. Without delegation_mandate_id, creation produces the delegation mandate by which your client delegates to you. With delegation_mandate_id, it produces the standard agreement that your own representative signs for the company, on the strength of that delegation mandate: signer_first_name, signer_last_name and signer_role then designate that representative, signer_quality is delegate - derived when you do not send it, and any other value responds 422 -, and the document generated for the electronic signature states your entity, its SIREN and the delegation mandate's number.
{
"mandate": {
"delegation_mandate_id": 41,
"start_date": "2026-09-01",
"signer_first_name": "Claire",
"signer_last_name": "Martin",
"signer_role": "Expert-comptable",
"signer_email": "claire.martin@cabinet.example",
"scopes": ["receive_invoices"]
}
}
At creation, the designated mandate must:
- be a mandate of type
delegationof the same company; - be Active, with
signature_statusatsigned, and in effect on the day of the call; - cover each of the agreement's scopes;
- cover its dates: the agreement's
start_dateis not earlier than the delegation's and, when the delegation carries anend_date, the agreement carries anend_datethat does not go beyond it.
Your workspace, the entity that signs, must also carry a 9-digit SIREN. Otherwise creation responds 422 (see Errors and edge cases). Sent from any other workspace, delegation_mandate_id is refused with 422, never ignored.
delegation_mandate_id is chosen at creation only: PATCH /api/v1/mandates/{id} ignores it. Every mandate response carries it: the delegation mandate's identifier for such an agreement, null for an agreement the company signs itself and for a delegation mandate. Such an agreement carries kyc_required at false: the delegation is its only KYC piece (step 3).
The delegation is checked again on a PATCH that widens the agreement's period - start_date moved earlier, end_date moved later or removed - or adds a scope to it, when the electronic signature is triggered, on submission for review and on approval by Scribee: an agreement whose delegation is no longer Active, signed and in effect, or no longer covers its scopes and dates, or whose workspace is no longer an accounting firm, a tax representative or a bank, or has no 9-digit SIREN, is not sent for electronic signature, not submitted and not approved. A PATCH that shortens the agreement's period is not checked again, even when the delegation has since ended. An agreement already approved stays Active when its delegation ends.
Step 2: obtain the signature - two paths
Both paths lead to the Signed status, a condition for submission for review. Only one path advances at a time, and the Signed status is one-way: as long as the signature has not completed it can be cancelled, once completed it is sealed.
- As long as an electronic request is Pending, manual upload responds
422: cancel the request first (POST /api/v1/mandates/{id}/cancel_signature). - Once
signature_statusissigned, both paths are closed for that mandate: path B responds422,trigger_signatureresponds422, andDELETE /api/v1/mandates/{id}/signed_documentrefuses them instead of reopening them. The only remaining path is a new mandate. - A second
trigger_signaturewhile a request is Pending first cancels that request with the provider, then creates a new request and sends a new email to the signer. Each call opens a new request: to restart a Pending signature, a new call is enough, with no prior cancellation. - If that cancellation fails, Scribee reads the request's state at the provider. Already signed: the call responds
422withcode: "operation_failed", with no new request, and the signature is recorded when the provider's signature event arrives, as in path A - unless Scribee refused that completed signature when that event arrived, because it cannot record it: a signer who does not match the mandate's (a different email address or name, or not a single signer), or not exactly one signed document with a valid identifier. The new request then replaces it, and the signer receives a new email. A refusal established only by the hourly check Scribee runs on requests still Pending does not open that replacement: the call keeps responding422as above, and the request stays Pending. Already ended (cancelled, expired, or declined): the new request replaces it. In any other case - request still in progress, or state unreadable -, the call responds422withcode: "validation_failed": no new request is created, and the first one stays recorded, Pending. - If the mandate's signature request changes at the same moment - for example another
trigger_signatureor acancel_signaturein progress -, the call responds422withcode: "operation_failed": re-read the mandate, then retry. If the mandate's terms are modified whiletrigger_signatureprepares the request - possible on a mandate with no Pending request, and on a second call as soon as the Pending request is cancelled -, the call responds422withcode: "operation_failed"and Scribee asks the provider to withdraw the new request: re-read the mandate, then calltrigger_signatureagain. If the new request cannot be created once the first one is cancelled, the call fails andsignature_statusiscancelled:trigger_signaturecan be called again. trigger_signatureon an Incomplete mandate that is already Signed is refused with a422carryingcode: "operation_failed": a completed signature is never silently replaced, nor its document overwritten. There is nothing to remove in order to trigger again - create a new mandate.
Path A: electronic signature
This call creates an electronic signature request and sends a real email to the signer, containing the signature link with verification by a one-time code received by email. There is no test environment: the address provided receives this email in production. The request expires after 14 days; its exact deadline is read from signature_provider_expires_at. The mandate must be Incomplete; its state does not change, only the signature status moves to Pending.
curl -X POST https://app.scribee.tech/api/v1/mandates/42/trigger_signature \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"signer_email": "jean.dupont@exemple.fr", "locale": "fr"}'
signer_email is optional: if omitted, the call uses the address already carried by the mandate. locale (fr or en, fr by default) sets the language of the signing interface; the mandate document itself is in French, being a regulatory document.
Triggers are limited per mandate, per workspace, per OAuth application and per signer address; beyond a limit, the call responds 429 without sending anything (see Errors and edge cases).
Then track the request - a read with no side effect, the read scope is enough:
curl https://app.scribee.tech/api/v1/mandates/42/signature_status \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"data": {
"id": 42,
"state": "incomplete",
"signature_status": "pending",
"signature_provider_status": "ongoing",
"signature_provider_expires_at": "2026-09-15T09:30:00+02:00"
}
}
Timestamps are rendered in the Europe/Paris time zone, with the explicit offset (+02:00 in summer time, +01:00 in winter) - never a Z.
signature_provider_status is ongoing, done, declined, or expired, and null as long as no request has been created. Upon signing, Scribee downloads the signed document and attaches it to the mandate with no action on your part: signature_status moves to signed and has_signed_document to true. If the mandate then already meets the other conditions of step 4 - the three standard KYC documents provided when kyc_required is true, the power of attorney and identity document of an agent signer provided, no requested document in the requested status - Scribee submits it for review within moments: state moves to pending_review with no submit_for_review call on your part. Between the signature and that submission, the mandate can briefly read with signature_status at signed and state still at incomplete. Otherwise the mandate stays Incomplete with signature_status at signed, and you submit it yourself in step 4 once the missing item is provided. Uploading the KYC documents before triggering the signature therefore lets the mandate go to review as soon as it is signed. If the signer declines or the request expires, signature_status moves to refused - then trigger trigger_signature again.
Path B: upload a signed document
This call attaches a signed PDF to the mandate and moves the signature status to Signed; nothing is transmitted externally. It is irreversible: the upload completes the signature, which is sealed in the same movement. The document cannot be replaced and cannot be removed. Re-read the PDF before the call; a wrong document is corrected by a new mandate, not by a second upload.
It serves the circuit where the document is signed outside Scribee - handwritten signature or your own tool. The mandate must be Incomplete or Rejected, the file is a PDF strictly smaller than 50 MiB (52,428,800 bytes) - a file of exactly 50 MiB is refused -, and no signed document must already be attached. The API never exposes the download of the document: the only signal exposed is the has_signed_document boolean. The PDF you uploaded is never retrievable through the API - keep your own copy; to obtain a copy, contact Scribee.
curl -X POST https://app.scribee.tech/api/v1/mandates/42/upload_document \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-F "file=@mandat_signe.pdf" \
-F "signed_on=2026-09-10"
The optional signed_on field carries the date written next to the signature on the paper mandate, in ISO 8601 format (YYYY-MM-DD); Scribee records it as the mandate's signature date. Without it - field absent or empty -, the upload still succeeds and the upload day (Europe/Paris time zone) is recorded as a placeholder date: Scribee does not approve the mandate until a Scribee operator has entered the date written on the paper mandate, and the submitted mandate stays Pending review until then. So always send signed_on. A malformed date or one later than the day of the call is refused with 422 and nothing is attached. A date earlier than the mandate's creation is accepted. The date does not appear in the mandate response, and the mandate number, assigned at creation, does not change.
Response 200: the mandate with signature_status at signed and has_signed_document at true. state does not change: unlike path A, the upload never submits the mandate for review - submit it in step 4.
Undoing step 2: cancel a pending request
A single endpoint undoes step 2, and only as long as the signature has not completed. It responds 200 with the updated mandate.
Cancel a Pending request. The write scope is required. The signature request in progress is cancelled with the provider, signature_status moves to cancelled, and signature_provider_status and signature_provider_expires_at come back to null. Scribee no longer records a signature from that request. The mandate becomes modifiable again and both paths reopen. A mandate whose signature_status is not pending responds 422. If the mandate's signature request changes during the call - a trigger_signature or another cancel_signature in progress -, the call responds 422 with code: "operation_failed": re-read the mandate, then retry. On a Deleted mandate whose request is Pending, the call responds 422 with code: "operation_failed" and nothing is sent to the provider: the deletion is what withdraws the request (see Delete a mandate). The same response applies if the deletion takes effect during the call.
curl -X POST https://app.scribee.tech/api/v1/mandates/42/cancel_signature \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Removing a signed document: that path is closed. DELETE /api/v1/mandates/{id}/signed_document still exists and still asks for the write or the destroy scope, but it refuses a completed signature. Every signature that completes is sealed by immutable evidence, whichever path produced it - electronic signature as well as upload - and the endpoint then responds 422, code: "validation_failed", with in details.base: La signature de cet accord est scellée et ne peut pas être annulée. Créez un nouvel accord plutôt que de resigner celui-ci.
So do not build any correction loop around this endpoint. To restart from correct terms or a correct document: delete the offending mandate (DELETE /api/v1/mandates/42, allowed from Incomplete, Pending review, and Rejected), then create the new mandate and have it signed. That order matters: as long as the offending mandate exists and is not Rejected, a new mandate covering the same scopes over overlapping dates is refused with a 422.
Step 3: provide the KYC documents
The mandate's kyc_required field tells you whether this step applies. It is false in two cases: a mandate of type delegation held by an accounting-firm, tax-representative or bank workspace, and a standard agreement signed on the strength of a delegation (delegation_mandate_id set, see step 1). Any other mandate of type standard carries kyc_required at true, whatever workspace holds it. When it is true, Scribee has already created the three requests when the mandate was created: all that remains is for you to upload the files. For an association, the RNA extract (association_registration_proof) replaces the Kbis extract there (KYC documents).
A mandate whose signer is agent also requires, whatever the value of kyc_required, the agent's power of attorney (signing_capacity_proof) and identity document (identity_paper): Scribee creates these two requests when the mandate is created, or at submission when signer_quality was changed to agent by a PATCH.
Scribee can also request an additional document during review (kind: additional); it appears in the same list and blocks submission until it is provided, including when kyc_required is false.
curl https://app.scribee.tech/api/v1/mandates/42/kyc_documents \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Abbreviated response:
{
"data": [
{ "id": 103, "kind": "signing_capacity_proof", "status": "requested", "has_file": false },
{ "id": 102, "kind": "identity_paper", "status": "requested", "has_file": false },
{ "id": 101, "kind": "kbis_extract", "status": "requested", "has_file": false }
]
}
The list is sorted by created_at descending by default, so the three standard requests come back in the reverse of their creation order.
Uploading the files, each document's statuses, and their rules are detailed in KYC documents.
Step 4: submit the mandate for review
This call moves the mandate to Pending review; the review is carried out by the Scribee team, nothing is transmitted externally. Seven conditions, checked in this order: the mandate is Incomplete or Rejected; signature_status is signed (either path of step 2); for an agreement signed on the strength of a delegation, that delegation is still Active, signed, in effect, and covers its scopes and dates; for an agent signer, their power of attorney (signing_capacity_proof) and identity document (identity_paper) are provided; the three standard KYC documents are provided, when kyc_required is true; no requested document is left in the requested status; for a resubmission from Rejected, no Incomplete, Pending review or Active mandate of the company covers one of its scopes over overlapping dates. Otherwise the call responds 422 and the mandate stays in its state. Before these checks, on an Incomplete or Rejected mandate whose kyc_required is true, Scribee creates in requested status each standard KYC document that is absent - and, for an agent signer, the absent identity document and proof of signing capacity, whatever the value of kyc_required -, and those documents stay created when the call responds 422: after a refusal for missing KYC documents, relist the documents of step 3 and upload the files on them.
After a signature through path A, re-read state first: if the mandate already met these conditions at signing, Scribee submits it itself within moments and it moves to Pending review. A mandate still Incomplete right after the signature may therefore still be submitted automatically: re-read state before submitting it yourself. submit_for_review on a mandate already submitted responds 422, since it is no longer Incomplete (see Errors and edge cases): go straight to step 5. After path B, the call is always required.
curl -X POST https://app.scribee.tech/api/v1/mandates/42/submit_for_review \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Abbreviated response:
{
"data": {
"id": 42,
"state": "pending_review",
"signature_status": "signed"
}
}
Step 5: track the review through to activation
The review concludes with no call on your part; re-read the mandate to observe the outcome - the read scope is enough.
curl https://app.scribee.tech/api/v1/mandates/42 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Before approving a mandate whose signer is legal_representative, Scribee checks at the registry that this signer is among the company's legal representatives: as long as the latest check has not found them, under the first and last name the mandate carries, the mandate is not approved. For an agent signer, the power of attorney and identity document must still be provided at approval.
Three possible outcomes:
statemoves toactive: the mandate is in force as soon as its contractual period covers the current day - the formal agreement carries the date from which Scribee may act on the company's behalf. In the API, national directory writes go through a company that itself holds anactivemandate coveringreceive_invoicesin force on the relevant day; another company carrying the same SIREN may hold its own, and each writes only the entries it manages (The national directory); a mandate covering onlysend_invoicesore_reportingdoes not unlock them. Depositing an invoice Scribee issues for a company declared as part of the 1 September 2026 issuing wave requires a signed mandate coveringsend_invoices, and transmitting an e-reporting declaration a signed mandate coveringe_reporting, each Active and in effect on the day of the call, a formal agreement designating the Approved Platform or adelegationmandate (Issue a sales invoice, E-reporting); no other endpoint has an active-mandate precondition. The two bounds do not work the same way:start_datecounts the day itself,end_datedoes not, so the period's last day does not count. The relevant day is not always the day of the call: a registration is judged on its effective date, so a mandate whose period only starts later already permits registering an entry dated within that period.statemoves torejected: the mandate becomes modifiable again. The rejection reason is viewable in the Scribee interface. Rejection touches onlystate: the signature status and the signed document are kept, so the lock is kept too - as long as the signed document is attached, aPATCHon any of the ten signed terms responds422. If only the KYC documents are at fault, submit again directly, carrying the original signature. If the terms are, there is no correction loop on that mandate: its signature is sealed, so the ten signed terms stay locked and removing the signed document is refused. Delete the rejected mandate (DELETE /api/v1/mandates/{id}), create the corrected mandate, have it signed through path A or path B, then submit it (POST /api/v1/mandates/{id}/submit_for_review). A Rejected mandate does not block a replacement mandate on the same scope; but once that replacement is created, resubmitting the Rejected mandate responds422(see The three scopes).statereturns toincomplete: Scribee requests changes or an additional document - re-read the KYC list from step 3, then submit again.
All of a company's mandates are listed via GET /api/v1/companies/YOUR_COMPANY_ID/mandates (sorted by state, mandate_number, start_date, or created_at, defaulting to created_at descending; associations company and kyc_documents via include).
Terminate an active mandate
This call schedules the termination: the mandate stays Active with end_date set, and the daily 00:15 UTC sweep (01:15 or 02:15 in Paris depending on the season) moves it to Terminated once the date is reached. Nothing is transmitted externally by this call. end_date must be at the earliest tomorrow (J+1); until the effective date, the termination is cancelled by calling the same endpoint again without end_date (or with null).
Cancelling the termination, or pushing end_date later, reopens the mandate's period: the call then answers 422 if the reopened period overlaps another mandate of the company on the same scope (see The three scopes). The mandate then keeps its end_date. Setting a first end_date, or moving it earlier, is never refused for this reason.
The scheduled date is not the only route into Terminated: Scribee can also terminate an Active mandate immediately from its internal interface, with no end_date. A mandate you re-read may therefore have moved to Terminated while its end_date is null. The company's departure to another Plateforme Agréée is a third route (see Departure to another Plateforme Agréée).
curl -X POST https://app.scribee.tech/api/v1/mandates/42/terminate \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"end_date": "2026-12-31"}'
Abbreviated response:
{
"data": {
"id": 42,
"state": "active",
"end_date": "2026-12-31",
"termination_date": null
}
}
Once terminated, the mandate carries termination_date and the Terminated state is final: to reauthorize Scribee, create a new mandate.
Departure to another Plateforme Agréée
When the company leaves Scribee for another Plateforme Agréée, Scribee closes the dossier of that platform change with no call on your part; a single departure may be spread over several dossiers. A dossier's date is the day its reception addresses stopped being routed to Scribee: the latest of the effective dates of the addresses it accepted.
Mandates are evaluated only when a dossier closes, within that closure. Scribee then examines each Active mandate of the company - a formal agreement designating Scribee, or a delegation mandate - whose start_date precedes the dossier's date and which covers at least one of its addresses. It terminates that mandate when both of the following conditions hold:
- the mandate covers only
receive_invoices; - every reception address it covers has left: those the signed agreement lists or, when it does not list them all one by one, the directory entries Scribee registered under the mandate - at least one -, an entry already closed on the end date defined below not counting. The departures of every already closed outbound dossier of the company count, whatever order they were closed in. For each address, only its latest departure since the mandate's
start_datecounts, and it no longer counts if the address came back to Scribee after it: through a Scribee directory entry starting after that departure, or through an accepted inbound platform change dated after it.
The end date is the latest of the departure dates of the addresses the mandate covers, and never earlier than the date of the dossier being closed. If it has passed or falls on the closure day, the mandate moves to Terminated with termination_date set to that date: it is the first day the mandate no longer covers, so it covers up to the day before. The dossier closes after the platform change, so this date is usually earlier than the day you observe the termination. end_date is not modified and may be null. If the end date is still ahead, the mandate stays Active and Scribee sets its end_date to that date, like a scheduled termination: the daily sweep moves it to Terminated once the date is reached. A mandate whose end_date already falls on or before that date keeps its end_date.
Otherwise, the mandate stays Active and Scribee reviews it. This is the case for a mandate that also covers send_invoices or e_reporting, which stays in force so that the periods before the departure can still be transmitted, and for a mandate some of whose addresses have not left or have come back. Through this route, such a mandate can only be terminated on the closure of a later dossier that takes one of its addresses.
Delete a mandate
DELETE removes a mandate that will never be activated - a data-entry error, an abandoned journey. Allowed from Incomplete, Pending review, and Rejected; an Active or Terminated mandate responds 422. The write scope is required.
curl -X DELETE https://app.scribee.tech/api/v1/mandates/42 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response 204, with no body. The deletion is logical: the mandate moves to the Deleted state, remains readable in lists and individually, and is no longer modifiable or submittable. A second DELETE on that mandate responds 422 with the same message as on an Active or Terminated mandate - a message that nonetheless names only those two states. If the deletion cannot be saved, the call responds 422 with code: "validation_failed" and the mandate is not deleted.
If the signature request is Pending (signature_status is pending), Scribee also withdraws it with the provider, in the background and on a best-effort basis, with no guarantee of success: once withdrawn, the link already sent to the signer no longer leads anywhere, while the deleted mandate keeps signature_status at pending. If the signer had already signed before that withdrawal took effect, Scribee still attaches the signed document to the deleted mandate, as proof: has_signed_document becomes true, with no other effect on the mandate - state stays at deleted, signature_status at pending, the mandate is not submitted for review, and that document cannot be removed (422).
What happens next
- On approval of a
standardmandate, or of a signeddelegationmandate, coveringreceive_invoices, Scribee triggers the company's registration in the reform's national directory, kept by the PPF (Portail Public de Facturation) - with no call on your part: The national directory. - Directory writes go through a company holding an Active mandate covering
receive_invoices, in force on the relevant day, and a modification or a masking through the company that manages the entry. Without that, they respond403. - Once the mandate is Active, proceed with the business integration: Issue a sales invoice, Receive supplier invoices, Declare transactions.
Errors and edge cases
Validation failures respond 422 with error: "unprocessable_entity", code: "validation_failed", and the cause in details.base. Several refusals on this page carry code: "operation_failed" and a different shape (see below). Base your handling on the HTTP status and on code, never on the message text (API conventions).
{
"error": "unprocessable_entity",
"code": "validation_failed",
"message": "La validation a échoué",
"details": {
"base": ["Le mandat doit être en état incomplet pour initier la signature"]
}
}
The causes by message, in the same format. The table is not exhaustive: any other model validation comes back in details.base, in the same format.
details.base | Cause | What you do |
|---|---|---|
| Périmètres doit comporter au moins 1 périmètre. | scopes empty or missing at creation | provide 1 to 3 scopes from the table |
| Périmètres n'est pas valide | a scopes value is not in the scope table | send only receive_invoices, send_invoices, or e_reporting; the message does not name the offending value |
| Périmètres Un mandat actif couvre déjà l'un des périmètres sélectionnés. | another mandate of the company of the same type (kind), neither Rejected, nor Terminated, nor Deleted, already covers this scope over overlapping dates - at creation, on modification, on resubmission of a Rejected mandate, or on terminate when it cancels a scheduled termination or pushes its end_date later | reuse the existing mandate, or terminate it first; on resubmission, carry on with the mandate that already covers the scope |
| Le mandat doit être en état incomplet ou rejeté | PATCH, upload_document, or submit_for_review on a non-modifiable mandate, including a mandate already submitted automatically when its electronic signature completed | re-read state; only Incomplete and Rejected are modifiable, and a mandate already pending_review no longer needs submitting |
| Le mandat doit être en état incomplet pour initier la signature | trigger_signature outside the Incomplete state | only an Incomplete mandate goes out for electronic signature; from Rejected, use path B |
| L'adresse e-mail du signataire est requise pour initier la signature | no signer_email, neither in the call nor on the mandate | provide signer_email |
| Annulez la demande de signature en cours avant de télécharger un document manuel. | upload_document during an electronic request that is Pending | cancel the request (POST /api/v1/mandates/{id}/cancel_signature), or wait for its outcome |
| Un document signé est déjà associé. Retirez-le avant d'en téléverser un nouveau. | upload_document on a mandate that already carries a signed document | the document in place cannot be removed: its signature is sealed. Create a new mandate |
| This mandate designates the workspace's Approved Platform under a SIREN or registration it no longer holds. It cannot be signed: create a new mandate. | upload_document on a mandate that designates the workspace's own Plateforme Agréée, while the workspace no longer operates it under the identifier the mandate carries; trigger_signature carries the same refusal with code: "operation_failed", this text as its message | create a new mandate |
| This mandate designates the workspace's own Approved Platform and names a previous Approved Platform: changing platform is not yet supported in its name. It cannot be signed: create a new mandate without a previous Approved Platform or contact support. | upload_document on a mandate that designates the workspace's own Plateforme Agréée and names a previous Plateforme Agréée; trigger_signature carries the same refusal with code: "operation_failed", this text as its message | create a new mandate without previous_approved_platform_name, previous_approved_platform_siren or previous_approved_platform_matricule, or contact support |
| La signature de cet accord est scellée et ne peut pas être annulée. Créez un nouvel accord plutôt que de resigner celui-ci. | DELETE .../signed_document on a mandate whose signature completed, through either path | remove nothing: delete the mandate (DELETE /api/v1/mandates/{id}), then create and have the new one signed |
| La demande de signature ne peut être annulée que tant qu'elle est en attente | cancel_signature on a mandate whose signature_status is not pending | re-read signature_status; a completed signature cannot be undone |
| Erreur du fournisseur de signature : ... | trigger_signature or cancel_signature: the electronic signature provider could not process the request (temporarily unavailable, or a refusal on its side); the text after the colon varies | call the same endpoint again later; after a trigger_signature on a mandate with no Pending request, signature_status has not moved to pending and the mandate stays Incomplete; after a trigger_signature on a Pending request, re-read signature_status: pending if cancelling the first request failed, which then stays recorded, cancelled if the new request could not be created; after cancel_signature, signature_status is still pending and the mandate is unchanged |
| Le document signé ne peut être supprimé que sur un mandat modifiable | DELETE .../signed_document outside the Incomplete and Rejected states | re-read state; an Active mandate's document cannot be removed |
| Aucun document signé n'est associé à ce mandat | DELETE .../signed_document on a mandate with no attached document | nothing to remove; has_signed_document was already false |
| Un fichier est requis | upload_document without a file field, or with a file field sent as a form value rather than as a file | send the PDF as multipart/form-data, field file |
| La date de signature n'est pas une date valide. | upload_document whose signed_on is not an ISO 8601 date | send the date written on the mandate as YYYY-MM-DD, or omit the field |
| La date de signature ne peut pas être dans le futur. | upload_document whose signed_on is later than the day of the call | send the date written on the paper mandate |
| Document de mandat signé doit être un fichier PDF | file of another type | convert to PDF |
| Document de mandat signé doit être inférieur à 50 Mo | file too large | compress the PDF |
| La signature électronique du mandat est requise avant soumission. | submit_for_review while signature_status is not signed | complete step 2, whichever path |
| Mandat de délégation est réservé aux cabinets comptables, aux représentants fiscaux et aux banques | delegation_mandate_id sent at creation from a workspace that is neither an accounting firm, nor a tax representative, nor a bank | do not send delegation_mandate_id: the company signs its agreement itself |
| Mandat de délégation exige le SIREN à 9 chiffres de l'espace signataire | delegation_mandate_id sent at creation from a workspace without a 9-digit SIREN | fill in your workspace's SIREN, then replay the creation |
| Mandat de délégation n'est pas un mandat de délégation de cette entreprise | delegation_mandate_id names no mandate of type delegation of the company | list the company's mandates and send the id of its delegation |
| Mandat de délégation n'est pas signé et en vigueur | the designated delegation is not Active, signed and in effect on the day of the call - at creation, or on a PATCH that widens the agreement's period or adds a scope to it | get the delegation signed and approved before creating the agreement |
| Mandat de délégation ne couvre pas tous les périmètres de cet accord | one of the agreement's scopes is not covered by the delegation | remove that scope from the agreement |
| Mandat de délégation ne couvre pas les dates de cet accord | the agreement's start_date precedes the delegation's, or the delegation carries an end_date that the agreement goes beyond or does not have | align the agreement's dates with the delegation's period |
| Le mandat de délégation sur lequel repose cet accord n'est plus signé et en vigueur. Faites signer un nouveau mandat de délégation au client, puis créez un nouvel accord. | submit_for_review on an agreement whose delegation is no longer Active, signed and in effect; trigger_signature carries the same refusal with code: "operation_failed", with this text as message | have a new delegation signed, then create a new agreement on its strength |
| Seuls un cabinet comptable, un représentant fiscal ou une banque peuvent signer un accord sur le fondement d'un mandat de délégation. | submit_for_review on an agreement signed on the strength of a delegation, while your workspace is no longer an accounting firm, a tax representative or a bank; trigger_signature carries the same refusal with code: "operation_failed", with this text as message | the agreement can no longer go through: the company signs its agreement itself |
| L'espace qui signe cet accord au titre de la délégation n'a pas de SIREN à 9 chiffres. Renseignez le SIREN de l'espace, puis réessayez. | submit_for_review on an agreement signed on the strength of a delegation, while your workspace has no 9-digit SIREN; trigger_signature carries the same refusal with code: "operation_failed", with this text as message | fill in your workspace's SIREN, then replay the call |
| Les dates de cet accord ne sont pas comprises dans celles du mandat de délégation sur lequel il repose. | submit_for_review on an agreement whose delegation now has an end_date that the agreement goes beyond or does not have; trigger_signature carries the same refusal with code: "operation_failed", with this text as message | create a new agreement whose dates fit within the delegation's |
| Tous les documents KYC requis doivent être téléchargés avant la soumission | one of the three standard KYC documents of the company's legal form has not been provided yet, on a mandate whose kyc_required is true | relist the documents of step 3 - the submission has created in requested status each standard document that was absent - upload the files on them, then submit again |
| Tous les documents demandés doivent être téléchargés avant la soumission pour révision | a document requested by Scribee is still to be provided | re-read the KYC list and provide it |
| Le mandat doit être actif | terminate on a non-Active mandate | only Active mandates can be terminated |
| La date de résiliation doit être au plus tôt demain | end_date today or in the past | provide a date at J+1 minimum |
| Date de résiliation invalide | end_date in a non-ISO-8601 format | send YYYY-MM-DD |
| Aucune résiliation planifiée à annuler | terminate without end_date while no termination is scheduled | nothing to replay |
| Qualité du signataire n'est pas inclus(e) dans la liste | signer_quality outside legal_representative, delegate and agent, empty or null | send one of the three values, or omit the field at creation |
| Qualité du signataire exige le mandat de délégation sur lequel l'accord est signé | signer_quality at delegate without delegation_mandate_id | send legal_representative or agent, or create the agreement with delegation_mandate_id |
| Qualité du signataire doit être delegate (délégataire) pour un accord signé au titre d'un mandat de délégation | signer_quality other than delegate on an agreement created with delegation_mandate_id | send delegate, or omit the field at creation |
| Le signataire agit comme mandataire : son pouvoir (justificatif de capacité de signature) et sa pièce d'identité doivent être téléversés avant la soumission et l'approbation. | submit_for_review on a mandate whose signer_quality is agent and whose signing_capacity_proof or identity_paper is not provided | relist the KYC documents - the submission created the missing requests there -, upload both files, then submit again |
| Les mandats actifs et résiliés ne peuvent pas être supprimés | DELETE on an Active, Terminated, or already Deleted mandate | terminate an Active mandate (the terminate endpoint) instead of deleting it |
| Le mandat n'a pas pu être supprimé. Rechargez-le, puis réessayez. | a DELETE whose deletion could not be saved, with no other validation cause to report | re-read the mandate, then retry |
422: the signature lock
The three signature-lock refusals do not go through details.base. They carry code: "operation_failed", and their message is the cause itself. A PATCH on a locked term additionally names each offending term in details, one term per key:
{
"error": "unprocessable_entity",
"code": "operation_failed",
"message": "Les termes du mandat sont verrouillés tant que sa signature est en attente ou aboutie. Annulez la demande de signature en attente, puis modifiez le mandat. Une signature aboutie est scellée et ne peut pas être annulée : créez un nouvel accord.",
"details": {
"signer_first_name": ["ne peut pas être modifié tant que la signature du mandat est en attente ou aboutie"]
}
}
The remedy depends on signature_status: on pending, cancel the request (POST /api/v1/mandates/{id}/cancel_signature) and the mandate becomes modifiable again; on signed, the signature is sealed, the lock is never lifted, and the mandate is replaced.
A PATCH that changes signer_email during a Pending request, when the signature provider freezes that address (see The lifecycle), carries the same code and names signer_email in details:
{
"error": "unprocessable_entity",
"code": "operation_failed",
"message": "L'adresse e-mail du signataire ne peut pas changer tant que la demande de signature qui lui a été envoyée est en attente. Annulez la demande de signature en attente, puis modifiez l'adresse et relancez la signature.",
"details": {
"signer_email": ["ne peut pas être modifiée tant que la demande de signature qui lui a été envoyée est en attente"]
}
}
If the same PATCH also changes one of the ten signed terms, the term-lock refusal is the one that responds, and details names only those terms. The remedy is the same: cancel the request, then edit; or call trigger_signature with the new signer_email.
trigger_signature on an already Signed mandate carries the same code, with no details:
{
"error": "unprocessable_entity",
"code": "operation_failed",
"message": "Le mandat est déjà signé et sa signature est scellée. Créez un nouvel accord plutôt que de resigner celui-ci."
}
The trigger_signature and cancel_signature refusals described in step 2 - a Pending request already signed at the provider, a signature request that changed in the meantime, mandate terms modified while the request was being prepared, a cancel_signature on a Deleted mandate - carry this code too, with no details and the cause as message.
422: the signature provider did not recognise the document
trigger_signature carries another refusal with code: "operation_failed", with no details. The agreement document did reach the signature provider, but the provider did not recognise every field it carries, including the one that stamps the signature date. The document is rendered once, before signature, and a completed signature is sealed: an agreement signed on an unrecognised field would stay without a signature date, permanently. So Scribee refuses the request rather than produce a defective one.
{
"error": "unprocessable_entity",
"code": "operation_failed",
"message": "Le fournisseur de signature n'a pas reconnu tous les champs du document, dont la date de signature. La demande a été annulée : réessayez, et contactez le support si le problème persiste."
}
This is not an error in your request. The signer was never added to the request, the request was never activated, and Scribee withdraws it at the provider. On a mandate with no Pending request, the mandate does not move and signature_status is unchanged; on a second call, the Pending request was already cancelled before the new one was created, and signature_status is cancelled, as in step 2. Replay the call unchanged; if the refusal persists, contact support.
429: signature trigger limit
trigger_signature is counted against several limits: per mandate; per workspace, by the minute and by the hour; per OAuth application, by the minute and by the hour, across all workspaces; and per signer email address within a workspace, with case and a +tag suffix ignored; for a Gmail address, dots in the local part are also ignored and googlemail.com is read as gmail.com. The values are published in the API reference. Signatures triggered from the Scribee interface fall under the same per-mandate, per-workspace and per-signer-address limits. A 422 refusal for a mandate outside the Incomplete state, already Signed, without a signer_email, or whose delegation no longer supports the agreement is not counted. Beyond a limit, the call responds 429 with a Retry-After header in seconds:
{
"error": "too_many_requests",
"code": "rate_limited",
"message": "Trop de requêtes. Veuillez réessayer plus tard."
}
Nothing was sent: no document was generated, the signature provider was not called, no email went out, and the mandate is unchanged. Wait Retry-After seconds, then retry. This value is an upper bound: it is the full length of the longest window exceeded, not the time remaining - each window opens at the first call it counts and can therefore close sooner.
These limits add to the partner API's common limit, 300 requests per minute per OAuth application across every authenticated operation, which answers with the same 429 (API conventions).
403: insufficient scope
Reads on this page require read. A token without the required scope - read for a read, write for a write, destroy or write for the two DELETE calls on this page (deleting the mandate and removing the signed document) - responds:
{
"error": "forbidden",
"message": "Vous n'êtes pas autorisé à effectuer cette action"
}
404 Not Found
The company or the mandate does not exist, or belongs to a workspace outside your application's scope (Your first call):
{
"error": "not_found",
"message": "La ressource demandée est introuvable"
}
On these routes, a request issued from an IP address outside the workspace's allowlist gets the same 404, not a 403: the workspace becomes invisible rather than forbidden.
400 Bad Request: page beyond the last
The mandate list and the KYC document list are paginated and respond 400 beyond the last page, as everywhere else: API conventions. One exception: when the collection is empty, there is no overflow. A company with no mandate, or a mandate with no KYC document, responds 200 with data: [] whatever page is requested.
Related pages
- KYC documents - provide the supporting documents that gate submission
- The national directory - the registration triggered by mandate approval
- Companies and establishments - create the company record that carries the mandate
- API reference: create a mandate
- API reference: send for electronic signature
- API reference: cancel the pending signature
- API reference: remove the signed document
- API reference: submit a mandate for review