Without id, creates a new document mapping in the token's company with version 1 (name required). With the id of an existing document mapping, 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 document mapping 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 document mapping to add a version to. Omit to create a new document mapping.
Example:30
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-document-mappings
- API UShttps://api.cloud.hypatos.com/v2/integration-setup/e-invoice-document-mappings
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/integration-setup/e-invoice-document-mappings
curl -i -X POST \
https://api.cloud.hypatos.ai/v2/integration-setup/e-invoice-document-mappings \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "XRechnung UBL to invoice",
"definition": {
"mappingExpression": "{ \"documentNumber\": Invoice.ID, \"issuedAt\": Invoice.IssueDate }",
"keepNullFields": false
}
}'Response
{ "id": 30, "name": "XRechnung UBL to invoice", "companyId": "6081acde0377a83b93f05a10", "version": 1, "created": true }