Create an e-reporting invoice
POST/api/v1/e_reportings/:e_reporting_id/invoices
Creates a new invoice for the specified e-reporting report
Request
Responses
- 201
- 401
- 404
- 422
The e-reporting invoice was created and linked to the specified report.
The request did not include a valid OAuth 2.0 bearer token.
No e-reporting report exists with this ID, or it belongs to a workspace the authenticated OAuth client cannot access.
The invoice payload failed validation. The response body carries code: "validation_failed" and reports the failing attributes and error messages as full messages under details.base. Among them a currency code - currency_code (TT-23) or any tax_subtotals[].currency_code - that names no ISO 4217 currency: currency codes are matched case-sensitively against the two code lists Scribee vendors (the UN/CEFACT ISO3AlphaCurrencyCode enumeration unioned with the Peppol BIS ISO4217 list), so eur is refused rather than upcased. That is deliberately stricter than the PPF's own flux 10 rule F10-TX-DEVISE-G1.10, which asserts the three-letter shape alone and states in its own message that referential existence is not controlled.