Submits a new document, such as an invoice or credit note, to the connected e-invoicing provider for validation, compliance checks, and delivery to the appropriate tax authorities or business partners.
This endpoint is MANDATORY for enabling document submission through the Chargebee E-invoicing SPI framework.
Within Chargebee, this endpoint is invoked asynchronously by an internal background job whenever a new invoice, credit note, or other supported billing document is generated and requires processing through the configured e-invoicing provider.
If the e-invoicing provider requires merchants to configure field mappings manually, instead of relying on predefined mappings managed by Chargebee, Chargebee will collect this mapping as entered by the Chargebee merchant through the Chargebee Admin Console.
The collected field mapping and the corresponding input values will be passed to the adapter via the overrides parameter.
Note: When the overrides parameter is present, the adapter must rely exclusively on the field_mapping and values defined within it. All other standard schema fields should be ignored for transformation purposes.
Additionally, this endpoint supports submission of Application Response documents, such as invoice acknowledgements or rejections, to facilitate downstream workflows and business rule validation. These responses are submitted using the same endpoint but distinguished using a type discriminator with APPLICATION_RESPONSE.
Represents an invoice or credit note document to be validated and submitted via the e-invoicing provider.
id
string
required
A unique identifier for the document being submitted. This typically represents the invoice number or credit note number generated by Chargebee.
type
enum<string>
required
Type of document, either an invoice or a credit note.
Available options:
INVOICE,
CREDIT_NOTE
country
string
required
The ISO country code for the scenario.
Example:
"DE"
model
enum<string>
required
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.
TEAPPS: Finland’s TEAPPSXML eInvoicing format used for domestic electronic invoice exchange.
FINVOICE: Finland’s Finvoice eInvoicing format used for domestic electronic invoice exchange.
Available options:
PEPPOL,
EINVOICE,
CLEARANCE,
REPORTING,
ZUGFERD,
CTC,
NEMHANDEL,
FACE,
VERIFACTU,
TEAPPS,
FINVOICE
Example:
"PEPPOL"
issue_date
string<date>
required
The date when the document was issued. Format "YYYY-MM-DD"
tax_date
string<date>
required
The date used to determine tax. Format "YYYY-MM-DD"
The date when the payment is due. Format "YYYY-MM-DD".
amount
number
required
Total payable amount for the document, including taxes.
status
enum<string>
required
Billing status of the invoice or credit note in Chargebee.
Invoice statuses (when type is INVOICE):
PAID — Indicates a paid invoice.
POSTED — Payment is not yet collected and will remain in this state until the due date to indicate the due period.
PAYMENT_DUE — Payment is not yet collected and is being retried as per retry settings.
NOT_PAID — Payment has not been made and all attempts to collect have failed.
VOIDED — Indicates a voided invoice.
Credit note statuses (when type is CREDIT_NOTE):
ADJUSTED — Indicates an adjustment credit note.
REFUNDED — Indicates the credit note has been fully refunded.
REFUND_DUE — Indicates a refund is due on the credit note.
VOIDED — Indicates a voided credit note.
Available options:
PAID,
POSTED,
PAYMENT_DUE,
NOT_PAID,
VOIDED,
ADJUSTED,
REFUNDED,
REFUND_DUE
Example:
"PAYMENT_DUE"
taxable_amount
number
required
Total document amount excluding tax (VAT).
amount_due
number
required
Outstanding balance remaining on the document.
accounting_supplier_party
object
required
Party responsible for issuing the document (that is, the supplier). This represents the legal entity or business that creates the invoice and bears responsibility for delivering goods or services.
Show child attributes
accounting_customer_party
object
required
Party responsible for receiving the invoice (i.e., the customer).
Show child attributes
lines
object[]
required
Show child attributes
tax_total
object
required
Represents the total tax details for the document.
Show child attributes
transaction_type
enum<string>
The type of transaction (B2B, B2C, B2G).
Available options:
B2B,
B2C,
B2G
Example:
"B2B"
document_type
string
Type of business document.
Example:
"ubl-invoice"
total_discount
number
Sum of all discounts applied across line items on the document.
note
string
A textual note that gives unstructured information that is relevant to the Document as a whole. Such as the reason for any correction or assignment note in case the document has been factored.
custom_fields
object
Invoice or credit note custom field values keyed by API name (e.g. cf_invoice_reference).
Subscription custom fields for single-subscription documents (set once at document level).
For consolidated / multi-subscription documents, use lines[].subscription_custom_fields instead.
A group of business terms providing information on one or more preceding invoices. This enhances traceability in workflows where a document is linked to earlier billing records. For credit notes this is essential as they must reference the original invoice they amend.
Show child attributes
payment_means
object[]
A list of payment methods with corresponding payment details.
Show child attributes
overrides
object
Optional structure used to override the standard Chargebee SPI document model fields with a flexible field-value-based approach.
This is typically used by adapters where field mapping is configured manually by the merchant in the Chargebee UI, instead of relying on pre-defined mappings managed by the provider or Chargebee.
When present, the overrides object allows the adapter to entirely ignore the standard document payload and instead:
Use field_mapping to determine where values go in the provider's schema
Use values to retrieve the corresponding input data using dot-paths or array-style paths
field_mapping:
A list of mapping rules that define how Chargebee parameter paths (keys from values) should be translated to the corresponding field paths in the provider schema. Includes custom fields too which are defined by merchant in chargebee.
Each item must include:
target: The field path in the e-invoicing provider schema (e.g. Invoice.cbc:ID)
One of the below
source: A dot-notated field path or array path from the values section (e.g. invoice.id, line_items[].tax_category)
fixed_value (optional): Used if the field always has a constant value (e.g. 380 for InvoiceTypeCode)
expr: An inline expression evaluated against the values object to compute the target field’s value. This is used when the value depends on conditional logic, tax scenarios, payment methods, or other derived rules.
values:
Each key in this object uses dot-notation to reference the source path, including arrays and nested arrays — for example: invoice.issue_date, line_items[].id, or line_items[].tax_category[].id.
Scalar values (e.g., strings, numbers, dates) should be represented as flat keys:
This model supports maximum flexibility by separating the actual data values from Chargebee's internal schema structure. It enables provider-specific document construction without tightly coupling the adapter to Chargebee's native schema.
Show child attributes
Response
Document submitted successfully.
document_id
string
required
The unique identifier assigned to the document by the e-invoicing provider. This identifier must be used for subsequent operations such as retrieving the document status and downloading the document.
status
enum<string>
required
The current status of the submitted document.
Available options:
ACCEPTED,
FAILED,
SUCCESS
request_id
string
A unique identifier assigned to the request for tracking and correlation purposes across systems and logs.
provider_interaction
object
Captures the interaction between the adapter and the external e-invoicing provider.
Includes both the outbound request details and the inbound response received from the provider.
Intended for internally hosted adapters for audit and traceability of SPI transactions.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Chargebee Partner docs","colors":{"primary":"#ff3300","light":"#ff3300","dark":"#01283a"},"logo":{"light":"https://mintcdn.com/cb/t_llHYxnCXjWsl_M/logo/light.svg?fit=max\u0026auto=format\u0026n=t_llHYxnCXjWsl_M\u0026q=85\u0026s=ea8284652978e0e228b6e8490b85f386","dark":"https://mintcdn.com/cb/t_llHYxnCXjWsl_M/logo/dark.svg?fit=max\u0026auto=format\u0026n=t_llHYxnCXjWsl_M\u0026q=85\u0026s=ec5bfa91e37e3d17f52113436b5fa3c4"},"favicon":"https://mintcdn.com/cb/5NA3_g6K23tnaaEn/logo/favicon.png?fit=max\u0026auto=format\u0026n=5NA3_g6K23tnaaEn\u0026q=85\u0026s=f9754a80dbaca6ded2263ed1f98043a0","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl"],"prefill":true}},"background":{},"navbar":{"links":[{"href":"mailto:support@chargebee.com","label":"Support"}]},"integrations":{"ga4":{"measurementId":"G‑EJ2MQ2ENV4"}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cb","hasAudioNarration":false,"actualSubdomain":"cb","customDomains":["spidocs.chargebee.com"],"gitSource":{"type":"github","owner":"chargebee","repo":"cb-partner-spi","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aed672b197e48bb5f92b9a1","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"API Reference","count":41},{"language":"default","tag":"Tax SPI","count":16},{"language":"default","tag":"Einvoicing SPI","count":14},{"language":"default","tag":"Tax Registration Number Validation SPI","count":9},{"language":"default","tag":"Tax Registration Number Validation","count":5},{"language":"default","tag":"CreditNote","count":4},{"language":"default","tag":"Invoice","count":4},{"language":"default","tag":"Health","count":3},{"language":"default","tag":"Authentication","count":3},{"language":"default","tag":"Authorization","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document","slug":"/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document","pageMetadata":{"openapi":"post /einvoicing/documents","title":"Submit a document","description":"Submits a new document, such as an invoice or credit note, to the connected e-invoicing provider for validation, compliance checks, and delivery to the appropriate tax authorities or business partners.\n\nThis endpoint is MANDATORY for enabling document submission through the Chargebee E-invoicing SPI framework.\n\nWithin Chargebee, this endpoint is invoked asynchronously by an internal background job whenever a new invoice, credit note, or other supported billing document is generated and requires processing through the configured e-invoicing provider.\n\nIf the e-invoicing provider requires merchants to configure field mappings manually, instead of relying on predefined mappings managed by Chargebee, Chargebee will collect this mapping as entered by the Chargebee merchant through the Chargebee Admin Console.\n\nThe collected field mapping and the corresponding input values will be passed to the adapter via the `overrides` parameter.\n\nNote: When the `overrides` parameter is present, the adapter must rely exclusively on the `field_mapping` and `values` defined within it. All other standard schema fields should be ignored for transformation purposes.\n\nAdditionally, this endpoint supports submission of Application Response documents, such as invoice acknowledgements or rejections, to facilitate downstream workflows and business rule validation. These responses are submitted using the same endpoint but distinguished using a type discriminator with APPLICATION_RESPONSE.\n","href":"/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Submits a new document, such as an invoice or credit note, to the connected e-invoicing provider for validation, compliance checks, and delivery to the appropriate tax authorities or business partners.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"This endpoint is MANDATORY for enabling document submission through the Chargebee E-invoicing SPI framework.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Within Chargebee, this endpoint is invoked asynchronously by an internal background job whenever a new invoice, credit note, or other supported billing document is generated and requires processing through the configured e-invoicing provider.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"If the e-invoicing provider requires merchants to configure field mappings manually, instead of relying on predefined mappings managed by Chargebee, Chargebee will collect this mapping as entered by the Chargebee merchant through the Chargebee Admin Console.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The collected field mapping and the corresponding input values will be passed to the adapter via the \", _jsx(_components.code, {\n children: \"overrides\"\n }), \" parameter.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Note: When the \", _jsx(_components.code, {\n children: \"overrides\"\n }), \" parameter is present, the adapter must rely exclusively on the \", _jsx(_components.code, {\n children: \"field_mapping\"\n }), \" and \", _jsx(_components.code, {\n children: \"values\"\n }), \" defined within it. All other standard schema fields should be ignored for transformation purposes.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Additionally, this endpoint supports submission of Application Response documents, such as invoice acknowledgements or rejections, to facilitate downstream workflows and business rule validation. These responses are submitted using the same endpoint but distinguished using a type discriminator with APPLICATION_RESPONSE.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /einvoicing/documents","title":"Submit a document","description":"Submits a new document, such as an invoice or credit note, to the connected e-invoicing provider for validation, compliance checks, and delivery to the appropriate tax authorities or business partners.\n\nThis endpoint is MANDATORY for enabling document submission through the Chargebee E-invoicing SPI framework.\n\nWithin Chargebee, this endpoint is invoked asynchronously by an internal background job whenever a new invoice, credit note, or other supported billing document is generated and requires processing through the configured e-invoicing provider.\n\nIf the e-invoicing provider requires merchants to configure field mappings manually, instead of relying on predefined mappings managed by Chargebee, Chargebee will collect this mapping as entered by the Chargebee merchant through the Chargebee Admin Console.\n\nThe collected field mapping and the corresponding input values will be passed to the adapter via the `overrides` parameter.\n\nNote: When the `overrides` parameter is present, the adapter must rely exclusively on the `field_mapping` and `values` defined within it. All other standard schema fields should be ignored for transformation purposes.\n\nAdditionally, this endpoint supports submission of Application Response documents, such as invoice acknowledgements or rejections, to facilitate downstream workflows and business rule validation. These responses are submitted using the same endpoint but distinguished using a type discriminator with APPLICATION_RESPONSE.\n","href":"/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Submits a new document, such as an invoice or credit note, to the connected e-invoicing provider for validation, compliance checks, and delivery to the appropriate tax authorities or business partners.\n\nThis endpoint is MANDATORY for enabling document submission through the Chargebee E-invoicing SPI framework.\n\nWithin Chargebee, this endpoint is invoked asynchronously by an internal background job whenever a new invoice, credit note, or other supported billing document is generated and requires processing through the configured e-invoicing provider.\n\nIf the e-invoicing provider requires merchants to configure field mappings manually, instead of relying on predefined mappings managed by Chargebee, Chargebee will collect this mapping as entered by the Chargebee merchant through the Chargebee Admin Console.\n\nThe collected field mapping and the corresponding input values will be passed to the adapter via the `overrides` parameter.\n\nNote: When the `overrides` parameter is present, the adapter must rely exclusively on the `field_mapping` and `values` defined within it. All other standard schema fields should be ignored for transformation purposes.\n\nAdditionally, this endpoint supports submission of Application Response documents, such as invoice acknowledgements or rejections, to facilitate downstream workflows and business rule validation. These responses are submitted using the same endpoint but distinguished using a type discriminator with APPLICATION_RESPONSE.\n","operationId":"einvoicingDocumentSubmission","requestBody":"bfdbb88b-75d8-4a89-9a69-db96cdc29168","responses":{"200":"d113cad5-4ba3-49a8-b5f8-f8290a5ec3f7","400":"c2e17f5f-451c-4ec6-8f10-43f553e3b798","401":"1e34c02c-105a-47d1-857f-f23f0b6c04be","403":"18639180-7047-40ff-bf36-ac92b0accc91","500":"c6cd0cdc-4579-4ae3-a901-f440c019e49a"},"summary":"Submit a document","tags":["Documents"],"x-codeSamples":[{"lang":"cURL","label":"Invoice document submission","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"INV-10001\",\n \"type\": \"INVOICE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-invoice\",\n \"issue_date\": \"2025-04-02\",\n \"tax_date\": \"2025-04-02\",\n \"currency_code\": \"EUR\",\n \"due_date\": \"2025-04-30\",\n \"amount\": 114.0,\n \"status\": \"PAYMENT_DUE\",\n \"taxable_amount\": 100.0,\n \"amount_due\": 114.0,\n \"total_discount\": 0.0,\n \"note\": \"Payment due in 28 days.\",\n \"accounting_supplier_party\": {\n \"name\": \"Example Seller GmbH\",\n \"address\": {\n \"line_1\": \"Hauptstr. 456\",\n \"line_2\": \"Suite 5\",\n \"zip\": \"50667\",\n \"city\": \"Cologne\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE987654321\"\n },\n \"accounting_customer_party\": {\n \"name\": \"Example Buyer GmbH\",\n \"address\": {\n \"line_1\": \"Berliner Str. 123\",\n \"line_2\": \"2nd Floor\",\n \"zip\": \"10115\",\n \"city\": \"Berlin\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE123456789\"\n },\n \"payment_means\": [\n {\n \"code\": \"CREDIT_TRANSFER\",\n \"account\": \"DE89370400440532013000\",\n \"branch_code\": \"COBADEFFXXX\",\n \"payment_id\": \"PAY-2024-00987\",\n \"holder\": \"Example Seller GmbH\"\n }\n ],\n \"lines\": [\n {\n \"id\": \"1\",\n \"description\": \"Consulting Services - April\",\n \"quantity\": 1,\n \"unit_price\": 100.0,\n \"amount\": 100.0,\n \"item_code\": \"CONS-APRIL\",\n \"classified_tax_category\": [\n {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n ]\n }\n ],\n \"tax_total\": {\n \"tax_amount\": 14.0,\n \"tax_sub_totals\": [\n {\n \"taxable_amount\": 100.0,\n \"tax_amount\": 14.0,\n \"percentage\": 14,\n \"country\": \"DE\",\n \"category\": \"VAT\"\n }\n ]\n }\n }'\n"},{"lang":"cURL","label":"Invoice document submission with overrides","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"INV-20221607\",\n \"type\": \"INVOICE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-invoice\",\n \"issue_date\": \"2025-04-02\",\n \"tax_date\": \"2025-04-02\",\n \"currency_code\": \"EUR\",\n \"due_date\": \"2025-04-30\",\n \"amount\": 114.0,\n \"status\": \"PAYMENT_DUE\",\n \"taxable_amount\": 100.0,\n \"amount_due\": 114.0,\n \"total_discount\": 0.0,\n \"note\": \"Payment due in 28 days.\",\n \"accounting_supplier_party\": {\n \"name\": \"Example Seller GmbH\",\n \"address\": {\n \"line_1\": \"Hauptstr. 456\",\n \"line_2\": \"Suite 5\",\n \"zip\": \"50667\",\n \"city\": \"Cologne\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE987654321\"\n },\n \"accounting_customer_party\": {\n \"name\": \"Example Buyer GmbH\",\n \"address\": {\n \"line_1\": \"Berliner Str. 123\",\n \"line_2\": \"2nd Floor\",\n \"zip\": \"10115\",\n \"city\": \"Berlin\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE123456789\"\n },\n \"payment_means\": [\n {\n \"code\": \"CREDIT_TRANSFER\",\n \"account\": \"DE89370400440532013000\",\n \"branch_code\": \"COBADEFFXXX\",\n \"payment_id\": \"PAY-2024-00987\",\n \"holder\": \"Example Seller GmbH\"\n }\n ],\n \"lines\": [\n {\n \"id\": \"1\",\n \"description\": \"Consulting Services - April\",\n \"quantity\": 1,\n \"unit_price\": 100.0,\n \"amount\": 100.0,\n \"item_code\": \"CONS-APRIL\",\n \"classified_tax_category\": [\n {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n ]\n }\n ],\n \"tax_total\": {\n \"tax_amount\": 14.0,\n \"tax_sub_totals\": [\n {\n \"taxable_amount\": 100.0,\n \"tax_amount\": 14.0,\n \"percentage\": 14,\n \"country\": \"DE\",\n \"category\": \"VAT\"\n }\n ]\n },\n \"overrides\": {\n \"country\": \"DE\", \n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-invoice\",\n \"field_mapping\": [\n {\n \"target\": \"Invoice.cbc:ID\",\n \"source\": \"invoice.id\"\n },\n {\n \"target\": \"Invoice.cbc:IssueDate\",\n \"source\": \"invoice.issue_date\"\n },\n {\n \"target\": \"Invoice.cbc:InvoiceTypeCode\",\n \"fixed_value\": \"380\"\n },\n {\n \"target\": \"Invoice.cbc:DocumentCurrencyCode\",\n \"source\": \"invoice.currency_code\"\n },\n {\n \"target\": \"Invoice.cac:AccountingSupplierParty.cac:Party.cac:PostalAddress.cac:Country.cbc:IdentificationCode\",\n \"source\": \"business.address.country\"\n },\n {\n \"target\": \"Invoice.cac:AccountingCustomerParty.cac:Party.cac:PostalAddress.cac:Country.cbc:IdentificationCode\",\n \"source\": \"customer.billing_address.country\"\n },\n {\n \"target\": \"Invoice.cac:AccountingCustomerParty.cac:Party.cac:PartyIdentification.cbc:ID.@schemeID\\\"\",\n \"source\": \"custom_fields[cf_einvoice_scheme_id]\"\n },\n {\n \"target\": \"Invoice.cac:TaxTotal.cbc:TaxAmount\",\n \"source\": \"invoice.tax_total\"\n },\n {\n \"target\": \"Invoice.cbc:Note\",\n \"source\": \"invoice.note\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cbc:ID\",\n \"source\": \"line_items[].id\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cbc:InvoicedQuantity\",\n \"source\": \"line_items[].quantity\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cbc:InvoicedQuantity.@unitCode\",\n \"source\": \"line_items[].unit_code\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cbc:LineExtensionAmount\",\n \"source\": \"line_items[].amount\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cbc:LineExtensionAmount.@currencyID\",\n \"source\": \"invoice.currency_code\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cac:Item.cbc:Name\",\n \"source\": \"line_items[].description\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cac:Item.cac:ClassifiedTaxCategory.cbc:ID\",\n \"expr\": \"li.tax_rate > 0.0 \u0026\u0026 (!has(li.tax_exempt_reason) || li.tax_exempt_reason == '') ? 'S' \n :li.tax_rate == 0.0 \u0026\u0026 li.tax_exempt_reason == 'ZERO_RATED' ? 'Z' \n :li.tax_rate == 0.0 \u0026\u0026 li.tax_exempt_reason == 'EXEMPT' ? 'E' \n :li.tax_rate == 0.0 \u0026\u0026 li.tax_exempt_reason == 'REVERSE_CHARGE' ? 'AE' \n :li.tax_rate == 0.0 \u0026\u0026 li.tax_exempt_reason == 'OUTSIDE_SCOPE' ? 'O' :\\n''\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cac:Item.cac:ClassifiedTaxCategory.cac:TaxScheme.cbc:ID\",\n \"source\": \"line_items[].classified_tax_category[].category\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cac:Price.cbc:PriceAmount\",\n \"source\": \"line_items[].unit_price\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cac:Price.cbc:PriceAmount.@currencyID\",\n \"source\": \"invoice.currency_code\"\n },\n {\n \"target\": \"Invoice.cbc:Note\",\n \"source\": \"invoice.note\"\n }\n ],\n \"values\": {\n \"invoice.id\": \"INV-10001\",\n \"invoice.issue_date\": \"2025-04-02\",\n \"invoice.tax_date\": \"2025-04-02\",\n \"invoice.currency_code\": \"EUR\",\n \"invoice.due_date\": \"2025-04-30\",\n \"invoice.amount\": 114.0,\n \"invoice.note\": \"Payment due in 28 days.\",\n \"business.address.country\": \"DE\",\n \"customer.billing_address.country\": \"DE\",\n \"custom_fields[cf_einvoice_scheme_id]\": \"9930\",\n \"invoice.tax_total\": 14.0,\n \"line_items\": [\n {\n \"id\": \"1\",\n \"description\": \"Consulting Services - April\",\n \"quantity\": 1,\n \"unit_price\": 100.0,\n \"amount\": 100.0,\n \"item_code\": \"CONS-APRIL\",\n \"tax_rate\" : \"14\",\n \"classified_tax_category\": {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n },\n {\n \"id\": \"2\",\n \"description\": \"TEST Consulting Services - April\",\n \"quantity\": 130,\n \"unit_price\": 1000.0,\n \"amount\": 1005.0,\n \"item_code\": \"CONS-APRIL\",\n \"tax_rate\" : \"30\",\n \"classified_tax_category\": {\n \"percentage\": 30,\n \"category\": \"EU VAT\",\n \"country\": \"DE\"\n }\n }\n ]\n }\n }\n }'\n"},{"lang":"cURL","label":"Credit note document submission","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"CN-20002\",\n \"type\": \"CREDIT_NOTE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-creditnote\",\n \"issue_date\": \"2025-04-10\",\n \"tax_date\": \"2025-04-10\",\n \"currency_code\": \"EUR\",\n \"due_date\": \"2025-04-30\",\n \"amount\": 50.0,\n \"note\": \"Credit issued for April billing adjustment.\",\n \"billing_reference\": [\n \"INV-10001\"\n ],\n \"accounting_supplier_party\": {\n \"name\": \"Example Seller GmbH\",\n \"address\": {\n \"line_1\": \"Hauptstr. 456\",\n \"line_2\": \"Suite 5\",\n \"zip\": \"50667\",\n \"city\": \"Cologne\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE987654321\"\n },\n \"accounting_customer_party\": {\n \"name\": \"Example Buyer GmbH\",\n \"address\": {\n \"line_1\": \"Berliner Str. 123\",\n \"line_2\": \"2nd Floor\",\n \"zip\": \"10115\",\n \"city\": \"Berlin\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE123456789\"\n },\n \"payment_means\": [\n {\n \"code\": \"CREDIT_TRANSFER\",\n \"account\": \"DE89370400440532013000\",\n \"branch_code\": \"COBADEFFXXX\",\n \"payment_id\": \"PAY-2024-01002\",\n \"holder\": \"Example Seller GmbH\"\n }\n ],\n \"lines\": [\n {\n \"id\": \"1\",\n \"description\": \"Refund for overcharge in April\",\n \"quantity\": 1,\n \"unit_price\": 50.0,\n \"amount\": 50.0,\n \"item_code\": \"APRIL-REFUND\",\n \"classified_tax_category\": [\n {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n ]\n }\n ],\n \"tax_total\": {\n \"tax_amount\": 7.0,\n \"tax_sub_totals\": [\n {\n \"taxable_amount\": 50.0,\n \"tax_amount\": 7.0,\n \"percentage\": 14,\n \"country\": \"DE\",\n \"category\": \"VAT\"\n }\n ]\n }\n }'\n"},{"lang":"cURL","label":"Credit note document submission with overrides","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"CN-20002\",\n \"type\": \"CREDIT_NOTE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-creditnote\",\n \"issue_date\": \"2025-04-10\",\n \"tax_date\": \"2025-04-10\",\n \"currency_code\": \"EUR\",\n \"due_date\": \"2025-04-30\",\n \"amount\": 50.0,\n \"note\": \"Credit issued for April billing adjustment.\",\n \"billing_reference\": [\n \"INV-10001\"\n ],\n \"accounting_supplier_party\": {\n \"name\": \"Example Seller GmbH\",\n \"address\": {\n \"line_1\": \"Hauptstr. 456\",\n \"line_2\": \"Suite 5\",\n \"zip\": \"50667\",\n \"city\": \"Cologne\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE987654321\"\n },\n \"accounting_customer_party\": {\n \"name\": \"Example Buyer GmbH\",\n \"address\": {\n \"line_1\": \"Berliner Str. 123\",\n \"line_2\": \"2nd Floor\",\n \"zip\": \"10115\",\n \"city\": \"Berlin\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE123456789\"\n },\n \"payment_means\": [\n {\n \"code\": \"CREDIT_TRANSFER\",\n \"account\": \"DE89370400440532013000\",\n \"branch_code\": \"COBADEFFXXX\",\n \"payment_id\": \"PAY-2024-01002\",\n \"holder\": \"Example Seller GmbH\"\n }\n ],\n \"lines\": [\n {\n \"id\": \"1\",\n \"description\": \"Refund for overcharge in April\",\n \"quantity\": 1,\n \"unit_price\": 50.0,\n \"amount\": 50.0,\n \"item_code\": \"APRIL-REFUND\",\n \"classified_tax_category\": [\n {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n ]\n }\n ],\n \"tax_total\": {\n \"tax_amount\": 7.0,\n \"tax_sub_totals\": [\n {\n \"taxable_amount\": 50.0,\n \"tax_amount\": 7.0,\n \"percentage\": 14,\n \"country\": \"DE\",\n \"category\": \"VAT\"\n }\n ]\n },\n \"overrides\": {\n \"country\": \"DE\", \n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-creditnote\",\n \"field_mapping\": [\n {\n \"target\": \"Creditnote.cbc:ID\",\n \"source\": \"credit_note.id\"\n },\n {\n \"target\": \"Creditnote.cbc:IssueDate\",\n \"source\": \"credit_note.issue_date\"\n },\n {\n \"target\": \"Creditnote.cbc:CreditNoteTypeCode\",\n \"fixed_value\": \"396\"\n },\n {\n \"target\": \"Creditnote.cbc:DocumentCurrencyCode\",\n \"source\": \"credit_note.currency_code\"\n },\n {\n \"target\": \"Creditnote.cac:BillingReference\",\n \"expr\": \"invoiceResponse.events.exists(e, has(e.responseKey) \u0026\u0026 e.responseKey == 'Receipt Message ID') ? invoiceResponse.events.filter(e, has(e.responseKey) \u0026\u0026 e.responseKey == 'Receipt Message ID').map(e, e.responseValue)[0] : null\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingSupplierParty.cac:Party.cbc:EndpointID\",\n \"source\": \"tax_reg_number\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingSupplierParty.cac:Party.cac:PostalAddress.cac:Country.cbc:IdentificationCode\",\n \"source\": \"business.address.country\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingSupplierParty.cac:Party.cac:PartyLegalEntity.cbc:RegistrationName\",\n \"source\": \"organization_details.organization_name\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingCustomerParty.cac:Party.cbc:EndpointID\",\n \"source\": \"customer.vat_number\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingCustomerParty.cac:Party.cac:PostalAddress.cac:Country.cbc:IdentificationCode\",\n \"source\": \"customer.billing_address.country\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingCustomerParty.cac:Party.cac:PartyLegalEntity.cbc:RegistrationName\",\n \"source\": \"customer.company\"\n },\n {\n \"target\": \"Invoice.cac:AccountingCustomerParty.cac:Party.cac:PartyIdentification.cbc:ID.@schemeID\\\"\",\n \"source\": \"custom_fields[cf_einvoice_scheme_id]\"\n },\n {\n \"target\": \"Creditnote.cac:TaxTotal.cbc:TaxAmount\",\n \"source\": \"credit_note.tax_total\"\n },\n {\n \"target\": \"Creditnote.cac:TaxTotal.cbc:TaxAmount.@currencyID\",\n \"source\": \"credit_note.currency_code\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cbc:ID\",\n \"source\": \"line_items[].id\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cbc:InvoicedQuantity\",\n \"source\": \"line_items[].quantity\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cbc:InvoicedQuantity.@unitCode\",\n \"source\": \"line_items[].unit_code\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cbc:LineExtensionAmount\",\n \"source\": \"line_items[].amount\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cbc:LineExtensionAmount.@currencyID\",\n \"source\": \"credit_note.currency_code\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cac:Item.cbc:Name\",\n \"source\": \"line_items[].description\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cac:Item.cac:ClassifiedTaxCategory.cbc:ID\",\n \"source\": \"line_items[].classified_tax_category[].category\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cac:Item.cac:ClassifiedTaxCategory.cac:TaxScheme.cbc:ID\",\n \"source\": \"line_items[].classified_tax_category[].category\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cac:Price.cbc:PriceAmount\",\n \"source\": \"line_items[].unit_price\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cac:Price.cbc:PriceAmount.@currencyID\",\n \"source\": \"credit_note.currency_code\"\n },\n {\n \"target\": \"Creditnote.cbc:Note\",\n \"expr: \"credit_note.amount > 0 ? 'Partial refund issued' : credit_note.custom_fields.cf_credit_note_reason != null ? credit_note.custom_fields.cf_credit_note_reason : 'Credit note issued'\"\n }\n ],\n \"values\": {\n \"credit_note.id\": \"CN-20001\",\n \"credit_note.issue_date\": \"2025-04-05\",\n \"credit_note.tax_date\": \"2025-04-05\",\n \"credit_note.currency_code\": \"EUR\",\n \"credit_note.due_date\": \"2025-04-30\",\n \"credit_note.amount\": 140.0,\n \"credit_note.billing_reference\": {\n \"invoice_document_reference\": {\n \"id\": \"INV-10001\",\n \"issue_date\": \"2025-04-02\"\n }\n },\n \"credit_note.note\": \"Refund for April invoice\",\n \"business.address.country\": \"DE\",\n \"tax_reg_number\": \"DE987654321\",\n \"organization_details.organization_name\": \"Example Seller GmbH\",\n \"customer.billing_address.country\": \"DE\",\n \"customer.vat_number\": \"DE123456789\",\n \"customer.company\": \"Example Buyer GmbH\",\n \"custom_fields[cf_einvoice_scheme_id]\": \"9930\",\n \"credit_note.tax_total\": 40.0,\n \"invoiceResponse\": {\n \"events\": [\n {\n \"responseKey\": \"Some Other Event\",\n \"responseValue\": \"Some Value\"\n },\n {\n \"responseKey\": \"Receipt Message ID\",\n \"responseValue\": \"RCPT123456\"\n },\n {\n \"responseKey\": \"Another Event\",\n \"responseValue\": \"Another Value\"\n }\n ]\n },\n \"line_items\": [\n {\n \"id\": \"1\",\n \"description\": \"Reversal of April service\",\n \"quantity\": 1,\n \"unit_price\": 100.0,\n \"amount\": 100.0,\n \"unit_code\": \"EA\",\n \"classified_tax_category\": {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n },\n {\n \"id\": \"2\",\n \"description\": \"Reversal of consulting charge\",\n \"quantity\": 1,\n \"unit_price\": 40.0,\n \"amount\": 40.0,\n \"unit_code\": \"EA\",\n \"classified_tax_category\": {\n \"percentage\": 30,\n \"category\": \"EU VAT\",\n \"country\": \"DE\"\n }\n }\n ]\n }\n }\n }'\n"},{"lang":"cURL","label":"Application response document submission","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"APPRESP-20250402-002\",\n \"type\": \"APPLICATION_RESPONSE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-applicationresponse\",\n \"issue_date\": \"2025-04-04\",\n \"sender_party\": {\n \"name\": \"Example Sender GmbH\",\n \"tax_registration_number\": \"DE987654321\"\n },\n \"receiver_party\": {\n \"name\": \"Example Receiver GmbH\",\n \"tax_registration_number\": \"DE123456789\"\n },\n \"document_response\": {\n \"response\": {\n \"status\": \"Under query\",\n \"note\": \"Discrepancy in line item total\"\n },\n \"document_reference\": {\n \"id\": \"INV-20250401-789\"\n }\n }\n }'\n"},{"lang":"cURL","label":"Application response document submission with overrides","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"APPRESP-20240401-001\",\n \"type\": \"APPLICATION_RESPONSE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-applicationresponse\",\n \"issue_date\": \"2025-04-03\",\n \"sender_party\": {\n \"name\": \"Example Sender GmbH\",\n \"tax_registration_number\": \"DE987654321\"\n },\n \"receiver_party\": {\n \"name\": \"Example Receiver GmbH\",\n \"tax_registration_number\": \"DE123456789\"\n },\n \"document_response\": {\n \"response\": {\n \"status\": \"Accepted\",\n \"note\": \"Invoice accepted without issues\"\n },\n \"document_reference\": {\n \"id\": \"INV-20240330-567\"\n }\n },\n \"overrides\": {\n \"country\": \"DE\",\n \"model\": \"PEPPOL\",\n \"transaction_type\": \"B2B\",\n \"document_type\": \"ubl-applicationresponse\",\n \"field_mapping\": [\n {\n \"target\": \"ApplicationResponse.cbc:ID\",\n \"source\": \"application_response.id\"\n },\n {\n \"target\": \"ApplicationResponse.cbc:IssueDate\",\n \"source\": \"application_response.issue_date\"\n },\n {\n \"target\": \"ApplicationResponse.cac:SenderParty.cac:PartyLegalEntity.cbc:RegistrationName\",\n \"source\": \"application_response.sender_party.name\"\n },\n {\n \"target\": \"ApplicationResponse.cac:ReceiverParty.cac:PartyLegalEntity.cbc:RegistrationName\",\n \"source\": \"application_response.receiver_party.name\"\n },\n {\n \"target\": \"ApplicationResponse.cac:DocumentResponse.cac:Response.cbc:ResponseCode\",\n \"source\": \"application_response.document_response.response.status\"\n },\n {\n \"target\": \"ApplicationResponse.cac:DocumentResponse.cac:Response.cbc:Description\",\n \"source\": \"application_response.document_response.response.note\"\n },\n {\n \"target\": \"ApplicationResponse.cac:DocumentResponse.cac:DocumentReference.cbc:ID\",\n \"source\": \"application_response.document_response.document_reference.id\"\n }\n ],\n \"values\": {\n \"application_response.id\": \"APPRESP-20240401-001\",\n \"application_response.issue_date\": \"2025-04-03\",\n \"application_response.sender_party.name\": \"Example Sender GmbH\",\n \"application_response.receiver_party.name\": \"Example Receiver GmbH\",\n \"application_response.document_response.response.status\": \"Accepted\",\n \"application_response.document_response.response.note\": \"Invoice accepted without issues\",\n \"application_response.document_response.document_reference.id\": \"INV-20240330-567\"\n }\n }\n }'\n"}],"x-content-type":"application/json","x-accepts":"application/json","method":"post","type":"path","servers":["d4e8961d-07b7-4e1a-b0c5-0b6bbe82dc44","1872f517-eb3d-495f-a47d-0201ba038077"],"security":["1be7715d-498a-43d8-9821-6e1994b12760"],"path":"/einvoicing/documents","baseUrlOptions":["https://api.example.com","https://sandbox.example.com"],"title":"Submit a document","codeSamples":[{"label":"Invoice document submission","lang":"cURL","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"INV-10001\",\n \"type\": \"INVOICE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-invoice\",\n \"issue_date\": \"2025-04-02\",\n \"tax_date\": \"2025-04-02\",\n \"currency_code\": \"EUR\",\n \"due_date\": \"2025-04-30\",\n \"amount\": 114.0,\n \"status\": \"PAYMENT_DUE\",\n \"taxable_amount\": 100.0,\n \"amount_due\": 114.0,\n \"total_discount\": 0.0,\n \"note\": \"Payment due in 28 days.\",\n \"accounting_supplier_party\": {\n \"name\": \"Example Seller GmbH\",\n \"address\": {\n \"line_1\": \"Hauptstr. 456\",\n \"line_2\": \"Suite 5\",\n \"zip\": \"50667\",\n \"city\": \"Cologne\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE987654321\"\n },\n \"accounting_customer_party\": {\n \"name\": \"Example Buyer GmbH\",\n \"address\": {\n \"line_1\": \"Berliner Str. 123\",\n \"line_2\": \"2nd Floor\",\n \"zip\": \"10115\",\n \"city\": \"Berlin\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE123456789\"\n },\n \"payment_means\": [\n {\n \"code\": \"CREDIT_TRANSFER\",\n \"account\": \"DE89370400440532013000\",\n \"branch_code\": \"COBADEFFXXX\",\n \"payment_id\": \"PAY-2024-00987\",\n \"holder\": \"Example Seller GmbH\"\n }\n ],\n \"lines\": [\n {\n \"id\": \"1\",\n \"description\": \"Consulting Services - April\",\n \"quantity\": 1,\n \"unit_price\": 100.0,\n \"amount\": 100.0,\n \"item_code\": \"CONS-APRIL\",\n \"classified_tax_category\": [\n {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n ]\n }\n ],\n \"tax_total\": {\n \"tax_amount\": 14.0,\n \"tax_sub_totals\": [\n {\n \"taxable_amount\": 100.0,\n \"tax_amount\": 14.0,\n \"percentage\": 14,\n \"country\": \"DE\",\n \"category\": \"VAT\"\n }\n ]\n }\n }'\n"},{"label":"Invoice document submission with overrides","lang":"cURL","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"INV-20221607\",\n \"type\": \"INVOICE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-invoice\",\n \"issue_date\": \"2025-04-02\",\n \"tax_date\": \"2025-04-02\",\n \"currency_code\": \"EUR\",\n \"due_date\": \"2025-04-30\",\n \"amount\": 114.0,\n \"status\": \"PAYMENT_DUE\",\n \"taxable_amount\": 100.0,\n \"amount_due\": 114.0,\n \"total_discount\": 0.0,\n \"note\": \"Payment due in 28 days.\",\n \"accounting_supplier_party\": {\n \"name\": \"Example Seller GmbH\",\n \"address\": {\n \"line_1\": \"Hauptstr. 456\",\n \"line_2\": \"Suite 5\",\n \"zip\": \"50667\",\n \"city\": \"Cologne\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE987654321\"\n },\n \"accounting_customer_party\": {\n \"name\": \"Example Buyer GmbH\",\n \"address\": {\n \"line_1\": \"Berliner Str. 123\",\n \"line_2\": \"2nd Floor\",\n \"zip\": \"10115\",\n \"city\": \"Berlin\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE123456789\"\n },\n \"payment_means\": [\n {\n \"code\": \"CREDIT_TRANSFER\",\n \"account\": \"DE89370400440532013000\",\n \"branch_code\": \"COBADEFFXXX\",\n \"payment_id\": \"PAY-2024-00987\",\n \"holder\": \"Example Seller GmbH\"\n }\n ],\n \"lines\": [\n {\n \"id\": \"1\",\n \"description\": \"Consulting Services - April\",\n \"quantity\": 1,\n \"unit_price\": 100.0,\n \"amount\": 100.0,\n \"item_code\": \"CONS-APRIL\",\n \"classified_tax_category\": [\n {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n ]\n }\n ],\n \"tax_total\": {\n \"tax_amount\": 14.0,\n \"tax_sub_totals\": [\n {\n \"taxable_amount\": 100.0,\n \"tax_amount\": 14.0,\n \"percentage\": 14,\n \"country\": \"DE\",\n \"category\": \"VAT\"\n }\n ]\n },\n \"overrides\": {\n \"country\": \"DE\", \n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-invoice\",\n \"field_mapping\": [\n {\n \"target\": \"Invoice.cbc:ID\",\n \"source\": \"invoice.id\"\n },\n {\n \"target\": \"Invoice.cbc:IssueDate\",\n \"source\": \"invoice.issue_date\"\n },\n {\n \"target\": \"Invoice.cbc:InvoiceTypeCode\",\n \"fixed_value\": \"380\"\n },\n {\n \"target\": \"Invoice.cbc:DocumentCurrencyCode\",\n \"source\": \"invoice.currency_code\"\n },\n {\n \"target\": \"Invoice.cac:AccountingSupplierParty.cac:Party.cac:PostalAddress.cac:Country.cbc:IdentificationCode\",\n \"source\": \"business.address.country\"\n },\n {\n \"target\": \"Invoice.cac:AccountingCustomerParty.cac:Party.cac:PostalAddress.cac:Country.cbc:IdentificationCode\",\n \"source\": \"customer.billing_address.country\"\n },\n {\n \"target\": \"Invoice.cac:AccountingCustomerParty.cac:Party.cac:PartyIdentification.cbc:ID.@schemeID\\\"\",\n \"source\": \"custom_fields[cf_einvoice_scheme_id]\"\n },\n {\n \"target\": \"Invoice.cac:TaxTotal.cbc:TaxAmount\",\n \"source\": \"invoice.tax_total\"\n },\n {\n \"target\": \"Invoice.cbc:Note\",\n \"source\": \"invoice.note\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cbc:ID\",\n \"source\": \"line_items[].id\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cbc:InvoicedQuantity\",\n \"source\": \"line_items[].quantity\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cbc:InvoicedQuantity.@unitCode\",\n \"source\": \"line_items[].unit_code\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cbc:LineExtensionAmount\",\n \"source\": \"line_items[].amount\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cbc:LineExtensionAmount.@currencyID\",\n \"source\": \"invoice.currency_code\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cac:Item.cbc:Name\",\n \"source\": \"line_items[].description\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cac:Item.cac:ClassifiedTaxCategory.cbc:ID\",\n \"expr\": \"li.tax_rate > 0.0 \u0026\u0026 (!has(li.tax_exempt_reason) || li.tax_exempt_reason == '') ? 'S' \n :li.tax_rate == 0.0 \u0026\u0026 li.tax_exempt_reason == 'ZERO_RATED' ? 'Z' \n :li.tax_rate == 0.0 \u0026\u0026 li.tax_exempt_reason == 'EXEMPT' ? 'E' \n :li.tax_rate == 0.0 \u0026\u0026 li.tax_exempt_reason == 'REVERSE_CHARGE' ? 'AE' \n :li.tax_rate == 0.0 \u0026\u0026 li.tax_exempt_reason == 'OUTSIDE_SCOPE' ? 'O' :\\n''\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cac:Item.cac:ClassifiedTaxCategory.cac:TaxScheme.cbc:ID\",\n \"source\": \"line_items[].classified_tax_category[].category\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cac:Price.cbc:PriceAmount\",\n \"source\": \"line_items[].unit_price\"\n },\n {\n \"target\": \"Invoice.cac:InvoiceLine.cac:Price.cbc:PriceAmount.@currencyID\",\n \"source\": \"invoice.currency_code\"\n },\n {\n \"target\": \"Invoice.cbc:Note\",\n \"source\": \"invoice.note\"\n }\n ],\n \"values\": {\n \"invoice.id\": \"INV-10001\",\n \"invoice.issue_date\": \"2025-04-02\",\n \"invoice.tax_date\": \"2025-04-02\",\n \"invoice.currency_code\": \"EUR\",\n \"invoice.due_date\": \"2025-04-30\",\n \"invoice.amount\": 114.0,\n \"invoice.note\": \"Payment due in 28 days.\",\n \"business.address.country\": \"DE\",\n \"customer.billing_address.country\": \"DE\",\n \"custom_fields[cf_einvoice_scheme_id]\": \"9930\",\n \"invoice.tax_total\": 14.0,\n \"line_items\": [\n {\n \"id\": \"1\",\n \"description\": \"Consulting Services - April\",\n \"quantity\": 1,\n \"unit_price\": 100.0,\n \"amount\": 100.0,\n \"item_code\": \"CONS-APRIL\",\n \"tax_rate\" : \"14\",\n \"classified_tax_category\": {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n },\n {\n \"id\": \"2\",\n \"description\": \"TEST Consulting Services - April\",\n \"quantity\": 130,\n \"unit_price\": 1000.0,\n \"amount\": 1005.0,\n \"item_code\": \"CONS-APRIL\",\n \"tax_rate\" : \"30\",\n \"classified_tax_category\": {\n \"percentage\": 30,\n \"category\": \"EU VAT\",\n \"country\": \"DE\"\n }\n }\n ]\n }\n }\n }'\n"},{"label":"Credit note document submission","lang":"cURL","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"CN-20002\",\n \"type\": \"CREDIT_NOTE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-creditnote\",\n \"issue_date\": \"2025-04-10\",\n \"tax_date\": \"2025-04-10\",\n \"currency_code\": \"EUR\",\n \"due_date\": \"2025-04-30\",\n \"amount\": 50.0,\n \"note\": \"Credit issued for April billing adjustment.\",\n \"billing_reference\": [\n \"INV-10001\"\n ],\n \"accounting_supplier_party\": {\n \"name\": \"Example Seller GmbH\",\n \"address\": {\n \"line_1\": \"Hauptstr. 456\",\n \"line_2\": \"Suite 5\",\n \"zip\": \"50667\",\n \"city\": \"Cologne\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE987654321\"\n },\n \"accounting_customer_party\": {\n \"name\": \"Example Buyer GmbH\",\n \"address\": {\n \"line_1\": \"Berliner Str. 123\",\n \"line_2\": \"2nd Floor\",\n \"zip\": \"10115\",\n \"city\": \"Berlin\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE123456789\"\n },\n \"payment_means\": [\n {\n \"code\": \"CREDIT_TRANSFER\",\n \"account\": \"DE89370400440532013000\",\n \"branch_code\": \"COBADEFFXXX\",\n \"payment_id\": \"PAY-2024-01002\",\n \"holder\": \"Example Seller GmbH\"\n }\n ],\n \"lines\": [\n {\n \"id\": \"1\",\n \"description\": \"Refund for overcharge in April\",\n \"quantity\": 1,\n \"unit_price\": 50.0,\n \"amount\": 50.0,\n \"item_code\": \"APRIL-REFUND\",\n \"classified_tax_category\": [\n {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n ]\n }\n ],\n \"tax_total\": {\n \"tax_amount\": 7.0,\n \"tax_sub_totals\": [\n {\n \"taxable_amount\": 50.0,\n \"tax_amount\": 7.0,\n \"percentage\": 14,\n \"country\": \"DE\",\n \"category\": \"VAT\"\n }\n ]\n }\n }'\n"},{"label":"Credit note document submission with overrides","lang":"cURL","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"CN-20002\",\n \"type\": \"CREDIT_NOTE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-creditnote\",\n \"issue_date\": \"2025-04-10\",\n \"tax_date\": \"2025-04-10\",\n \"currency_code\": \"EUR\",\n \"due_date\": \"2025-04-30\",\n \"amount\": 50.0,\n \"note\": \"Credit issued for April billing adjustment.\",\n \"billing_reference\": [\n \"INV-10001\"\n ],\n \"accounting_supplier_party\": {\n \"name\": \"Example Seller GmbH\",\n \"address\": {\n \"line_1\": \"Hauptstr. 456\",\n \"line_2\": \"Suite 5\",\n \"zip\": \"50667\",\n \"city\": \"Cologne\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE987654321\"\n },\n \"accounting_customer_party\": {\n \"name\": \"Example Buyer GmbH\",\n \"address\": {\n \"line_1\": \"Berliner Str. 123\",\n \"line_2\": \"2nd Floor\",\n \"zip\": \"10115\",\n \"city\": \"Berlin\",\n \"country\": \"DE\"\n },\n \"tax_registration_number\": \"DE123456789\"\n },\n \"payment_means\": [\n {\n \"code\": \"CREDIT_TRANSFER\",\n \"account\": \"DE89370400440532013000\",\n \"branch_code\": \"COBADEFFXXX\",\n \"payment_id\": \"PAY-2024-01002\",\n \"holder\": \"Example Seller GmbH\"\n }\n ],\n \"lines\": [\n {\n \"id\": \"1\",\n \"description\": \"Refund for overcharge in April\",\n \"quantity\": 1,\n \"unit_price\": 50.0,\n \"amount\": 50.0,\n \"item_code\": \"APRIL-REFUND\",\n \"classified_tax_category\": [\n {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n ]\n }\n ],\n \"tax_total\": {\n \"tax_amount\": 7.0,\n \"tax_sub_totals\": [\n {\n \"taxable_amount\": 50.0,\n \"tax_amount\": 7.0,\n \"percentage\": 14,\n \"country\": \"DE\",\n \"category\": \"VAT\"\n }\n ]\n },\n \"overrides\": {\n \"country\": \"DE\", \n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-creditnote\",\n \"field_mapping\": [\n {\n \"target\": \"Creditnote.cbc:ID\",\n \"source\": \"credit_note.id\"\n },\n {\n \"target\": \"Creditnote.cbc:IssueDate\",\n \"source\": \"credit_note.issue_date\"\n },\n {\n \"target\": \"Creditnote.cbc:CreditNoteTypeCode\",\n \"fixed_value\": \"396\"\n },\n {\n \"target\": \"Creditnote.cbc:DocumentCurrencyCode\",\n \"source\": \"credit_note.currency_code\"\n },\n {\n \"target\": \"Creditnote.cac:BillingReference\",\n \"expr\": \"invoiceResponse.events.exists(e, has(e.responseKey) \u0026\u0026 e.responseKey == 'Receipt Message ID') ? invoiceResponse.events.filter(e, has(e.responseKey) \u0026\u0026 e.responseKey == 'Receipt Message ID').map(e, e.responseValue)[0] : null\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingSupplierParty.cac:Party.cbc:EndpointID\",\n \"source\": \"tax_reg_number\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingSupplierParty.cac:Party.cac:PostalAddress.cac:Country.cbc:IdentificationCode\",\n \"source\": \"business.address.country\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingSupplierParty.cac:Party.cac:PartyLegalEntity.cbc:RegistrationName\",\n \"source\": \"organization_details.organization_name\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingCustomerParty.cac:Party.cbc:EndpointID\",\n \"source\": \"customer.vat_number\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingCustomerParty.cac:Party.cac:PostalAddress.cac:Country.cbc:IdentificationCode\",\n \"source\": \"customer.billing_address.country\"\n },\n {\n \"target\": \"Creditnote.cac:AccountingCustomerParty.cac:Party.cac:PartyLegalEntity.cbc:RegistrationName\",\n \"source\": \"customer.company\"\n },\n {\n \"target\": \"Invoice.cac:AccountingCustomerParty.cac:Party.cac:PartyIdentification.cbc:ID.@schemeID\\\"\",\n \"source\": \"custom_fields[cf_einvoice_scheme_id]\"\n },\n {\n \"target\": \"Creditnote.cac:TaxTotal.cbc:TaxAmount\",\n \"source\": \"credit_note.tax_total\"\n },\n {\n \"target\": \"Creditnote.cac:TaxTotal.cbc:TaxAmount.@currencyID\",\n \"source\": \"credit_note.currency_code\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cbc:ID\",\n \"source\": \"line_items[].id\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cbc:InvoicedQuantity\",\n \"source\": \"line_items[].quantity\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cbc:InvoicedQuantity.@unitCode\",\n \"source\": \"line_items[].unit_code\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cbc:LineExtensionAmount\",\n \"source\": \"line_items[].amount\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cbc:LineExtensionAmount.@currencyID\",\n \"source\": \"credit_note.currency_code\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cac:Item.cbc:Name\",\n \"source\": \"line_items[].description\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cac:Item.cac:ClassifiedTaxCategory.cbc:ID\",\n \"source\": \"line_items[].classified_tax_category[].category\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cac:Item.cac:ClassifiedTaxCategory.cac:TaxScheme.cbc:ID\",\n \"source\": \"line_items[].classified_tax_category[].category\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cac:Price.cbc:PriceAmount\",\n \"source\": \"line_items[].unit_price\"\n },\n {\n \"target\": \"Creditnote.cac:InvoiceLine.cac:Price.cbc:PriceAmount.@currencyID\",\n \"source\": \"credit_note.currency_code\"\n },\n {\n \"target\": \"Creditnote.cbc:Note\",\n \"expr: \"credit_note.amount > 0 ? 'Partial refund issued' : credit_note.custom_fields.cf_credit_note_reason != null ? credit_note.custom_fields.cf_credit_note_reason : 'Credit note issued'\"\n }\n ],\n \"values\": {\n \"credit_note.id\": \"CN-20001\",\n \"credit_note.issue_date\": \"2025-04-05\",\n \"credit_note.tax_date\": \"2025-04-05\",\n \"credit_note.currency_code\": \"EUR\",\n \"credit_note.due_date\": \"2025-04-30\",\n \"credit_note.amount\": 140.0,\n \"credit_note.billing_reference\": {\n \"invoice_document_reference\": {\n \"id\": \"INV-10001\",\n \"issue_date\": \"2025-04-02\"\n }\n },\n \"credit_note.note\": \"Refund for April invoice\",\n \"business.address.country\": \"DE\",\n \"tax_reg_number\": \"DE987654321\",\n \"organization_details.organization_name\": \"Example Seller GmbH\",\n \"customer.billing_address.country\": \"DE\",\n \"customer.vat_number\": \"DE123456789\",\n \"customer.company\": \"Example Buyer GmbH\",\n \"custom_fields[cf_einvoice_scheme_id]\": \"9930\",\n \"credit_note.tax_total\": 40.0,\n \"invoiceResponse\": {\n \"events\": [\n {\n \"responseKey\": \"Some Other Event\",\n \"responseValue\": \"Some Value\"\n },\n {\n \"responseKey\": \"Receipt Message ID\",\n \"responseValue\": \"RCPT123456\"\n },\n {\n \"responseKey\": \"Another Event\",\n \"responseValue\": \"Another Value\"\n }\n ]\n },\n \"line_items\": [\n {\n \"id\": \"1\",\n \"description\": \"Reversal of April service\",\n \"quantity\": 1,\n \"unit_price\": 100.0,\n \"amount\": 100.0,\n \"unit_code\": \"EA\",\n \"classified_tax_category\": {\n \"percentage\": 14,\n \"category\": \"VAT\",\n \"country\": \"DE\"\n }\n },\n {\n \"id\": \"2\",\n \"description\": \"Reversal of consulting charge\",\n \"quantity\": 1,\n \"unit_price\": 40.0,\n \"amount\": 40.0,\n \"unit_code\": \"EA\",\n \"classified_tax_category\": {\n \"percentage\": 30,\n \"category\": \"EU VAT\",\n \"country\": \"DE\"\n }\n }\n ]\n }\n }\n }'\n"},{"label":"Application response document submission","lang":"cURL","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"APPRESP-20250402-002\",\n \"type\": \"APPLICATION_RESPONSE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-applicationresponse\",\n \"issue_date\": \"2025-04-04\",\n \"sender_party\": {\n \"name\": \"Example Sender GmbH\",\n \"tax_registration_number\": \"DE987654321\"\n },\n \"receiver_party\": {\n \"name\": \"Example Receiver GmbH\",\n \"tax_registration_number\": \"DE123456789\"\n },\n \"document_response\": {\n \"response\": {\n \"status\": \"Under query\",\n \"note\": \"Discrepancy in line item total\"\n },\n \"document_reference\": {\n \"id\": \"INV-20250401-789\"\n }\n }\n }'\n"},{"label":"Application response document submission with overrides","lang":"cURL","source":"curl --request POST \\\n --url https://partner.app.com/einvoicing/documents \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: {\"api_key\" : ... }' \\\n --data '{\n \"id\": \"APPRESP-20240401-001\",\n \"type\": \"APPLICATION_RESPONSE\",\n \"country\": \"DE\",\n \"transaction_type\": \"B2B\",\n \"model\": \"PEPPOL\",\n \"document_type\": \"ubl-applicationresponse\",\n \"issue_date\": \"2025-04-03\",\n \"sender_party\": {\n \"name\": \"Example Sender GmbH\",\n \"tax_registration_number\": \"DE987654321\"\n },\n \"receiver_party\": {\n \"name\": \"Example Receiver GmbH\",\n \"tax_registration_number\": \"DE123456789\"\n },\n \"document_response\": {\n \"response\": {\n \"status\": \"Accepted\",\n \"note\": \"Invoice accepted without issues\"\n },\n \"document_reference\": {\n \"id\": \"INV-20240330-567\"\n }\n },\n \"overrides\": {\n \"country\": \"DE\",\n \"model\": \"PEPPOL\",\n \"transaction_type\": \"B2B\",\n \"document_type\": \"ubl-applicationresponse\",\n \"field_mapping\": [\n {\n \"target\": \"ApplicationResponse.cbc:ID\",\n \"source\": \"application_response.id\"\n },\n {\n \"target\": \"ApplicationResponse.cbc:IssueDate\",\n \"source\": \"application_response.issue_date\"\n },\n {\n \"target\": \"ApplicationResponse.cac:SenderParty.cac:PartyLegalEntity.cbc:RegistrationName\",\n \"source\": \"application_response.sender_party.name\"\n },\n {\n \"target\": \"ApplicationResponse.cac:ReceiverParty.cac:PartyLegalEntity.cbc:RegistrationName\",\n \"source\": \"application_response.receiver_party.name\"\n },\n {\n \"target\": \"ApplicationResponse.cac:DocumentResponse.cac:Response.cbc:ResponseCode\",\n \"source\": \"application_response.document_response.response.status\"\n },\n {\n \"target\": \"ApplicationResponse.cac:DocumentResponse.cac:Response.cbc:Description\",\n \"source\": \"application_response.document_response.response.note\"\n },\n {\n \"target\": \"ApplicationResponse.cac:DocumentResponse.cac:DocumentReference.cbc:ID\",\n \"source\": \"application_response.document_response.document_reference.id\"\n }\n ],\n \"values\": {\n \"application_response.id\": \"APPRESP-20240401-001\",\n \"application_response.issue_date\": \"2025-04-03\",\n \"application_response.sender_party.name\": \"Example Sender GmbH\",\n \"application_response.receiver_party.name\": \"Example Receiver GmbH\",\n \"application_response.document_response.response.status\": \"Accepted\",\n \"application_response.document_response.response.note\": \"Invoice accepted without issues\",\n \"application_response.document_response.document_reference.id\": \"INV-20240330-567\"\n }\n }\n }'\n"}],"requestExampleLanguages":["bash"],"requiredOnlyExamples":true,"requestExampleType":"codeSamples","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.oneOf.0.id":"\u003cstring>","body.oneOf.0.country":"DE","body.oneOf.0.model":"PEPPOL","body.oneOf.0.issue_date":"2023-12-25","body.oneOf.0.tax_date":"2023-12-25","body.oneOf.0.currency_code":"\u003cstring>","body.oneOf.0.due_date":"2023-12-25","body.oneOf.0.amount":123,"body.oneOf.0.status":"PAYMENT_DUE","body.oneOf.0.taxable_amount":123,"body.oneOf.0.amount_due":123,"body.oneOf.0.accounting_supplier_party.address.line_1":"\u003cstring>","body.oneOf.0.accounting_supplier_party.address.line_2":"\u003cstring>","body.oneOf.0.accounting_supplier_party.address.line_3":"\u003cstring>","body.oneOf.0.accounting_supplier_party.address.zip":"\u003cstring>","body.oneOf.0.accounting_supplier_party.address.city":"\u003cstring>","body.oneOf.0.accounting_supplier_party.address.division":"\u003cstring>","body.oneOf.0.accounting_supplier_party.address.country":"\u003cstring>","body.oneOf.0.accounting_supplier_party.name":"\u003cstring>","body.oneOf.0.accounting_supplier_party.tax_registration_number":"\u003cstring>","body.oneOf.0.accounting_customer_party.address.line_1":"\u003cstring>","body.oneOf.0.accounting_customer_party.address.line_2":"\u003cstring>","body.oneOf.0.accounting_customer_party.address.line_3":"\u003cstring>","body.oneOf.0.accounting_customer_party.address.zip":"\u003cstring>","body.oneOf.0.accounting_customer_party.address.city":"\u003cstring>","body.oneOf.0.accounting_customer_party.address.division":"\u003cstring>","body.oneOf.0.accounting_customer_party.address.country":"\u003cstring>","body.oneOf.0.accounting_customer_party.name":"\u003cstring>","body.oneOf.0.accounting_customer_party.tax_registration_number":"\u003cstring>","body.oneOf.0.accounting_customer_party.custom_fields.cf_po_number":"PO-12345","body.oneOf.0.accounting_customer_party.custom_fields.cf_cost_center":"CC-42","body.oneOf.0.lines.items.0.id":"\u003cstring>","body.oneOf.0.lines.items.0.description":"\u003cstring>","body.oneOf.0.lines.items.0.quantity":123,"body.oneOf.0.lines.items.0.amount":123,"body.oneOf.0.lines.items.0.unit_price":123,"body.oneOf.0.lines.items.0.discount":123,"body.oneOf.0.lines.items.0.item_code":"\u003cstring>","body.oneOf.0.lines.items.0.subscription_custom_fields.cf_po_number":"PO-12345","body.oneOf.0.lines.items.0.subscription_custom_fields.cf_cost_center":"CC-42","body.oneOf.0.lines.items.0.product_custom_fields.cf_po_number":"PO-12345","body.oneOf.0.lines.items.0.product_custom_fields.cf_cost_center":"CC-42","body.oneOf.0.lines.items.0.classified_tax_category.items.0.percentage":123,"body.oneOf.0.lines.items.0.classified_tax_category.items.0.category":"\u003cstring>","body.oneOf.0.lines.items.0.classified_tax_category.items.0.country":"\u003cstring>","body.oneOf.0.tax_total.tax_amount":123,"body.oneOf.0.tax_total.tax_sub_totals.items.0.taxable_amount":123,"body.oneOf.0.tax_total.tax_sub_totals.items.0.tax_amount":123,"body.oneOf.0.tax_total.tax_sub_totals.items.0.percentage":123,"body.oneOf.0.tax_total.tax_sub_totals.items.0.country":"\u003cstring>","body.oneOf.0.tax_total.tax_sub_totals.items.0.category":"\u003cstring>","body.oneOf.0.transaction_type":"B2B","body.oneOf.0.document_type":"ubl-invoice","body.oneOf.0.total_discount":123,"body.oneOf.0.note":"\u003cstring>","body.oneOf.0.custom_fields.cf_po_number":"PO-12345","body.oneOf.0.custom_fields.cf_cost_center":"CC-42","body.oneOf.0.subscription_custom_fields.cf_po_number":"PO-12345","body.oneOf.0.subscription_custom_fields.cf_cost_center":"CC-42","body.oneOf.0.billing_reference.items.0":{},"body.oneOf.0.payment_means.items.0.account":"\u003cstring>","body.oneOf.0.payment_means.items.0.branch_code":"\u003cstring>","body.oneOf.0.payment_means.items.0.payment_id":"\u003cstring>","body.oneOf.0.payment_means.items.0.holder":"\u003cstring>","body.oneOf.0.payment_means.items.0.mandate":"\u003cstring>","body.oneOf.0.payment_means.items.0.network":"\u003cstring>","body.oneOf.0.overrides.country":"DE","body.oneOf.0.overrides.transaction_type":"B2B","body.oneOf.0.overrides.model":"PEPPOL","body.oneOf.0.overrides.document_type":"ubl-invoice","body.oneOf.0.overrides.field_mapping.items.0.target":"Invoice.cbc:ID","body.oneOf.0.overrides.field_mapping.items.0.source":"invoice.id","body.oneOf.0.overrides.field_mapping.items.0.fixed_value":"380","body.oneOf.0.overrides.field_mapping.items.0.expr":"\u003cstring>","body.oneOf.0.overrides.values":{}}]},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Represents an invoice or credit note document to be validated and submitted via the e-invoicing provider.","required":["accounting_customer_party","accounting_supplier_party","amount","amount_due","country","currency_code","due_date","id","issue_date","lines","model","status","tax_date","tax_total","taxable_amount","type"],"properties":{"id":{"description":"A unique identifier for the document being submitted. This typically represents the invoice number or credit note number generated by Chargebee.","type":"string","isRequired":true,"uniqueKey":"oneOf.0.id","typeLabel":"string"},"type":{"description":"Type of document, either an invoice or a credit note.","enum":["INVOICE","CREDIT_NOTE"],"type":"string","isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"},"country":{"description":"The ISO country code for the scenario.","example":"DE","type":"string","isRequired":true,"uniqueKey":"oneOf.0.country","typeLabel":"string"},"model":{"description":"Indicates the eInvoicing flow model that governs the document exchange and processing mechanism.\nDifferent countries adopt different models based on legal, technical, and administrative mandates.\nSupported values:\n- PEPPOL: A standardized, secure eInvoicing network enabling cross-border electronic document exchange between businesses and governments.\n- EINVOICE: Traditional eInvoicing model where invoices are digitally exchanged between businesses and sometimes stored.\n- CLEARANCE: Invoices must be pre-approved by a tax authority before they are sent to the buyer.\n- REPORTING: Invoices are shared with tax authorities after issuance, usually for compliance and audit purposes.\n- ZUGFERD: A hybrid eInvoicing format used in Germany combining PDF and XML for human and machine readability.\n- CTC: Continuous Transaction Controls involve real-time or near-real-time invoice validation and transmission to tax authorities.\n- NEMHANDEL: Denmark’s national infrastructure for eInvoicing that supports secure delivery via specific formats like OIOUBL.\n- FACE: Spain’s centralized system (FACe/FACeB2B) for routing invoices to government or private recipients.\n- VERIFACTU: Spain’s mechanism for validating and reporting sales invoices directly to the tax agency.\n- TEAPPS: Finland’s TEAPPSXML eInvoicing format used for domestic electronic invoice exchange.\n- FINVOICE: Finland’s Finvoice eInvoicing format used for domestic electronic invoice exchange.\n","enum":["PEPPOL","EINVOICE","CLEARANCE","REPORTING","ZUGFERD","CTC","NEMHANDEL","FACE","VERIFACTU","TEAPPS","FINVOICE"],"example":"PEPPOL","type":"string","isRequired":true,"uniqueKey":"oneOf.0.model","typeLabel":"enum\u003cstring>"},"issue_date":{"description":"The date when the document was issued. Format \"YYYY-MM-DD\"","format":"date","type":"string","isRequired":true,"uniqueKey":"oneOf.0.issue_date","typeLabel":"string\u003cdate>"},"tax_date":{"description":"The date used to determine tax. Format \"YYYY-MM-DD\"","format":"date","type":"string","isRequired":true,"uniqueKey":"oneOf.0.tax_date","typeLabel":"string\u003cdate>"},"currency_code":{"description":"The currency code [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217) for the document.","type":"string","isRequired":true,"uniqueKey":"oneOf.0.currency_code","typeLabel":"string"},"due_date":{"description":"The date when the payment is due. Format \"YYYY-MM-DD\".","format":"date","type":"string","isRequired":true,"uniqueKey":"oneOf.0.due_date","typeLabel":"string\u003cdate>"},"amount":{"description":"Total payable amount for the document, including taxes.","type":"number","isRequired":true,"uniqueKey":"oneOf.0.amount","typeLabel":"number"},"status":{"description":"Billing status of the invoice or credit note in Chargebee.\n\n**Invoice statuses** (when `type` is `INVOICE`):\n- `PAID` — Indicates a paid invoice.\n- `POSTED` — Payment is not yet collected and will remain in this state until the due date to indicate the due period.\n- `PAYMENT_DUE` — Payment is not yet collected and is being retried as per retry settings.\n- `NOT_PAID` — Payment has not been made and all attempts to collect have failed.\n- `VOIDED` — Indicates a voided invoice.\n\n**Credit note statuses** (when `type` is `CREDIT_NOTE`):\n- `ADJUSTED` — Indicates an adjustment credit note.\n- `REFUNDED` — Indicates the credit note has been fully refunded.\n- `REFUND_DUE` — Indicates a refund is due on the credit note.\n- `VOIDED` — Indicates a voided credit note.\n","enum":["PAID","POSTED","PAYMENT_DUE","NOT_PAID","VOIDED","ADJUSTED","REFUNDED","REFUND_DUE"],"example":"PAYMENT_DUE","type":"string","isRequired":true,"uniqueKey":"oneOf.0.status","typeLabel":"enum\u003cstring>"},"taxable_amount":{"description":"Total document amount excluding tax (VAT).","type":"number","isRequired":true,"uniqueKey":"oneOf.0.taxable_amount","typeLabel":"number"},"amount_due":{"description":"Outstanding balance remaining on the document.","type":"number","isRequired":true,"uniqueKey":"oneOf.0.amount_due","typeLabel":"number"},"accounting_supplier_party":{"description":"Party responsible for issuing the document (that is, the supplier). This represents the legal entity or business that creates the invoice and bears responsibility for delivering goods or services.","properties":{"address":{"properties":{"line_1":{"description":"First line of the address.","type":"string","uniqueKey":"oneOf.0.accounting_supplier_party.address.line_1","typeLabel":"string"},"line_2":{"description":"Second line of the address.","type":"string","uniqueKey":"oneOf.0.accounting_supplier_party.address.line_2","typeLabel":"string"},"line_3":{"description":"Third line of the address.","type":"string","uniqueKey":"oneOf.0.accounting_supplier_party.address.line_3","typeLabel":"string"},"zip":{"description":"Postal or ZIP code.","type":"string","uniqueKey":"oneOf.0.accounting_supplier_party.address.zip","typeLabel":"string"},"city":{"description":"City name.","type":"string","uniqueKey":"oneOf.0.accounting_supplier_party.address.city","typeLabel":"string"},"division":{"description":"Division name.","type":"string","uniqueKey":"oneOf.0.accounting_supplier_party.address.division","typeLabel":"string"},"country":{"description":"ISO 3166-1 alpha-2 country code.","type":"string","uniqueKey":"oneOf.0.accounting_supplier_party.address.country","typeLabel":"string"}},"type":"object","isRequired":true,"uniqueKey":"oneOf.0.accounting_supplier_party.address","typeLabel":"object"},"name":{"description":"Name of the supplier party.","type":"string","uniqueKey":"oneOf.0.accounting_supplier_party.name","typeLabel":"string"},"tax_registration_number":{"description":"Tax registration number of the supplier (for example VAT / GST number), when available.","type":"string","uniqueKey":"oneOf.0.accounting_supplier_party.tax_registration_number","typeLabel":"string"}},"required":["address"],"type":"object","isRequired":true,"uniqueKey":"oneOf.0.accounting_supplier_party","typeLabel":"object"},"accounting_customer_party":{"description":"Party responsible for receiving the invoice (i.e., the customer).","properties":{"address":{"properties":{"line_1":{"description":"First line of the address.","type":"string","uniqueKey":"oneOf.0.accounting_customer_party.address.line_1","typeLabel":"string"},"line_2":{"description":"Second line of the address.","type":"string","uniqueKey":"oneOf.0.accounting_customer_party.address.line_2","typeLabel":"string"},"line_3":{"description":"Third line of the address.","type":"string","uniqueKey":"oneOf.0.accounting_customer_party.address.line_3","typeLabel":"string"},"zip":{"description":"Postal or ZIP code.","type":"string","uniqueKey":"oneOf.0.accounting_customer_party.address.zip","typeLabel":"string"},"city":{"description":"City name.","type":"string","uniqueKey":"oneOf.0.accounting_customer_party.address.city","typeLabel":"string"},"division":{"description":"Division name.","type":"string","uniqueKey":"oneOf.0.accounting_customer_party.address.division","typeLabel":"string"},"country":{"description":"ISO 3166-1 alpha-2 country code.","type":"string","uniqueKey":"oneOf.0.accounting_customer_party.address.country","typeLabel":"string"}},"type":"object","isRequired":true,"uniqueKey":"oneOf.0.accounting_customer_party.address","typeLabel":"object"},"name":{"description":"Name of the customer party.","type":"string","uniqueKey":"oneOf.0.accounting_customer_party.name","typeLabel":"string"},"tax_registration_number":{"description":"Tax registration number of the customer (for example VAT / GST number), when available.","type":"string","uniqueKey":"oneOf.0.accounting_customer_party.tax_registration_number","typeLabel":"string"},"custom_fields":{"type":"object","description":"Customer custom field values keyed by API name (e.g. `cf_tax_id`).","example":{"cf_po_number":"PO-12345","cf_cost_center":"CC-42"},"additionalProperties":{"type":"string","uniqueKey":"oneOf.0.accounting_customer_party.custom_fields.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.accounting_customer_party.custom_fields","typeLabel":"object"}},"required":["address"],"type":"object","isRequired":true,"uniqueKey":"oneOf.0.accounting_customer_party","typeLabel":"object"},"lines":{"items":{"properties":{"id":{"description":"A unique identifier for the individual line within the document.","type":"string","isRequired":true,"uniqueKey":"oneOf.0.lines.items.[INDEX].id","typeLabel":"string"},"description":{"description":"A textual note that gives unstructured information that is relevant to the document.","type":"string","isRequired":true,"uniqueKey":"oneOf.0.lines.items.[INDEX].description","typeLabel":"string"},"quantity":{"description":"The quantity of items (goods or services) that is charged.","type":"integer","isRequired":true,"uniqueKey":"oneOf.0.lines.items.[INDEX].quantity","typeLabel":"integer"},"amount":{"description":"The total amount of the line without tax.","type":"number","isRequired":true,"uniqueKey":"oneOf.0.lines.items.[INDEX].amount","typeLabel":"number"},"unit_price":{"description":"The unit price for this line.","type":"number","uniqueKey":"oneOf.0.lines.items.[INDEX].unit_price","typeLabel":"number"},"discount":{"description":"The discount applied to the line.","type":"number","uniqueKey":"oneOf.0.lines.items.[INDEX].discount","typeLabel":"number"},"item_code":{"description":"The unique identifier (in Chargebee) of the product corresponding to the line.","type":"string","uniqueKey":"oneOf.0.lines.items.[INDEX].item_code","typeLabel":"string"},"subscription_custom_fields":{"type":"object","description":"Subscription custom fields for this line's subscription.\nPresent on consolidated / multi-subscription documents.\nFor single-subscription documents, see `main_document.subscription_custom_fields`.\n","example":{"cf_po_number":"PO-12345","cf_cost_center":"CC-42"},"additionalProperties":{"type":"string","uniqueKey":"oneOf.0.lines.items.[INDEX].subscription_custom_fields.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.lines.items.[INDEX].subscription_custom_fields","typeLabel":"object"},"product_custom_fields":{"type":"object","description":"Product / item-price custom field values for this line keyed by API name (e.g. `cf_hs_code`).","example":{"cf_po_number":"PO-12345","cf_cost_center":"CC-42"},"additionalProperties":{"type":"string","uniqueKey":"oneOf.0.lines.items.[INDEX].product_custom_fields.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.lines.items.[INDEX].product_custom_fields","typeLabel":"object"},"classified_tax_category":{"description":"List of tax categories applicable to the invoice line, such as VAT or other indirect taxes.","items":{"properties":{"percentage":{"description":"The tax rate percentage applicable to this tax category (e.g., 19 for 19% VAT).","type":"number","uniqueKey":"oneOf.0.lines.items.[INDEX].classified_tax_category.items.[INDEX].percentage","typeLabel":"number"},"category":{"description":"A code or label identifying the type of tax category.","type":"string","uniqueKey":"oneOf.0.lines.items.[INDEX].classified_tax_category.items.[INDEX].category","typeLabel":"string"},"country":{"description":"The ISO 3166-1 alpha-2 country code where the tax category is applicable (e.g., DE for Germany).","type":"string","uniqueKey":"oneOf.0.lines.items.[INDEX].classified_tax_category.items.[INDEX].country","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.lines.items.[INDEX].classified_tax_category.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.lines.items.[INDEX].classified_tax_category","typeLabel":"object[]"}},"required":["amount","classifiedTaxCategory","description","id","name","quantity"],"type":"object","uniqueKey":"oneOf.0.lines.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"oneOf.0.lines","typeLabel":"object[]"},"tax_total":{"description":"Represents the total tax details for the document.","properties":{"tax_amount":{"description":"The total tax amount for the document.","format":"double","type":"number","uniqueKey":"oneOf.0.tax_total.tax_amount","typeLabel":"number\u003cdouble>"},"tax_sub_totals":{"items":{"properties":{"taxable_amount":{"description":"Total taxable amount for the category.","format":"double","type":"number","uniqueKey":"oneOf.0.tax_total.tax_sub_totals.items.[INDEX].taxable_amount","typeLabel":"number\u003cdouble>"},"tax_amount":{"description":"Total Tax amount for the category","format":"double","type":"number","uniqueKey":"oneOf.0.tax_total.tax_sub_totals.items.[INDEX].tax_amount","typeLabel":"number\u003cdouble>"},"percentage":{"description":"The tax rate percentage applied to the taxable amount.","format":"double","type":"number","uniqueKey":"oneOf.0.tax_total.tax_sub_totals.items.[INDEX].percentage","typeLabel":"number\u003cdouble>"},"country":{"description":"The country code where the tax applies.","type":"string","uniqueKey":"oneOf.0.tax_total.tax_sub_totals.items.[INDEX].country","typeLabel":"string"},"category":{"description":"The category of tax applied (e.g., VAT).","type":"string","uniqueKey":"oneOf.0.tax_total.tax_sub_totals.items.[INDEX].category","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.tax_total.tax_sub_totals.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.tax_total.tax_sub_totals","typeLabel":"object[]"}},"type":"object","isRequired":true,"uniqueKey":"oneOf.0.tax_total","typeLabel":"object"},"transaction_type":{"description":"The type of transaction (B2B, B2C, B2G).","enum":["B2B","B2C","B2G"],"example":"B2B","type":"string","uniqueKey":"oneOf.0.transaction_type","typeLabel":"enum\u003cstring>"},"document_type":{"description":"Type of business document.","example":"ubl-invoice","type":"string","uniqueKey":"oneOf.0.document_type","typeLabel":"string"},"total_discount":{"description":"Sum of all discounts applied across line items on the document.","type":"number","uniqueKey":"oneOf.0.total_discount","typeLabel":"number"},"note":{"description":"A textual note that gives unstructured information that is relevant to the Document as a whole. Such as the reason for any correction or assignment note in case the document has been factored.","type":"string","uniqueKey":"oneOf.0.note","typeLabel":"string"},"custom_fields":{"type":"object","description":"Invoice or credit note custom field values keyed by API name (e.g. `cf_invoice_reference`).","example":{"cf_po_number":"PO-12345","cf_cost_center":"CC-42"},"additionalProperties":{"type":"string","uniqueKey":"oneOf.0.custom_fields.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.custom_fields","typeLabel":"object"},"subscription_custom_fields":{"type":"object","description":"Subscription custom fields for single-subscription documents (set once at document level).\nFor consolidated / multi-subscription documents, use `lines[].subscription_custom_fields` instead.\n","example":{"cf_po_number":"PO-12345","cf_cost_center":"CC-42"},"additionalProperties":{"type":"string","uniqueKey":"oneOf.0.subscription_custom_fields.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.subscription_custom_fields","typeLabel":"object"},"billing_reference":{"description":"A group of business terms providing information on one or more preceding invoices. This enhances traceability in workflows where a document is linked to earlier billing records. For credit notes this is essential as they must reference the original invoice they amend.","items":{"properties":{"invoice_document_reference":{"description":"A group of business terms providing information on one or more preceding Invoices.","properties":{"id":{"description":"Identifier of the referenced invoice.","type":"string","isRequired":true,"uniqueKey":"oneOf.0.billing_reference.items.[INDEX].invoice_document_reference.id","typeLabel":"string"},"issue_date":{"description":"Issue date of the referenced invoice.","format":"date","type":"string","uniqueKey":"oneOf.0.billing_reference.items.[INDEX].invoice_document_reference.issue_date","typeLabel":"string\u003cdate>"}},"required":["id"],"type":"object","uniqueKey":"oneOf.0.billing_reference.items.[INDEX].invoice_document_reference","typeLabel":"object"}},"type":"object","uniqueKey":"oneOf.0.billing_reference.items.[INDEX]","typeLabel":"object"},"required":["invoice_document_reference"],"type":"array","uniqueKey":"oneOf.0.billing_reference","typeLabel":"object[]"},"payment_means":{"description":"A list of payment methods with corresponding payment details.","items":{"description":"Payment details of the supplier (payee) for settling the document, such as bank transfer account information.","properties":{"code":{"description":"The means, expressed as code, for how a payment is expected to be or has been settled.","enum":["CREDIT_TRANSFER","ONLINE_PAYMENT_SERVICE","DIRECT_DEBIT"],"type":"string","uniqueKey":"oneOf.0.payment_means.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"account":{"description":"A unique identifier of the financial payment account, at a payment service provider, to which payment should be made. Such as IBAN or BBAN (e.g., IBAN).","type":"string","uniqueKey":"oneOf.0.payment_means.items.[INDEX].account","typeLabel":"string"},"branch_code":{"description":"An identifier for the payment service provider where the payment account is located. Such as a BIC, SWIFT code, routing number, or sort code.","type":"string","uniqueKey":"oneOf.0.payment_means.items.[INDEX].branch_code","typeLabel":"string"},"payment_id":{"description":"A textual value used to establish a link between the payment and the Invoice, issued by the Seller. Used for creditor's critical reconciliation information. This information element helps the Seller to assign an incoming payment to the relevant payment process.","type":"string","uniqueKey":"oneOf.0.payment_means.items.[INDEX].payment_id","typeLabel":"string"},"holder":{"description":"The name of the payee financial account or bank.","type":"string","uniqueKey":"oneOf.0.payment_means.items.[INDEX].holder","typeLabel":"string"},"mandate":{"description":"Unique identifier assigned by the Payee for referencing the direct debit mandate (when code is DIRECT_DEBIT).","type":"string","uniqueKey":"oneOf.0.payment_means.items.[INDEX].mandate","typeLabel":"string"},"network":{"description":"Identifier of the online payment or card network when applicable (e.g., Paypal, VISA, MasterCard).","type":"string","uniqueKey":"oneOf.0.payment_means.items.[INDEX].network","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.payment_means.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.payment_means","typeLabel":"object[]"},"overrides":{"description":"Optional structure used to override the standard Chargebee SPI document model fields with a flexible field-value-based approach.\n\nThis is **typically used by adapters where field mapping is configured manually by the merchant** in the Chargebee UI, instead of relying on pre-defined mappings managed by the provider or Chargebee.\n\nWhen present, the `overrides` object allows the adapter to **entirely ignore** the standard document payload and instead:\n- Use `field_mapping` to determine where values go in the provider's schema\n- Use `values` to retrieve the corresponding input data using dot-paths or array-style paths\n\n---\n- `field_mapping`:\nA list of mapping rules that define how Chargebee parameter paths (keys from `values`) should be translated to the corresponding field paths in the provider schema. Includes custom fields too which are defined by merchant in chargebee.\n\n Each item must include:\n - `target`: The field path in the e-invoicing provider schema (e.g. `Invoice.cbc:ID`)\n - One of the below\n - `source`: A dot-notated field path or array path from the `values` section (e.g. `invoice.id`, `line_items[].tax_category`)\n - `fixed_value` (optional): Used if the field always has a constant value (e.g. `380` for `InvoiceTypeCode`)\n - `expr`: An inline expression evaluated against the values object to compute the target field’s value. This is used when the value depends on conditional logic, tax scenarios, payment methods, or other derived rules.\n\n- `values`:\nEach key in this object uses dot-notation to reference the source path, including arrays and nested arrays — for example: invoice.issue_date, line_items[].id, or line_items[].tax_category[].id.\n\n - **Scalar values** (e.g., strings, numbers, dates) should be represented as flat keys:\n ```json\n {\n \"invoice.id\": \"INV-10001\",\n \"invoice.issue_date\": \"2025-04-02\",\n \"invoice.currency_code\": \"EUR\"\n }\n ```\n\n - **Complex types like arrays** (e.g., `line_items`) should be represented as nested JSON:\n ```json\n {\n \"line_items\": [\n { \"id\": \"1\", \"line_item_tax\": [ {\"name\" : \"VAT\" }] },\n { \"id\": \"2\", \"line_item_tax\": [ {\"name\" : \"Local Tax\"}] }\n ]\n }\n ```\n\nThis model supports maximum flexibility by separating the actual data values from Chargebee's internal schema structure. It enables provider-specific document construction without tightly coupling the adapter to Chargebee's native schema.\n","properties":{"country":{"description":"The ISO country code for the scenario.","example":"DE","type":"string","uniqueKey":"oneOf.0.overrides.country","typeLabel":"string"},"transaction_type":{"description":"The type of transaction (B2B, B2C, B2G).","enum":["B2B","B2C","B2G"],"example":"B2B","type":"string","uniqueKey":"oneOf.0.overrides.transaction_type","typeLabel":"enum\u003cstring>"},"model":{"description":"Indicates the eInvoicing flow model that governs the document exchange and processing mechanism.\nDifferent countries adopt different models based on legal, technical, and administrative mandates.\nSupported values:\n- PEPPOL: A standardized, secure eInvoicing network enabling cross-border electronic document exchange between businesses and governments.\n- EINVOICE: Traditional eInvoicing model where invoices are digitally exchanged between businesses and sometimes stored.\n- CLEARANCE: Invoices must be pre-approved by a tax authority before they are sent to the buyer.\n- REPORTING: Invoices are shared with tax authorities after issuance, usually for compliance and audit purposes.\n- ZUGFERD: A hybrid eInvoicing format used in Germany combining PDF and XML for human and machine readability.\n- CTC: Continuous Transaction Controls involve real-time or near-real-time invoice validation and transmission to tax authorities.\n- NEMHANDEL: Denmark’s national infrastructure for eInvoicing that supports secure delivery via specific formats like OIOUBL.\n- FACE: Spain’s centralized system (FACe/FACeB2B) for routing invoices to government or private recipients.\n- VERIFACTU: Spain’s mechanism for validating and reporting sales invoices directly to the tax agency.\n- TEAPPS: Finland’s TEAPPSXML eInvoicing format used for domestic electronic invoice exchange.\n- FINVOICE: Finland’s Finvoice eInvoicing format used for domestic electronic invoice exchange.\n","enum":["PEPPOL","EINVOICE","CLEARANCE","REPORTING","ZUGFERD","CTC","NEMHANDEL","FACE","VERIFACTU","TEAPPS","FINVOICE"],"example":"PEPPOL","type":"string","uniqueKey":"oneOf.0.overrides.model","typeLabel":"enum\u003cstring>"},"document_type":{"description":"Type of business document.","example":"ubl-invoice","type":"string","uniqueKey":"oneOf.0.overrides.document_type","typeLabel":"string"},"field_mapping":{"items":{"properties":{"target":{"description":"Path in the provider schema where the value should be mapped","example":"Invoice.cbc:ID","type":"string","isRequired":true,"uniqueKey":"oneOf.0.overrides.field_mapping.items.[INDEX].target","typeLabel":"string"},"source":{"description":"Dot-path pointing to a field in `values`","example":"invoice.id","type":"string","uniqueKey":"oneOf.0.overrides.field_mapping.items.[INDEX].source","typeLabel":"string"},"fixed_value":{"description":"Static value if applicable","example":"380","type":"string","uniqueKey":"oneOf.0.overrides.field_mapping.items.[INDEX].fixed_value","typeLabel":"string"},"expr":{"description":"CEL expression evaluated against `values`","type":"string","uniqueKey":"oneOf.0.overrides.field_mapping.items.[INDEX].expr","typeLabel":"string"}},"required":["target"],"type":"object","uniqueKey":"oneOf.0.overrides.field_mapping.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.overrides.field_mapping","typeLabel":"object[]"},"values":{"description":"Flattened key-value representation of the data to be mapped using `field_mapping`. \n\nEach key in this object uses dot-notation to reference the source path, including arrays and nested arrays — for example: invoice.issue_date, line_items[].id, or line_items[].tax_category[].id.\n\n- **Scalar values** (e.g., strings, numbers, dates) should be represented as flat keys:\n```json\n{\n \"invoice.id\": \"INV-10001\",\n \"invoice.issue_date\": \"2025-04-02\",\n \"invoice.currency_code\": \"EUR\"\n}\n```\n\n- **Complex types like arrays** (e.g., `line_items`) should be represented as nested JSON:\n```json\n{\n \"line_items\": [\n { \"id\": \"1\", \"line_item_tax\": [ {\"name\" : \"VAT\" }] },\n { \"id\": \"2\", \"line_item_tax\": [ {\"name\" : \"Local Tax\"}] }\n ]\n}\n```\n","type":"object","uniqueKey":"oneOf.0.overrides.values","typeLabel":"object"}},"type":"object","uniqueKey":"oneOf.0.overrides","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Represents an application response document to be validated and submitted via the e-invoicing provider.","required":["country","document_response","id","issue_date","model","receiver_party","sender_party","type"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.id","typeLabel":"string"},"type":{"description":"The document type discriminator indicating this is an application response.","enum":["APPLICATION_RESPONSE"],"type":"string","isRequired":true,"uniqueKey":"oneOf.1.type","typeLabel":"enum\u003cstring>"},"country":{"description":"The ISO country code for the scenario.","example":"DE","type":"string","isRequired":true,"uniqueKey":"oneOf.1.country","typeLabel":"string"},"model":{"description":"Indicates the eInvoicing flow model that governs the document exchange and processing mechanism.\nDifferent countries adopt different models based on legal, technical, and administrative mandates.\nSupported values:\n- PEPPOL: A standardized, secure eInvoicing network enabling cross-border electronic document exchange between businesses and governments.\n- EINVOICE: Traditional eInvoicing model where invoices are digitally exchanged between businesses and sometimes stored.\n- CLEARANCE: Invoices must be pre-approved by a tax authority before they are sent to the buyer.\n- REPORTING: Invoices are shared with tax authorities after issuance, usually for compliance and audit purposes.\n- ZUGFERD: A hybrid eInvoicing format used in Germany combining PDF and XML for human and machine readability.\n- CTC: Continuous Transaction Controls involve real-time or near-real-time invoice validation and transmission to tax authorities.\n- NEMHANDEL: Denmark’s national infrastructure for eInvoicing that supports secure delivery via specific formats like OIOUBL.\n- FACE: Spain’s centralized system (FACe/FACeB2B) for routing invoices to government or private recipients.\n- VERIFACTU: Spain’s mechanism for validating and reporting sales invoices directly to the tax agency.\n- TEAPPS: Finland’s TEAPPSXML eInvoicing format used for domestic electronic invoice exchange.\n- FINVOICE: Finland’s Finvoice eInvoicing format used for domestic electronic invoice exchange.\n","enum":["PEPPOL","EINVOICE","CLEARANCE","REPORTING","ZUGFERD","CTC","NEMHANDEL","FACE","VERIFACTU","TEAPPS","FINVOICE"],"example":"PEPPOL","type":"string","isRequired":true,"uniqueKey":"oneOf.1.model","typeLabel":"enum\u003cstring>"},"issue_date":{"format":"date","type":"string","isRequired":true,"uniqueKey":"oneOf.1.issue_date","typeLabel":"string\u003cdate>"},"sender_party":{"description":"Party information for the sender or receiver of an application response document.","properties":{"name":{"description":"Name of the party.","type":"string","uniqueKey":"oneOf.1.sender_party.name","typeLabel":"string"},"tax_registration_number":{"description":"Tax registration number of the party (for example VAT / GST number), when available.","type":"string","uniqueKey":"oneOf.1.sender_party.tax_registration_number","typeLabel":"string"}},"type":"object","isRequired":true,"uniqueKey":"oneOf.1.sender_party","typeLabel":"object"},"receiver_party":{"description":"Party information for the sender or receiver of an application response document.","properties":{"name":{"description":"Name of the party.","type":"string","uniqueKey":"oneOf.1.receiver_party.name","typeLabel":"string"},"tax_registration_number":{"description":"Tax registration number of the party (for example VAT / GST number), when available.","type":"string","uniqueKey":"oneOf.1.receiver_party.tax_registration_number","typeLabel":"string"}},"type":"object","isRequired":true,"uniqueKey":"oneOf.1.receiver_party","typeLabel":"object"},"document_response":{"properties":{"response":{"properties":{"status":{"enum":["REJECTED","MESSAGE_ACKNOWLEDGEMENT","ACCEPTED","IN_PROCESS","UNDER_QUERY","CONDITIONALLY_ACCEPTED","PAID"],"type":"string","isRequired":true,"uniqueKey":"oneOf.1.document_response.response.status","typeLabel":"enum\u003cstring>"},"note":{"type":"string","uniqueKey":"oneOf.1.document_response.response.note","typeLabel":"string"}},"required":["status"],"type":"object","isRequired":true,"uniqueKey":"oneOf.1.document_response.response","typeLabel":"object"},"document_reference":{"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.document_response.document_reference.id","typeLabel":"string"}},"required":["id"],"type":"object","isRequired":true,"uniqueKey":"oneOf.1.document_response.document_reference","typeLabel":"object"}},"required":["document_reference","response"],"type":"object","isRequired":true,"uniqueKey":"oneOf.1.document_response","typeLabel":"object"},"transaction_type":{"description":"The type of transaction (B2B, B2C, B2G).","enum":["B2B","B2C","B2G"],"example":"B2B","type":"string","uniqueKey":"oneOf.1.transaction_type","typeLabel":"enum\u003cstring>"},"document_type":{"description":"Type of business document.","example":"ubl-applicationresponse","type":"string","uniqueKey":"oneOf.1.document_type","typeLabel":"string"},"overrides":{"description":"Optional structure used to override the standard Chargebee SPI document model fields with a flexible field-value-based approach.\n\nThis is **typically used by adapters where field mapping is configured manually by the merchant** in the Chargebee UI, instead of relying on pre-defined mappings managed by the provider or Chargebee.\n\nWhen present, the `overrides` object allows the adapter to **entirely ignore** the standard document payload and instead:\n- Use `field_mapping` to determine where values go in the provider's schema\n- Use `values` to retrieve the corresponding input data using dot-paths or array-style paths\n\n---\n- `field_mapping`:\nA list of mapping rules that define how Chargebee parameter paths (keys from `values`) should be translated to the corresponding field paths in the provider schema. Includes custom fields too which are defined by merchant in chargebee.\n\n Each item must include:\n - `target`: The field path in the e-invoicing provider schema (e.g. `Invoice.cbc:ID`)\n - One of the below\n - `source`: A dot-notated field path or array path from the `values` section (e.g. `invoice.id`, `line_items[].tax_category`)\n - `fixed_value` (optional): Used if the field always has a constant value (e.g. `380` for `InvoiceTypeCode`)\n - `expr`: An inline expression evaluated against the values object to compute the target field’s value. This is used when the value depends on conditional logic, tax scenarios, payment methods, or other derived rules.\n\n- `values`:\nEach key in this object uses dot-notation to reference the source path, including arrays and nested arrays — for example: invoice.issue_date, line_items[].id, or line_items[].tax_category[].id.\n\n - **Scalar values** (e.g., strings, numbers, dates) should be represented as flat keys:\n ```json\n {\n \"invoice.id\": \"INV-10001\",\n \"invoice.issue_date\": \"2025-04-02\",\n \"invoice.currency_code\": \"EUR\"\n }\n ```\n\n - **Complex types like arrays** (e.g., `line_items`) should be represented as nested JSON:\n ```json\n {\n \"line_items\": [\n { \"id\": \"1\", \"line_item_tax\": [ {\"name\" : \"VAT\" }] },\n { \"id\": \"2\", \"line_item_tax\": [ {\"name\" : \"Local Tax\"}] }\n ]\n }\n ```\n\nThis model supports maximum flexibility by separating the actual data values from Chargebee's internal schema structure. It enables provider-specific document construction without tightly coupling the adapter to Chargebee's native schema.\n","properties":{"country":{"description":"The ISO country code for the scenario.","example":"DE","type":"string","uniqueKey":"oneOf.1.overrides.country","typeLabel":"string"},"transaction_type":{"description":"The type of transaction (B2B, B2C, B2G).","enum":["B2B","B2C","B2G"],"example":"B2B","type":"string","uniqueKey":"oneOf.1.overrides.transaction_type","typeLabel":"enum\u003cstring>"},"model":{"description":"Indicates the eInvoicing flow model that governs the document exchange and processing mechanism.\nDifferent countries adopt different models based on legal, technical, and administrative mandates.\nSupported values:\n- PEPPOL: A standardized, secure eInvoicing network enabling cross-border electronic document exchange between businesses and governments.\n- EINVOICE: Traditional eInvoicing model where invoices are digitally exchanged between businesses and sometimes stored.\n- CLEARANCE: Invoices must be pre-approved by a tax authority before they are sent to the buyer.\n- REPORTING: Invoices are shared with tax authorities after issuance, usually for compliance and audit purposes.\n- ZUGFERD: A hybrid eInvoicing format used in Germany combining PDF and XML for human and machine readability.\n- CTC: Continuous Transaction Controls involve real-time or near-real-time invoice validation and transmission to tax authorities.\n- NEMHANDEL: Denmark’s national infrastructure for eInvoicing that supports secure delivery via specific formats like OIOUBL.\n- FACE: Spain’s centralized system (FACe/FACeB2B) for routing invoices to government or private recipients.\n- VERIFACTU: Spain’s mechanism for validating and reporting sales invoices directly to the tax agency.\n- TEAPPS: Finland’s TEAPPSXML eInvoicing format used for domestic electronic invoice exchange.\n- FINVOICE: Finland’s Finvoice eInvoicing format used for domestic electronic invoice exchange.\n","enum":["PEPPOL","EINVOICE","CLEARANCE","REPORTING","ZUGFERD","CTC","NEMHANDEL","FACE","VERIFACTU","TEAPPS","FINVOICE"],"example":"PEPPOL","type":"string","uniqueKey":"oneOf.1.overrides.model","typeLabel":"enum\u003cstring>"},"document_type":{"description":"Type of business document.","example":"ubl-invoice","type":"string","uniqueKey":"oneOf.1.overrides.document_type","typeLabel":"string"},"field_mapping":{"items":{"properties":{"target":{"description":"Path in the provider schema where the value should be mapped","example":"Invoice.cbc:ID","type":"string","isRequired":true,"uniqueKey":"oneOf.1.overrides.field_mapping.items.[INDEX].target","typeLabel":"string"},"source":{"description":"Dot-path pointing to a field in `values`","example":"invoice.id","type":"string","uniqueKey":"oneOf.1.overrides.field_mapping.items.[INDEX].source","typeLabel":"string"},"fixed_value":{"description":"Static value if applicable","example":"380","type":"string","uniqueKey":"oneOf.1.overrides.field_mapping.items.[INDEX].fixed_value","typeLabel":"string"},"expr":{"description":"CEL expression evaluated against `values`","type":"string","uniqueKey":"oneOf.1.overrides.field_mapping.items.[INDEX].expr","typeLabel":"string"}},"required":["target"],"type":"object","uniqueKey":"oneOf.1.overrides.field_mapping.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.1.overrides.field_mapping","typeLabel":"object[]"},"values":{"description":"Flattened key-value representation of the data to be mapped using `field_mapping`. \n\nEach key in this object uses dot-notation to reference the source path, including arrays and nested arrays — for example: invoice.issue_date, line_items[].id, or line_items[].tax_category[].id.\n\n- **Scalar values** (e.g., strings, numbers, dates) should be represented as flat keys:\n```json\n{\n \"invoice.id\": \"INV-10001\",\n \"invoice.issue_date\": \"2025-04-02\",\n \"invoice.currency_code\": \"EUR\"\n}\n```\n\n- **Complex types like arrays** (e.g., `line_items`) should be represented as nested JSON:\n```json\n{\n \"line_items\": [\n { \"id\": \"1\", \"line_item_tax\": [ {\"name\" : \"VAT\" }] },\n { \"id\": \"2\", \"line_item_tax\": [ {\"name\" : \"Local Tax\"}] }\n ]\n}\n```\n","type":"object","uniqueKey":"oneOf.1.overrides.values","typeLabel":"object"}},"type":"object","uniqueKey":"oneOf.1.overrides","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","country":"DE","model":"PEPPOL","issue_date":"2023-12-25","tax_date":"2023-12-25","currency_code":"\u003cstring>","due_date":"2023-12-25","amount":123,"status":"PAYMENT_DUE","taxable_amount":123,"amount_due":123,"accounting_supplier_party":{"address":{"line_1":"\u003cstring>","line_2":"\u003cstring>","line_3":"\u003cstring>","zip":"\u003cstring>","city":"\u003cstring>","division":"\u003cstring>","country":"\u003cstring>"},"name":"\u003cstring>","tax_registration_number":"\u003cstring>"},"accounting_customer_party":{"address":{"line_1":"\u003cstring>","line_2":"\u003cstring>","line_3":"\u003cstring>","zip":"\u003cstring>","city":"\u003cstring>","division":"\u003cstring>","country":"\u003cstring>"},"name":"\u003cstring>","tax_registration_number":"\u003cstring>","custom_fields":{"cf_po_number":"PO-12345","cf_cost_center":"CC-42"}},"lines":[{"id":"\u003cstring>","description":"\u003cstring>","quantity":123,"amount":123,"unit_price":123,"discount":123,"item_code":"\u003cstring>","subscription_custom_fields":{"cf_po_number":"PO-12345","cf_cost_center":"CC-42"},"product_custom_fields":{"cf_po_number":"PO-12345","cf_cost_center":"CC-42"},"classified_tax_category":[{"percentage":123,"category":"\u003cstring>","country":"\u003cstring>"}]}],"tax_total":{"tax_amount":123,"tax_sub_totals":[{"taxable_amount":123,"tax_amount":123,"percentage":123,"country":"\u003cstring>","category":"\u003cstring>"}]},"transaction_type":"B2B","document_type":"ubl-invoice","total_discount":123,"note":"\u003cstring>","custom_fields":{"cf_po_number":"PO-12345","cf_cost_center":"CC-42"},"subscription_custom_fields":{"cf_po_number":"PO-12345","cf_cost_center":"CC-42"},"billing_reference":[{}],"payment_means":[{"account":"\u003cstring>","branch_code":"\u003cstring>","payment_id":"\u003cstring>","holder":"\u003cstring>","mandate":"\u003cstring>","network":"\u003cstring>"}],"overrides":{"country":"DE","transaction_type":"B2B","model":"PEPPOL","document_type":"ubl-invoice","field_mapping":[{"target":"Invoice.cbc:ID","source":"invoice.id","fixed_value":"380","expr":"\u003cstring>"}],"values":{}}}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"d113cad5-4ba3-49a8-b5f8-f8290a5ec3f7":{"content":{"application/json":{"examples":{"einvoice_document_submission_pending":{"title":"einvoice_document_submission_pending","summary":"Document under processing","description":"A sample response indicating the document is under processing at the provider.","value":{"document_id":"DOC-20250402-0002","status":"ACCEPTED","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}}},"schema":{"example":{"provider_interaction":{"request":{"body":"{}"},"response":{"status_code":0,"body":"{}"}},"document_id":"document_id","request_id":"request_id","status":"ACCEPTED"},"properties":{"document_id":{"description":"The unique identifier assigned to the document by the e-invoicing provider. This identifier must be used for subsequent operations such as retrieving the document status and downloading the document.","type":"string","isRequired":true,"uniqueKey":"document_id","typeLabel":"string"},"status":{"description":"The current status of the submitted document.","enum":["ACCEPTED","FAILED","SUCCESS"],"type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"request_id":{"description":"A unique identifier assigned to the request for tracking and correlation purposes across systems and logs.","type":"string","uniqueKey":"request_id","typeLabel":"string"},"provider_interaction":{"description":"Captures the interaction between the adapter and the external e-invoicing provider.\nIncludes both the outbound request details and the inbound response received from the provider.\nIntended for internally hosted adapters for audit and traceability of SPI transactions.\n","example":{"request":{"body":"{}"},"response":{"status_code":0,"body":"{}"}},"properties":{"request":{"description":"Details of the HTTP request sent by the adapter to the external provider.","example":{"body":"{}"},"properties":{"body":{"description":"The request payload sent to the provider API, typically serialized as JSON.\nThis should exclude any sensitive or personally identifiable information.\n","type":"object","uniqueKey":"provider_interaction.request.body","typeLabel":"object"}},"type":"object","isRequired":true,"uniqueKey":"provider_interaction.request","typeLabel":"object"},"response":{"description":"Details of the HTTP response received from the external provider.","example":{"status_code":0,"body":"{}"},"properties":{"status_code":{"description":"The HTTP status code returned by the provider.","type":"integer","uniqueKey":"provider_interaction.response.status_code","typeLabel":"integer"},"body":{"description":"The response body returned by the provider.\n","type":"object","uniqueKey":"provider_interaction.response.body","typeLabel":"object"}},"type":"object","isRequired":true,"uniqueKey":"provider_interaction.response","typeLabel":"object"}},"required":["request","response"],"type":"object","uniqueKey":"provider_interaction","typeLabel":"object"}},"required":["document_id","status"],"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Document submitted successfully.","exampleType":"examples"},"c2e17f5f-451c-4ec6-8f10-43f553e3b798":{"content":{"application/json":{"examples":{"einvoice_document_submission_failed":{"title":"einvoice_document_submission_failed","summary":"Bad request","description":"A sample response when the request is invalid or missing required data.","value":{"errors":[{"code":"MISSING_REQUIRED_DATA","message":"The request did not contain a required property 'taxAmount'","help_url":"https://docs.example.com/errors#MISSING_REQUIRED_PARAMETER"}]}}},"schema":{"example":{"errors":[{"code":"MISSING_REQUIRED_DATA","message":"The request did not contain a required property 'taxAmount'","help_url":"https://docs.example.com/errors#MISSING_REQUIRED_PARAMETER"}]},"properties":{"errors":{"items":{"properties":{"message":{"description":"A short message describing the reason for the error.","type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"code":{"description":"The error codes classify the type of exception that occurred during processing the request.","enum":["INVALID_OPERATION","SERVICE_EXCEPTION","SERVICE_UNAVAILABLE","SERVICE_LIMIT_EXCEEDED","MISSING_REQUIRED_DATA","INVALID_DATA","NOT_FOUND"],"type":"string","uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"help_url":{"description":"The link to the documentation for more information about the error and the corrective action.","format":"uri","type":"string","uniqueKey":"errors.items.[INDEX].help_url","typeLabel":"string\u003curi>"}},"required":["message"],"type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"errors","typeLabel":"object[]"},"provider_interaction":{"description":"Captures the interaction between the adapter and the external e-invoicing provider.\nIncludes both the outbound request details and the inbound response received from the provider.\nIntended for internally hosted adapters for audit and traceability of SPI transactions.\n","example":{"request":{"body":"{}"},"response":{"status_code":0,"body":"{}"}},"properties":{"request":{"description":"Details of the HTTP request sent by the adapter to the external provider.","example":{"body":"{}"},"properties":{"body":{"description":"The request payload sent to the provider API, typically serialized as JSON.\nThis should exclude any sensitive or personally identifiable information.\n","type":"object","uniqueKey":"provider_interaction.request.body","typeLabel":"object"}},"type":"object","isRequired":true,"uniqueKey":"provider_interaction.request","typeLabel":"object"},"response":{"description":"Details of the HTTP response received from the external provider.","example":{"status_code":0,"body":"{}"},"properties":{"status_code":{"description":"The HTTP status code returned by the provider.","type":"integer","uniqueKey":"provider_interaction.response.status_code","typeLabel":"integer"},"body":{"description":"The response body returned by the provider.\n","type":"object","uniqueKey":"provider_interaction.response.body","typeLabel":"object"}},"type":"object","isRequired":true,"uniqueKey":"provider_interaction.response","typeLabel":"object"}},"required":["request","response"],"type":"object","uniqueKey":"provider_interaction","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Bad request","exampleType":"examples"},"1e34c02c-105a-47d1-857f-f23f0b6c04be":{"description":"Unauthorized","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"18639180-7047-40ff-bf36-ac92b0accc91":{"description":"Forbidden","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"c6cd0cdc-4579-4ae3-a901-f440c019e49a":{"content":{"application/json":{"examples":{"unexpected_error":{"title":"unexpected_error","summary":"Server error","value":{"message":"An unexpected error occurred while processing your request."}}},"schema":{"description":"An unexpected error occurred while processing your request.","properties":{"message":{"description":"A human-readable description of the unexpected error encountered.","example":"An unexpected error occurred while processing your request.","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"provider_interaction":{"description":"Captures the interaction between the adapter and the external e-invoicing provider.\nIncludes both the outbound request details and the inbound response received from the provider.\nIntended for internally hosted adapters for audit and traceability of SPI transactions.\n","example":{"request":{"body":"{}"},"response":{"status_code":0,"body":"{}"}},"properties":{"request":{"description":"Details of the HTTP request sent by the adapter to the external provider.","example":{"body":"{}"},"properties":{"body":{"description":"The request payload sent to the provider API, typically serialized as JSON.\nThis should exclude any sensitive or personally identifiable information.\n","type":"object","uniqueKey":"provider_interaction.request.body","typeLabel":"object"}},"type":"object","isRequired":true,"uniqueKey":"provider_interaction.request","typeLabel":"object"},"response":{"description":"Details of the HTTP response received from the external provider.","example":{"status_code":0,"body":"{}"},"properties":{"status_code":{"description":"The HTTP status code returned by the provider.","type":"integer","uniqueKey":"provider_interaction.response.status_code","typeLabel":"integer"},"body":{"description":"The response body returned by the provider.\n","type":"object","uniqueKey":"provider_interaction.response.body","typeLabel":"object"}},"type":"object","isRequired":true,"uniqueKey":"provider_interaction.response","typeLabel":"object"}},"required":["request","response"],"type":"object","uniqueKey":"provider_interaction","typeLabel":"object"}},"required":["message"],"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Unexpected error while processing request.","exampleType":"examples"}},"security":{"1be7715d-498a-43d8-9821-6e1994b12760":{"ApiKeyAuth":{"in":"header","name":"Authorization","type":"apiKey","scopes":[]}}},"servers":{"d4e8961d-07b7-4e1a-b0c5-0b6bbe82dc44":{"description":"Production server (replace with actual service URL)","url":"https://api.example.com"},"1872f517-eb3d-495f-a47d-0201ba038077":{"description":"Sandbox server for testing","url":"https://sandbox.example.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"in":"header","name":"Authorization","type":"apiKey","scopes":[]},"schema":{"title":"Authorization","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"spec/spi/generated/einvoicing/api/openapi.yaml"},"subdomain":"cb","siteName":"Chargebee Partner docs","title":"Submit a document - Chargebee Partner docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-25T14:29:08.867Z","originalFileLocation":"api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Submits a new document, such as an invoice or credit note, to the connected e-invoicing provider for validation, compliance checks, and delivery to the appropriate tax authorities or business partners. This endpoint is MANDATORY for enabling document submission through the Chargebee E-invoicing SPI framework. Within Chargebee, this endpoint is invoked asynchronously by an internal background job whenever a new invoice, credit note, or other supported billing document is generated and requires processing through the configured e-invoicing provider. If the e-invoicing provider requires merchants to configure field mappings manually, instead of relying on predefined mappings managed by Chargebee, Chargebee will collect this mapping as entered by the Chargebee merchant through the Chargebee Admin Console. The collected field mapping and the corresponding input values will be passed to the adapter via the overrides parameter. Note: When the overrides parameter is present, the adapter must rely exclusively on the field_mapping and values defined within it. All other standard schema fields should be ignored for transformation purposes. Additionally, this endpoint supports submission of Application Response documents, such as invoice acknowledgements or rejections, to facilitate downstream workflows and business rule validation. These responses are submitted using the same endpoint but distinguished using a type discriminator with APPLICATION_RESPONSE.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Chargebee Partner docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Submit a document - Chargebee Partner docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Submits a new document, such as an invoice or credit note, to the connected e-invoicing provider for validation, compliance checks, and delivery to the appropriate tax authorities or business partners. This endpoint is MANDATORY for enabling document submission through the Chargebee E-invoicing SPI framework. Within Chargebee, this endpoint is invoked asynchronously by an internal background job whenever a new invoice, credit note, or other supported billing document is generated and requires processing through the configured e-invoicing provider. If the e-invoicing provider requires merchants to configure field mappings manually, instead of relying on predefined mappings managed by Chargebee, Chargebee will collect this mapping as entered by the Chargebee merchant through the Chargebee Admin Console. The collected field mapping and the corresponding input values will be passed to the adapter via the overrides parameter. Note: When the overrides parameter is present, the adapter must rely exclusively on the field_mapping and values defined within it. All other standard schema fields should be ignored for transformation purposes. Additionally, this endpoint supports submission of Application Response documents, such as invoice acknowledgements or rejections, to facilitate downstream workflows and business rule validation. These responses are submitted using the same endpoint but distinguished using a type discriminator with APPLICATION_RESPONSE.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Chargebee Partner docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cb.mintlify.site/_mintlify/api/og/v2?division=Documents\u0026amp;title=Submit+a+document\u0026amp;description=Submits+a+new+document%2C+such+as+an+invoice+or+credit+note%2C+to+the+connected+e-invoicing+provider+for+validation%2C+compliance+checks%2C+and+delivery+to+the+appropri\u0026amp;theme=5c6997a84c8bc4c1bb578bc5\u0026amp;signature=009edaf546d49fe8ded1368325a89418aa507f61046277c65e638ac089e9eb68\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Submit a document - Chargebee Partner docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Submits a new document, such as an invoice or credit note, to the connected e-invoicing provider for validation, compliance checks, and delivery to the appropriate tax authorities or business partners. This endpoint is MANDATORY for enabling document submission through the Chargebee E-invoicing SPI framework. Within Chargebee, this endpoint is invoked asynchronously by an internal background job whenever a new invoice, credit note, or other supported billing document is generated and requires processing through the configured e-invoicing provider. If the e-invoicing provider requires merchants to configure field mappings manually, instead of relying on predefined mappings managed by Chargebee, Chargebee will collect this mapping as entered by the Chargebee merchant through the Chargebee Admin Console. The collected field mapping and the corresponding input values will be passed to the adapter via the overrides parameter. Note: When the overrides parameter is present, the adapter must rely exclusively on the field_mapping and values defined within it. All other standard schema fields should be ignored for transformation purposes. Additionally, this endpoint supports submission of Application Response documents, such as invoice acknowledgements or rejections, to facilitate downstream workflows and business rule validation. These responses are submitted using the same endpoint but distinguished using a type discriminator with APPLICATION_RESPONSE.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cb.mintlify.site/_mintlify/api/og/v2?division=Documents\u0026amp;title=Submit+a+document\u0026amp;description=Submits+a+new+document%2C+such+as+an+invoice+or+credit+note%2C+to+the+connected+e-invoicing+provider+for+validation%2C+compliance+checks%2C+and+delivery+to+the+appropri\u0026amp;theme=5c6997a84c8bc4c1bb578bc5\u0026amp;signature=009edaf546d49fe8ded1368325a89418aa507f61046277c65e638ac089e9eb68\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cb/t3SWCatkguaBu2Q3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Chargebee Partner docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff3300\">\u003clink data-mint-head rel=\"canonical\" href=\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://spidocs.chargebee.com/#organization\",\"name\":\"Chargebee Partner docs\",\"url\":\"https://spidocs.chargebee.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cb/t_llHYxnCXjWsl_M/logo/light.svg?fit=max\u0026auto=format\u0026n=t_llHYxnCXjWsl_M\u0026q=85\u0026s=ea8284652978e0e228b6e8490b85f386\"}},{\"@type\":\"WebSite\",\"@id\":\"https://spidocs.chargebee.com#website\",\"name\":\"Chargebee Partner docs\",\"url\":\"https://spidocs.chargebee.com\",\"publisher\":{\"@id\":\"https://spidocs.chargebee.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document#webpage\",\"url\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document\",\"name\":\"Submit a document\",\"description\":\"Submits a new document, such as an invoice or credit note, to the connected e-invoicing provider for validation, compliance checks, and delivery to the appropriate tax authorities or business partners. This endpoint is MANDATORY for enabling document submission through the Chargebee E-invoicing SPI framework. Within Chargebee, this endpoint is invoked asynchronously by an internal background job whenever a new invoice, credit note, or other supported billing document is generated and requires processing through the configured e-invoicing provider. If the e-invoicing provider requires merchants to configure field mappings manually, instead of relying on predefined mappings managed by Chargebee, Chargebee will collect this mapping as entered by the Chargebee merchant through the Chargebee Admin Console. The collected field mapping and the corresponding input values will be passed to the adapter via the overrides parameter. Note: When the overrides parameter is present, the adapter must rely exclusively on the field_mapping and values defined within it. All other standard schema fields should be ignored for transformation purposes. Additionally, this endpoint supports submission of Application Response documents, such as invoice acknowledgements or rejections, to facilitate downstream workflows and business rule validation. These responses are submitted using the same endpoint but distinguished using a type discriminator with APPLICATION_RESPONSE.\",\"dateModified\":\"2026-05-25T14:29:08.867Z\",\"isPartOf\":{\"@id\":\"https://spidocs.chargebee.com#website\"},\"breadcrumb\":{\"@id\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Einvoicing SPI\",\"item\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/docs/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Submit a document\",\"item\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document#apireference\",\"headline\":\"Submit a document\",\"name\":\"Submit a document\",\"description\":\"Submits a new document, such as an invoice or credit note, to the connected e-invoicing provider for validation, compliance checks, and delivery to the appropriate tax authorities or business partners. This endpoint is MANDATORY for enabling document submission through the Chargebee E-invoicing SPI framework. Within Chargebee, this endpoint is invoked asynchronously by an internal background job whenever a new invoice, credit note, or other supported billing document is generated and requires processing through the configured e-invoicing provider. If the e-invoicing provider requires merchants to configure field mappings manually, instead of relying on predefined mappings managed by Chargebee, Chargebee will collect this mapping as entered by the Chargebee merchant through the Chargebee Admin Console. The collected field mapping and the corresponding input values will be passed to the adapter via the overrides parameter. Note: When the overrides parameter is present, the adapter must rely exclusively on the field_mapping and values defined within it. All other standard schema fields should be ignored for transformation purposes. Additionally, this endpoint supports submission of Application Response documents, such as invoice acknowledgements or rejections, to facilitate downstream workflows and business rule validation. These responses are submitted using the same endpoint but distinguished using a type discriminator with APPLICATION_RESPONSE.\",\"url\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document\",\"mainEntityOfPage\":{\"@id\":\"https://spidocs.chargebee.com/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document#webpage\"},\"dateModified\":\"2026-05-25T14:29:08.867Z\",\"publisher\":{\"@id\":\"https://spidocs.chargebee.com/#organization\"},\"isPartOf\":{\"@id\":\"https://spidocs.chargebee.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Chargebee Partner docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Chargebee Partner docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document.md","siteName":"Chargebee Partner docs","nav":{"global":null,"tabs":[{"tab":"API Reference","groups":[{"group":"Partner SPI","pages":[{"title":"Overview","href":"/api-reference/partner-spi/overview"}]},{"group":"Tax SPI","pages":[{"title":null,"href":"/api-reference/tax-spi/docs/overview"},{"title":null,"href":"/api-reference/tax-spi/docs/authorization"},{"group":"Address","pages":[{"openapi":"post /address/validate","title":"Address validation","href":"/api-reference/tax-spi/endpoints/v1/address-validation"},{"openapi":"post /address/check-taxability","title":"Check taxability","href":"/api-reference/tax-spi/endpoints/v1/check-taxability"}]},{"group":"TaxEstimate","pages":[{"openapi":"post /tax-estimate","title":"Estimate tax","href":"/api-reference/tax-spi/endpoints/v1/estimate-tax"}]},{"group":"Invoice","pages":[{"openapi":"post /invoices","title":"Create Invoice","href":"/api-reference/tax-spi/endpoints/v1/create-invoice"},{"openapi":"get /invoices/{invoiceId}","title":"Retrieve Invoice","href":"/api-reference/tax-spi/endpoints/v1/retrieve-invoice"},{"openapi":"post /invoices/{invoiceId}/commit","title":"Commit Invoice","href":"/api-reference/tax-spi/endpoints/v1/commit-invoice"},{"openapi":"post /invoices/{invoiceId}/void","title":"Void Invoice","href":"/api-reference/tax-spi/endpoints/v1/void-invoice"}]},{"group":"CreditNote","pages":[{"openapi":"post /credit-notes","title":"Create credit note","href":"/api-reference/tax-spi/endpoints/v1/create-credit-note"},{"openapi":"get /credit-notes/{creditNoteId}","title":"Retrieve credit note","href":"/api-reference/tax-spi/endpoints/v1/retrieve-credit-note"},{"openapi":"post /credit-notes/{creditNoteId}/commit","title":"Commit credit note","href":"/api-reference/tax-spi/endpoints/v1/commit-credit-note"},{"openapi":"post /credit-notes/{creditNoteId}/void","title":"Void credit note","href":"/api-reference/tax-spi/endpoints/v1/void-credit-note"}]},{"group":"Authentication","pages":[{"openapi":"post /credentials/validate","title":"Validate credentials","href":"/api-reference/tax-spi/endpoints/v1/validate-credentials"}]},{"group":"Health","pages":[{"openapi":"get /health","title":"Fetch the health status of the Service Provider.","href":"/api-reference/tax-spi/endpoints/v1/fetch-the-health-status-of-the-service-provider"}]},{"title":"Testing with Postman","href":"/api-reference/tax-spi/docs/testing-with-postman"}]},{"group":"Tax Registration Number Validation SPI","pages":[{"title":null,"href":"/api-reference/tax-reg-number-validate/docs/overview"},{"group":"Authentication","pages":[{"openapi":"post /credentials/validate","title":"Validate credentials","href":"/api-reference/tax-reg-number-validate/endpoints/v1/validate-credentials"}]},{"group":"Health","pages":[{"openapi":"get /health","title":"Fetch the health status of the Service Provider.","href":"/api-reference/tax-reg-number-validate/endpoints/v1/fetch-the-health-status-of-the-service-provider"}]},{"group":"Tax Registration Number Validation","pages":[{"openapi":"post /trn/validate/batch","title":"Validate the tax registration numbers in batch","href":"/api-reference/tax-reg-number-validate/endpoints/v1/validate-the-tax-registration-numbers-in-batch"},{"openapi":"post /trn/validate","title":"Validate the tax registration number","href":"/api-reference/tax-reg-number-validate/endpoints/v1/validate-the-tax-registration-number"},{"openapi":"get /trn/validate/{requestId}","title":"Get the response of tax registration number validate request","href":"/api-reference/tax-reg-number-validate/endpoints/v1/get-the-response-of-tax-registration-number-validate-request"},{"openapi":"get /trn/validate/batch/{batchId}","title":"Get the response of batch of tax registration numbers","href":"/api-reference/tax-reg-number-validate/endpoints/v1/get-the-response-of-batch-of-tax-registration-numbers"},{"openapi":"delete /trn/validate/batch/{batchId}","title":"Delete the request of batch of tax registration numbers validation","href":"/api-reference/tax-reg-number-validate/endpoints/v1/delete-the-request-of-batch-of-tax-registration-numbers-validation"}]},{"title":"Testing with Postman","href":"/api-reference/tax-reg-number-validate/docs/testing-with-postman"}]},{"group":"Einvoicing SPI","pages":[{"title":null,"href":"/api-reference/einvoicing-spi/docs/overview"},{"group":"Authorization","pages":[{"title":null,"href":"/api-reference/einvoicing-spi/docs/authorization/overview"},{"title":"Chargebee to Adapter (Header-Based Auth)","href":"/api-reference/einvoicing-spi/docs/authorization/chargebee_to_adapter"},{"title":"Adapter to Chargebee(OAuth 2.0)","href":"/api-reference/einvoicing-spi/docs/authorization/adapter_to_chargebee"}]},{"group":"Activations","pages":[{"openapi":"get /einvoicing/activations","title":"Retrieve a list of Activations.","href":"/api-reference/einvoicing-spi/endpoints/v1/activations/retrieve-a-list-of-activations"},{"openapi":"get /einvoicing/data_input_fields","title":"Retrieves data input fields","description":"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).\n\nImplementation 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.\n\nWithin 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.\n","href":"/api-reference/einvoicing-spi/endpoints/v1/activations/retrieves-data-input-fields"}]},{"group":"Documents","pages":[{"openapi":"post /einvoicing/documents","title":"Submit a document","href":"/api-reference/einvoicing-spi/endpoints/v1/documents/submit-a-document"},{"openapi":"get /einvoicing/documents/{document_id}/status","title":"Get Document Status","description":"Retrieves the current processing status of a document previously submitted to the connected e-invoicing provider.\n\nThe status provides insights into whether the document has been successfully processed, is still under validation, has failed, or has been rejected by tax authorities or intermediaries.\n\nIn Chargebee, this endpoint is periodically called to retrieve the latest processing status of the e-invoicing document. While Chargebee primarily relies on the callback listener to receive status updates, this endpoint serves as a fallback mechanism to ensure status synchronization.\n'\n","href":"/api-reference/einvoicing-spi/endpoints/v1/documents/get-document-status"},{"openapi":"get /einvoicing/documents/{document_id}/download","title":"Download Document","href":"/api-reference/einvoicing-spi/endpoints/v1/documents/download-document"}]},{"group":"Callbacks","pages":[{"openapi":"post /api/v2/invoices/{document_id}/einvoice_status","title":"Receive document status updates for an invoice","href":"/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-invoice"},{"openapi":"post /api/v2/credit_notes/{document_id}/einvoice_status","title":"Receive document status updates for a credit note","href":"/api-reference/einvoicing-spi/endpoints/v1/callbacks/receive-document-status-updates-for-credit-note"}]},{"group":"Authentication","pages":[{"openapi":"post /credentials/validate","title":"Validate credentials","href":"/api-reference/common/validate-credentials"}]},{"group":"Health","pages":[{"openapi":"get /health","title":"Fetch the health status of the Service Provider.","href":"/api-reference/common/fetch-the-health-status-of-the-service-provider"}]},{"title":"Testing with Postman","href":"/api-reference/einvoicing-spi/docs/testing-with-postman"}]},{"group":"Troubleshooting","pages":[{"title":null,"href":"/api-reference/troubleshooting"}]}]},{"tab":"App Onboarding","pages":[{"title":"App Onboarding","href":"/app-onboarding/guide"}]}]},"basePath":"","title":"Submit a document - Chargebee Partner docs","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","SectionHeading-uish4Ed2.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js","Markdown-K6_WYP3x.js","AssistantPageLink-BrppVW5v.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}