Without id, creates a new derivation rule in the token's company with version 1 (name required). With the id of an existing derivation rule, appends the next version to it. Every accepted request creates a version, also when its definition equals an earlier one.
Takes effect immediately only where Latest is followed: configuration rule lines following Latest of this derivation rule switch to the new version. Pinned references keep their version.
name and description are not versioned: they are replaced when given and kept when omitted.
Security
OAuth2(Required scopes: integration-setup.write)
Id of the derivation rule to add a version to. Omit to create a new derivation rule.
Example:12
Required without id. Not an identifier and not versioned: with id, renames when given.
- API EUhttps://api.cloud.hypatos.ai/v2/integration-setup/e-invoice-derivation-rules
- API UShttps://api.cloud.hypatos.com/v2/integration-setup/e-invoice-derivation-rules
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/integration-setup/e-invoice-derivation-rules
curl -i -X POST \
https://api.cloud.hypatos.ai/v2/integration-setup/e-invoice-derivation-rules \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Is XRechnung UBL",
"definition": {
"derivationRuleMapping": "<xsl:stylesheet version=\"2.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"><xsl:template match=\"/\"><xsl:value-of select=\"exists(/*:Invoice)\"/></xsl:template></xsl:stylesheet>"
}
}'Response
{ "id": 12, "name": "Is XRechnung UBL", "companyId": "6081acde0377a83b93f05a10", "version": 1, "created": true }