phax / phase4

phase4 - AS4 client and server for integration into existing systems. Specific support for Peppol and CEF eDelivery built-in.
Apache License 2.0
157 stars 48 forks source link

Bulk Invoices Sending #277

Closed jianweng11 closed 3 weeks ago

jianweng11 commented 1 month ago

Dear Philip,

Is it possible to support bulk sending? The current standalone project seems to only support single invoice. When attempting to send multiple invoices, an invalid XML issue is encountered.

<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
...
</Invoice>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
...
</Invoice>

Thanks.

phax commented 1 month ago

Hi @jianweng11 In the context of Peppol, each Invoice needs to be transmitted separately. Support for bulk invoices is not contained. In any other context, please take into consideration, that XML must have a single root element, so it should be something like

<InvoiceList>
  <Invoice ...>
     ---
  </Invoice>
  <Invoice ...>
     ---
  </Invoice>
</InvoiceList>
jianweng11 commented 1 month ago

Dear @phax,

Appreciate your prompt response, and many thanks. Singapore has a requirement to send bulk invoices as outlined below. Therefore, we are checking to confirm whether this can be supported.

Sample Payload AP Testing

Thanks.

phax commented 1 month ago

This payload is not valid, because the SBDH XSD allows only for a sinlge payload document. I will reach out to the SG PA to tackle that issue.

phax commented 1 month ago

Okay, so the use case is only for tax reporting, and not for regular Peppol exchanges. Will let you know about the outcome

jianweng11 commented 1 month ago

Noted with thanks 🙏🏻