{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://dev-admin.licitaciones.es","description":"Generated server url"}],"tags":[{"name":"Home","description":"serve main/info HTML page"},{"name":"PortalContextApi","description":"Admin portal tenant and translations resolved from the request domain"},{"name":"RulesetsApi","description":"Read-only access to NRS rulesets (view only, no create/edit/delete)"},{"name":"CustomerCrmReferenceDataApi","description":"CRM dropdown values"},{"name":"AuthApi","description":"Api for authentication"},{"name":"ContractorLeadImportsApi","description":"Import OrgDB contractors into CRM as prospective leads"},{"name":"NotificationsApi","description":"NRS notifications: read access plus relation-field corrections"},{"name":"CustomerCrmApi","description":"Customer CRM page"}],"paths":{"/api/crm/customers/{customerId}/result-mails/schedules":{"put":{"tags":["CustomerCrmApi"],"summary":"Save the result-mail delivery schedules","operationId":"updateMailSchedules","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMailScheduleUpdateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmResultMailsApiDto"}}}}}}},"/api/crm/customers/{customerId}/result-mails/alerts/{alertId}":{"put":{"tags":["CustomerCrmApi"],"summary":"Update a result-mail alert","operationId":"updateEmailAlert","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"alertId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailAlertUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailAlertApiDto"}}}}}},"delete":{"tags":["CustomerCrmApi"],"summary":"Delete a result-mail alert","operationId":"deleteEmailAlert","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"alertId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/crm/customers/{customerId}/contacts/{contactId}":{"put":{"tags":["CustomerCrmApi"],"summary":"Update a contact person","operationId":"updateContact","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContactUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContactApiDto"}}}}}},"delete":{"tags":["CustomerCrmApi"],"summary":"Remove a contact person","operationId":"deleteContact","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/contractor-lead-imports/configuration":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"Get Contractor Imports round-robin and duplicate-domain configuration","operationId":"getConfiguration","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractorImportConfigurationApiDto"}}}}}},"put":{"tags":["ContractorLeadImportsApi"],"summary":"Update Contractor Imports round-robin and duplicate-domain configuration","operationId":"updateConfiguration","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractorImportConfigurationApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractorImportConfigurationApiDto"}}}}}}},"/api/notifications/{uuid}/ruleset-fields":{"post":{"tags":["NotificationsApi"],"summary":"Correct the relation-driving fields (referenceNumber, authorityReference) of the tender behind this notification. Proxied to NRS, which routes it through Ariadne to Apollo. Apollo persists synchronously; the notification's re-grouping is asynchronous (pending=true) - the relation will not appear immediately.","operationId":"updateRulesetFields","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulesetFieldEditDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulesetFieldEditResultDto"}}}}}}},"/api/manager/verify-manager-access/{token}":{"post":{"tags":["AuthApi"],"summary":"Verify manager access","operationId":"verifyManagerAccess","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/manager/logout":{"post":{"tags":["AuthApi"],"summary":"Logout","operationId":"logout","responses":{"200":{"description":"OK"}}}},"/api/manager/login":{"post":{"tags":["AuthApi"],"summary":"Login","operationId":"login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagerLoginRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/crm/customers/{customerId}/result-mails/alerts":{"post":{"tags":["CustomerCrmApi"],"summary":"Add a result-mail alert","operationId":"createEmailAlert","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailAlertUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailAlertApiDto"}}}}}}},"/api/crm/customers/{customerId}/products":{"get":{"tags":["CustomerCrmApi"],"summary":"Products offered by the Change Product action","operationId":"getProductCatalogue","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmProductCatalogueApiDto"}}}}}},"post":{"tags":["CustomerCrmApi"],"summary":"Assign a product to a customer","description":"The Admin Portal's in-app replacement for the legacy \"Change product\" hand-off (TSD-7066): creates the customer product directly in its operative status and expires whatever ACTIVE/TEST product the customer currently holds.","operationId":"assignProduct","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmAssignProductApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCustomerProductApiDto"}}}}}}},"/api/crm/customers/{customerId}/password-reset-link":{"post":{"tags":["CustomerCrmApi"],"summary":"Issue a fresh password reset link","operationId":"regeneratePasswordResetLink","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetaInformationApiDto"}}}}}}},"/api/crm/customers/{customerId}/impersonation":{"post":{"tags":["CustomerCrmApi"],"summary":"Open an impersonation session as TS2 or TS4","operationId":"impersonate","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"userType","in":"query","required":true,"schema":{"pattern":"TS2|TS4","type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmImpersonationApiDto"}}}}}}},"/api/crm/customers/{customerId}/email/send":{"post":{"tags":["CustomerCrmApi"],"summary":"Send an email to the customer","operationId":"sendEmail","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailSendApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailHistoryEntryApiDto"}}}}}}},"/api/crm/customers/{customerId}/email/preview":{"post":{"tags":["CustomerCrmApi"],"summary":"Resolve placeholders without sending","operationId":"previewEmail","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailSendApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailPreviewApiDto"}}}}}}},"/api/crm/customers/{customerId}/doi":{"post":{"tags":["CustomerCrmApi"],"summary":"Send the DOI email to the customer","operationId":"sendCustomerDoi","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmDoiResultApiDto"}}}}}}},"/api/crm/customers/{customerId}/contacts":{"get":{"tags":["CustomerCrmApi"],"summary":"Contacts tab","operationId":"getContacts","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmContactApiDto"}}}}}}},"post":{"tags":["CustomerCrmApi"],"summary":"Add a contact person","operationId":"createContact","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContactUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContactApiDto"}}}}}}},"/api/crm/customers/{customerId}/contacts/{contactId}/doi":{"post":{"tags":["CustomerCrmApi"],"summary":"Send the DOI email to a contact","operationId":"sendContactDoi","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmDoiResultApiDto"}}}}}}},"/api/contractor-lead-imports/previews":{"post":{"tags":["ContractorLeadImportsApi"],"summary":"Map selected contractors and detect CRM duplicates","operationId":"preview","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportPreviewRequestApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportPreviewApiDto"}}}}}}},"/api/contractor-lead-imports/complete":{"post":{"tags":["ContractorLeadImportsApi"],"summary":"Create, update, or skip the reviewed prospective leads","operationId":"complete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteImportRequestApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSummaryApiDto"}}}}}}},"/api/crm/customers/{customerId}/qualification":{"get":{"tags":["CustomerCrmApi"],"summary":"Qualification tab","operationId":"getQualification","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmQualificationApiDto"}}}}}},"patch":{"tags":["CustomerCrmApi"],"summary":"Apply a Qualification patch","operationId":"patchQualification","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmQualificationPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmQualificationApiDto"}}}}}}},"/api/crm/customers/{customerId}/overview":{"get":{"tags":["CustomerCrmApi"],"summary":"Overview tab","operationId":"getOverview","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOverviewApiDto"}}}}}},"patch":{"tags":["CustomerCrmApi"],"summary":"Apply an Overview tab patch","operationId":"patchOverview","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOverviewPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOverviewApiDto"}}}}}}},"/api/crm/customers/{customerId}/meta":{"get":{"tags":["CustomerCrmApi"],"summary":"More Information tab","operationId":"getMetaInformation","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetaInformationApiDto"}}}}}},"patch":{"tags":["CustomerCrmApi"],"summary":"Apply a More Information patch","operationId":"patchMetaInformation","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetaInformationPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetaInformationApiDto"}}}}}}},"/api/crm/customers/{customerId}/company":{"get":{"tags":["CustomerCrmApi"],"summary":"Company tab","operationId":"getCompany","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCompanyApiDto"}}}}}},"patch":{"tags":["CustomerCrmApi"],"summary":"Apply a Company tab patch","operationId":"patchCompany","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCompanyPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCompanyApiDto"}}}}}}},"/api/rulesets":{"get":{"tags":["RulesetsApi"],"summary":"List rulesets, filtered by active state","operationId":"list","parameters":[{"name":"active","in":"query","required":false,"schema":{"type":"string","default":"ACTIVE","enum":["ACTIVE","INACTIVE","ALL"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RulesetDto"}}}}}}}},"/api/rulesets/{id}":{"get":{"tags":["RulesetsApi"],"summary":"Ruleset details","operationId":"get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulesetDto"}}}}}}},"/api/rulesets/config-fields":{"get":{"tags":["RulesetsApi"],"summary":"List config fields (used to resolve ruleset property names)","operationId":"listConfigFields","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConfigFieldDto"}}}}}}}},"/api/portal-context":{"get":{"tags":["PortalContextApi"],"summary":"Get the portal resolved from portal.admin_url","operationId":"getPortalContext","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPortalContextApiDto"}}}}}}},"/api/portal-context/i18n/{language}":{"get":{"tags":["PortalContextApi"],"summary":"Get translations for the current portal and language","operationId":"getTranslations","parameters":[{"name":"language","in":"path","required":true,"schema":{"pattern":"[A-Za-z]{2,8}([_-][A-Za-z]{2,8})?","type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/api/notifications":{"get":{"tags":["NotificationsApi"],"summary":"List notifications","operationId":"listNotifications","parameters":[{"name":"page","in":"query","description":"Zero-based page index.","required":false,"schema":{"minimum":0,"type":"integer","description":"Zero-based page index.","format":"int32","default":0}},{"name":"size","in":"query","description":"Page size.","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","description":"Page size.","format":"int32","default":20}},{"name":"id","in":"query","description":"Filter: exact numeric id.","required":false,"schema":{"type":"integer","description":"Filter: exact numeric id.","format":"int64"}},{"name":"uuid","in":"query","description":"Filter: exact uuid.","required":false,"schema":{"type":"string","description":"Filter: exact uuid."}},{"name":"relationCount","in":"query","description":"Filter: exact relationCount.","required":false,"schema":{"type":"integer","description":"Filter: exact relationCount.","format":"int64"}},{"name":"groupId","in":"query","description":"Filter: exact group id.","required":false,"schema":{"type":"string","description":"Filter: exact group id."}},{"name":"dataSource","in":"query","description":"Filter: exact dataSource.","required":false,"schema":{"type":"string","description":"Filter: exact dataSource."}},{"name":"country","in":"query","description":"Filter: country code.","required":false,"schema":{"type":"string","description":"Filter: country code."}},{"name":"referenceNumber","in":"query","description":"Filter: referenceNumber.","required":false,"schema":{"type":"string","description":"Filter: referenceNumber."}},{"name":"authorityReference","in":"query","description":"Filter: authorityReference.","required":false,"schema":{"type":"string","description":"Filter: authorityReference."}},{"name":"sortField","in":"query","description":"Sort field.","required":false,"schema":{"type":"string","description":"Sort field."}},{"name":"sortDir","in":"query","description":"Sort direction.","required":false,"schema":{"type":"string","description":"Sort direction.","enum":["asc","desc"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationsPageDto"}}}}}}},"/api/notifications/{uuid}":{"get":{"tags":["NotificationsApi"],"summary":"Notification details","operationId":"notificationDetails","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationDetailsDto"}}}}}}},"/api/notifications/{uuid}/similar":{"get":{"tags":["NotificationsApi"],"summary":"Similar notifications (suggestions)","operationId":"getSimilar","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"maximum":20,"minimum":1,"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SimilarNotificationDto"}}}}}}}},"/api/notifications/{uuid}/relations":{"get":{"tags":["NotificationsApi"],"summary":"Related notifications (same group)","operationId":"getRelations","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelatedNotificationsPageDto"}}}}}}},"/api/manager/current-user":{"get":{"tags":["AuthApi"],"summary":"Get the currently authenticated manager","operationId":"getCurrentUser","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentManagerResponse"}}}}}}},"/api/crm/reference-data":{"get":{"tags":["CustomerCrmReferenceDataApi"],"summary":"Dropdown values for the CRM tabs","operationId":"getReferenceData","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmReferenceDataApiDto"}}}}}}},"/api/crm/customers":{"get":{"tags":["CustomerCrmApi"],"summary":"Browse every customer on the portal, optionally filtered by a search term","description":"The CRM landing page's default view: paginated, sortable, scoped to the acting portal. An optional search term is matched against id, uuid, email, first/last name, company name and phone number. Status and manager narrow the result further, mirroring ariadne's grid filters.","operationId":"listCustomers","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"managerId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":25}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCustomerListPageApiDto"}}}}}}},"/api/crm/customers/{customerId}/search-profiles":{"get":{"tags":["CustomerCrmApi"],"summary":"Search Profiles tab","operationId":"getSearchProfiles","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSearchProfilesApiDto"}}}}}}},"/api/crm/customers/{customerId}/result-mails":{"get":{"tags":["CustomerCrmApi"],"summary":"Result Mails tab","operationId":"getResultMails","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmResultMailsApiDto"}}}}}}},"/api/crm/customers/{customerId}/header":{"get":{"tags":["CustomerCrmApi"],"summary":"Header bar: identity, status, product and DOI state","operationId":"getHeader","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCustomerHeaderApiDto"}}}}}}},"/api/crm/customers/{customerId}/email/compose":{"get":{"tags":["CustomerCrmApi"],"summary":"Email tab form data","operationId":"getEmailCompose","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailComposeApiDto"}}}}}}},"/api/crm/customers/{customerId}/email-history":{"get":{"tags":["CustomerCrmApi"],"summary":"Email History tab","operationId":"getEmailHistory","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":200,"minimum":1,"type":"integer","format":"int32","default":25}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailHistoryPageApiDto"}}}}}}},"/api/crm/customers/{customerId}/email-history/{emailId}":{"get":{"tags":["CustomerCrmApi"],"summary":"One archived email, read-only","operationId":"getEmailMessage","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"emailId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"source","in":"query","required":false,"schema":{"pattern":"CRM|RESULT_MAIL","type":"string","default":"CRM"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailMessageApiDto"}}}}}}},"/api/crm/customers/{customerId}/consent-logs":{"get":{"tags":["CustomerCrmApi"],"summary":"Consent change history","operationId":"getConsentLogs","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmConsentLogEntryApiDto"}}}}}}}},"/api/crm/customers/{customerId}/changelog":{"get":{"tags":["CustomerCrmApi"],"summary":"View Changelog tab","operationId":"getChangelog","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":200,"minimum":1,"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmChangeLogPageApiDto"}}}}}}},"/api/crm/customers/{customerId}/behavior":{"get":{"tags":["CustomerCrmApi"],"summary":"Behavior tab","operationId":"getBehavior","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmBehaviorApiDto"}}}}}}},"/api/crm/customers/status-counts":{"get":{"tags":["CustomerCrmApi"],"summary":"Customer counts per status, for the CRM quicklinks","description":"Mirrors ariadne's sidebar badges (CustomerService.crmGroupsCounter): one count per customerStatus reference-data value plus the portal total, scoped to the acting portal. Backed by a short-lived cache - see the implementation - so a manager paging through the CRM list does not re-trigger the underlying per-status counts on every page load.","operationId":"getStatusCounts","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmStatusCountsApiDto"}}}}}}},"/api/crm/customers/portals":{"get":{"tags":["CustomerCrmApi"],"summary":"Every portal a manager can switch the CRM area to","description":"Backs the portal switcher: pick one of these ids and send it as X-Crm-Portal-Id on subsequent CRM calls to browse that portal's customers instead.","operationId":"listPortals","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmPortalOptionApiDto"}}}}}}}},"/api/crm/customers/lookup":{"get":{"tags":["CustomerCrmApi"],"summary":"Find a customer by id, uuid, email address or phone number","description":"Indexed lookups only - see the downstream contract for why free-text name search is not offered here.","operationId":"lookupCustomers","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmCustomerSearchResultApiDto"}}}}}}}},"/api/crm/customers/export":{"get":{"tags":["CustomerCrmApi"],"summary":"Every customer matching the current filter, as CSV","description":"Same filter as listCustomers, uncapped by the grid's page size but capped at 5000 rows so an export cannot become an accidental full-table dump.","operationId":"exportCustomers","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"managerId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"200":{"description":"OK","content":{"text/csv":{"schema":{"type":"string","format":"byte"}}}}}}},"/api/contractor-lead-imports/{importId}/report":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"Download the completed import report","operationId":"downloadReport","parameters":[{"name":"importId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"text/csv":{"schema":{"type":"string","format":"byte"}}}}}}},"/api/contractor-lead-imports/summaries/{importId}":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"Reload the summary of a completed import","operationId":"getSummary","parameters":[{"name":"importId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSummaryApiDto"}}}}}}},"/api/contractor-lead-imports/previews/{importId}":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"Reload an active import preview","operationId":"getPreview","parameters":[{"name":"importId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportPreviewApiDto"}}}}}}},"/api/contractor-lead-imports/managers":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"List managers eligible for contractor import assignment","operationId":"listManagers","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ManagerOptionApiDto"}}}}}}}},"/api/contractor-lead-imports/contractors":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"Search the OrgDB contractor database","operationId":"searchContractors","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":25}},{"name":"registrationNumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"city","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractorPageApiDto"}}}}}}},"/":{"get":{"tags":["Home"],"operationId":"indexHTML","responses":{"200":{"description":"OK","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/crm/customers/{customerId}/search-profiles/{profileId}":{"delete":{"tags":["CustomerCrmApi"],"summary":"Mark a search profile deleted","operationId":"deleteSearchProfile","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"profileId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}}},"components":{"schemas":{"CrmMailScheduleUpdateApiDto":{"type":"object","properties":{"srMailRunTimeIds":{"type":"array","items":{"type":"integer","format":"int64"}},"upcomingTenderRunTimeIds":{"type":"array","items":{"type":"integer","format":"int64"}}}},"CrmEmailAlertApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"searchProfiles":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailAlertProfileApiDto"}},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailRecipientApiDto"}},"shortDeadlineTenderEnabled":{"type":"boolean"}}},"CrmEmailAlertProfileApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}}},"CrmEmailRecipientApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"salutationId":{"type":"integer","format":"int64"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"}}},"CrmMailScheduleApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"weekDays":{"type":"array","items":{"type":"string"}},"repeatEvery":{"type":"string"},"runTimes":{"type":"array","items":{"$ref":"#/components/schemas/CrmMailScheduleRunTimeApiDto"}}}},"CrmMailScheduleRunTimeApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"time":{"type":"string"},"selected":{"type":"boolean"}}},"CrmOptionApiDto":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}}},"CrmResultMailsApiDto":{"type":"object","properties":{"alerts":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailAlertApiDto"}},"srMailSchedules":{"type":"array","items":{"$ref":"#/components/schemas/CrmMailScheduleApiDto"}},"upcomingTenderSchedules":{"type":"array","items":{"$ref":"#/components/schemas/CrmMailScheduleApiDto"}},"upcomingTenderApplicable":{"type":"boolean"},"availableSearchProfiles":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailAlertProfileApiDto"}},"salutations":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}}}},"CrmEmailAlertUpsertApiDto":{"required":["name","recipients","searchProfileIds"],"type":"object","properties":{"name":{"maxLength":255,"minLength":0,"type":"string"},"searchProfileIds":{"minItems":1,"type":"array","items":{"type":"integer","format":"int64"}},"recipients":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/CrmEmailRecipientInputApiDto"}},"shortDeadlineTenderEnabled":{"type":"boolean"}}},"CrmEmailRecipientInputApiDto":{"required":["email"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"salutationId":{"type":"integer","format":"int64"},"firstName":{"maxLength":100,"minLength":0,"type":"string"},"lastName":{"maxLength":100,"minLength":0,"type":"string"},"email":{"maxLength":255,"minLength":0,"type":"string","format":"email"}}},"CrmContactUpsertApiDto":{"required":["email","lastName"],"type":"object","properties":{"active":{"type":"boolean"},"salutationId":{"type":"integer","format":"int64"},"firstName":{"maxLength":255,"minLength":0,"type":"string"},"lastName":{"maxLength":255,"minLength":0,"type":"string"},"position":{"maxLength":255,"minLength":0,"type":"string"},"email":{"maxLength":255,"minLength":6,"type":"string","format":"email"},"phoneNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberInputApiDto"}},"mobileNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberInputApiDto"}},"notes":{"maxLength":4000,"minLength":0,"type":"string"}}},"CrmPhoneNumberInputApiDto":{"required":["number"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"number":{"maxLength":64,"minLength":0,"type":"string"},"label":{"maxLength":64,"minLength":0,"type":"string"}}},"CrmContactApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"active":{"type":"boolean"},"salutation":{"type":"string"},"salutationId":{"type":"integer","format":"int64"},"firstName":{"type":"string"},"lastName":{"type":"string"},"position":{"type":"string"},"email":{"type":"string"},"phoneNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberApiDto"}},"notes":{"type":"string"},"doubleOptInLink":{"type":"string"},"dateDoiSent":{"type":"string","format":"date-time"},"doubleOptInDate":{"type":"string","format":"date-time"},"dateCreated":{"type":"string","format":"date-time"}}},"CrmPhoneNumberApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"field":{"type":"string"},"number":{"type":"string"},"label":{"type":"string"},"position":{"type":"integer","format":"int32"}}},"ContractorImportConfigurationApiDto":{"required":["portalId"],"type":"object","properties":{"portalId":{"minLength":1,"type":"string"},"eligibleManagerIds":{"type":"array","items":{"type":"integer","format":"int64"}},"excludedEmailDomains":{"type":"array","items":{"type":"string"}},"fallbackAssignment":{"type":"string","enum":["UNASSIGNED"]}}},"RulesetFieldEditDto":{"type":"object","properties":{"referenceNumber":{"type":"string","description":"New tender reference number.","example":"2019/S 024-053041"},"authorityReference":{"type":"string","description":"New contracting-authority reference.","example":"AB-123/2026"},"editedByManagerId":{"type":"integer","description":"Id of the admin making the change; recorded in Apollo's tender history.","format":"int32"}},"description":"Relation-driving field values to set on the tender behind a notification, so it can hash into the same relation group as another tender. Send only the fields being changed; a blank / omitted value leaves that field untouched."},"RulesetFieldEditResultDto":{"type":"object","properties":{"tenderId":{"type":"integer","description":"Apollo's numeric id of the updated tender, when reported.","format":"int64"},"updatedFields":{"type":"array","description":"Names of the fields that were changed.","items":{"type":"string","description":"Names of the fields that were changed."}},"pending":{"type":"boolean","description":"Always true - re-indexing and re-grouping happen asynchronously after this call."}},"description":"Outcome of a ruleset-field edit. Apollo persisted the change; the notification's re-grouping is asynchronous, so pending is always true - the relation will not appear immediately."},"ManagerLoginRequest":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"portalId":{"type":"string"}}},"CrmAssignProductApiDto":{"required":["customerProductType","productId","startDate"],"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"customerProductType":{"pattern":"PAID|TEST","type":"string"},"startDate":{"type":"string","format":"date"},"pricePerPeriodId":{"type":"integer","format":"int64"},"bankAccount":{"$ref":"#/components/schemas/CrmBankAccountApiDto"},"automaticallyRenew":{"type":"boolean"}}},"CrmBankAccountApiDto":{"type":"object","properties":{"accountHolder":{"type":"string"},"accountNumber":{"type":"string"},"bankIdentificationCode":{"type":"string"},"bankName":{"type":"string"}}},"CrmCustomerProductApiDto":{"type":"object","properties":{"customerProductId":{"type":"integer","format":"int64"},"productId":{"type":"integer","format":"int64"},"productName":{"type":"string"},"productType":{"type":"string"},"status":{"type":"string"},"addOn":{"type":"boolean"}}},"CrmFeatureTogglesApiDto":{"type":"object","properties":{"enableTenderXlsExport":{"type":"string"},"allowCspUpdate":{"type":"boolean"},"isSectorDetailPageEnabled":{"type":"string"},"isAuthoritiesContractorsDefaultSearchEnabled":{"type":"string"},"isRegionDetailPageEnabled":{"type":"string"},"enableContractEndDate":{"type":"string"},"enableAdvancedSearch":{"type":"string"},"enableTenderAnalyzer":{"type":"string"},"enableTendersSearch":{"type":"string"}}},"CrmFeatureTogglesEffectiveApiDto":{"type":"object","properties":{"tenderXlsExport":{"type":"boolean"},"cspUpdate":{"type":"boolean"},"sectorDetailPage":{"type":"boolean"},"authoritiesContractorsDefaultSearch":{"type":"boolean"},"regionDetailPage":{"type":"boolean"},"contractEndDate":{"type":"boolean"},"advancedSearch":{"type":"boolean"},"tenderAnalyzer":{"type":"boolean"},"tendersSearch":{"type":"boolean"}}},"CrmMetaInformationApiDto":{"type":"object","properties":{"languageId":{"type":"string"},"doubleOptInId":{"type":"string"},"website":{"type":"string"},"landingPageId":{"type":"string"},"leadSourceUrl":{"type":"string"},"sourceApplication":{"type":"string"},"leadSource":{"type":"string"},"sourceOfInformation":{"type":"string"},"termsAndConditionsAccepted":{"type":"boolean"},"termsAndConditionsAcceptedDate":{"type":"string","format":"date-time"},"passwordResetLink":{"type":"string"},"peopleInvited":{"type":"integer","format":"int64"},"peopleInvitedAndRegistered":{"type":"integer","format":"int64"},"ipAddressRegistration":{"type":"string"},"dateDoiSent":{"type":"string","format":"date-time"},"dateDoiUsed":{"type":"string","format":"date-time"},"nextPlannedCall":{"type":"string","format":"date-time"},"lastHeldCall":{"type":"string","format":"date-time"},"maxNumberTenderDailyExport":{"type":"integer","format":"int32"},"latestPromoLink":{"type":"string"},"offerPaymentLink":{"type":"string"},"limitedResultMailPaymentLink":{"type":"string"},"resultEmailRecipients":{"type":"array","items":{"type":"string"}},"featureToggles":{"$ref":"#/components/schemas/CrmFeatureTogglesApiDto"},"effectiveFeatureToggles":{"$ref":"#/components/schemas/CrmFeatureTogglesEffectiveApiDto"},"enableSearchResultRecipientsEdit":{"type":"string"}}},"CrmImpersonationApiDto":{"type":"object","properties":{"url":{"type":"string"},"userType":{"type":"string"}}},"CrmEmailAttachmentApiDto":{"required":["contentBase64","fileName"],"type":"object","properties":{"fileName":{"maxLength":255,"minLength":0,"type":"string"},"contentType":{"maxLength":255,"minLength":0,"type":"string"},"contentBase64":{"maxLength":16777216,"minLength":0,"type":"string"}}},"CrmEmailSendApiDto":{"required":["body","recipients","sender","subject"],"type":"object","properties":{"recipients":{"maxItems":50,"minItems":0,"type":"array","items":{"maxLength":255,"minLength":0,"type":"string","format":"email"}},"cc":{"maxItems":50,"minItems":0,"type":"array","items":{"maxLength":255,"minLength":0,"type":"string","format":"email"}},"sender":{"maxLength":255,"minLength":0,"type":"string","format":"email"},"subject":{"maxLength":500,"minLength":0,"type":"string"},"body":{"maxLength":1000000,"minLength":0,"type":"string"},"html":{"type":"boolean"},"templateId":{"type":"integer","format":"int64"},"attachments":{"maxItems":10,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/CrmEmailAttachmentApiDto"}},"attachmentPayloadWithinLimit":{"type":"boolean"}}},"CrmEmailHistoryEntryApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"source":{"type":"string"},"date":{"type":"string","format":"date-time"},"subject":{"type":"string"},"sender":{"type":"string"},"recipient":{"type":"string"},"direction":{"type":"string"},"status":{"type":"string"}}},"CrmEmailPreviewApiDto":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"},"html":{"type":"boolean"}}},"CrmDoiResultApiDto":{"type":"object","properties":{"sent":{"type":"boolean"},"dateDoiSent":{"type":"string","format":"date-time"},"doubleOptInLink":{"type":"string"},"message":{"type":"string"}}},"ImportPreviewRequestApiDto":{"required":["contractorIds"],"type":"object","properties":{"contractorIds":{"minItems":1,"type":"array","items":{"type":"integer","format":"int64"}}}},"ContractorContactApiDto":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"mainContact":{"type":"boolean"},"active":{"type":"boolean"},"addAsRecipient":{"type":"boolean"}}},"DuplicateMatchApiDto":{"type":"object","properties":{"type":{"type":"string","enum":["VAT_UID","REGISTRATION_NUMBER","TAX_NUMBER","EXACT_EMAIL","EMAIL_DOMAIN","COMPANY_NAME"]},"existingCustomerId":{"type":"integer","format":"int64"},"existingCustomerName":{"type":"string"},"existingCustomerEmail":{"type":"string"},"matchedValue":{"type":"string"},"score":{"type":"number","format":"double"}}},"ImportPreviewApiDto":{"type":"object","properties":{"importId":{"type":"string","format":"uuid"},"portalId":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ImportPreviewItemApiDto"}},"cleanCount":{"type":"integer","format":"int32"},"conflictCount":{"type":"integer","format":"int32"},"hardBlockedCount":{"type":"integer","format":"int32"}}},"ImportPreviewItemApiDto":{"type":"object","properties":{"candidate":{"$ref":"#/components/schemas/LeadCandidateApiDto"},"classification":{"type":"string","enum":["CLEAN","CONFLICT","HARD_BLOCKED"]},"duplicateMatches":{"type":"array","items":{"$ref":"#/components/schemas/DuplicateMatchApiDto"}}}},"LeadCandidateApiDto":{"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"companyName":{"type":"string"},"vatUid":{"type":"string"},"registrationNumber":{"type":"string"},"taxNumber":{"type":"string"},"street":{"type":"string"},"city":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"url":{"type":"string"},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/ContractorContactApiDto"}},"status":{"type":"string"},"service":{"type":"string"},"creationSource":{"type":"string"}}},"CompleteImportRequestApiDto":{"required":["importId"],"type":"object","properties":{"importId":{"type":"string","format":"uuid"},"decisions":{"type":"array","items":{"$ref":"#/components/schemas/ConflictDecisionApiDto"}}}},"ConflictDecisionApiDto":{"required":["action","orgDbId"],"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"action":{"type":"string","enum":["CREATE_NEW","UPDATE_EXISTING","SKIP"]},"existingCustomerId":{"type":"integer","format":"int64"},"replacementEmail":{"type":"string","format":"email"}}},"ImportOutcomeApiDto":{"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"companyName":{"type":"string"},"action":{"type":"string","enum":["CREATE_NEW","UPDATE_EXISTING","SKIP"]},"result":{"type":"string","enum":["CREATED","UPDATED","SKIPPED","FAILED"]},"customerId":{"type":"integer","format":"int64"},"assignedManagerId":{"type":"integer","format":"int64"},"message":{"type":"string"},"failureReason":{"type":"string","enum":["DUPLICATE_EMAIL_IN_SELECTION"]}}},"ImportSummaryApiDto":{"type":"object","properties":{"importId":{"type":"string","format":"uuid"},"completedAt":{"type":"string","format":"date-time"},"processed":{"type":"integer","format":"int32"},"created":{"type":"integer","format":"int32"},"updated":{"type":"integer","format":"int32"},"skipped":{"type":"integer","format":"int32"},"failed":{"type":"integer","format":"int32"},"conflictsResolved":{"type":"integer","format":"int32"},"outcomes":{"type":"array","items":{"$ref":"#/components/schemas/ImportOutcomeApiDto"}}}},"CrmQualificationPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"motivationGoal":{"type":"string"},"tenderExperience":{"type":"boolean"},"priceSensitivity":{"type":"boolean"},"noBuyingReason":{"type":"string"},"noBuyingReasonText":{"maxLength":1000,"minLength":0,"type":"string"},"cancellationReason":{"type":"string"},"cancellationReasonText":{"maxLength":1000,"minLength":0,"type":"string"},"competitorRenewalDate":{"type":"string","format":"date"},"competitorLastNotificationDate":{"type":"string","format":"date"},"decisionMakerUser":{"type":"string"},"noAutomaticEmail":{"type":"boolean"},"wordOfMouth":{"type":"boolean"},"description":{"maxLength":4000,"minLength":0,"type":"string"},"purchasingFactors":{"type":"array","items":{"type":"string"}},"companySize":{"type":"string"},"salesProbability":{"type":"string"},"businessType":{"type":"string"}}},"CrmQualificationApiDto":{"type":"object","properties":{"motivationGoal":{"type":"string"},"tenderExperience":{"type":"boolean"},"priceSensitivity":{"type":"boolean"},"noBuyingReason":{"type":"string"},"noBuyingReasonText":{"type":"string"},"cancellationReason":{"type":"string"},"cancellationReasonText":{"type":"string"},"competitorRenewalDate":{"type":"string","format":"date"},"competitorLastNotificationDate":{"type":"string","format":"date"},"decisionMakerUser":{"type":"string"},"noAutomaticEmail":{"type":"boolean"},"wordOfMouth":{"type":"boolean"},"description":{"type":"string"},"purchasingFactors":{"type":"array","items":{"type":"string"}},"companySize":{"type":"string"},"salesProbability":{"type":"string"},"businessType":{"type":"string"}}},"CrmAddressPatchApiDto":{"type":"object","properties":{"name":{"maxLength":255,"minLength":0,"type":"string"},"contactName":{"maxLength":255,"minLength":0,"type":"string"},"street":{"maxLength":255,"minLength":0,"type":"string"},"zip":{"maxLength":32,"minLength":0,"type":"string"},"city":{"maxLength":255,"minLength":0,"type":"string"},"state":{"maxLength":255,"minLength":0,"type":"string"},"countryId":{"maxLength":8,"minLength":0,"type":"string"},"phone":{"maxLength":255,"minLength":0,"type":"string"},"mobile":{"maxLength":255,"minLength":0,"type":"string"},"fax":{"maxLength":255,"minLength":0,"type":"string"},"email":{"maxLength":255,"minLength":0,"type":"string","format":"email"},"url":{"maxLength":255,"minLength":0,"type":"string"}}},"CrmOverviewPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"academicTitle":{"maxLength":30,"minLength":0,"type":"string"},"firstName":{"maxLength":255,"minLength":0,"type":"string"},"lastName":{"maxLength":255,"minLength":0,"type":"string"},"email":{"maxLength":255,"minLength":0,"type":"string","format":"email"},"doNotCall":{"type":"boolean"},"phoneNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberInputApiDto"}},"mobileNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberInputApiDto"}},"fax":{"maxLength":255,"minLength":0,"type":"string"},"branch":{"maxLength":255,"minLength":0,"type":"string"},"managerId":{"type":"integer","format":"int64"},"primaryAddress":{"$ref":"#/components/schemas/CrmAddressPatchApiDto"},"billingAddress":{"$ref":"#/components/schemas/CrmAddressPatchApiDto"},"regionIds":{"type":"array","items":{"type":"integer","format":"int64"}},"tenderExperience":{"type":"boolean"},"enableUserLicense":{"type":"boolean"},"enableShowAllKey":{"type":"boolean"},"newsAndOffers":{"type":"boolean"},"unsubscribedToLimitedSrm":{"type":"boolean"},"enableOnboardingEmails":{"type":"boolean"},"enableSearchResultRecipientsEdit":{"type":"string"}}},"CrmAddressApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"contactName":{"type":"string"},"street":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"countryId":{"type":"string"},"countryName":{"type":"string"},"phone":{"type":"string"},"mobile":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string"},"url":{"type":"string"}}},"CrmOverviewApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"oldId":{"type":"integer","format":"int64"},"salutation":{"type":"string"},"academicTitle":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"doNotCall":{"type":"boolean"},"phoneNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberApiDto"}},"mobileNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberApiDto"}},"fax":{"type":"string"},"companyName":{"type":"string"},"companyId":{"type":"integer","format":"int64"},"managerName":{"type":"string"},"managerId":{"type":"integer","format":"int64"},"branch":{"type":"string"},"primaryAddress":{"$ref":"#/components/schemas/CrmAddressApiDto"},"billingAddress":{"$ref":"#/components/schemas/CrmAddressApiDto"},"regions":{"type":"array","items":{"$ref":"#/components/schemas/CrmRegionApiDto"}},"maxNumberOfRegions":{"type":"integer","format":"int32"},"tenderExperience":{"type":"boolean"},"service":{"type":"string"},"enableUserLicense":{"type":"boolean"},"enableShowAllKey":{"type":"boolean"},"newsAndOffers":{"type":"boolean"},"unsubscribedToLimitedSrm":{"type":"boolean"},"enableOnboardingEmails":{"type":"boolean"},"enableSearchResultRecipientsEdit":{"type":"string"},"customerScoring":{"type":"integer","format":"int32"},"consentLogCount":{"type":"integer","format":"int64"}}},"CrmRegionApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"selected":{"type":"boolean"},"available":{"type":"boolean"}}},"CrmMetaInformationPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"languageId":{"maxLength":8,"minLength":0,"type":"string"},"website":{"maxLength":512,"minLength":0,"type":"string"},"landingPageId":{"maxLength":255,"minLength":0,"type":"string"},"leadSourceUrl":{"maxLength":1024,"minLength":0,"type":"string"},"sourceApplication":{"maxLength":255,"minLength":0,"type":"string"},"leadSource":{"maxLength":255,"minLength":0,"type":"string"},"sourceOfInformation":{"maxLength":255,"minLength":0,"type":"string"},"nextPlannedCall":{"type":"string","format":"date-time"},"lastHeldCall":{"type":"string","format":"date-time"},"maxNumberTenderDailyExport":{"minimum":0,"type":"integer","format":"int32"},"latestPromoLink":{"maxLength":1024,"minLength":0,"type":"string"},"enableTenderXlsExport":{"type":"string"},"allowCspUpdate":{"type":"boolean"},"isSectorDetailPageEnabled":{"type":"string"},"isAuthoritiesContractorsDefaultSearchEnabled":{"type":"string"},"isRegionDetailPageEnabled":{"type":"string"},"enableContractEndDate":{"type":"string"},"enableAdvancedSearch":{"type":"string"},"enableTenderAnalyzer":{"type":"string"},"enableTendersSearch":{"type":"string"},"enableSearchResultRecipientsEdit":{"type":"string"}}},"CrmCompanyPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"name":{"maxLength":255,"minLength":0,"type":"string"},"billingCompanyName":{"maxLength":255,"minLength":0,"type":"string"},"vatNumber":{"maxLength":64,"minLength":0,"type":"string"},"taxNumber":{"maxLength":64,"minLength":0,"type":"string"},"taxAuthority":{"maxLength":255,"minLength":0,"type":"string"},"profession":{"maxLength":255,"minLength":0,"type":"string"},"companyNumber":{"maxLength":64,"minLength":0,"type":"string"},"countryId":{"maxLength":8,"minLength":0,"type":"string"},"billingAddress":{"$ref":"#/components/schemas/CrmAddressPatchApiDto"}}},"CrmCompanyApiDto":{"type":"object","properties":{"companyId":{"type":"integer","format":"int64"},"name":{"type":"string"},"billingCompanyName":{"type":"string"},"vatNumber":{"type":"string"},"taxNumber":{"type":"string"},"taxAuthority":{"type":"string"},"profession":{"type":"string"},"companyNumber":{"type":"string"},"countryId":{"type":"string"},"billingAddress":{"$ref":"#/components/schemas/CrmAddressApiDto"}}},"RulesetDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"active":{"type":"boolean"},"defaultRuleset":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"datasources":{"type":"array","items":{"type":"string"}},"realisationCountries":{"type":"array","items":{"type":"string"}},"properties":{"type":"array","items":{"$ref":"#/components/schemas/RulesetPropertyDto"}}},"description":"A ruleset (view only in this API — no create/update/delete)."},"RulesetPropertyDto":{"type":"object","properties":{"configFieldId":{"type":"integer","format":"int64"},"configFieldNotificationProperty":{"type":"string"},"position":{"type":"integer","format":"int32"},"active":{"type":"boolean"}},"description":"One ordered config-field reference within a ruleset's property list."},"ConfigFieldDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"notificationProperty":{"type":"string"}},"description":"A field a ruleset's property list can reference."},"AdminPortalContextApiDto":{"type":"object","properties":{"portalId":{"type":"string"},"portalName":{"type":"string"},"adminUrl":{"type":"string"},"defaultLanguageId":{"type":"string"},"defaultCountryId":{"type":"string"}}},"NotificationDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"uuid":{"type":"string"},"title":{"type":"string"},"relationCount":{"type":"integer","format":"int64"},"groupId":{"type":"string"},"dataSource":{"type":"string"},"countries":{"type":"array","items":{"type":"string"}},"nutsCodes":{"type":"array","items":{"type":"string"}},"referenceNumber":{"type":"string"},"authorityReference":{"type":"string"},"authorityName":{"type":"string"},"contractorName":{"type":"string"},"typeOfDocument":{"type":"string"},"subTypeOfDocument":{"type":"string"},"status":{"type":"string"},"publicationDate":{"type":"string","format":"date-time"},"lastRelatedDate":{"type":"string","format":"date-time"},"lastUpdated":{"type":"string","format":"date-time"}},"description":"A single notification."},"NotificationsPageDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/NotificationDto"}},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"}},"description":"A page of notifications."},"NotificationDetailsDto":{"type":"object","properties":{"notification":{"$ref":"#/components/schemas/NotificationDto"},"relations":{"type":"array","items":{"$ref":"#/components/schemas/NotificationDto"}}},"description":"A notification plus its current group's other members."},"SimilarNotificationDto":{"type":"object","properties":{"notification":{"$ref":"#/components/schemas/NotificationDto"},"score":{"type":"number","format":"double"},"matchingFields":{"type":"array","items":{"type":"string"}},"mismatchedFields":{"type":"array","items":{"type":"string"}}},"description":"A ranked similar-notification suggestion candidate."},"RelatedNotificationDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"uuid":{"type":"string"},"title":{"type":"string"},"referenceNumber":{"type":"string"},"authorityName":{"type":"string"},"contractorName":{"type":"string"},"realisationCountry":{"type":"string"},"nutsCodes":{"type":"array","items":{"type":"string"}},"dataSource":{"type":"string"},"subTypeOfDocument":{"type":"string"},"publicationDate":{"type":"string","format":"date-time"},"lastUpdated":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["AUTO","MANUAL","BOTH"]}},"description":"A notification that is related to the requested notification."},"RelatedNotificationsPageDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/RelatedNotificationDto"}},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"}},"description":"A page of related notifications."},"CurrentManagerResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"username":{"type":"string"},"uuid":{"type":"string"}}},"CrmManagerOptionApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"username":{"type":"string"},"active":{"type":"boolean"}}},"CrmReferenceDataApiDto":{"type":"object","properties":{"enums":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}}},"languages":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}},"countries":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}},"salutations":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}},"managers":{"type":"array","items":{"$ref":"#/components/schemas/CrmManagerOptionApiDto"}},"phoneLabels":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}}}},"CrmCustomerListPageApiDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/CrmCustomerSearchResultApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"CrmCustomerSearchResultApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"oldId":{"type":"integer","format":"int64"},"displayName":{"type":"string"},"email":{"type":"string"},"companyName":{"type":"string"},"status":{"type":"string"},"managerName":{"type":"string"},"matchedOn":{"type":"string"}}},"CrmSearchProfileApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"product":{"type":"string"},"customerProductId":{"type":"integer","format":"int64"},"searchContext":{"type":"string"},"country":{"type":"string"},"emailRecipients":{"type":"array","items":{"type":"string"}},"profileStatus":{"type":"string"},"deleted":{"type":"boolean"},"numberOfTenders":{"type":"integer","format":"int32"}}},"CrmSearchProfilesApiDto":{"type":"object","properties":{"profiles":{"type":"array","items":{"$ref":"#/components/schemas/CrmSearchProfileApiDto"}},"activeProfiles":{"type":"integer","format":"int32"},"maxProfiles":{"type":"integer","format":"int32"},"canAddProfile":{"type":"boolean"},"editUrlTemplate":{"type":"string"},"addUrl":{"type":"string"}}},"CrmPricePerPeriodOptionApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"durationInMonths":{"type":"integer","format":"int32"},"defaultPrice":{"type":"number"},"defaultPricePerPeriod":{"type":"boolean"}}},"CrmProductCatalogueApiDto":{"type":"object","properties":{"paidProducts":{"type":"array","items":{"$ref":"#/components/schemas/CrmProductOptionApiDto"}},"testProducts":{"type":"array","items":{"$ref":"#/components/schemas/CrmProductOptionApiDto"}},"addOnProducts":{"type":"array","items":{"$ref":"#/components/schemas/CrmProductOptionApiDto"}},"currentProductId":{"type":"integer","format":"int64"},"currentProductName":{"type":"string"},"heldProducts":{"type":"array","items":{"$ref":"#/components/schemas/CrmCustomerProductApiDto"}}}},"CrmProductOptionApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"addOn":{"type":"boolean"},"pricePerPeriods":{"type":"array","items":{"$ref":"#/components/schemas/CrmPricePerPeriodOptionApiDto"}}}},"CrmCustomerHeaderApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"oldId":{"type":"integer","format":"int64"},"uuid":{"type":"string"},"salutation":{"type":"string"},"academicTitle":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"companyName":{"type":"string"},"status":{"type":"string"},"managerName":{"type":"string"},"managerId":{"type":"integer","format":"int64"},"productName":{"type":"string"},"customerProductId":{"type":"integer","format":"int64"},"doiSent":{"type":"boolean"},"dateDoiSent":{"type":"string","format":"date-time"},"doubleOptInDate":{"type":"string","format":"date-time"},"impersonationAllowed":{"type":"boolean"},"locked":{"type":"boolean"}}},"CrmEmailComposeApiDto":{"type":"object","properties":{"defaultRecipient":{"type":"string"},"availableRecipients":{"type":"array","items":{"type":"string"}},"defaultSender":{"type":"string"},"availableSenders":{"type":"array","items":{"type":"string"}},"templates":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailTemplateApiDto"}},"placeholders":{"type":"array","items":{"type":"string"}}}},"CrmEmailTemplateApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"html":{"type":"boolean"},"placeholders":{"type":"array","items":{"type":"string"}}}},"CrmEmailHistoryPageApiDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailHistoryEntryApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"CrmEmailMessageApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"date":{"type":"string","format":"date-time"},"subject":{"type":"string"},"sender":{"type":"string"},"recipients":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"body":{"type":"string"},"html":{"type":"boolean"},"attachmentNames":{"type":"array","items":{"type":"string"}}}},"CrmConsentLogEntryApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"changedField":{"type":"string"},"newValue":{"type":"boolean"},"ipAddress":{"type":"string"},"managerId":{"type":"integer","format":"int64"},"managerName":{"type":"string"},"timeOfChange":{"type":"string","format":"date-time"}}},"CrmChangeLogEntryApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"source":{"type":"string"},"changedField":{"type":"string"},"oldValue":{"type":"string"},"newValue":{"type":"string"},"changedByType":{"type":"string"},"changedById":{"type":"integer","format":"int64"},"changedByName":{"type":"string"},"dateOfChange":{"type":"string","format":"date-time"}}},"CrmChangeLogPageApiDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/CrmChangeLogEntryApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"CrmBehaviorApiDto":{"type":"object","properties":{"lastResultEmailDate":{"type":"string","format":"date-time"},"totalDetailViews":{"type":"integer","format":"int32"},"lastDetailView":{"type":"string","format":"date-time"},"lastLoginDate":{"type":"string","format":"date-time"},"totalLogins":{"type":"integer","format":"int64"},"loginsLastMonth":{"type":"integer","format":"int64"},"totalXlsExports":{"type":"integer","format":"int32"},"xlsExportsOfLastDate":{"type":"integer","format":"int32"},"lastXlsExportDate":{"type":"string","format":"date-time"},"receivedTendersLast30Days":{"type":"integer","format":"int32"},"detailViewsLast30Days":{"type":"integer","format":"int32"},"uniqueDetailViewsLast30Days":{"type":"integer","format":"int64"},"daysWithoutDetailView":{"type":"integer","format":"int32"},"totalDownloads":{"type":"integer","format":"int32"},"totalApiRequests":{"type":"integer","format":"int64"},"apiRequestsLast30Days":{"type":"integer","format":"int64"},"apiRequestsToday":{"type":"integer","format":"int64"}}},"CrmStatusCountsApiDto":{"type":"object","properties":{"counts":{"type":"object","additionalProperties":{"type":"integer","format":"int64"}},"total":{"type":"integer","format":"int64"}}},"CrmPortalOptionApiDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"ManagerOptionApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"active":{"type":"boolean"}}},"ContractorListItemApiDto":{"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"registrationNumber":{"type":"string"},"vatUid":{"type":"string"},"name":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"url":{"type":"string"},"importedCustomerId":{"type":"integer","format":"int64"}}},"ContractorPageApiDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ContractorListItemApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}}}}}