Foundations Apex API Developer Reference

fferpcore.EReportService

global with sharing class EReportService

Common functionality available for building and sending French electronic reports (F10 e-reporting). In most circumstances, you should not have to call this directly - other APIs will provide more convenient services for producing e-reports from particular documents.

Methods

generateB2BSerializedTransaction

global static String generateB2BSerializedTransaction(fferpcore.ElectronicInvoicingService.FREReportB2bCrossBorderInvoice invoice, fferpcore.ElectronicInvoicingService.DocumentType documentType, Map<String, Object> extraParameters)

Serializes a single cross-border B2B invoice into its Storecove `b2biInvoices` wire shape.

Input Parameters

Name Type Description
invoice fferpcore.ElectronicInvoicingService.FREReportB2bCrossBorderInvoice The cross-border B2B invoice to serialize.
documentType fferpcore.ElectronicInvoicingService.DocumentType Whether the source document is an invoice or a credit note. For credit notes the tax amounts on the serialized subtotals are negated.
extraParameters Map<String, Object> Reserved for future Storecove API extensions. Not currently used.

Return Value

The serialized wire-shape JSON for the invoice, or null when the invoice is not populated.

generateB2CSerializedTransaction

global static String generateB2CSerializedTransaction(fferpcore.ElectronicInvoicingService.FREReportB2cTransaction b2cTransaction, fferpcore.ElectronicInvoicingService.DocumentType documentType, Map<String, Object> extraParameters)

Serializes a single aggregated B2C transaction into its Storecove `b2cTransactions` wire shape.

Input Parameters

Name Type Description
b2cTransaction fferpcore.ElectronicInvoicingService.FREReportB2cTransaction The B2C transaction to serialize.
documentType fferpcore.ElectronicInvoicingService.DocumentType Whether the source document is an invoice or a credit note. For credit notes the tax amounts on the serialized subtotals are negated.
extraParameters Map<String, Object> Reserved for future Storecove API extensions. Not currently used.

Return Value

The serialized wire-shape JSON for the transaction, or null when the transaction is not populated.

© Copyright 2009–2026 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.