phase4 icon indicating copy to clipboard operation
phase4 copied to clipboard

Bulk Invoices Sending

Open jianweng11 opened this issue 1 year ago • 5 comments

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.

jianweng11 avatar Oct 03 '24 06:10 jianweng11

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>

phax avatar Oct 03 '24 07:10 phax

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.

jianweng11 avatar Oct 03 '24 09:10 jianweng11

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 avatar Oct 03 '24 09:10 phax

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

phax avatar Oct 03 '24 10:10 phax

Noted with thanks 🙏🏻

jianweng11 avatar Oct 03 '24 11:10 jianweng11