Request batching
The Invoice/CreditNote Request aligns with the UBL 2.4 Invoice schema. For sending multiple document requests in a single submission, a batching approach is employed through an extension, as batching is not directly supported by the UBL 2.4 Invoice schema.
Batch request header
Each batch request includes a unique batch ID and the total number of invoice or credit note requests contained in the file. This setup facilitates the efficient processing and tracking of batched submissions.
Details
Element | Description | Example |
---|---|---|
batchID |
The unique identifier for the batch file. | Batch-001 |
documentCount |
The total number of document requests in the batch. | 500 |
Batch invoice request example XML
The following XML snippet demonstrates the structure of a batched invoice request:
<RequestBatch xmlns:inv="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cn="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
batchID="Batch-001"
documentCount="500">
<inv:Invoice>
<!-- Invoice data -->
</inv:Invoice>
<inv:Invoice>
<!-- Invoice data -->
</inv:Invoice>
<!-- Repeat as necessary for each invoice in the batch -->
</RequestBatch>