请求批处理
账单/贷记备注请求与 UBL 2.4 账单架构一致。对于 在一次提交中发送多个文档请求(批量方法) 均通过扩展来使用,因为 UBL 2.4 账单架构。
批量请求标头
每个批量请求都包含一个唯一的批量 ID 以及账单或 贷记通知单请求。这种设置有助于 处理和跟踪批量提交。
详细信息
| 元素 | 说明 | 示例 |
|---|---|---|
batchID |
批处理文件的唯一标识符。 | Batch-001 |
documentCount |
该批次中的文档请求总数。 | 500 |
批量账单请求示例 XML
以下 XML 代码段展示了批量账单的结构 请求:
<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>