Retrieves data input fields
This optional SPI endpoint is used to retrieve the required and optional data input fields for various e-invoicing scenarios supported by the provider. Each scenario is defined by a unique combination of country, e-invoicing network, and transaction type (B2B, B2C, or B2G).
Implementation of this endpoint is recommended only if the e-invoicing provider requires merchant to configure field mappings themselves, rather than relying on predefined mappings managed by the provider or Chargebee.
Within Chargebee, this endpoint is invoked during the e-invoicing setup workflow, when a user maps fields between the provider’s schema and Chargebee’s internal data model for a specific combination of country, network, and transaction type. Once this configuration is complete, the resulting field mappings are included in the document submission request and passed to the adapter via the field_mapping parameter, enabling the adapter to transform the SPI-compliant payload into the provider’s required format.
Documentation Index
Fetch the complete documentation index at: https://spidocs.chargebee.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Query Parameters
The ISO 3166-1 alpha-2 country code representing the country for which the e-invoicing data input fields need to be retrieved. Different countries may have varying e-invoicing requirements.
"DE"
The transaction type for which the data input fields need to be retrieved. Required fields may vary depending on the type: B2B (Business to Business), B2C (Business to Consumer), or B2G (Business to Government).
B2B, B2C, B2G "B2B"
Indicates the eInvoicing flow model that governs the document exchange and processing mechanism. Different countries adopt different models based on legal, technical, and administrative mandates. Supported values:
- PEPPOL: A standardized, secure eInvoicing network enabling cross-border electronic document exchange between businesses and governments.
- EINVOICE: Traditional eInvoicing model where invoices are digitally exchanged between businesses and sometimes stored.
- CLEARANCE: Invoices must be pre-approved by a tax authority before they are sent to the buyer.
- REPORTING: Invoices are shared with tax authorities after issuance, usually for compliance and audit purposes.
- ZUGFERD: A hybrid eInvoicing format used in Germany combining PDF and XML for human and machine readability.
- CTC: Continuous Transaction Controls involve real-time or near-real-time invoice validation and transmission to tax authorities.
- NEMHANDEL: Denmark’s national infrastructure for eInvoicing that supports secure delivery via specific formats like OIOUBL.
- FACE: Spain’s centralized system (FACe/FACeB2B) for routing invoices to government or private recipients.
- VERIFACTU: Spain’s mechanism for validating and reporting sales invoices directly to the tax agency.
PEPPOL, EINVOICE, CLEARANCE, REPORTING, ZUGFERD, CTC, NEMHANDEL, FACE, VERIFACTU "PEPPOL"
Type of business document.
"ubl-invoice"
Response
Successfully retrieved the data input fields for the given scenario.
The ISO country code for the scenario.
"DE"
The type of transaction (B2B, B2C, B2G).
B2B, B2C, B2G "B2B"
Indicates the eInvoicing flow model that governs the document exchange and processing mechanism. Different countries adopt different models based on legal, technical, and administrative mandates. Supported values:
- PEPPOL: A standardized, secure eInvoicing network enabling cross-border electronic document exchange between businesses and governments.
- EINVOICE: Traditional eInvoicing model where invoices are digitally exchanged between businesses and sometimes stored.
- CLEARANCE: Invoices must be pre-approved by a tax authority before they are sent to the buyer.
- REPORTING: Invoices are shared with tax authorities after issuance, usually for compliance and audit purposes.
- ZUGFERD: A hybrid eInvoicing format used in Germany combining PDF and XML for human and machine readability.
- CTC: Continuous Transaction Controls involve real-time or near-real-time invoice validation and transmission to tax authorities.
- NEMHANDEL: Denmark’s national infrastructure for eInvoicing that supports secure delivery via specific formats like OIOUBL.
- FACE: Spain’s centralized system (FACe/FACeB2B) for routing invoices to government or private recipients.
- VERIFACTU: Spain’s mechanism for validating and reporting sales invoices directly to the tax agency.
PEPPOL, EINVOICE, CLEARANCE, REPORTING, ZUGFERD, CTC, NEMHANDEL, FACE, VERIFACTU "PEPPOL"
Type of business document.
"ubl-invoice"
List of input fields with inclusion metadata.