Skip to content

Read a configuration rule with its versions

Request

current is the live definition the runtime uses. versions holds the recorded history snapshots (all when versions is omitted), newest first. A rule saved before history was recorded may have no versions yet.

Security
OAuth2(Required scopes: integration-setup.read)
Path
idinteger, (int32)required

Configuration id, as returned by POST or the list.

Example:41
Query
versionsArray of integers, non-empty

Comma-separated version numbers to return, e.g. versions=1,3. Omit to return every version. If any requested version does not exist the response is 404; an empty or non-numeric value is 400.

Example:versions=1,3
curl -i -X GET \
  'https://api.cloud.hypatos.ai/v2/integration-setup/e-invoice-configuration-rules/41?versions=1%2C3' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The configuration rule.

Bodyapplication/json
idintegerrequired
Example:7
namestringrequired
Example:"ACME e-Invoices"
descriptionstring or null
companyIdstringrequired
templateboolean
currentVersioninteger or null

Latest history version; null when no history was recorded yet.

projectIdsArray of strings
createdAtstring or null, (date-time)
createdBystring or null(EInvoiceActor)

Who made the change, e-mail for people, automation:<client_id> for API clients.

Example:"automation:acme-onboarding"
updatedAtstring or null, (date-time)
updatedBystring or null(EInvoiceActor)

Who made the change, e-mail for people, automation:<client_id> for API clients.

Example:"automation:acme-onboarding"
currentobject(EInvoiceConfigurationRuleDefinition)required

The full definition is sent on every POST: omitted flags are false, omitted pdfMapping means none. In responses the flags are returned as stored (null for rules saved before a flag existed).

versionsArray of objects(EInvoiceConfigurationRuleVersion)required
Response
{ "id": 7, "name": "ACME e-Invoices", "description": null, "companyId": "6081acde0377a83b93f05a10", "template": false, "currentVersion": 2, "projectIds": [ "64b7f0c2a1e4d5f6a7b8c9d0" ], "createdAt": "2026-10-02T09:20:00.000Z", "createdBy": "automation:acme-onboarding", "updatedAt": "2026-11-20T10:05:00.000Z", "updatedBy": "automation:acme-onboarding", "current": { "executeForPdf": true, "mergeEmbeddedPdf": false, "extractFromRegularPdf": false, "mergePdfA3Attachments": false, "pdfMapping": { … }, "lines": [ … ], "projectIds": [ … ] }, "versions": [ { … }, { … } ] }