--- title: "Generating payment data (flows 10.2/10.4)" slug: "génération-des-données-de-paiement-flux-10-2-10-4-1" updated: 2026-11-19T14:17:22Z published: 2026-11-19T14:17:22Z canonical: "help.frisbii.com/génération-des-données-de-paiement-flux-10-2-10-4-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.frisbii.com/llms.txt > Use this file to discover all available pages before exploring further. # Generating payment data (flows 10.2/10.4) The principle is identical to transaction generation, with a dedicated action: *Generate e-reporting payments XML for the current period*, covering flows 10.2 (BtoBi/GtoBi payments) and 10.4 (BtoC/GtoC payments). Here is the same simplified data model, useful here to identify the **Settlement** object and its links to the Invoice and the Deposit: ![](https://cdn.document360.io/b84e1b5d-2ba6-4465-8c62-fb45a2f31314/Images/Documentation/image-AL6EH8XS.png?sv=2026-02-06&spr=https&st=2026-12-02T18%3A28%3A40Z&se=2026-12-02T19%3A28%3A40Z&sr=b&sp=r&sig=xgnFPxpM%2BjROz%2FiRrEUKB9YkFWAXR6ysmCt0s3ElbXM%3D) As with transactions: - the automation (scheduled Flow or batch) runs every day and only generates a file on the exact day of the filing deadline corresponding to the entity's VAT scheme; - if no eligible payment matches the period, nothing is generated (no blank filing); - A duplicate prevention mechanism prevents a second initial submission (`IN`) from being created for the same Company Name and period. The automation can run every day without any risk of creating duplicates. ## **Which payments are reported?** The payment report covers **all payments received for issued invoices**, including payments for invoices without an e-reporting classification (for example, a domestic B2B invoice submitted through e-invoicing). The eligibility criteria for a payment are detailed in the article **Configure Payments**. | Invoice e-reporting customer type | Payment declaration | | --- | --- | | BtoC | Flow 10.4: aggregated by payment date | | BtoBi | Flow 10.2: one entry per payment | | Empty (e.g. a domestic B2B invoice submitted through e-invoicing) | Flow 10.2: one entry per payment, same as BtoBi. The obligation to report the payment still applies even when the invoice itself is submitted through e-invoicing. | ## Generate manually without waiting for the batch (Apex script) As with transaction data, you can manually trigger the generation of payment data for a Company Name, especially in a **sandbox**, without waiting for the scheduled execution. The script calls the same global action as the Flow. **To run the script:** 1. Get the **Company Name ID**: open the Company Name record in Salesforce and copy the 18-character ID from the URL (it usually starts with `a0X`). 2. Open the **Developer Console** (⚙️ icon > **Developer Console**), then go to **Debug > Open Execute Anonymous Window**. 3. Paste the script below, replacing the Company Name ID and the reference date: ```plaintext fiix.GenerateCurrentEReportingPaymentsAction.GenerateCurrentEReportingPaymentsRequest req =    new fiix.GenerateCurrentEReportingPaymentsAction.GenerateCurrentEReportingPaymentsRequest(); req.raisonSocialeId = 'a0X...';                 // Company Name ID req.referenceDate   = Date.newInstance(2026, 12, 10); fiix.GenerateCurrentEReportingPaymentsAction.generateEReportingPaymentsXmlForCurrentPeriod(    new List{ req } ); ``` 1. Click **Execute**. You cannot choose the start and end dates: the period is calculated based on the Company's **VAT regime** and the **reference date**, which must be exactly the **submission deadline** for payment data, as indicated in the calendar (see the article **Submission Calendar**). For example, for a company using the monthly standard VAT regime, `Date.newInstance(2026, 12, 10)` generates the payment data for the entire month of November 2026. Nothing is generated if the reference date is not a submission deadline for the Company's VAT regime, if no eligible payments exist for the period, or if the period has already been reported. > **A limitation to be aware of: no manual generation for an arbitrary period** > > Unlike transactions, there is not yet a self-service action to regenerate payment data for a past or arbitrary period. Only generation for the current period is directly available. If you need to replay a specific payment period, contact Frisbii support. > 🔴 **IMPORTANT — Special case: "Chargeable event on invoicing" scheme** > > A Company configured with the VAT chargeable event **on invoicing** never generates flows 10.2/10.4, regardless of its payments. This is not a bug: under this scheme, VAT becomes due at invoicing, so the collection date then has no fiscal relevance to report.