Without id, creates a new configuration rule in the token's company (name required). With the id of an existing rule, replaces its live definition. The full definition must be sent: omitted lines and projects are removed.
201: a new history version was recorded.200: the definition equals the current one, so nothing changed and no version was created; the response carries the current version.
Takes effect immediately for every project in projectIds.
Referenced PDF mappings, derivation rules and document mappings must belong to the rule's company or the template company. A project already assigned to another configuration rule is rejected with 409.
Security
OAuth2(Required scopes: integration-setup.write)
- API EUhttps://api.cloud.hypatos.ai/v2/integration-setup/e-invoice-configuration-rules
- API UShttps://api.cloud.hypatos.com/v2/integration-setup/e-invoice-configuration-rules
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/integration-setup/e-invoice-configuration-rules
curl -i -X POST \
https://api.cloud.hypatos.ai/v2/integration-setup/e-invoice-configuration-rules \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "ACME e-Invoices",
"definition": {
"executeForPdf": true,
"mergeEmbeddedPdf": false,
"extractFromRegularPdf": false,
"mergePdfA3Attachments": false,
"pdfMapping": {
"id": 41,
"latest": true
},
"lines": [
{
"priority": 1,
"validationEngine": "xrehnung",
"derivationRule": {
"id": 12,
"version": 5
},
"documentMapping": {
"id": 30,
"latest": true
}
},
{
"priority": 2,
"validationEngine": "zugferd",
"derivationRule": {
"id": 13,
"latest": true
},
"documentMapping": {
"id": 31,
"latest": true
}
}
],
"projectIds": [
"64b7f0c2a1e4d5f6a7b8c9d0"
]
}
}'Unchanged; no version was created.
The version created by this request (or, for an unchanged configuration rule, its current version; null when it has no history yet).
Example:3
Response
{ "id": 7, "name": "ACME e-Invoices", "companyId": "6081acde0377a83b93f05a10", "version": 2, "created": false }