Create an e-reporting transaction
POST/api/v1/e_reportings/:e_reporting_id/transactions
Creates a new transaction for the specified e-reporting report. Transactions aggregate multiple operations and include tax breakdown by VAT rate.
Request
Responses
- 201
- 401
- 404
- 422
The e-reporting transaction 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 transaction payload failed validation - a missing required attribute, a category_code outside TLB1 / TPS1 / TNT1 / TMA1, a transaction_count that is not greater than 0, a date later than the current date, or a currency code - currency_code (TT-86) 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. An omitted currency_code is never refused - the column defaults to EUR. The response body carries code: "validation_failed" and reports the failing attributes and error messages as full messages under details.base.