# Deals

CRM Deals

## PUT /erp/crm-deals/{id}/subscription/deactivate

> Entfernt eine Subscription auf dem Geschäftsobjekt für den Aufrufer

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/subscription/deactivate":{"put":{"tags":["Deals"],"summary":"Entfernt eine Subscription auf dem Geschäftsobjekt für den Aufrufer","operationId":"deregisterSubscription","parameters":[{"name":"id","in":"path","description":"an identifier","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}}}}
```

## PUT /erp/crm-deals/{id}/subscription/activate

> Setzt eine Subscription auf dem Geschäftsobjekt für den Aufrufer

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/subscription/activate":{"put":{"tags":["Deals"],"summary":"Setzt eine Subscription auf dem Geschäftsobjekt für den Aufrufer","operationId":"registerSubscription","parameters":[{"name":"id","in":"path","description":"an identifier","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}}}}
```

## GET /erp/crm-deals/{id}/reminders/{reminderId}

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/reminders/{reminderId}":{"get":{"tags":["Deals"],"operationId":"getReminder_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"reminderId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmReminder"}}}}}}}},"components":{"schemas":{"erp-crm-CrmReminder":{"description":"CRM Erinnerungen","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"crmId":{"type":"integer","format":"int64","description":"ID des CRM Objekts"},"userRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"remindAt":{"type":"string","format":"date-time","description":"Erinnerungszeitpunkt"},"note":{"type":"string","description":"Notiz zur Erinnerung"},"critical":{"type":"boolean","description":"Kritische Erinnerung?"}},"required":["crmId","remindAt","userRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]}}}}
```

## PUT /erp/crm-deals/{id}/reminders/{reminderId}

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/reminders/{reminderId}":{"put":{"tags":["Deals"],"operationId":"updateReminder_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"reminderId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmReminder"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmReminder"}}}}}}}},"components":{"schemas":{"erp-crm-CrmReminder":{"description":"CRM Erinnerungen","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"crmId":{"type":"integer","format":"int64","description":"ID des CRM Objekts"},"userRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"remindAt":{"type":"string","format":"date-time","description":"Erinnerungszeitpunkt"},"note":{"type":"string","description":"Notiz zur Erinnerung"},"critical":{"type":"boolean","description":"Kritische Erinnerung?"}},"required":["crmId","remindAt","userRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]}}}}
```

## DELETE /erp/crm-deals/{id}/reminders/{reminderId}

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/reminders/{reminderId}":{"delete":{"tags":["Deals"],"operationId":"deleteReminder_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"reminderId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-api-OperationMessage"}}}}}}}},"components":{"schemas":{"core-api-OperationMessage":{"properties":{"context":{"type":"string","description":"message context"},"messageValue":{"type":"string","description":" message"}}}}}}
```

## GET /erp/crm-deals/{id}

> Find an existing Resource by identifier

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}":{"get":{"tags":["Deals"],"summary":"Find an existing Resource by identifier","operationId":"getById_101","parameters":[{"name":"id","in":"path","description":"an identifier","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmDeal"}}}},"404":{"description":"Resource with given ID was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-error-ApiError"}}}}}}}},"components":{"schemas":{"erp-crm-CrmDeal":{"description":"CRM Deals","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"typeRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"stateRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"priorityRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"number":{"type":"string","description":"Aufgaben-Nummer","readOnly":true},"description":{"type":"string","description":"Notiz/Beschreibung"},"notes":{"type":"string","description":"Notizen"},"accountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"parentRef":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"},"childRefs":{"type":"array","description":"Untergeordnete CRM-Objekt","items":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"}},"tags":{"type":"array","description":"Tags","items":{"$ref":"#/components/schemas/common-tag-TagDto"}},"salesDocumentRefs":{"type":"array","description":"Verkaufsbelege","items":{"$ref":"#/components/schemas/erp-document-DocumentRef"}},"observerRefs":{"type":"array","description":"Beobachter","items":{"$ref":"#/components/schemas/core-api-ApiObjectReference"}},"additionalParticipantsOfCustomer":{"type":"array","description":"Weitere Teilnehmer vom Auftraggeber","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"additionalParticipantsOfContractor":{"type":"array","description":"Weitere Teilnehmer vom Auftragnehmer","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"processedByWorkflow":{"type":"boolean","description":"In Workflow-Verarbeitung?","readOnly":true},"assignedUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedByUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"salesAgentAccountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"label":{"type":"string","description":"Aufgabentitel"},"customField":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"responsibleCustomerPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"topicRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"plannedClosingDate":{"type":"string","format":"date","description":"Geplantes Abschluss-Datum"},"plannedPerformanceDate":{"type":"string","format":"date","description":"Geplantes Leistungs-Datum"},"plannedInvestmentSum":{"type":"number","description":"Geplante Investitionssumme"},"chance":{"type":"integer","format":"int32","description":"Chance (in Prozent)","maximum":100,"minimum":0},"nextPlannedContactDate":{"type":"string","format":"date-time","description":"Nächster geplanter Kontakt"},"closingType":{"type":"string","description":"Art des Abschluß eines Deals","enum":["POSITIVE","NEGATIVE"]},"closingReasonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"detailedClosingReason":{"type":"string","description":"Freier/Detaillierter Abschlußgrund"}},"required":["priorityRef","topicRef","typeRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]},"erp-crm-CrmObjectRef":{"description":"Referenz auf ein CRM-Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]},"number":{"type":"string","description":"Nummer"},"label":{"type":"string","description":"Bezeichung"},"description":{"type":"string","description":"Beschreibung"},"state":{"$ref":"#/components/schemas/erp-crm-CrmState"},"subType":{"$ref":"#/components/schemas/erp-crm-CrmSubType"}},"required":["id","type"]},"erp-crm-CrmState":{"description":"Status eines CRM-Objekts","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"startState":{"type":"boolean","default":false,"description":"Handelt es sich um einen Anfang-Status"},"finishState":{"type":"boolean","default":false,"description":"Handelt es sich um einen End-Status"},"readyToBill":{"type":"boolean","default":false,"description":"Handelt es sich um einen \"Bereit zur Abrechnung\"-Status"},"needsCommentOnPositiveFinish":{"type":"boolean","default":false,"description":"Kommentar bei positivem Abschluß erforderlich"},"needsCommentOnNegativeFinish":{"type":"boolean","default":false,"description":"Kommentar bei negativem Abschluß erforderlich"},"active":{"type":"boolean","description":"active","readOnly":true},"portalEnumRef":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","sortOrder"]},"core-api-ApiCreatableReference":{"description":"Relation type","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label"},"description":{"type":"string","description":"a short description","readOnly":true}}},"erp-crm-CrmSubType":{"description":"Spezialisierter Typ einer CRM-Objekt-Implementierung","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"active":{"type":"boolean","description":"aktiv","readOnly":true}},"required":["label","sortOrder"]},"common-tag-TagDto":{"description":"List of tags","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"type":{"type":"string","description":"Tag-Typen","enum":["COMMON","ACCOUNT","PRODUCT","DOCUMENT","OPEN_ITEM","CRM_COMMON","CRM_TASK","CRM_DEAL","CRM_PROJECT","DMS_SHELF_DOCUMENT"]},"label":{"type":"string","description":"Beschriftung des Tags"},"color":{"type":"string","description":"Farbe für die Anzeige des Tags"},"editColor":{"type":"string","description":"Farbe in Verwaltungs-GUI"},"searchColor":{"type":"string","description":"Farbe in Such-GUI"},"tagGroup":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","type"]},"erp-document-DocumentRef":{"description":"Referenz auf ein Document","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"category":{"type":"string","description":"Dokumenttypen","enum":["CUSTOMER_OFFER","CUSTOMER_ORDER","CUSTOMER_DELIVERY_DOCUMENT","CUSTOMER_INVOICE","CUSTOMER_PROFORMA_INVOICE","CUSTOMER_DELIVERY_INVOICE","CUSTOMER_PARTIAL_INVOICE","CUSTOMER_FINAL_INVOICE","CUSTOMER_INVOICE_CANCELLATION","CUSTOMER_DELIVERY_INVOICE_CANCELLATION","CUSTOMER_PARTIAL_INVOICE_CANCELLATION","CUSTOMER_FINAL_INVOICE_CANCELLATION","CUSTOMER_DEPOSIT_INVOICE","CUSTOMER_DEPOSIT_INVOICE_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK_CANCELLATION","SUPPLIER_PRICE_REQUEST","SUPPLIER_ORDER","SUPPLIER_DELIVERY_DOCUMENT","SUPPLIER_INVOICE","SUPPLIER_DELIVERY_INVOICE","SUPPLIER_CREDIT_NOTE_WITH_STOCK","SUPPLIER_CREDIT_NOTE_WITHOUT_STOCK","COMMISSION_SETTLEMENT","COMMISSION_SETTLEMENT_CANCELLATION","SUPPLIER_COMMISSION_CREDIT_NOTE","SUPPLIER_COMMISSION_CREDIT_NOTE_CANCELLATION","CUSTOMER_SUBSCRIPTION_CONTRACT","POS_CASH_JOURNAL_OPENING","POS_CASH_RECEIPT","POS_CASH_RECEIPT_CANCELLATION","POS_CASH_JOURNAL_DEPOSIT","POS_CASH_JOURNAL_EXPENSE","POS_CASH_JOURNAL_CLOSING","FABRICATION_ORDER"]},"documentType":{"type":"string","description":"Belegart"},"documentState":{"type":"string","description":"Belegstatus"},"number":{"type":"string","description":"Belegnummer"}},"required":["id"]},"erp-crm-CrmParticipant":{"description":"Teilnehmer/Ansprechpartner in einem CRM-Objekt","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"accountPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"description":{"type":"string","description":"Beschreibung","maxLength":255,"minLength":0}},"required":["accountPersonRef"]},"unknownservice-unknownmodule-JsonNode":{"description":"Search-Dialog"},"core-error-ApiError":{"properties":{"instance":{"type":"string","description":"the resource that produced the error","readOnly":true},"trackingId":{"type":"string","description":"Internal tracking number for this Error","readOnly":true},"timeOfOccurence":{"type":"string","format":"date-time","description":"Internal timestamp, when this error happened","readOnly":true},"errors":{"$ref":"#/components/schemas/core-error-ApiError.Errors"},"decisions":{"type":"array","description":"all decisions, we need to take care of","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision"},"readOnly":true,"uniqueItems":true},"httpStatus":{"type":"integer","format":"int32","description":"HTTP-Status code"},"debug-info-url":{"type":"string","format":"uri","description":"optional url to get a more detailed stack trace","readOnly":true}},"required":["decisions","errors","instance","timeOfOccurence","trackingId"]},"core-error-ApiError.Errors":{"description":"all occured errors","properties":{"fieldErrors":{"type":"object","additionalProperties":{"type":"array","description":"One or more validation errors","items":{"$ref":"#/components/schemas/core-error-ApiErrorDetail"},"readOnly":true,"uniqueItems":true},"description":"One or more validation errors","readOnly":true},"services":{"type":"array","description":"One or more generel service errors","items":{"$ref":"#/components/schemas/core-error-ApiErrorDetail"},"readOnly":true,"uniqueItems":true}},"readOnly":true,"required":["fieldErrors","services"]},"core-error-ApiErrorDetail":{"description":"One or more generel service errors","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"property":{"type":"string","description":"property that has a constraint violation  (optional)"}},"readOnly":true},"core-api-LocalizeableMessage":{"description":"localizeable message","properties":{"messageCode":{"type":"string","description":"Internal unique identifier/key for this message"},"messageParameters":{"type":"object","additionalProperties":{"type":"object","description":"list of parameters to fill a formattable message"},"description":"list of parameters to fill a formattable message"},"formattedMessage":{"type":"string","description":"formatted message (default language)"}}},"core-error-ApiErrorDecision":{"description":"all decisions, we need to take care of","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"title":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"multipleAnswersAllowed":{"type":"boolean","default":false,"description":"true, if an array of answers is required","readOnly":true},"textInput":{"type":"boolean","default":false,"description":"true, if text input instead of decisions is required","readOnly":true},"options":{"type":"array","description":"possible options for this decision","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision.DecisionOption"},"readOnly":true},"answerProperty":{"type":"string","description":"property to fill the decision into","readOnly":true},"answerPropertyType":{"type":"string","description":"type of the target property","enum":["FIELD","PARAMETER"],"readOnly":true},"searchDialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"}},"readOnly":true},"core-error-ApiErrorDecision.DecisionOption":{"description":"possible options for this decision","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"value":{"type":"string","description":"value for this decision","readOnly":true},"defaultOption":{"type":"boolean","default":false,"description":"default option","readOnly":true},"searchDialogs":{"type":"array","description":"Zu verwendende Search-Dialogs","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision.DecisionOptionSearchDialog"},"readOnly":true}}},"core-error-ApiErrorDecision.DecisionOptionSearchDialog":{"description":"Zu verwendende Search-Dialogs","properties":{"dialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"answerKey":{"type":"string","description":"Schlüssel für das Ergebnis vom Search-Dialog","readOnly":true}}}}}}
```

## PUT /erp/crm-deals/{id}

> Update existing Resource&#x20;

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}":{"put":{"tags":["Deals"],"summary":"Update existing Resource ","operationId":"update_93","parameters":[{"name":"id","in":"path","description":"an identifier","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmDealCreateOrUpdateRequest"}}},"required":true},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmDeal"}}}},"404":{"description":"Resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-error-ApiError"}}}},"422":{"description":"Resource was not valid to process","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-error-ApiError"}}}}}}}},"components":{"schemas":{"erp-crm-CrmDealCreateOrUpdateRequest":{"description":"Request zur Erstellung oder Aktualisierung eines Deals","properties":{"toCreateOrUpdate":{"$ref":"#/components/schemas/erp-crm-CrmDeal"},"parameters":{"type":"array","description":"Zusätzliche Parameter (z.B. auch Antworten auf Entscheidungen","items":{"$ref":"#/components/schemas/common-api-AdditionalParameter"}}}},"erp-crm-CrmDeal":{"description":"CRM Deals","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"typeRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"stateRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"priorityRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"number":{"type":"string","description":"Aufgaben-Nummer","readOnly":true},"description":{"type":"string","description":"Notiz/Beschreibung"},"notes":{"type":"string","description":"Notizen"},"accountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"parentRef":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"},"childRefs":{"type":"array","description":"Untergeordnete CRM-Objekt","items":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"}},"tags":{"type":"array","description":"Tags","items":{"$ref":"#/components/schemas/common-tag-TagDto"}},"salesDocumentRefs":{"type":"array","description":"Verkaufsbelege","items":{"$ref":"#/components/schemas/erp-document-DocumentRef"}},"observerRefs":{"type":"array","description":"Beobachter","items":{"$ref":"#/components/schemas/core-api-ApiObjectReference"}},"additionalParticipantsOfCustomer":{"type":"array","description":"Weitere Teilnehmer vom Auftraggeber","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"additionalParticipantsOfContractor":{"type":"array","description":"Weitere Teilnehmer vom Auftragnehmer","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"processedByWorkflow":{"type":"boolean","description":"In Workflow-Verarbeitung?","readOnly":true},"assignedUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedByUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"salesAgentAccountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"label":{"type":"string","description":"Aufgabentitel"},"customField":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"responsibleCustomerPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"topicRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"plannedClosingDate":{"type":"string","format":"date","description":"Geplantes Abschluss-Datum"},"plannedPerformanceDate":{"type":"string","format":"date","description":"Geplantes Leistungs-Datum"},"plannedInvestmentSum":{"type":"number","description":"Geplante Investitionssumme"},"chance":{"type":"integer","format":"int32","description":"Chance (in Prozent)","maximum":100,"minimum":0},"nextPlannedContactDate":{"type":"string","format":"date-time","description":"Nächster geplanter Kontakt"},"closingType":{"type":"string","description":"Art des Abschluß eines Deals","enum":["POSITIVE","NEGATIVE"]},"closingReasonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"detailedClosingReason":{"type":"string","description":"Freier/Detaillierter Abschlußgrund"}},"required":["priorityRef","topicRef","typeRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]},"erp-crm-CrmObjectRef":{"description":"Referenz auf ein CRM-Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]},"number":{"type":"string","description":"Nummer"},"label":{"type":"string","description":"Bezeichung"},"description":{"type":"string","description":"Beschreibung"},"state":{"$ref":"#/components/schemas/erp-crm-CrmState"},"subType":{"$ref":"#/components/schemas/erp-crm-CrmSubType"}},"required":["id","type"]},"erp-crm-CrmState":{"description":"Status eines CRM-Objekts","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"startState":{"type":"boolean","default":false,"description":"Handelt es sich um einen Anfang-Status"},"finishState":{"type":"boolean","default":false,"description":"Handelt es sich um einen End-Status"},"readyToBill":{"type":"boolean","default":false,"description":"Handelt es sich um einen \"Bereit zur Abrechnung\"-Status"},"needsCommentOnPositiveFinish":{"type":"boolean","default":false,"description":"Kommentar bei positivem Abschluß erforderlich"},"needsCommentOnNegativeFinish":{"type":"boolean","default":false,"description":"Kommentar bei negativem Abschluß erforderlich"},"active":{"type":"boolean","description":"active","readOnly":true},"portalEnumRef":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","sortOrder"]},"core-api-ApiCreatableReference":{"description":"Relation type","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label"},"description":{"type":"string","description":"a short description","readOnly":true}}},"erp-crm-CrmSubType":{"description":"Spezialisierter Typ einer CRM-Objekt-Implementierung","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"active":{"type":"boolean","description":"aktiv","readOnly":true}},"required":["label","sortOrder"]},"common-tag-TagDto":{"description":"List of tags","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"type":{"type":"string","description":"Tag-Typen","enum":["COMMON","ACCOUNT","PRODUCT","DOCUMENT","OPEN_ITEM","CRM_COMMON","CRM_TASK","CRM_DEAL","CRM_PROJECT","DMS_SHELF_DOCUMENT"]},"label":{"type":"string","description":"Beschriftung des Tags"},"color":{"type":"string","description":"Farbe für die Anzeige des Tags"},"editColor":{"type":"string","description":"Farbe in Verwaltungs-GUI"},"searchColor":{"type":"string","description":"Farbe in Such-GUI"},"tagGroup":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","type"]},"erp-document-DocumentRef":{"description":"Referenz auf ein Document","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"category":{"type":"string","description":"Dokumenttypen","enum":["CUSTOMER_OFFER","CUSTOMER_ORDER","CUSTOMER_DELIVERY_DOCUMENT","CUSTOMER_INVOICE","CUSTOMER_PROFORMA_INVOICE","CUSTOMER_DELIVERY_INVOICE","CUSTOMER_PARTIAL_INVOICE","CUSTOMER_FINAL_INVOICE","CUSTOMER_INVOICE_CANCELLATION","CUSTOMER_DELIVERY_INVOICE_CANCELLATION","CUSTOMER_PARTIAL_INVOICE_CANCELLATION","CUSTOMER_FINAL_INVOICE_CANCELLATION","CUSTOMER_DEPOSIT_INVOICE","CUSTOMER_DEPOSIT_INVOICE_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK_CANCELLATION","SUPPLIER_PRICE_REQUEST","SUPPLIER_ORDER","SUPPLIER_DELIVERY_DOCUMENT","SUPPLIER_INVOICE","SUPPLIER_DELIVERY_INVOICE","SUPPLIER_CREDIT_NOTE_WITH_STOCK","SUPPLIER_CREDIT_NOTE_WITHOUT_STOCK","COMMISSION_SETTLEMENT","COMMISSION_SETTLEMENT_CANCELLATION","SUPPLIER_COMMISSION_CREDIT_NOTE","SUPPLIER_COMMISSION_CREDIT_NOTE_CANCELLATION","CUSTOMER_SUBSCRIPTION_CONTRACT","POS_CASH_JOURNAL_OPENING","POS_CASH_RECEIPT","POS_CASH_RECEIPT_CANCELLATION","POS_CASH_JOURNAL_DEPOSIT","POS_CASH_JOURNAL_EXPENSE","POS_CASH_JOURNAL_CLOSING","FABRICATION_ORDER"]},"documentType":{"type":"string","description":"Belegart"},"documentState":{"type":"string","description":"Belegstatus"},"number":{"type":"string","description":"Belegnummer"}},"required":["id"]},"erp-crm-CrmParticipant":{"description":"Teilnehmer/Ansprechpartner in einem CRM-Objekt","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"accountPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"description":{"type":"string","description":"Beschreibung","maxLength":255,"minLength":0}},"required":["accountPersonRef"]},"unknownservice-unknownmodule-JsonNode":{"description":"Search-Dialog"},"common-api-AdditionalParameter":{"description":"Zusätzliche Parameter","properties":{"key":{"type":"string","description":"key for this parameter"},"value":{"type":"object","description":"value for this parameter"}},"required":["key"]},"core-error-ApiError":{"properties":{"instance":{"type":"string","description":"the resource that produced the error","readOnly":true},"trackingId":{"type":"string","description":"Internal tracking number for this Error","readOnly":true},"timeOfOccurence":{"type":"string","format":"date-time","description":"Internal timestamp, when this error happened","readOnly":true},"errors":{"$ref":"#/components/schemas/core-error-ApiError.Errors"},"decisions":{"type":"array","description":"all decisions, we need to take care of","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision"},"readOnly":true,"uniqueItems":true},"httpStatus":{"type":"integer","format":"int32","description":"HTTP-Status code"},"debug-info-url":{"type":"string","format":"uri","description":"optional url to get a more detailed stack trace","readOnly":true}},"required":["decisions","errors","instance","timeOfOccurence","trackingId"]},"core-error-ApiError.Errors":{"description":"all occured errors","properties":{"fieldErrors":{"type":"object","additionalProperties":{"type":"array","description":"One or more validation errors","items":{"$ref":"#/components/schemas/core-error-ApiErrorDetail"},"readOnly":true,"uniqueItems":true},"description":"One or more validation errors","readOnly":true},"services":{"type":"array","description":"One or more generel service errors","items":{"$ref":"#/components/schemas/core-error-ApiErrorDetail"},"readOnly":true,"uniqueItems":true}},"readOnly":true,"required":["fieldErrors","services"]},"core-error-ApiErrorDetail":{"description":"One or more generel service errors","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"property":{"type":"string","description":"property that has a constraint violation  (optional)"}},"readOnly":true},"core-api-LocalizeableMessage":{"description":"localizeable message","properties":{"messageCode":{"type":"string","description":"Internal unique identifier/key for this message"},"messageParameters":{"type":"object","additionalProperties":{"type":"object","description":"list of parameters to fill a formattable message"},"description":"list of parameters to fill a formattable message"},"formattedMessage":{"type":"string","description":"formatted message (default language)"}}},"core-error-ApiErrorDecision":{"description":"all decisions, we need to take care of","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"title":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"multipleAnswersAllowed":{"type":"boolean","default":false,"description":"true, if an array of answers is required","readOnly":true},"textInput":{"type":"boolean","default":false,"description":"true, if text input instead of decisions is required","readOnly":true},"options":{"type":"array","description":"possible options for this decision","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision.DecisionOption"},"readOnly":true},"answerProperty":{"type":"string","description":"property to fill the decision into","readOnly":true},"answerPropertyType":{"type":"string","description":"type of the target property","enum":["FIELD","PARAMETER"],"readOnly":true},"searchDialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"}},"readOnly":true},"core-error-ApiErrorDecision.DecisionOption":{"description":"possible options for this decision","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"value":{"type":"string","description":"value for this decision","readOnly":true},"defaultOption":{"type":"boolean","default":false,"description":"default option","readOnly":true},"searchDialogs":{"type":"array","description":"Zu verwendende Search-Dialogs","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision.DecisionOptionSearchDialog"},"readOnly":true}}},"core-error-ApiErrorDecision.DecisionOptionSearchDialog":{"description":"Zu verwendende Search-Dialogs","properties":{"dialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"answerKey":{"type":"string","description":"Schlüssel für das Ergebnis vom Search-Dialog","readOnly":true}}}}}}
```

## DELETE /erp/crm-deals/{id}

> Delete an existing Resource

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}":{"delete":{"tags":["Deals"],"summary":"Delete an existing Resource","operationId":"delete_84","parameters":[{"name":"id","in":"path","description":"an identifier","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-api-OperationMessage"}}}},"404":{"description":"Resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-error-ApiError"}}}},"409":{"description":"unable to delete Resource, due to constraints, existing references or internal state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-api-OperationMessage"}}}}}}}},"components":{"schemas":{"core-api-OperationMessage":{"properties":{"context":{"type":"string","description":"message context"},"messageValue":{"type":"string","description":" message"}}},"core-error-ApiError":{"properties":{"instance":{"type":"string","description":"the resource that produced the error","readOnly":true},"trackingId":{"type":"string","description":"Internal tracking number for this Error","readOnly":true},"timeOfOccurence":{"type":"string","format":"date-time","description":"Internal timestamp, when this error happened","readOnly":true},"errors":{"$ref":"#/components/schemas/core-error-ApiError.Errors"},"decisions":{"type":"array","description":"all decisions, we need to take care of","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision"},"readOnly":true,"uniqueItems":true},"httpStatus":{"type":"integer","format":"int32","description":"HTTP-Status code"},"debug-info-url":{"type":"string","format":"uri","description":"optional url to get a more detailed stack trace","readOnly":true}},"required":["decisions","errors","instance","timeOfOccurence","trackingId"]},"core-error-ApiError.Errors":{"description":"all occured errors","properties":{"fieldErrors":{"type":"object","additionalProperties":{"type":"array","description":"One or more validation errors","items":{"$ref":"#/components/schemas/core-error-ApiErrorDetail"},"readOnly":true,"uniqueItems":true},"description":"One or more validation errors","readOnly":true},"services":{"type":"array","description":"One or more generel service errors","items":{"$ref":"#/components/schemas/core-error-ApiErrorDetail"},"readOnly":true,"uniqueItems":true}},"readOnly":true,"required":["fieldErrors","services"]},"core-error-ApiErrorDetail":{"description":"One or more generel service errors","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"property":{"type":"string","description":"property that has a constraint violation  (optional)"}},"readOnly":true},"core-api-LocalizeableMessage":{"description":"localizeable message","properties":{"messageCode":{"type":"string","description":"Internal unique identifier/key for this message"},"messageParameters":{"type":"object","additionalProperties":{"type":"object","description":"list of parameters to fill a formattable message"},"description":"list of parameters to fill a formattable message"},"formattedMessage":{"type":"string","description":"formatted message (default language)"}}},"core-error-ApiErrorDecision":{"description":"all decisions, we need to take care of","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"title":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"multipleAnswersAllowed":{"type":"boolean","default":false,"description":"true, if an array of answers is required","readOnly":true},"textInput":{"type":"boolean","default":false,"description":"true, if text input instead of decisions is required","readOnly":true},"options":{"type":"array","description":"possible options for this decision","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision.DecisionOption"},"readOnly":true},"answerProperty":{"type":"string","description":"property to fill the decision into","readOnly":true},"answerPropertyType":{"type":"string","description":"type of the target property","enum":["FIELD","PARAMETER"],"readOnly":true},"searchDialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"}},"readOnly":true},"core-error-ApiErrorDecision.DecisionOption":{"description":"possible options for this decision","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"value":{"type":"string","description":"value for this decision","readOnly":true},"defaultOption":{"type":"boolean","default":false,"description":"default option","readOnly":true},"searchDialogs":{"type":"array","description":"Zu verwendende Search-Dialogs","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision.DecisionOptionSearchDialog"},"readOnly":true}}},"core-error-ApiErrorDecision.DecisionOptionSearchDialog":{"description":"Zu verwendende Search-Dialogs","properties":{"dialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"answerKey":{"type":"string","description":"Schlüssel für das Ergebnis vom Search-Dialog","readOnly":true}}},"unknownservice-unknownmodule-JsonNode":{"description":"Search-Dialog"}}}}
```

## PATCH /erp/crm-deals/{id}

> Patch existing Resource&#x20;

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}":{"patch":{"tags":["Deals"],"summary":"Patch existing Resource ","operationId":"partialUpdate_2","parameters":[{"name":"id","in":"path","description":"an identifier","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"}}},"required":true},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmDeal"}}}},"404":{"description":"Resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-error-ApiError"}}}},"422":{"description":"Resource was not valid to process","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-error-ApiError"}}}}}}}},"components":{"schemas":{"unknownservice-unknownmodule-JsonNode":{"description":"Search-Dialog"},"erp-crm-CrmDeal":{"description":"CRM Deals","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"typeRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"stateRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"priorityRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"number":{"type":"string","description":"Aufgaben-Nummer","readOnly":true},"description":{"type":"string","description":"Notiz/Beschreibung"},"notes":{"type":"string","description":"Notizen"},"accountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"parentRef":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"},"childRefs":{"type":"array","description":"Untergeordnete CRM-Objekt","items":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"}},"tags":{"type":"array","description":"Tags","items":{"$ref":"#/components/schemas/common-tag-TagDto"}},"salesDocumentRefs":{"type":"array","description":"Verkaufsbelege","items":{"$ref":"#/components/schemas/erp-document-DocumentRef"}},"observerRefs":{"type":"array","description":"Beobachter","items":{"$ref":"#/components/schemas/core-api-ApiObjectReference"}},"additionalParticipantsOfCustomer":{"type":"array","description":"Weitere Teilnehmer vom Auftraggeber","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"additionalParticipantsOfContractor":{"type":"array","description":"Weitere Teilnehmer vom Auftragnehmer","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"processedByWorkflow":{"type":"boolean","description":"In Workflow-Verarbeitung?","readOnly":true},"assignedUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedByUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"salesAgentAccountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"label":{"type":"string","description":"Aufgabentitel"},"customField":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"responsibleCustomerPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"topicRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"plannedClosingDate":{"type":"string","format":"date","description":"Geplantes Abschluss-Datum"},"plannedPerformanceDate":{"type":"string","format":"date","description":"Geplantes Leistungs-Datum"},"plannedInvestmentSum":{"type":"number","description":"Geplante Investitionssumme"},"chance":{"type":"integer","format":"int32","description":"Chance (in Prozent)","maximum":100,"minimum":0},"nextPlannedContactDate":{"type":"string","format":"date-time","description":"Nächster geplanter Kontakt"},"closingType":{"type":"string","description":"Art des Abschluß eines Deals","enum":["POSITIVE","NEGATIVE"]},"closingReasonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"detailedClosingReason":{"type":"string","description":"Freier/Detaillierter Abschlußgrund"}},"required":["priorityRef","topicRef","typeRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]},"erp-crm-CrmObjectRef":{"description":"Referenz auf ein CRM-Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]},"number":{"type":"string","description":"Nummer"},"label":{"type":"string","description":"Bezeichung"},"description":{"type":"string","description":"Beschreibung"},"state":{"$ref":"#/components/schemas/erp-crm-CrmState"},"subType":{"$ref":"#/components/schemas/erp-crm-CrmSubType"}},"required":["id","type"]},"erp-crm-CrmState":{"description":"Status eines CRM-Objekts","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"startState":{"type":"boolean","default":false,"description":"Handelt es sich um einen Anfang-Status"},"finishState":{"type":"boolean","default":false,"description":"Handelt es sich um einen End-Status"},"readyToBill":{"type":"boolean","default":false,"description":"Handelt es sich um einen \"Bereit zur Abrechnung\"-Status"},"needsCommentOnPositiveFinish":{"type":"boolean","default":false,"description":"Kommentar bei positivem Abschluß erforderlich"},"needsCommentOnNegativeFinish":{"type":"boolean","default":false,"description":"Kommentar bei negativem Abschluß erforderlich"},"active":{"type":"boolean","description":"active","readOnly":true},"portalEnumRef":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","sortOrder"]},"core-api-ApiCreatableReference":{"description":"Relation type","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label"},"description":{"type":"string","description":"a short description","readOnly":true}}},"erp-crm-CrmSubType":{"description":"Spezialisierter Typ einer CRM-Objekt-Implementierung","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"active":{"type":"boolean","description":"aktiv","readOnly":true}},"required":["label","sortOrder"]},"common-tag-TagDto":{"description":"List of tags","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"type":{"type":"string","description":"Tag-Typen","enum":["COMMON","ACCOUNT","PRODUCT","DOCUMENT","OPEN_ITEM","CRM_COMMON","CRM_TASK","CRM_DEAL","CRM_PROJECT","DMS_SHELF_DOCUMENT"]},"label":{"type":"string","description":"Beschriftung des Tags"},"color":{"type":"string","description":"Farbe für die Anzeige des Tags"},"editColor":{"type":"string","description":"Farbe in Verwaltungs-GUI"},"searchColor":{"type":"string","description":"Farbe in Such-GUI"},"tagGroup":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","type"]},"erp-document-DocumentRef":{"description":"Referenz auf ein Document","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"category":{"type":"string","description":"Dokumenttypen","enum":["CUSTOMER_OFFER","CUSTOMER_ORDER","CUSTOMER_DELIVERY_DOCUMENT","CUSTOMER_INVOICE","CUSTOMER_PROFORMA_INVOICE","CUSTOMER_DELIVERY_INVOICE","CUSTOMER_PARTIAL_INVOICE","CUSTOMER_FINAL_INVOICE","CUSTOMER_INVOICE_CANCELLATION","CUSTOMER_DELIVERY_INVOICE_CANCELLATION","CUSTOMER_PARTIAL_INVOICE_CANCELLATION","CUSTOMER_FINAL_INVOICE_CANCELLATION","CUSTOMER_DEPOSIT_INVOICE","CUSTOMER_DEPOSIT_INVOICE_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK_CANCELLATION","SUPPLIER_PRICE_REQUEST","SUPPLIER_ORDER","SUPPLIER_DELIVERY_DOCUMENT","SUPPLIER_INVOICE","SUPPLIER_DELIVERY_INVOICE","SUPPLIER_CREDIT_NOTE_WITH_STOCK","SUPPLIER_CREDIT_NOTE_WITHOUT_STOCK","COMMISSION_SETTLEMENT","COMMISSION_SETTLEMENT_CANCELLATION","SUPPLIER_COMMISSION_CREDIT_NOTE","SUPPLIER_COMMISSION_CREDIT_NOTE_CANCELLATION","CUSTOMER_SUBSCRIPTION_CONTRACT","POS_CASH_JOURNAL_OPENING","POS_CASH_RECEIPT","POS_CASH_RECEIPT_CANCELLATION","POS_CASH_JOURNAL_DEPOSIT","POS_CASH_JOURNAL_EXPENSE","POS_CASH_JOURNAL_CLOSING","FABRICATION_ORDER"]},"documentType":{"type":"string","description":"Belegart"},"documentState":{"type":"string","description":"Belegstatus"},"number":{"type":"string","description":"Belegnummer"}},"required":["id"]},"erp-crm-CrmParticipant":{"description":"Teilnehmer/Ansprechpartner in einem CRM-Objekt","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"accountPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"description":{"type":"string","description":"Beschreibung","maxLength":255,"minLength":0}},"required":["accountPersonRef"]},"core-error-ApiError":{"properties":{"instance":{"type":"string","description":"the resource that produced the error","readOnly":true},"trackingId":{"type":"string","description":"Internal tracking number for this Error","readOnly":true},"timeOfOccurence":{"type":"string","format":"date-time","description":"Internal timestamp, when this error happened","readOnly":true},"errors":{"$ref":"#/components/schemas/core-error-ApiError.Errors"},"decisions":{"type":"array","description":"all decisions, we need to take care of","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision"},"readOnly":true,"uniqueItems":true},"httpStatus":{"type":"integer","format":"int32","description":"HTTP-Status code"},"debug-info-url":{"type":"string","format":"uri","description":"optional url to get a more detailed stack trace","readOnly":true}},"required":["decisions","errors","instance","timeOfOccurence","trackingId"]},"core-error-ApiError.Errors":{"description":"all occured errors","properties":{"fieldErrors":{"type":"object","additionalProperties":{"type":"array","description":"One or more validation errors","items":{"$ref":"#/components/schemas/core-error-ApiErrorDetail"},"readOnly":true,"uniqueItems":true},"description":"One or more validation errors","readOnly":true},"services":{"type":"array","description":"One or more generel service errors","items":{"$ref":"#/components/schemas/core-error-ApiErrorDetail"},"readOnly":true,"uniqueItems":true}},"readOnly":true,"required":["fieldErrors","services"]},"core-error-ApiErrorDetail":{"description":"One or more generel service errors","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"property":{"type":"string","description":"property that has a constraint violation  (optional)"}},"readOnly":true},"core-api-LocalizeableMessage":{"description":"localizeable message","properties":{"messageCode":{"type":"string","description":"Internal unique identifier/key for this message"},"messageParameters":{"type":"object","additionalProperties":{"type":"object","description":"list of parameters to fill a formattable message"},"description":"list of parameters to fill a formattable message"},"formattedMessage":{"type":"string","description":"formatted message (default language)"}}},"core-error-ApiErrorDecision":{"description":"all decisions, we need to take care of","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"title":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"multipleAnswersAllowed":{"type":"boolean","default":false,"description":"true, if an array of answers is required","readOnly":true},"textInput":{"type":"boolean","default":false,"description":"true, if text input instead of decisions is required","readOnly":true},"options":{"type":"array","description":"possible options for this decision","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision.DecisionOption"},"readOnly":true},"answerProperty":{"type":"string","description":"property to fill the decision into","readOnly":true},"answerPropertyType":{"type":"string","description":"type of the target property","enum":["FIELD","PARAMETER"],"readOnly":true},"searchDialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"}},"readOnly":true},"core-error-ApiErrorDecision.DecisionOption":{"description":"possible options for this decision","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"value":{"type":"string","description":"value for this decision","readOnly":true},"defaultOption":{"type":"boolean","default":false,"description":"default option","readOnly":true},"searchDialogs":{"type":"array","description":"Zu verwendende Search-Dialogs","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision.DecisionOptionSearchDialog"},"readOnly":true}}},"core-error-ApiErrorDecision.DecisionOptionSearchDialog":{"description":"Zu verwendende Search-Dialogs","properties":{"dialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"answerKey":{"type":"string","description":"Schlüssel für das Ergebnis vom Search-Dialog","readOnly":true}}}}}}
```

## GET /erp/crm-deals/parent/{childId}

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/parent/{childId}":{"get":{"tags":["Deals"],"operationId":"getParent_2","parameters":[{"name":"childId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"}}}}}}}},"components":{"schemas":{"erp-crm-CrmObjectRef":{"description":"Referenz auf ein CRM-Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]},"number":{"type":"string","description":"Nummer"},"label":{"type":"string","description":"Bezeichung"},"description":{"type":"string","description":"Beschreibung"},"state":{"$ref":"#/components/schemas/erp-crm-CrmState"},"subType":{"$ref":"#/components/schemas/erp-crm-CrmSubType"}},"required":["id","type"]},"erp-crm-CrmState":{"description":"Status eines CRM-Objekts","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"startState":{"type":"boolean","default":false,"description":"Handelt es sich um einen Anfang-Status"},"finishState":{"type":"boolean","default":false,"description":"Handelt es sich um einen End-Status"},"readyToBill":{"type":"boolean","default":false,"description":"Handelt es sich um einen \"Bereit zur Abrechnung\"-Status"},"needsCommentOnPositiveFinish":{"type":"boolean","default":false,"description":"Kommentar bei positivem Abschluß erforderlich"},"needsCommentOnNegativeFinish":{"type":"boolean","default":false,"description":"Kommentar bei negativem Abschluß erforderlich"},"active":{"type":"boolean","description":"active","readOnly":true},"portalEnumRef":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","sortOrder"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiCreatableReference":{"description":"Relation type","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label"},"description":{"type":"string","description":"a short description","readOnly":true}}},"erp-crm-CrmSubType":{"description":"Spezialisierter Typ einer CRM-Objekt-Implementierung","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"active":{"type":"boolean","description":"aktiv","readOnly":true}},"required":["label","sortOrder"]}}}}
```

## PUT /erp/crm-deals/parent/{childId}

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/parent/{childId}":{"put":{"tags":["Deals"],"operationId":"updateParent_2","parameters":[{"name":"childId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmUpdateParentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-api-OperationMessage"}}}}}}}},"components":{"schemas":{"erp-crm-CrmUpdateParentRequest":{"description":"Request zur aktualisierung vom CRM-Parent","properties":{"parentId":{"type":"integer","format":"int64","description":"ID vom neuen Parent"},"parentType":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]}},"required":["parentId","parentType"]},"core-api-OperationMessage":{"properties":{"context":{"type":"string","description":"message context"},"messageValue":{"type":"string","description":" message"}}}}}}
```

## DELETE /erp/crm-deals/parent/{childId}

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/parent/{childId}":{"delete":{"tags":["Deals"],"operationId":"removeParent_2","parameters":[{"name":"childId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-api-OperationMessage"}}}}}}}},"components":{"schemas":{"core-api-OperationMessage":{"properties":{"context":{"type":"string","description":"message context"},"messageValue":{"type":"string","description":" message"}}}}}}
```

## GET /erp/crm-deals/children/{parentId}

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/children/{parentId}":{"get":{"tags":["Deals"],"operationId":"getChildren_2","parameters":[{"name":"parentId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"}}}}}}}}},"components":{"schemas":{"erp-crm-CrmObjectRef":{"description":"Referenz auf ein CRM-Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]},"number":{"type":"string","description":"Nummer"},"label":{"type":"string","description":"Bezeichung"},"description":{"type":"string","description":"Beschreibung"},"state":{"$ref":"#/components/schemas/erp-crm-CrmState"},"subType":{"$ref":"#/components/schemas/erp-crm-CrmSubType"}},"required":["id","type"]},"erp-crm-CrmState":{"description":"Status eines CRM-Objekts","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"startState":{"type":"boolean","default":false,"description":"Handelt es sich um einen Anfang-Status"},"finishState":{"type":"boolean","default":false,"description":"Handelt es sich um einen End-Status"},"readyToBill":{"type":"boolean","default":false,"description":"Handelt es sich um einen \"Bereit zur Abrechnung\"-Status"},"needsCommentOnPositiveFinish":{"type":"boolean","default":false,"description":"Kommentar bei positivem Abschluß erforderlich"},"needsCommentOnNegativeFinish":{"type":"boolean","default":false,"description":"Kommentar bei negativem Abschluß erforderlich"},"active":{"type":"boolean","description":"active","readOnly":true},"portalEnumRef":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","sortOrder"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiCreatableReference":{"description":"Relation type","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label"},"description":{"type":"string","description":"a short description","readOnly":true}}},"erp-crm-CrmSubType":{"description":"Spezialisierter Typ einer CRM-Objekt-Implementierung","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"active":{"type":"boolean","description":"aktiv","readOnly":true}},"required":["label","sortOrder"]}}}}
```

## PUT /erp/crm-deals/children/{parentId}

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/children/{parentId}":{"put":{"tags":["Deals"],"operationId":"updateChildren_2","parameters":[{"name":"parentId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmUpdateChildrenRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"}}}}}}}}},"components":{"schemas":{"erp-crm-CrmUpdateChildrenRequest":{"description":"Request zur aktualisierung vom CRM-Parent","properties":{"children":{"type":"array","description":"Die abhängigen Objekte","items":{"$ref":"#/components/schemas/erp-crm-CrmUpdateChildrenRequest.Child"}}},"required":["children"]},"erp-crm-CrmUpdateChildrenRequest.Child":{"description":"Ein abhängiges Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]}},"required":["id","type"]},"erp-crm-CrmObjectRef":{"description":"Referenz auf ein CRM-Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]},"number":{"type":"string","description":"Nummer"},"label":{"type":"string","description":"Bezeichung"},"description":{"type":"string","description":"Beschreibung"},"state":{"$ref":"#/components/schemas/erp-crm-CrmState"},"subType":{"$ref":"#/components/schemas/erp-crm-CrmSubType"}},"required":["id","type"]},"erp-crm-CrmState":{"description":"Status eines CRM-Objekts","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"startState":{"type":"boolean","default":false,"description":"Handelt es sich um einen Anfang-Status"},"finishState":{"type":"boolean","default":false,"description":"Handelt es sich um einen End-Status"},"readyToBill":{"type":"boolean","default":false,"description":"Handelt es sich um einen \"Bereit zur Abrechnung\"-Status"},"needsCommentOnPositiveFinish":{"type":"boolean","default":false,"description":"Kommentar bei positivem Abschluß erforderlich"},"needsCommentOnNegativeFinish":{"type":"boolean","default":false,"description":"Kommentar bei negativem Abschluß erforderlich"},"active":{"type":"boolean","description":"active","readOnly":true},"portalEnumRef":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","sortOrder"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiCreatableReference":{"description":"Relation type","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label"},"description":{"type":"string","description":"a short description","readOnly":true}}},"erp-crm-CrmSubType":{"description":"Spezialisierter Typ einer CRM-Objekt-Implementierung","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"active":{"type":"boolean","description":"aktiv","readOnly":true}},"required":["label","sortOrder"]}}}}
```

## DELETE /erp/crm-deals/children/{parentId}

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/children/{parentId}":{"delete":{"tags":["Deals"],"operationId":"removeChildren_2","parameters":[{"name":"parentId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-api-OperationMessage"}}}}}}}},"components":{"schemas":{"core-api-OperationMessage":{"properties":{"context":{"type":"string","description":"message context"},"messageValue":{"type":"string","description":" message"}}}}}}
```

## POST /erp/crm-deals/{id}/won

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/won":{"post":{"tags":["Deals"],"operationId":"dealWon","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmDealCloseRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmDeal"}}}}}}}},"components":{"schemas":{"erp-crm-CrmDealCloseRequest":{"description":"Request zum Schließen eines Deals","properties":{"dealId":{"type":"integer","format":"int64","description":"ID des zu schliessenden Deals"},"closingReasonId":{"type":"integer","format":"int64","description":"ID des zu verwendenden Abschlussgrunds"},"detailedClosingReason":{"type":"string","description":"Detaillierter Abschlussgrund"}}},"erp-crm-CrmDeal":{"description":"CRM Deals","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"typeRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"stateRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"priorityRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"number":{"type":"string","description":"Aufgaben-Nummer","readOnly":true},"description":{"type":"string","description":"Notiz/Beschreibung"},"notes":{"type":"string","description":"Notizen"},"accountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"parentRef":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"},"childRefs":{"type":"array","description":"Untergeordnete CRM-Objekt","items":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"}},"tags":{"type":"array","description":"Tags","items":{"$ref":"#/components/schemas/common-tag-TagDto"}},"salesDocumentRefs":{"type":"array","description":"Verkaufsbelege","items":{"$ref":"#/components/schemas/erp-document-DocumentRef"}},"observerRefs":{"type":"array","description":"Beobachter","items":{"$ref":"#/components/schemas/core-api-ApiObjectReference"}},"additionalParticipantsOfCustomer":{"type":"array","description":"Weitere Teilnehmer vom Auftraggeber","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"additionalParticipantsOfContractor":{"type":"array","description":"Weitere Teilnehmer vom Auftragnehmer","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"processedByWorkflow":{"type":"boolean","description":"In Workflow-Verarbeitung?","readOnly":true},"assignedUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedByUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"salesAgentAccountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"label":{"type":"string","description":"Aufgabentitel"},"customField":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"responsibleCustomerPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"topicRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"plannedClosingDate":{"type":"string","format":"date","description":"Geplantes Abschluss-Datum"},"plannedPerformanceDate":{"type":"string","format":"date","description":"Geplantes Leistungs-Datum"},"plannedInvestmentSum":{"type":"number","description":"Geplante Investitionssumme"},"chance":{"type":"integer","format":"int32","description":"Chance (in Prozent)","maximum":100,"minimum":0},"nextPlannedContactDate":{"type":"string","format":"date-time","description":"Nächster geplanter Kontakt"},"closingType":{"type":"string","description":"Art des Abschluß eines Deals","enum":["POSITIVE","NEGATIVE"]},"closingReasonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"detailedClosingReason":{"type":"string","description":"Freier/Detaillierter Abschlußgrund"}},"required":["priorityRef","topicRef","typeRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]},"erp-crm-CrmObjectRef":{"description":"Referenz auf ein CRM-Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]},"number":{"type":"string","description":"Nummer"},"label":{"type":"string","description":"Bezeichung"},"description":{"type":"string","description":"Beschreibung"},"state":{"$ref":"#/components/schemas/erp-crm-CrmState"},"subType":{"$ref":"#/components/schemas/erp-crm-CrmSubType"}},"required":["id","type"]},"erp-crm-CrmState":{"description":"Status eines CRM-Objekts","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"startState":{"type":"boolean","default":false,"description":"Handelt es sich um einen Anfang-Status"},"finishState":{"type":"boolean","default":false,"description":"Handelt es sich um einen End-Status"},"readyToBill":{"type":"boolean","default":false,"description":"Handelt es sich um einen \"Bereit zur Abrechnung\"-Status"},"needsCommentOnPositiveFinish":{"type":"boolean","default":false,"description":"Kommentar bei positivem Abschluß erforderlich"},"needsCommentOnNegativeFinish":{"type":"boolean","default":false,"description":"Kommentar bei negativem Abschluß erforderlich"},"active":{"type":"boolean","description":"active","readOnly":true},"portalEnumRef":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","sortOrder"]},"core-api-ApiCreatableReference":{"description":"Relation type","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label"},"description":{"type":"string","description":"a short description","readOnly":true}}},"erp-crm-CrmSubType":{"description":"Spezialisierter Typ einer CRM-Objekt-Implementierung","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"active":{"type":"boolean","description":"aktiv","readOnly":true}},"required":["label","sortOrder"]},"common-tag-TagDto":{"description":"List of tags","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"type":{"type":"string","description":"Tag-Typen","enum":["COMMON","ACCOUNT","PRODUCT","DOCUMENT","OPEN_ITEM","CRM_COMMON","CRM_TASK","CRM_DEAL","CRM_PROJECT","DMS_SHELF_DOCUMENT"]},"label":{"type":"string","description":"Beschriftung des Tags"},"color":{"type":"string","description":"Farbe für die Anzeige des Tags"},"editColor":{"type":"string","description":"Farbe in Verwaltungs-GUI"},"searchColor":{"type":"string","description":"Farbe in Such-GUI"},"tagGroup":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","type"]},"erp-document-DocumentRef":{"description":"Referenz auf ein Document","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"category":{"type":"string","description":"Dokumenttypen","enum":["CUSTOMER_OFFER","CUSTOMER_ORDER","CUSTOMER_DELIVERY_DOCUMENT","CUSTOMER_INVOICE","CUSTOMER_PROFORMA_INVOICE","CUSTOMER_DELIVERY_INVOICE","CUSTOMER_PARTIAL_INVOICE","CUSTOMER_FINAL_INVOICE","CUSTOMER_INVOICE_CANCELLATION","CUSTOMER_DELIVERY_INVOICE_CANCELLATION","CUSTOMER_PARTIAL_INVOICE_CANCELLATION","CUSTOMER_FINAL_INVOICE_CANCELLATION","CUSTOMER_DEPOSIT_INVOICE","CUSTOMER_DEPOSIT_INVOICE_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK_CANCELLATION","SUPPLIER_PRICE_REQUEST","SUPPLIER_ORDER","SUPPLIER_DELIVERY_DOCUMENT","SUPPLIER_INVOICE","SUPPLIER_DELIVERY_INVOICE","SUPPLIER_CREDIT_NOTE_WITH_STOCK","SUPPLIER_CREDIT_NOTE_WITHOUT_STOCK","COMMISSION_SETTLEMENT","COMMISSION_SETTLEMENT_CANCELLATION","SUPPLIER_COMMISSION_CREDIT_NOTE","SUPPLIER_COMMISSION_CREDIT_NOTE_CANCELLATION","CUSTOMER_SUBSCRIPTION_CONTRACT","POS_CASH_JOURNAL_OPENING","POS_CASH_RECEIPT","POS_CASH_RECEIPT_CANCELLATION","POS_CASH_JOURNAL_DEPOSIT","POS_CASH_JOURNAL_EXPENSE","POS_CASH_JOURNAL_CLOSING","FABRICATION_ORDER"]},"documentType":{"type":"string","description":"Belegart"},"documentState":{"type":"string","description":"Belegstatus"},"number":{"type":"string","description":"Belegnummer"}},"required":["id"]},"erp-crm-CrmParticipant":{"description":"Teilnehmer/Ansprechpartner in einem CRM-Objekt","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"accountPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"description":{"type":"string","description":"Beschreibung","maxLength":255,"minLength":0}},"required":["accountPersonRef"]},"unknownservice-unknownmodule-JsonNode":{"description":"Search-Dialog"}}}}
```

## POST /erp/crm-deals/{id}/reminders/

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/reminders/":{"post":{"tags":["Deals"],"operationId":"createReminder_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmReminder"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmReminder"}}}}}}}},"components":{"schemas":{"erp-crm-CrmReminder":{"description":"CRM Erinnerungen","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"crmId":{"type":"integer","format":"int64","description":"ID des CRM Objekts"},"userRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"remindAt":{"type":"string","format":"date-time","description":"Erinnerungszeitpunkt"},"note":{"type":"string","description":"Notiz zur Erinnerung"},"critical":{"type":"boolean","description":"Kritische Erinnerung?"}},"required":["crmId","remindAt","userRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]}}}}
```

## POST /erp/crm-deals/{id}/reactivate

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/reactivate":{"post":{"tags":["Deals"],"operationId":"reactivate_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmDeal"}}}}}}}},"components":{"schemas":{"erp-crm-CrmDeal":{"description":"CRM Deals","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"typeRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"stateRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"priorityRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"number":{"type":"string","description":"Aufgaben-Nummer","readOnly":true},"description":{"type":"string","description":"Notiz/Beschreibung"},"notes":{"type":"string","description":"Notizen"},"accountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"parentRef":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"},"childRefs":{"type":"array","description":"Untergeordnete CRM-Objekt","items":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"}},"tags":{"type":"array","description":"Tags","items":{"$ref":"#/components/schemas/common-tag-TagDto"}},"salesDocumentRefs":{"type":"array","description":"Verkaufsbelege","items":{"$ref":"#/components/schemas/erp-document-DocumentRef"}},"observerRefs":{"type":"array","description":"Beobachter","items":{"$ref":"#/components/schemas/core-api-ApiObjectReference"}},"additionalParticipantsOfCustomer":{"type":"array","description":"Weitere Teilnehmer vom Auftraggeber","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"additionalParticipantsOfContractor":{"type":"array","description":"Weitere Teilnehmer vom Auftragnehmer","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"processedByWorkflow":{"type":"boolean","description":"In Workflow-Verarbeitung?","readOnly":true},"assignedUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedByUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"salesAgentAccountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"label":{"type":"string","description":"Aufgabentitel"},"customField":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"responsibleCustomerPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"topicRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"plannedClosingDate":{"type":"string","format":"date","description":"Geplantes Abschluss-Datum"},"plannedPerformanceDate":{"type":"string","format":"date","description":"Geplantes Leistungs-Datum"},"plannedInvestmentSum":{"type":"number","description":"Geplante Investitionssumme"},"chance":{"type":"integer","format":"int32","description":"Chance (in Prozent)","maximum":100,"minimum":0},"nextPlannedContactDate":{"type":"string","format":"date-time","description":"Nächster geplanter Kontakt"},"closingType":{"type":"string","description":"Art des Abschluß eines Deals","enum":["POSITIVE","NEGATIVE"]},"closingReasonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"detailedClosingReason":{"type":"string","description":"Freier/Detaillierter Abschlußgrund"}},"required":["priorityRef","topicRef","typeRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]},"erp-crm-CrmObjectRef":{"description":"Referenz auf ein CRM-Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]},"number":{"type":"string","description":"Nummer"},"label":{"type":"string","description":"Bezeichung"},"description":{"type":"string","description":"Beschreibung"},"state":{"$ref":"#/components/schemas/erp-crm-CrmState"},"subType":{"$ref":"#/components/schemas/erp-crm-CrmSubType"}},"required":["id","type"]},"erp-crm-CrmState":{"description":"Status eines CRM-Objekts","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"startState":{"type":"boolean","default":false,"description":"Handelt es sich um einen Anfang-Status"},"finishState":{"type":"boolean","default":false,"description":"Handelt es sich um einen End-Status"},"readyToBill":{"type":"boolean","default":false,"description":"Handelt es sich um einen \"Bereit zur Abrechnung\"-Status"},"needsCommentOnPositiveFinish":{"type":"boolean","default":false,"description":"Kommentar bei positivem Abschluß erforderlich"},"needsCommentOnNegativeFinish":{"type":"boolean","default":false,"description":"Kommentar bei negativem Abschluß erforderlich"},"active":{"type":"boolean","description":"active","readOnly":true},"portalEnumRef":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","sortOrder"]},"core-api-ApiCreatableReference":{"description":"Relation type","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label"},"description":{"type":"string","description":"a short description","readOnly":true}}},"erp-crm-CrmSubType":{"description":"Spezialisierter Typ einer CRM-Objekt-Implementierung","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"active":{"type":"boolean","description":"aktiv","readOnly":true}},"required":["label","sortOrder"]},"common-tag-TagDto":{"description":"List of tags","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"type":{"type":"string","description":"Tag-Typen","enum":["COMMON","ACCOUNT","PRODUCT","DOCUMENT","OPEN_ITEM","CRM_COMMON","CRM_TASK","CRM_DEAL","CRM_PROJECT","DMS_SHELF_DOCUMENT"]},"label":{"type":"string","description":"Beschriftung des Tags"},"color":{"type":"string","description":"Farbe für die Anzeige des Tags"},"editColor":{"type":"string","description":"Farbe in Verwaltungs-GUI"},"searchColor":{"type":"string","description":"Farbe in Such-GUI"},"tagGroup":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","type"]},"erp-document-DocumentRef":{"description":"Referenz auf ein Document","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"category":{"type":"string","description":"Dokumenttypen","enum":["CUSTOMER_OFFER","CUSTOMER_ORDER","CUSTOMER_DELIVERY_DOCUMENT","CUSTOMER_INVOICE","CUSTOMER_PROFORMA_INVOICE","CUSTOMER_DELIVERY_INVOICE","CUSTOMER_PARTIAL_INVOICE","CUSTOMER_FINAL_INVOICE","CUSTOMER_INVOICE_CANCELLATION","CUSTOMER_DELIVERY_INVOICE_CANCELLATION","CUSTOMER_PARTIAL_INVOICE_CANCELLATION","CUSTOMER_FINAL_INVOICE_CANCELLATION","CUSTOMER_DEPOSIT_INVOICE","CUSTOMER_DEPOSIT_INVOICE_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK_CANCELLATION","SUPPLIER_PRICE_REQUEST","SUPPLIER_ORDER","SUPPLIER_DELIVERY_DOCUMENT","SUPPLIER_INVOICE","SUPPLIER_DELIVERY_INVOICE","SUPPLIER_CREDIT_NOTE_WITH_STOCK","SUPPLIER_CREDIT_NOTE_WITHOUT_STOCK","COMMISSION_SETTLEMENT","COMMISSION_SETTLEMENT_CANCELLATION","SUPPLIER_COMMISSION_CREDIT_NOTE","SUPPLIER_COMMISSION_CREDIT_NOTE_CANCELLATION","CUSTOMER_SUBSCRIPTION_CONTRACT","POS_CASH_JOURNAL_OPENING","POS_CASH_RECEIPT","POS_CASH_RECEIPT_CANCELLATION","POS_CASH_JOURNAL_DEPOSIT","POS_CASH_JOURNAL_EXPENSE","POS_CASH_JOURNAL_CLOSING","FABRICATION_ORDER"]},"documentType":{"type":"string","description":"Belegart"},"documentState":{"type":"string","description":"Belegstatus"},"number":{"type":"string","description":"Belegnummer"}},"required":["id"]},"erp-crm-CrmParticipant":{"description":"Teilnehmer/Ansprechpartner in einem CRM-Objekt","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"accountPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"description":{"type":"string","description":"Beschreibung","maxLength":255,"minLength":0}},"required":["accountPersonRef"]},"unknownservice-unknownmodule-JsonNode":{"description":"Search-Dialog"}}}}
```

## POST /erp/crm-deals/{id}/lost

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/lost":{"post":{"tags":["Deals"],"operationId":"dealLost","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmDealCloseRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmDeal"}}}}}}}},"components":{"schemas":{"erp-crm-CrmDealCloseRequest":{"description":"Request zum Schließen eines Deals","properties":{"dealId":{"type":"integer","format":"int64","description":"ID des zu schliessenden Deals"},"closingReasonId":{"type":"integer","format":"int64","description":"ID des zu verwendenden Abschlussgrunds"},"detailedClosingReason":{"type":"string","description":"Detaillierter Abschlussgrund"}}},"erp-crm-CrmDeal":{"description":"CRM Deals","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"typeRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"stateRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"priorityRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"number":{"type":"string","description":"Aufgaben-Nummer","readOnly":true},"description":{"type":"string","description":"Notiz/Beschreibung"},"notes":{"type":"string","description":"Notizen"},"accountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"parentRef":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"},"childRefs":{"type":"array","description":"Untergeordnete CRM-Objekt","items":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"}},"tags":{"type":"array","description":"Tags","items":{"$ref":"#/components/schemas/common-tag-TagDto"}},"salesDocumentRefs":{"type":"array","description":"Verkaufsbelege","items":{"$ref":"#/components/schemas/erp-document-DocumentRef"}},"observerRefs":{"type":"array","description":"Beobachter","items":{"$ref":"#/components/schemas/core-api-ApiObjectReference"}},"additionalParticipantsOfCustomer":{"type":"array","description":"Weitere Teilnehmer vom Auftraggeber","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"additionalParticipantsOfContractor":{"type":"array","description":"Weitere Teilnehmer vom Auftragnehmer","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"processedByWorkflow":{"type":"boolean","description":"In Workflow-Verarbeitung?","readOnly":true},"assignedUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedByUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"salesAgentAccountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"label":{"type":"string","description":"Aufgabentitel"},"customField":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"responsibleCustomerPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"topicRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"plannedClosingDate":{"type":"string","format":"date","description":"Geplantes Abschluss-Datum"},"plannedPerformanceDate":{"type":"string","format":"date","description":"Geplantes Leistungs-Datum"},"plannedInvestmentSum":{"type":"number","description":"Geplante Investitionssumme"},"chance":{"type":"integer","format":"int32","description":"Chance (in Prozent)","maximum":100,"minimum":0},"nextPlannedContactDate":{"type":"string","format":"date-time","description":"Nächster geplanter Kontakt"},"closingType":{"type":"string","description":"Art des Abschluß eines Deals","enum":["POSITIVE","NEGATIVE"]},"closingReasonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"detailedClosingReason":{"type":"string","description":"Freier/Detaillierter Abschlußgrund"}},"required":["priorityRef","topicRef","typeRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]},"erp-crm-CrmObjectRef":{"description":"Referenz auf ein CRM-Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]},"number":{"type":"string","description":"Nummer"},"label":{"type":"string","description":"Bezeichung"},"description":{"type":"string","description":"Beschreibung"},"state":{"$ref":"#/components/schemas/erp-crm-CrmState"},"subType":{"$ref":"#/components/schemas/erp-crm-CrmSubType"}},"required":["id","type"]},"erp-crm-CrmState":{"description":"Status eines CRM-Objekts","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"startState":{"type":"boolean","default":false,"description":"Handelt es sich um einen Anfang-Status"},"finishState":{"type":"boolean","default":false,"description":"Handelt es sich um einen End-Status"},"readyToBill":{"type":"boolean","default":false,"description":"Handelt es sich um einen \"Bereit zur Abrechnung\"-Status"},"needsCommentOnPositiveFinish":{"type":"boolean","default":false,"description":"Kommentar bei positivem Abschluß erforderlich"},"needsCommentOnNegativeFinish":{"type":"boolean","default":false,"description":"Kommentar bei negativem Abschluß erforderlich"},"active":{"type":"boolean","description":"active","readOnly":true},"portalEnumRef":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","sortOrder"]},"core-api-ApiCreatableReference":{"description":"Relation type","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label"},"description":{"type":"string","description":"a short description","readOnly":true}}},"erp-crm-CrmSubType":{"description":"Spezialisierter Typ einer CRM-Objekt-Implementierung","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"active":{"type":"boolean","description":"aktiv","readOnly":true}},"required":["label","sortOrder"]},"common-tag-TagDto":{"description":"List of tags","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"type":{"type":"string","description":"Tag-Typen","enum":["COMMON","ACCOUNT","PRODUCT","DOCUMENT","OPEN_ITEM","CRM_COMMON","CRM_TASK","CRM_DEAL","CRM_PROJECT","DMS_SHELF_DOCUMENT"]},"label":{"type":"string","description":"Beschriftung des Tags"},"color":{"type":"string","description":"Farbe für die Anzeige des Tags"},"editColor":{"type":"string","description":"Farbe in Verwaltungs-GUI"},"searchColor":{"type":"string","description":"Farbe in Such-GUI"},"tagGroup":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","type"]},"erp-document-DocumentRef":{"description":"Referenz auf ein Document","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"category":{"type":"string","description":"Dokumenttypen","enum":["CUSTOMER_OFFER","CUSTOMER_ORDER","CUSTOMER_DELIVERY_DOCUMENT","CUSTOMER_INVOICE","CUSTOMER_PROFORMA_INVOICE","CUSTOMER_DELIVERY_INVOICE","CUSTOMER_PARTIAL_INVOICE","CUSTOMER_FINAL_INVOICE","CUSTOMER_INVOICE_CANCELLATION","CUSTOMER_DELIVERY_INVOICE_CANCELLATION","CUSTOMER_PARTIAL_INVOICE_CANCELLATION","CUSTOMER_FINAL_INVOICE_CANCELLATION","CUSTOMER_DEPOSIT_INVOICE","CUSTOMER_DEPOSIT_INVOICE_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK_CANCELLATION","SUPPLIER_PRICE_REQUEST","SUPPLIER_ORDER","SUPPLIER_DELIVERY_DOCUMENT","SUPPLIER_INVOICE","SUPPLIER_DELIVERY_INVOICE","SUPPLIER_CREDIT_NOTE_WITH_STOCK","SUPPLIER_CREDIT_NOTE_WITHOUT_STOCK","COMMISSION_SETTLEMENT","COMMISSION_SETTLEMENT_CANCELLATION","SUPPLIER_COMMISSION_CREDIT_NOTE","SUPPLIER_COMMISSION_CREDIT_NOTE_CANCELLATION","CUSTOMER_SUBSCRIPTION_CONTRACT","POS_CASH_JOURNAL_OPENING","POS_CASH_RECEIPT","POS_CASH_RECEIPT_CANCELLATION","POS_CASH_JOURNAL_DEPOSIT","POS_CASH_JOURNAL_EXPENSE","POS_CASH_JOURNAL_CLOSING","FABRICATION_ORDER"]},"documentType":{"type":"string","description":"Belegart"},"documentState":{"type":"string","description":"Belegstatus"},"number":{"type":"string","description":"Belegnummer"}},"required":["id"]},"erp-crm-CrmParticipant":{"description":"Teilnehmer/Ansprechpartner in einem CRM-Objekt","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"accountPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"description":{"type":"string","description":"Beschreibung","maxLength":255,"minLength":0}},"required":["accountPersonRef"]},"unknownservice-unknownmodule-JsonNode":{"description":"Search-Dialog"}}}}
```

## POST /erp/crm-deals

> Neues Projekt erzeugen

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals":{"post":{"tags":["Deals"],"summary":"Neues Projekt erzeugen","operationId":"createByTemplate_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CreateCrmDealRequest"}}},"required":true},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/erp-crm-CrmDeal"}}}},"422":{"description":"Resource was not valid to process","content":{"application/json":{"schema":{"$ref":"#/components/schemas/core-error-ApiError"}}}}}}}},"components":{"schemas":{"erp-crm-CreateCrmDealRequest":{"properties":{"createTemplateId":{"type":"integer","format":"int64","description":"Vorlage zum Erstellen eines Deals"},"deal":{"$ref":"#/components/schemas/erp-crm-CrmDeal"},"parameters":{"type":"array","description":"Zusätzliche Parameter (z.B. auch Antworten auf Entscheidungen","items":{"$ref":"#/components/schemas/common-api-AdditionalParameter"}}}},"erp-crm-CrmDeal":{"description":"CRM Deals","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"typeRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"stateRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"priorityRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"number":{"type":"string","description":"Aufgaben-Nummer","readOnly":true},"description":{"type":"string","description":"Notiz/Beschreibung"},"notes":{"type":"string","description":"Notizen"},"accountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"parentRef":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"},"childRefs":{"type":"array","description":"Untergeordnete CRM-Objekt","items":{"$ref":"#/components/schemas/erp-crm-CrmObjectRef"}},"tags":{"type":"array","description":"Tags","items":{"$ref":"#/components/schemas/common-tag-TagDto"}},"salesDocumentRefs":{"type":"array","description":"Verkaufsbelege","items":{"$ref":"#/components/schemas/erp-document-DocumentRef"}},"observerRefs":{"type":"array","description":"Beobachter","items":{"$ref":"#/components/schemas/core-api-ApiObjectReference"}},"additionalParticipantsOfCustomer":{"type":"array","description":"Weitere Teilnehmer vom Auftraggeber","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"additionalParticipantsOfContractor":{"type":"array","description":"Weitere Teilnehmer vom Auftragnehmer","items":{"$ref":"#/components/schemas/erp-crm-CrmParticipant"}},"processedByWorkflow":{"type":"boolean","description":"In Workflow-Verarbeitung?","readOnly":true},"assignedUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"assignedByUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"salesAgentAccountRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"mainResponsibleGroupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"label":{"type":"string","description":"Aufgabentitel"},"customField":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"responsibleCustomerPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"topicRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"plannedClosingDate":{"type":"string","format":"date","description":"Geplantes Abschluss-Datum"},"plannedPerformanceDate":{"type":"string","format":"date","description":"Geplantes Leistungs-Datum"},"plannedInvestmentSum":{"type":"number","description":"Geplante Investitionssumme"},"chance":{"type":"integer","format":"int32","description":"Chance (in Prozent)","maximum":100,"minimum":0},"nextPlannedContactDate":{"type":"string","format":"date-time","description":"Nächster geplanter Kontakt"},"closingType":{"type":"string","description":"Art des Abschluß eines Deals","enum":["POSITIVE","NEGATIVE"]},"closingReasonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"detailedClosingReason":{"type":"string","description":"Freier/Detaillierter Abschlußgrund"}},"required":["priorityRef","topicRef","typeRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]},"erp-crm-CrmObjectRef":{"description":"Referenz auf ein CRM-Objekt","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"type":{"type":"string","description":"Möglich CRM-Typen","enum":["TASK","DEAL","PROJECT"]},"number":{"type":"string","description":"Nummer"},"label":{"type":"string","description":"Bezeichung"},"description":{"type":"string","description":"Beschreibung"},"state":{"$ref":"#/components/schemas/erp-crm-CrmState"},"subType":{"$ref":"#/components/schemas/erp-crm-CrmSubType"}},"required":["id","type"]},"erp-crm-CrmState":{"description":"Status eines CRM-Objekts","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"startState":{"type":"boolean","default":false,"description":"Handelt es sich um einen Anfang-Status"},"finishState":{"type":"boolean","default":false,"description":"Handelt es sich um einen End-Status"},"readyToBill":{"type":"boolean","default":false,"description":"Handelt es sich um einen \"Bereit zur Abrechnung\"-Status"},"needsCommentOnPositiveFinish":{"type":"boolean","default":false,"description":"Kommentar bei positivem Abschluß erforderlich"},"needsCommentOnNegativeFinish":{"type":"boolean","default":false,"description":"Kommentar bei negativem Abschluß erforderlich"},"active":{"type":"boolean","description":"active","readOnly":true},"portalEnumRef":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","sortOrder"]},"core-api-ApiCreatableReference":{"description":"Relation type","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label"},"description":{"type":"string","description":"a short description","readOnly":true}}},"erp-crm-CrmSubType":{"description":"Spezialisierter Typ einer CRM-Objekt-Implementierung","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"label":{"type":"string","description":"Bezeichnung"},"description":{"type":"string","description":"Beschreibung"},"sortOrder":{"type":"integer","format":"int32","description":"Sortierreihenfolge"},"active":{"type":"boolean","description":"aktiv","readOnly":true}},"required":["label","sortOrder"]},"common-tag-TagDto":{"description":"List of tags","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"type":{"type":"string","description":"Tag-Typen","enum":["COMMON","ACCOUNT","PRODUCT","DOCUMENT","OPEN_ITEM","CRM_COMMON","CRM_TASK","CRM_DEAL","CRM_PROJECT","DMS_SHELF_DOCUMENT"]},"label":{"type":"string","description":"Beschriftung des Tags"},"color":{"type":"string","description":"Farbe für die Anzeige des Tags"},"editColor":{"type":"string","description":"Farbe in Verwaltungs-GUI"},"searchColor":{"type":"string","description":"Farbe in Such-GUI"},"tagGroup":{"$ref":"#/components/schemas/core-api-ApiCreatableReference"}},"required":["label","type"]},"erp-document-DocumentRef":{"description":"Referenz auf ein Document","properties":{"id":{"type":"integer","format":"int64","description":"ID"},"category":{"type":"string","description":"Dokumenttypen","enum":["CUSTOMER_OFFER","CUSTOMER_ORDER","CUSTOMER_DELIVERY_DOCUMENT","CUSTOMER_INVOICE","CUSTOMER_PROFORMA_INVOICE","CUSTOMER_DELIVERY_INVOICE","CUSTOMER_PARTIAL_INVOICE","CUSTOMER_FINAL_INVOICE","CUSTOMER_INVOICE_CANCELLATION","CUSTOMER_DELIVERY_INVOICE_CANCELLATION","CUSTOMER_PARTIAL_INVOICE_CANCELLATION","CUSTOMER_FINAL_INVOICE_CANCELLATION","CUSTOMER_DEPOSIT_INVOICE","CUSTOMER_DEPOSIT_INVOICE_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK","CUSTOMER_CREDIT_NOTE_WITHOUT_STOCK_CANCELLATION","CUSTOMER_CREDIT_NOTE_WITH_STOCK_CANCELLATION","SUPPLIER_PRICE_REQUEST","SUPPLIER_ORDER","SUPPLIER_DELIVERY_DOCUMENT","SUPPLIER_INVOICE","SUPPLIER_DELIVERY_INVOICE","SUPPLIER_CREDIT_NOTE_WITH_STOCK","SUPPLIER_CREDIT_NOTE_WITHOUT_STOCK","COMMISSION_SETTLEMENT","COMMISSION_SETTLEMENT_CANCELLATION","SUPPLIER_COMMISSION_CREDIT_NOTE","SUPPLIER_COMMISSION_CREDIT_NOTE_CANCELLATION","CUSTOMER_SUBSCRIPTION_CONTRACT","POS_CASH_JOURNAL_OPENING","POS_CASH_RECEIPT","POS_CASH_RECEIPT_CANCELLATION","POS_CASH_JOURNAL_DEPOSIT","POS_CASH_JOURNAL_EXPENSE","POS_CASH_JOURNAL_CLOSING","FABRICATION_ORDER"]},"documentType":{"type":"string","description":"Belegart"},"documentState":{"type":"string","description":"Belegstatus"},"number":{"type":"string","description":"Belegnummer"}},"required":["id"]},"erp-crm-CrmParticipant":{"description":"Teilnehmer/Ansprechpartner in einem CRM-Objekt","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"accountPersonRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"description":{"type":"string","description":"Beschreibung","maxLength":255,"minLength":0}},"required":["accountPersonRef"]},"unknownservice-unknownmodule-JsonNode":{"description":"Search-Dialog"},"common-api-AdditionalParameter":{"description":"Zusätzliche Parameter","properties":{"key":{"type":"string","description":"key for this parameter"},"value":{"type":"object","description":"value for this parameter"}},"required":["key"]},"core-error-ApiError":{"properties":{"instance":{"type":"string","description":"the resource that produced the error","readOnly":true},"trackingId":{"type":"string","description":"Internal tracking number for this Error","readOnly":true},"timeOfOccurence":{"type":"string","format":"date-time","description":"Internal timestamp, when this error happened","readOnly":true},"errors":{"$ref":"#/components/schemas/core-error-ApiError.Errors"},"decisions":{"type":"array","description":"all decisions, we need to take care of","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision"},"readOnly":true,"uniqueItems":true},"httpStatus":{"type":"integer","format":"int32","description":"HTTP-Status code"},"debug-info-url":{"type":"string","format":"uri","description":"optional url to get a more detailed stack trace","readOnly":true}},"required":["decisions","errors","instance","timeOfOccurence","trackingId"]},"core-error-ApiError.Errors":{"description":"all occured errors","properties":{"fieldErrors":{"type":"object","additionalProperties":{"type":"array","description":"One or more validation errors","items":{"$ref":"#/components/schemas/core-error-ApiErrorDetail"},"readOnly":true,"uniqueItems":true},"description":"One or more validation errors","readOnly":true},"services":{"type":"array","description":"One or more generel service errors","items":{"$ref":"#/components/schemas/core-error-ApiErrorDetail"},"readOnly":true,"uniqueItems":true}},"readOnly":true,"required":["fieldErrors","services"]},"core-error-ApiErrorDetail":{"description":"One or more generel service errors","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"property":{"type":"string","description":"property that has a constraint violation  (optional)"}},"readOnly":true},"core-api-LocalizeableMessage":{"description":"localizeable message","properties":{"messageCode":{"type":"string","description":"Internal unique identifier/key for this message"},"messageParameters":{"type":"object","additionalProperties":{"type":"object","description":"list of parameters to fill a formattable message"},"description":"list of parameters to fill a formattable message"},"formattedMessage":{"type":"string","description":"formatted message (default language)"}}},"core-error-ApiErrorDecision":{"description":"all decisions, we need to take care of","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"title":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"multipleAnswersAllowed":{"type":"boolean","default":false,"description":"true, if an array of answers is required","readOnly":true},"textInput":{"type":"boolean","default":false,"description":"true, if text input instead of decisions is required","readOnly":true},"options":{"type":"array","description":"possible options for this decision","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision.DecisionOption"},"readOnly":true},"answerProperty":{"type":"string","description":"property to fill the decision into","readOnly":true},"answerPropertyType":{"type":"string","description":"type of the target property","enum":["FIELD","PARAMETER"],"readOnly":true},"searchDialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"}},"readOnly":true},"core-error-ApiErrorDecision.DecisionOption":{"description":"possible options for this decision","properties":{"message":{"$ref":"#/components/schemas/core-api-LocalizeableMessage"},"value":{"type":"string","description":"value for this decision","readOnly":true},"defaultOption":{"type":"boolean","default":false,"description":"default option","readOnly":true},"searchDialogs":{"type":"array","description":"Zu verwendende Search-Dialogs","items":{"$ref":"#/components/schemas/core-error-ApiErrorDecision.DecisionOptionSearchDialog"},"readOnly":true}}},"core-error-ApiErrorDecision.DecisionOptionSearchDialog":{"description":"Zu verwendende Search-Dialogs","properties":{"dialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"answerKey":{"type":"string","description":"Schlüssel für das Ergebnis vom Search-Dialog","readOnly":true}}}}}}
```

## GET /erp/crm-deals/{refId}/workflow-state

> Liefert den Status der aktuellen Workflow-Instanz zu der gegebenen Referenz

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{refId}/workflow-state":{"get":{"tags":["Deals"],"summary":"Liefert den Status der aktuellen Workflow-Instanz zu der gegebenen Referenz","operationId":"getWorkflowState_6","parameters":[{"name":"refId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Workflow-Instanz gefunden","content":{"application/json":{"schema":{"type":"string","description":"Status einer Workflow-Instanz","enum":["CREATED","IN_PROCESS","COMPLETED_SUCCESSFULLY","COMPLETED_WITH_FAILURE","ERRONEOUS","ABORTED_CRASHED","ABORTED_MANUALLY","CRASHED","WAITING","INTERRUPTED"]}}}},"404":{"description":"Es existiert noch keine Workflow-Instanz","content":{"application/json":{"schema":{"type":"string","description":"Status einer Workflow-Instanz","enum":["CREATED","IN_PROCESS","COMPLETED_SUCCESSFULLY","COMPLETED_WITH_FAILURE","ERRONEOUS","ABORTED_CRASHED","ABORTED_MANUALLY","CRASHED","WAITING","INTERRUPTED"]}}}}}}}}}
```

## GET /erp/crm-deals/{refId}/workflow-instances-preset

> Liefert ein Query-Preset zur Selektion aller Workflow-Instanzen zu der gegebenen Referenz

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{refId}/workflow-instances-preset":{"get":{"tags":["Deals"],"summary":"Liefert ein Query-Preset zur Selektion aller Workflow-Instanzen zu der gegebenen Referenz","operationId":"getWorkflowInstancesPreset_6","parameters":[{"name":"refId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Workflow-Instanz gefunden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/common-cunit-QueryPreset"}}}}}}}},"components":{"schemas":{"common-cunit-QueryPreset":{"description":"Adhoc Preset","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"mode":{"type":"string","default":"QUERY","description":"Was kann mit diesem Preset abgebildet werden QUERY oder STATEMENT","enum":["QUERY","STATEMENT"]},"templateId":{"type":"string","description":"template dem dieser filter zugeordnet worden ist."},"templateGroupKey":{"type":"string","description":"templateGroupKey dem dieser filter zugeordnet worden ist."},"label":{"type":"string","description":"label für diesen filter"},"uiPayload":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"variables":{"type":"array","description":"Variablen für dieses Preset","items":{"$ref":"#/components/schemas/common-cunit-QueryPresetVariable"}},"queryStatement":{"type":"string","description":"bei mode == STATEMENT, das vql-query"},"queryPredicate":{"$ref":"#/components/schemas/common-cunit-QueryPresetPredicate"},"results":{"type":"array","description":"ergebnisse","items":{"$ref":"#/components/schemas/common-cunit-QueryPresetResult"}},"sortAndOrders":{"type":"array","description":"sortierung","items":{"$ref":"#/components/schemas/common-cunit-QueryPresetSortOrder"}},"pageable":{"$ref":"#/components/schemas/common-cunit-QueryPresetPageable"},"option":{"$ref":"#/components/schemas/common-cunit-QueryPresetOption"},"transformations":{"type":"array","description":"zusätzliche konfigurationen","items":{"$ref":"#/components/schemas/common-cunit-QueryPresetTransformation"}},"arithmeticQueryTerms":{"type":"array","description":"Arithmetische Terme - hier kommt die tatsächliche Berechnung rein","items":{"$ref":"#/components/schemas/common-cunit-ArithmeticQueryTerm"}},"definition":{"type":"array","description":"spaltenbeschreibung dieser zelle (bei verschachtelung)","items":{"oneOf":[{"$ref":"#/components/schemas/core-cunit-CuAttribute"},{"$ref":"#/components/schemas/core-cunit-CuMeta"}]},"readOnly":true},"permissionAggregation":{"$ref":"#/components/schemas/common-user-ObjectSpecificPermissionAggregation"},"forWorkflow":{"type":"boolean","default":false,"description":"für Workflows vorgesehen"},"userOptions":{"$ref":"#/components/schemas/common-cunit-QueryPresetUserOptions"}},"required":["forWorkflow","label","mode","permissionAggregation","templateGroupKey","templateId"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"unknownservice-unknownmodule-JsonNode":{"description":"Search-Dialog"},"common-cunit-QueryPresetVariable":{"description":"Die zu ersetzende Variable","properties":{"path":{"type":"string","description":"Der pfad, der dieses Attribut eindeutig beschreibt"},"definition":{"oneOf":[{"$ref":"#/components/schemas/core-cunit-CuAttribute"},{"$ref":"#/components/schemas/core-cunit-CuMeta"}],"readOnly":true},"mandatory":{"type":"boolean","description":"Ob die Variable ein Pflichtfeld ist oder nicht"},"variableName":{"type":"string","description":"Name der Variablen"},"visible":{"type":"boolean","default":true,"description":"Handelt es sich um eine sichtbare Variable?"},"alignX":{"type":"integer","format":"int32","description":"Anordnung im UI - X-Koordinate"},"alignY":{"type":"integer","format":"int32","description":"Anordnung im UI - Y-Koordinate"},"alignWidth":{"type":"integer","format":"int32","description":"Anordnung im UI - Breite"},"searchDialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"allowDialogMultipleChoice":{"type":"boolean","default":false,"description":"Kann eine Mehrfachauswahl erfolgen?"}}},"core-cunit-CuAttribute":{"allOf":[{"$ref":"#/components/schemas/core-cunit-MetaContent"},{"type":"object","properties":{"attribute":{"type":"string","description":"name des attributes der das ergebnis enthält"},"path":{"type":"string","description":"der pfad, der dieses attribut eindeutig beschreibt"},"displayName":{"type":"string","description":"der Name dieses Feldes"},"displayNameOverride":{"type":"boolean","default":false,"description":"der Name dieses Feldes wurde überschrieben (alias oder funktion)"},"groupDisplayName":{"type":"string","description":"der Name der Gruppe, dieses Feldes"},"parentDisplayName":{"type":"string","description":"der Name des Referenzierenden Feldes"},"resultable":{"type":"boolean","default":true,"description":"kann dieses Feld ein Ergebnisfeld sein"},"filterable":{"type":"boolean","default":true,"description":"kann nach diesem feld gefiltert werden"},"sortable":{"type":"boolean","default":true,"description":"ist dieses Feld sortierbar"},"visible":{"type":"boolean","default":true,"description":"soll dieses Feld angezeigt werden"},"functions":{"type":"array","description":"angewendete funktionen (wenn das als Result MetaData verwendet wird)","items":{"type":"string","description":"angewendete funktionen (wenn das als Result MetaData verwendet wird)"}},"sortDirection":{"type":"string","description":"Info, wie diese spalte sortiert worden ist"},"constraint":{"$ref":"#/components/schemas/core-cunit-CuAttributeConstraint"},"dataType":{"$ref":"#/components/schemas/core-cunit-CuAttributeDataType"},"dataTypeIdentifier":{"type":"string","description":"data-type-identifier für dieses Attribut (falls dataType leer ist)","readOnly":true},"modelType":{"type":"string","description":"Attribut gehört zum Modelltyp 'statisch' oder 'dynamisch'","enum":["STATIC","DYNAMIC"],"readOnly":true},"headers":{"type":"array","description":"bei einem gruppierten Header (e.g. CrossTable) werden hier die einzelnen gruppen beschrieben","items":{"$ref":"#/components/schemas/core-cunit-CuAttribute.HeaderGroup"},"readOnly":true}}}]},"core-cunit-MetaContent":{"description":"Definition dieser Variable","discriminator":{"propertyName":"_type"},"oneOf":[{"$ref":"#/components/schemas/core-cunit-CuMeta"},{"$ref":"#/components/schemas/core-cunit-CuAttribute"}],"properties":{"_type":{"type":"string"}},"required":["_type"]},"core-cunit-CuMeta":{"allOf":[{"$ref":"#/components/schemas/core-cunit-MetaContent"},{"type":"object","properties":{"definition":{"$ref":"#/components/schemas/core-cunit-CuAttribute"},"value":{"type":"array","description":"spaltenbeschreibung dieser zelle (bei verschachtelung)","items":{"oneOf":[{"$ref":"#/components/schemas/core-cunit-CuAttribute"},{"$ref":"#/components/schemas/core-cunit-CuMeta"}]}}}},{"type":"object","properties":{"definition":{"$ref":"#/components/schemas/core-cunit-CuAttribute"}}}]},"core-cunit-CuAttributeConstraint":{"description":"constraints für dieses Attribut","properties":{"minLength":{"type":"integer","format":"int32","description":"Minimal-Länge (von Zeichenketten oder Arrays)","readOnly":true},"maxLength":{"type":"integer","format":"int32","description":"Maximal-Länge (von Zeichenketten oder Arrays)","readOnly":true},"minValue":{"type":"integer","format":"int64","description":"minimaler Wert","readOnly":true},"includeMinValue":{"type":"boolean","description":"ist der minimale Wert inklusive?","readOnly":true},"maxValue":{"type":"integer","format":"int64","description":"maximaler Wert","readOnly":true},"includeMaxValue":{"type":"boolean","description":"ist der maximale Wert inklusive?","readOnly":true},"notNull":{"type":"boolean","default":false,"description":"ist der Wert 'null' verboten?","readOnly":true},"notBlank":{"type":"boolean","description":"Bei Strings: ist ein String nur aus Whitespace verboten?","readOnly":true}}},"core-cunit-CuAttributeDataType":{"description":"data-type für dieses Attribut (falls dataTypeIdentifier leer ist)","properties":{"identifier":{"type":"string","description":"Datentyp-identifier","readOnly":true},"jsType":{"type":"string","description":"welcher Typ ist es","readOnly":true},"objectRefIdentifier":{"type":"string","description":"bei Object_Ref: welcher Typ ist es genau","readOnly":true},"filterOptions":{"$ref":"#/components/schemas/core-cunit-CuAttributeFilterOptions"},"functions":{"type":"array","description":"welche Funktionen sind erlaubt?","items":{"type":"string","description":"welche Funktionen sind erlaubt?"},"readOnly":true},"predicateOperations":{"type":"array","description":"welche Operations sind erlaubt?","items":{"type":"string","description":"welche Operations sind erlaubt?","enum":["AND","OR","EQUALS","NOT_EQUALS","LIKE","NOT_LIKE","STARTS_WITH","ENDS_WITH","CONTAINS","NOT_CONTAINS","GREATER_THAN","GREATER_THAN_EQUALS","LESS_THAN","LESS_THAN_EQUALS","IN","NOT_IN","RANGE","NOT_RANGE","IS_NULL","IS_NOT_NULL","IS_NULL_OR_EQUALS","EXISTS","NOT_EXISTS"]},"readOnly":true}}},"core-cunit-CuAttributeFilterOptions":{"description":"CUnit Attribut Filter Optionen","properties":{"filterValues":{"type":"array","description":"Mögliche Filterwerte","items":{"type":"string","description":"Mögliche Filterwerte"}},"filterDialog":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"},"multipleChoice":{"type":"boolean","default":false,"description":"Kann eine Mehrfachauswahl erfolgen?"}}},"core-cunit-CuAttribute.HeaderGroup":{"description":"bei einem gruppierten Header (e.g. CrossTable) werden hier die einzelnen gruppen beschrieben","properties":{"displayName":{"type":"string","description":"der Name dieses Feldes"},"displayNameOverride":{"type":"boolean","default":false,"description":"der Name dieses Feldes wurde überschrieben (alias oder funktion)"},"dataType":{"$ref":"#/components/schemas/core-cunit-CuAttributeDataType"},"dataTypeIdentifier":{"type":"string","description":"data-type-identifier für dieses Attribut (falls dataType leer ist)","readOnly":true},"groupDisplayName":{"type":"string","description":"der Name der Gruppe, dieses Feldes"},"data":{"$ref":"#/components/schemas/unknownservice-unknownmodule-JsonNode"}}},"common-cunit-QueryPresetPredicate":{"description":"Bedingungen zur Selektion von Lagerplätzen","properties":{"type":{"type":"string","description":"die Operation für diesen Filter","enum":["JUNCTION","FILTER"]},"operator":{"type":"string","description":"operator","enum":["AND","OR","EQUALS","NOT_EQUALS","LIKE","NOT_LIKE","STARTS_WITH","ENDS_WITH","CONTAINS","NOT_CONTAINS","GREATER_THAN","GREATER_THAN_EQUALS","LESS_THAN","LESS_THAN_EQUALS","IN","NOT_IN","RANGE","NOT_RANGE","IS_NULL","IS_NOT_NULL","IS_NULL_OR_EQUALS","EXISTS","NOT_EXISTS"]},"children":{"type":"array","description":"(bei junction) child-definitionen","items":{"$ref":"#/components/schemas/common-cunit-QueryPresetPredicate"}},"property":{"type":"string","description":"filter property"},"values":{"type":"array","description":"filter werte","items":{"type":"string","description":"filter werte"}},"visible":{"type":"boolean","default":true,"description":"Sichtbarkeit bei Variablen"},"functions":{"type":"array","description":"Eine SQL-Funktion, die im Predicate angewendet wird","items":{"type":"string","description":"Eine SQL-Funktion, die im Predicate angewendet wird"}}},"required":["operator","type"]},"common-cunit-QueryPresetResult":{"description":"Ergebnisse","properties":{"property":{"type":"string","description":"property"},"displayName":{"type":"string","description":"title dieser spalte"},"functions":{"type":"array","description":"funktionen","items":{"type":"string","description":"funktionen"}},"visible":{"type":"boolean","default":true,"description":"sichtbare Ergebnisspalte"}},"required":["property"]},"common-cunit-QueryPresetSortOrder":{"description":"sort and order anweisungen","properties":{"property":{"type":"string","description":"property"},"functions":{"type":"array","description":"Functions","items":{"type":"string","description":"Functions"}},"direction":{"type":"string","description":"sort order","enum":["ASC","DESC"]}},"required":["direction","property"]},"common-cunit-QueryPresetPageable":{"description":"pageable","properties":{"limit":{"type":"integer","format":"int64","description":"das Limit (MaxRecordCount) für diesen Query"}}},"common-cunit-QueryPresetOption":{"description":"options","properties":{"distinctResult":{"type":"boolean","description":"soll der Query mit einem Distinct durchgeführt werden"}}},"common-cunit-QueryPresetTransformation":{"description":"zusätzliche konfigurationen","properties":{"crossTable":{"$ref":"#/components/schemas/common-cunit-QueryPresetCrossTableTransformation"}}},"common-cunit-QueryPresetCrossTableTransformation":{"description":"enthält die felder, die in einer cross-table für die reihenbildung verantwortlich sind (im grunde -> der group-key)","properties":{"rowSpecs":{"type":"array","description":"enthält die felder, die in einer cross-table für die reihenbildung verantwortlich sind (im grunde -> der group-key)","items":{"$ref":"#/components/schemas/common-cunit-QueryPresetResult"}},"columnSpecs":{"type":"array","description":"enthält die felder, die in der cross-table als dynamische spalten erstellt werden sollen","items":{"$ref":"#/components/schemas/common-cunit-QueryPresetResult"}},"results":{"type":"array","description":"enthält die felder, die pro rowSpec-Kombination je nach Spaltenausprägung ermittelt werden sollen","items":{"$ref":"#/components/schemas/common-cunit-QueryPresetCrossTableTransformation.QueryPresetCrossTableCell"}}},"required":["columnSpecs","results","rowSpecs"]},"common-cunit-QueryPresetCrossTableTransformation.QueryPresetCrossTableCell":{"description":"enthält die felder, die pro rowSpec-Kombination je nach Spaltenausprägung ermittelt werden sollen","properties":{"result":{"$ref":"#/components/schemas/common-cunit-QueryPresetResult"},"cellView":{"type":"string","description":"darstellung der werte","enum":["AS_IS","PERCENT_COL"]},"sumColumn":{"type":"boolean","default":false,"description":"soll eine spaltensumme erzeugt werden"},"rowMode":{"type":"string","description":"soll eine zeilensumme erzeugt werden","enum":["DATA","DATA_AND_TOTAL","TOTAL"]},"aggregateFunction":{"type":"string","description":"die funktion mit der die werte der Zelle aggregiert werden"}}},"common-cunit-ArithmeticQueryTerm":{"description":"Arithmetische Terme - hier kommt die tatsächliche Berechnung rein","properties":{"termName":{"type":"string","description":"Der Name des Terms für die Verarbeitung und Darstellung"},"terms":{"type":"array","description":"Die inneren Terme - entweder Verweise auf Attribute oder weitere Verschachtelungen der Berechnung","items":{"$ref":"#/components/schemas/common-cunit-ArithmeticQueryTermInner"}},"operations":{"type":"array","description":"Die Operationen, die ausgeführt werden sollen mit den Termen","items":{"type":"string","description":"Die Operationen, die ausgeführt werden sollen mit den Termen","enum":["PLUS","MINUS","MULTIPLY","DIVIDE"]}}}},"common-cunit-ArithmeticQueryTermInner":{"description":"Die inneren Terme - entweder Verweise auf Attribute oder weitere Verschachtelungen der Berechnung","properties":{"fragment":{"$ref":"#/components/schemas/common-cunit-ArithmeticQueryTermFragment"},"attribute":{"type":"string","description":"Ein echtes Attribut aus dem Template"},"fixedValue":{"type":"number","description":"Ein Fixwert"}}},"common-cunit-ArithmeticQueryTermFragment":{"description":"Das Termfragment - eine weitere Verschachtelung mit eigenen Operationen","properties":{"operations":{"type":"array","description":"Die Operationen, die ausgeführt werden sollen mit den Termen","items":{"type":"string","description":"Die Operationen, die ausgeführt werden sollen mit den Termen","enum":["PLUS","MINUS","MULTIPLY","DIVIDE"]}}}},"common-user-ObjectSpecificPermissionAggregation":{"description":"alle Nutzer-/Gruppen-Berechtigungen","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"userPermissions":{"type":"array","description":"Nutzer-Berechtigungen","items":{"$ref":"#/components/schemas/common-user-ObjectSpecificUserPermission"}},"groupPermissions":{"type":"array","description":"Gruppen-Berechtigungen","items":{"$ref":"#/components/schemas/common-user-ObjectSpecificGroupPermission"}},"operationForAllUsers":{"type":"string","description":"Zugriffsrechte für alle Nutzer","enum":["READ_ONLY","READ_AND_EDIT"]}}},"common-user-ObjectSpecificUserPermission":{"description":"Nutzer-Berechtigungen","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"userRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"operation":{"type":"string","description":"Berechtigung","enum":["READ_ONLY","READ_AND_EDIT"]}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]},"common-user-ObjectSpecificGroupPermission":{"description":"Gruppen-Berechtigungen","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"groupRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"operation":{"type":"string","description":"Berechtigung","enum":["READ_ONLY","READ_AND_EDIT"]}}},"common-cunit-QueryPresetUserOptions":{"description":"nutzerbezogene Einstellungen","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"pinned":{"type":"boolean","default":false,"description":"angepinnt?"}},"required":["pinned"]}}}}
```

## GET /erp/crm-deals/{refId}/latest-workflow-instance

> Liefert die neuste Workflow-Instanz zu der gegebenen Referenz

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{refId}/latest-workflow-instance":{"get":{"tags":["Deals"],"summary":"Liefert die neuste Workflow-Instanz zu der gegebenen Referenz","operationId":"getLatestWorkflowInstance_6","parameters":[{"name":"refId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Workflow-Instanz gefunden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/common-workflow-WorkflowInstance"}}}},"404":{"description":"Es existiert noch keine Workflow-Instanz","content":{"application/json":{"schema":{"$ref":"#/components/schemas/common-workflow-WorkflowInstance"}}}}}}}},"components":{"schemas":{"common-workflow-WorkflowInstance":{"properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"state":{"type":"string","description":"Status einer Workflow-Instanz","enum":["CREATED","IN_PROCESS","COMPLETED_SUCCESSFULLY","COMPLETED_WITH_FAILURE","ERRONEOUS","ABORTED_CRASHED","ABORTED_MANUALLY","CRASHED","WAITING","INTERRUPTED"]},"workflowRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"workItems":{"type":"array","description":"Schritte des Workflows","items":{"$ref":"#/components/schemas/common-workflow-WorkItem"}},"logEntries":{"type":"array","description":"Logging-Einträge chronologisch sortiert","items":{"$ref":"#/components/schemas/common-workflow-WorkflowInstanceLogLine"}}}},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]},"common-workflow-WorkItem":{"description":"Schritte des Workflows","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"state":{"type":"string","description":"Bearbeitungszustand eines Work-Items","enum":["OPEN","IN_PROCESS","COMPLETED","ERRONEOUS","ABORTED"]},"workflowElementRef":{"type":"integer","format":"int64","description":"Workflow-Element, das abgebildet wird"},"parentWorkItemRef":{"type":"integer","format":"int64","description":"Work-Item im übergeordneten Workflow, wenn es sich um einen Unter-Workflow handelt"},"responsibleUserRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"logEntries":{"type":"array","description":"Logging-Einträge chronologisch sortiert","items":{"$ref":"#/components/schemas/common-workflow-WorkflowInstanceLogLine"}},"splitResult":{"type":"string","description":"Für Split-Gateways: mit welchem Ergebnis wurde dieses Work-Item ausgeführt"}}},"common-workflow-WorkflowInstanceLogLine":{"description":"Logging-Einträge chronologisch sortiert","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"workflowInstanceId":{"type":"integer","format":"int64","description":"ID der Workflow-Instanz"},"workItemId":{"type":"integer","format":"int64","description":"ID des Work-Items"},"logTime":{"type":"string","format":"date-time","description":"Zeitstempel"},"origin":{"type":"string","description":"Wodurch wurde dieser Eintrag ausgelöst","enum":["DEBUG","INFO","WARNING","ERROR","CONSOLE","STACKTRACE"]},"message":{"type":"string","description":"Nachricht"},"messageKey":{"type":"string","description":"I18n-Key"},"propertyPath":{"type":"string","description":"Pfad"},"messageParameter":{"type":"object","additionalProperties":{"type":"object","description":"Parameter für die I18n-Nachricht"},"description":"Parameter für die I18n-Nachricht"}}}}}}
```

## GET /erp/crm-deals/{id}/subscription

> Liefert alle Subscription auf dem Geschäftsobjekt

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/subscription":{"get":{"tags":["Deals"],"summary":"Liefert alle Subscription auf dem Geschäftsobjekt","operationId":"getSubscriber","parameters":[{"name":"id","in":"path","description":"an identifier","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/core-api-ApiObjectReference"}}}}}}}}},"components":{"schemas":{"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]}}}}
```

## GET /erp/crm-deals/{id}/reminders

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/{id}/reminders":{"get":{"tags":["Deals"],"operationId":"getReminders_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/erp-crm-CrmReminder"}}}}}}}}},"components":{"schemas":{"erp-crm-CrmReminder":{"description":"CRM Erinnerungen","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"crmId":{"type":"integer","format":"int64","description":"ID des CRM Objekts"},"userRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"remindAt":{"type":"string","format":"date-time","description":"Erinnerungszeitpunkt"},"note":{"type":"string","description":"Notiz zur Erinnerung"},"critical":{"type":"boolean","description":"Kritische Erinnerung?"}},"required":["crmId","remindAt","userRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]}}}}
```

## GET /erp/crm-deals/reminders

>

```json
{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"2026.14.3"},"tags":[{"name":"Deals","description":"CRM Deals"}],"servers":[{"url":"http://localhost:52177/api","description":"Generated server url"}],"paths":{"/erp/crm-deals/reminders":{"get":{"tags":["Deals"],"operationId":"getAllReminders_2","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/erp-crm-CrmReminder"}}}}}}}}},"components":{"schemas":{"erp-crm-CrmReminder":{"description":"CRM Erinnerungen","properties":{"version":{"type":"string","description":"Version Identifier for this Object (for PUT)"},"info":{"$ref":"#/components/schemas/core-api-MetaInfo"},"id":{"type":"string","description":"Unique identifier of the Object"},"crmId":{"type":"integer","format":"int64","description":"ID des CRM Objekts"},"userRef":{"$ref":"#/components/schemas/core-api-ApiObjectReference"},"remindAt":{"type":"string","format":"date-time","description":"Erinnerungszeitpunkt"},"note":{"type":"string","description":"Notiz zur Erinnerung"},"critical":{"type":"boolean","description":"Kritische Erinnerung?"}},"required":["crmId","remindAt","userRef"]},"core-api-MetaInfo":{"description":"MetaInformations for this Object","properties":{"createdAt":{"type":"string","format":"date-time","description":"Created At Timestamp","readOnly":true},"createdFrom":{"type":"string","description":"TenantUser-Identifier of the creator","readOnly":true},"updatedAt":{"type":"string","format":"date-time","description":"Last Updated AT Timestamp","readOnly":true},"updatedFrom":{"type":"string","description":"TenantUser-Identifier of most recent updater","readOnly":true}}},"core-api-ApiObjectReference":{"description":"Related account","properties":{"id":{"type":"string","description":"Identifier"},"label":{"type":"string","description":"a label","readOnly":true},"description":{"type":"string","description":"a short description","readOnly":true},"active":{"type":"boolean","description":"Activ","readOnly":true}},"required":["id"]}}}}
```
