> Full index: https://docs.buchungapp.com/llms.txt
> Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples.

# Get a custom definition

Retrieve a definition by UUID under the integration's operator. Foreign or unknown ids return 404. Requires activities:read. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.

```json
{
  "operations": [
    {
      "method": "get",
      "path": "/v1/management/custom-definitions/{id}",
      "tags": [
        "management"
      ]
    }
  ],
  "schema": {
    "openapi": "3.2.0",
    "info": {
      "title": "Buchung Storefront API",
      "version": "1.0.0",
      "description": "Public catalogue reads and hosted-checkout handoff scoped to a booking channel, plus bearer-only machine management. Storefront channel keys never authorize management operations; machine credentials never authorize storefront checkout handoffs. Storefront reads enforce a 4 MiB per-page custom-fact budget; result_too_large maps to the 400 validation_failed envelope without truncation. Use GET for simple catalogue queries with the raw request target strictly below 8 KiB (414 validation_failed otherwise); use the corresponding POST /query form when conditions or selections outgrow a URL. POST accepts the decoded GET fields as JSON, including the same defaults, errors and response schemas, uses the same read limiter bucket and returns Cache-Control: private, no-store. There are no per-parameter where/facets character caps. Management caps every method with a body at 64 KiB before parsing; storefront POST bodies are capped at 16 KiB before parsing (413 payload_too_large)."
    },
    "paths": {
      "/v1/management/custom-definitions/{id}": {
        "get": {
          "tags": [
            "management"
          ],
          "operationId": "management.getDefinition",
          "parameters": [
            {
              "name": "id",
              "in": "path",
              "schema": {
                "$ref": "#/components/schemas/Id"
              },
              "required": true,
              "description": "Stable resource UUID scoped to the authenticated operator; see Id."
            }
          ],
          "security": [
            {
              "integrationBearer": []
            }
          ],
          "responses": {
            "200": {
              "description": "Management definition, including unexposed and retired entries. type is a closed discriminator (text, text_list, boolean, number, choice, json, pdf); localized is a closed boolean constrained by that type. Stored text maxLength and text_list maxItems are required, including server defaults. Translations are explicit; no Buchung-Locale header or fallback projection.",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/CustomDefinition"
                  }
                }
              }
            },
            "400": {
              "description": "ValidationFailed",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/ValidationFailedEncoded"
                  }
                }
              }
            },
            "401": {
              "description": "Unauthorized",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/UnauthorizedEncoded"
                  }
                }
              }
            },
            "403": {
              "description": "Forbidden",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/ForbiddenEncoded"
                  }
                }
              }
            },
            "404": {
              "description": "NotFound",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/NotFoundEncoded"
                  }
                }
              }
            },
            "413": {
              "description": "PayloadTooLarge",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/PayloadTooLargeEncoded"
                  }
                }
              }
            },
            "429": {
              "description": "RateLimited",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/RateLimitedEncoded"
                  }
                }
              }
            },
            "500": {
              "description": "Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/InternalErrorEncoded"
                  }
                }
              }
            },
            "503": {
              "description": "ServiceUnavailable",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/ServiceUnavailableEncoded"
                  }
                }
              }
            }
          },
          "description": "Retrieve a definition by UUID under the integration's operator. Foreign or unknown ids return 404. Requires activities:read. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.",
          "summary": "Get a custom definition"
        }
      }
    },
    "security": [],
    "tags": [
      {
        "name": "activities"
      },
      {
        "name": "availabilities"
      },
      {
        "name": "bookingOptions"
      },
      {
        "name": "site"
      },
      {
        "name": "checkout"
      },
      {
        "name": "management"
      }
    ],
    "servers": [
      {
        "url": "https://api.buchungapp.com"
      }
    ],
    "components": {
      "schemas": {
        "UnauthorizedEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "unauthorized"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/unauthorized"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "ErrorDetail": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "path",
            "message"
          ],
          "additionalProperties": false,
          "description": "A validation issue at a request field path."
        },
        "Revision": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991,
          "description": "Monotonic integer optimistic-concurrency revision assigned from a database sequence, starting at 1. Not dense: gaps are normal. Clients compare equality only. A value slot never reuses a revision across delete/recreate, so a stale expectedRevision always conflicts."
        },
        "Language": {
          "type": "string",
          "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,3}$",
          "maxLength": 35,
          "description": "Matched case-insensitively against the operator's supported locale codes and normalized to the stored code. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. Accepted locale codes form a closed set per operator, discovered from Site.locales; syntactically valid codes do not imply support. Management uses explicit locales without fallback; unsupported locales return 400 validation_failed."
        },
        "CustomDefinitionKey": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]{1,63}$",
          "description": "Stable operator-scoped key, 2..64 characters matching ^[a-z][a-z0-9-]{1,63}$; never reused after retirement."
        },
        "Id": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid",
          "description": "Stable UUID of a public resource."
        },
        "ForbiddenEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "forbidden"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/forbidden"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "PayloadTooLargeEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "payload_too_large"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/payload_too_large"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "NotFoundEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "not_found"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/not_found"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "InternalErrorEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "internal_error"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/internal_error"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "ServiceUnavailableEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "service_unavailable"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/service_unavailable"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "RateLimitedEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "rate_limited"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/rate_limited"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "ValidationFailedEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "validation_failed"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/validation_failed"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "Instant": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
          "format": "date-time",
          "description": "ISO 8601 absolute instant with explicit UTC offset (including Z). Render using the resource's documented display timezone; the serialized offset need not equal that zone."
        },
        "CustomDefinition": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "text"
                  ]
                },
                "localized": {
                  "type": "boolean"
                },
                "constraints": {
                  "type": "object",
                  "properties": {
                    "maxLength": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 4000
                    }
                  },
                  "required": [
                    "maxLength"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "text_list"
                  ]
                },
                "localized": {
                  "type": "boolean"
                },
                "constraints": {
                  "type": "object",
                  "properties": {
                    "maxItems": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 50
                    }
                  },
                  "required": [
                    "maxItems"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "boolean"
                  ]
                },
                "localized": {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                "constraints": {
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "number"
                  ]
                },
                "localized": {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                "constraints": {
                  "type": "object",
                  "properties": {
                    "integer": {
                      "type": "boolean"
                    },
                    "min": {
                      "$ref": "#/components/schemas/CustomNumber"
                    },
                    "max": {
                      "$ref": "#/components/schemas/CustomNumber"
                    },
                    "precision": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "choice"
                  ]
                },
                "localized": {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                "constraints": {
                  "type": "object",
                  "properties": {
                    "options": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "$ref": "#/components/schemas/CustomOptionKey"
                          }
                        },
                        "required": [
                          "key"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 100
                    }
                  },
                  "required": [
                    "options"
                  ],
                  "additionalProperties": false
                },
                "optionLabels": {
                  "$ref": "#/components/schemas/CustomOptionLabels"
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "json"
                  ]
                },
                "localized": {
                  "type": "boolean"
                },
                "constraints": {
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "pdf"
                  ]
                },
                "localized": {
                  "type": "boolean"
                },
                "constraints": {
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            }
          ],
          "description": "Management definition, including unexposed and retired entries. type is a closed discriminator (text, text_list, boolean, number, choice, json, pdf); localized is a closed boolean constrained by that type. Stored text maxLength and text_list maxItems are required, including server defaults. Translations are explicit; no Buchung-Locale header or fallback projection."
        },
        "CustomLabels": {
          "type": "object",
          "propertyNames": {
            "$ref": "#/components/schemas/Language"
          },
          "additionalProperties": {
            "type": "string",
            "maxLength": 120
          },
          "description": "Explicit locale-to-label translations, at most 120 characters per label. Locale keys match case-insensitively; the server rejects unsupported locales and keys colliding after normalization."
        },
        "CustomOptionLabels": {
          "type": "object",
          "propertyNames": {
            "$ref": "#/components/schemas/CustomOptionKey"
          },
          "additionalProperties": {
            "$ref": "#/components/schemas/CustomLabels"
          },
          "description": "Choice option key to explicit locale-to-label translations."
        },
        "CustomOptionKey": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Bounded opaque catalogue key (fact set, field, choice, facet or option).",
          "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
        },
        "CustomNumber": {
          "type": "number",
          "minimum": -1000000000000000,
          "maximum": 1000000000000000,
          "description": "Finite custom number with |value| <= 1e15."
        }
      },
      "securitySchemes": {
        "integrationBearer": {
          "description": "Machine integration credential: Authorization: Bearer bg_it_<32 lowercase hex characters> (^bg_it_[0-9a-f]{32}$). Resolved uncached on each request. Middleware binds the resolved principal once; handlers run under it and never re-derive authority. The request context includes credentialId for per-request logging alongside machineId, operatorId, organizationId and capabilities; the principal is opaque and server-owned. Storefront channel keys never authorize management operations; machine credentials never authorize storefront checkout handoffs. Invalid, expired, revoked, disabled or ungranted credentials return 401 unauthorized.",
          "type": "http",
          "scheme": "Bearer"
        }
      }
    }
  }
}
```
