Send an invoice (UBL, CII or Factur-X)
POST/invoices
Uploads an invoice file to A-Cube. Accepts UBL 2.1 or UN/CEFACT CII XML documents; the syntax is detected automatically or upload a Factur-X PDF as a multipart/form-data request with the file in the file field, A Factur-X PDF is validated as a whole (PDF/A-3 container and embedded XML). The document is validated and transmitted to the network within the request: on success it answers 201 with the invoice already SUBMITTED, and a transmission failure is reported as an error, with nothing stored. Send the X-Send-Async header to queue the transmission instead: the response is then 202 with the invoice ACQUIRED, and it becomes SUBMITTED once the network confirms it has been sent, which is reported via the invoice.outbound webhook. Returns 409 when the legal entity the document is addressed from is not onboarded yet.
Request
Responses
- 201
- 400
- 422
Invoice resource created
Invalid input
An error occurred