> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gobl.org/llms.txt
> Use this file to discover all available pages before exploring further.

# France CTC Flow 10 (E-Reporting)

Key: `fr-ctc-flow10-v1`

Module: [github.com/invopop/gobl.fr.ctc](https://github.com/invopop/gobl.fr.ctc)

Support for the French CTC Flow 10 e-reporting reform.
Covers transactions that fall outside Flow 2 clearance:
B2C sales, cross-border B2B invoices, and payment receipts
subject to e-reporting to the DGFiP via the PPF.

## Sources

* [External Specifications](https://www.impots.gouv.fr/specifications-externes-b2b)

## Scenarios

Scenarios attach notes and extensions to a document when its filters match.
[Read more about scenarios](https://docs.gobl.org/overview/scenarios.md).

> [accordion] bill/invoice
>
> | Tags | Type | Output |
> | - | - | - |
> | - | `standard` | `{  "ext": {    "untdid-document-type": "380"  }}` |
> | `prepayment` | `standard` | `{  "ext": {    "untdid-document-type": "386"  }}` |
> | - | `corrective` | `{  "ext": {    "untdid-document-type": "384"  }}` |
> | - | `credit-note` | `{  "ext": {    "untdid-document-type": "381"  }}` |
> | `prepayment` | `credit-note` | `{  "ext": {    "untdid-document-type": "503"  }}` |

## Extensions

### France CTC: B2C Transaction Category

Classifies a B2C transaction for French e-reporting to the PPF
(G1.68). Required on Flow 10 B2C invoices.

* TLB1: Goods deliveries subject to VAT.
* TPS1: Services subject to VAT.
* TNT1: Goods / services not subject to French VAT,
  including intra-EU distance sales per CGI articles 258 A
  and 259 B.
* TMA1: Operations under the VAT-on-margin regime
  (CGI articles 266-1-e, 268, 297 A).

> [accordion] fr-ctc-flow10-b2c-category
>
> | Code | Name |
> | - | - |
> | `TLB1` | Goods subject to VAT |
> | `TPS1` | Services subject to VAT |
> | `TNT1` | Not subject to French VAT |
> | `TMA1` | VAT-on-margin regime |

### France CTC: Billing Mode

Code used to describe the billing framework of the invoice. The
billing mode indicates the nature of goods/services and the payment
context.

Code prefixes indicate the invoice nature:

* "B": Goods invoice (Biens)
* "S": Services invoice
* "M": Mixed/dual invoice (goods and services that are not accessory
  to each other)

The numeric suffix indicates the payment type (1=deposit,
2=already paid, 3=subcontracting with direct payment,
4=final after down payment, 5=subcontractor, 6=co-contractor,
7=e-reporting, 8=multi-vendor, 9=bi-directional).

S3 is public-sector only: a subcontractor bills the public buyer
directly under the paiement direct arrangement.

> [accordion] fr-ctc-billing-mode
>
> | Code | Name |
> | - | - |
> | `B1` | Goods - Standard invoice |
> | `B2` | Goods - Already paid invoice |
> | `B4` | Goods - Final invoice (after down payment) |
> | `B7` | Goods - E-reporting (VAT already collected) |
> | `B8` | Goods - Multi-vendor invoice |
> | `B9` | Goods - Bi-directional invoice |
> | `S1` | Services - Standard invoice |
> | `S2` | Services - Already paid invoice |
> | `S3` | Services - Subcontracting payment request with direct payment |
> | `S4` | Services - Final invoice (after down payment) |
> | `S5` | Services - Subcontractor invoice |
> | `S6` | Services - Co-contractor invoice |
> | `S7` | Services - E-reporting (VAT already collected) |
> | `S8` | Services - Multi-vendor invoice |
> | `S9` | Services - Bi-directional invoice |
> | `M1` | Mixed - Standard invoice |
> | `M2` | Mixed - Already paid invoice |
> | `M4` | Mixed - Final invoice (after down payment) |
> | `M8` | Mixed - Multi-vendor invoice (unit invoices not all Sx or Bx) |
> | `M9` | Mixed - Bi-directional invoice |

## Validation Rules

Validation rules check each struct against a set of assertions and report any
failures with a unique code and message.
[Read more about validation](https://docs.gobl.org/overview/validation.md).

> [accordion] bill.Invoice
>
> | Field | Test | Validation Code / Message |
> | - | - | - |
> | Invoice | <ul><li>Can convert to \[EUR]</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-01` Invoice must be in EUR or provide an exchange rate to EUR |
> | `supplier.addresses[*].country` | <ul><li>Present</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-02` Invoice supplier address country is required |
> | `customer.addresses[*].country` | <ul><li>Present</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-03` Invoice customer address country is required |
> | Invoice | <ul><li>Invoice is B2C (no legal customer)</li><li>Allowed Flow 10 VAT percents</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-07` Invoice VAT line percent must be one of the Flow 10 permitted values 0%, 0.9%, 1.05%, 1.75%, 2.1%, 5.5%, 7%, 8.5%, 9.2%, 9.6%, 10%, 13%, 19.6%, 20%, 20.6% (G1.24) |
> | `tax.ext` | <ul><li>Invoice is B2C (no legal customer)</li><li>Ext require \[fr-ctc-flow10-b2c-category]</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-04` Invoice tax ext fr-ctc-flow10-b2c-category is required on B2C invoices (G1.68) |
> | `supplier` | <ul><li>Invoice is B2C (no legal customer)</li><li>Present</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-05` Invoice supplier is required on B2C invoices |
> | `supplier` | <ul><li>Invoice is B2C (no legal customer)</li><li>Party has SIREN</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-06` Invoice supplier must have a SIREN identity (ISO/IEC 6523 scheme 0002) on a B2C invoice |
> | `tax.ext` | <ul><li>Invoice is B2B (legal customer)</li><li>Ext 'untdid-document-type' in \[380, 386, 384, 381, 503]</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-08` Invoice tax ext untdid-document-type must be one of the Flow 10 permitted UNTDID 1001 codes |
> | `tax.ext` | <ul><li>Invoice is B2B (legal customer)</li><li>Ext require \[fr-ctc-billing-mode]</li><li>Ext 'fr-ctc-billing-mode' in \[B1, B2, B4, B7, B8, B9, S1, S2, S3, S4, S5, S6, S7, S8, S9, M1, M2, M4, M8, M9]</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-09` Invoice tax ext fr-ctc-billing-mode is required and must be a valid billing-mode code (G1.02) |
> | `tax.ext` | <ul><li>Invoice tax ext fr-ctc-billing-mode in \[B4, S4, M4]</li><li>Ext 'untdid-document-type' not in \[386, 500, 503]</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-10` Invoice tax ext untdid-document-type must not be an advance-payment code (386, 500, 503) when billing mode is final-after-advance (B4, S4, M4) (G1.60) |
> | `supplier` | <ul><li>Invoice is B2B (legal customer)</li><li>Present</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-11` Invoice supplier is required for Flow 10 B2B invoices (G2.19) |
> | `supplier` | <ul><li>Invoice is B2B (legal customer)</li><li>Party has allowed legal scheme</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-12` Invoice supplier must declare a legal identity with an allowed ICD 6523 scheme (0002, 0223, 0227, 0228 or 0229) (G2.19) |
> | Invoice | <ul><li>Invoice has exempt (E) VAT category</li><li>Supplier or tax rep has VAT ID</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-14` Invoice supplier tax\_id or ordering.seller tax\_id is required when the VAT breakdown contains an exempt (E) category |
> | Invoice | <ul><li>Invoice has exempt (E) VAT category</li><li>Has exempt tax note</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-15` Invoice tax.notes must include an exempt-reason entry (key=exempt with non-empty text) when the VAT breakdown contains an exempt (E) category |
> | `customer` | <ul><li>Invoice is B2B (legal customer)</li><li>Present</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-16` Invoice customer is required for Flow 10 B2B invoices (G2.19) |
> | `customer` | <ul><li>Invoice is B2B (legal customer)</li><li>Party has allowed legal scheme</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-INVOICE-17` Invoice customer must declare a legal identity with an allowed ICD 6523 scheme (0002, 0223, 0227, 0228 or 0229) (G2.19) |

> [accordion] bill.Payment
>
> | Field | Test | Validation Code / Message |
> | - | - | - |
> | Payment | <ul><li>Allowed Flow 10 VAT percents</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-PAYMENT-03` Payment VAT line percent must be one of the Flow 10 permitted values (G1.24) |
> | `type` Calculated | <ul><li>One of \[receipt]</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-PAYMENT-01` Payment type must be 'receipt' for Flow 10 reporting |
> | `value_date` | <ul><li>Present</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-PAYMENT-02` Payment value\_date (settlement date) is required |
> | `supplier` | <ul><li>Present</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-PAYMENT-04` Payment supplier is required |
> | `supplier` | <ul><li>Party has SIREN</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-PAYMENT-05` Payment supplier must have a SIREN identity (ISO/IEC 6523 scheme 0002) |
> | `lines[*].document` | <ul><li>Payment is B2B (has customer)</li><li>Present</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-PAYMENT-06` Payment line document is required when a customer is present |
> | `lines[*].document.code` | <ul><li>Payment is B2B (has customer)</li><li>Present</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-PAYMENT-07` Payment line document code is required when a customer is present |
> | `lines[*].document.issue_date` | <ul><li>Payment is B2B (has customer)</li><li>Present</li></ul> | `GOBL-FR-CTC-FLOW10-BILL-PAYMENT-08` Payment line document issue\_date is required when a customer is present |

> [accordion] org.Party
>
> | Field | Test | Validation Code / Message |
> | - | - | - |
> | `identities` | <ul><li>Unique iso-scheme-id</li></ul> | `GOBL-FR-CTC-FLOW10-ORG-PARTY-01` Party identities must not duplicate iso-scheme-id values (BR-FR-CO-10) |
> | `identities` | <ul><li>Single legal-scope identity</li></ul> | `GOBL-FR-CTC-FLOW10-ORG-PARTY-03` Only one identity may have the legal scope |
> | `identities[*].ext` | <ul><li>Ext require \[iso-scheme-id]</li></ul> | `GOBL-FR-CTC-FLOW10-ORG-PARTY-02` Party identity ext iso-scheme-id is required (BR-FR-CO-10) |

> [accordion] org.Identity
>
> | Field | Test | Validation Code / Message |
> | - | - | - |
> | `code` | <ul><li>Scheme 0227</li><li>Length at most 18</li></ul> | `GOBL-FR-CTC-FLOW10-ORG-IDENTITY-01` HORS\_UE (0227) identity must be no more than 18 characters (G1.73) |
> | `code` | <ul><li>Scheme 0227</li><li>Matches `^[A-Z0-9]+$`</li></ul> | `GOBL-FR-CTC-FLOW10-ORG-IDENTITY-02` HORS\_UE (0227) identity must be uppercase alphanumeric (G1.73) |
> | `code` | <ul><li>Scheme 0228</li><li>Length between 9 and 10</li></ul> | `GOBL-FR-CTC-FLOW10-ORG-IDENTITY-03` RIDET (0228) identity must be 9 or 10 characters (G1.73) |
> | `code` | <ul><li>Scheme 0229</li><li>Length between 9 and 9</li></ul> | `GOBL-FR-CTC-FLOW10-ORG-IDENTITY-04` TAHITI (0229) identity must be 9 characters (G1.73) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.