openapi: 3.0.1 info: title: API Documentation description: API Documentation version: uk-cca-app-api 0.0.1 servers: - url: http://localhost:8082/api description: Generated server url security: - bearerAuth: [] paths: /v1.0/verification-bodies: get: tags: - Verification Bodies summary: Retrieves all verification bodies operationId: getVerificationBodies responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/VerificationBodyInfoResponseDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: tags: - Verification Bodies summary: Update the verification body operationId: updateVerificationBody requestBody: content: application/json: schema: $ref: '#/components/schemas/VerificationBodyUpdateDTO' required: true responses: '200': description: OK '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n VERBODY1001 | Accreditation reference number already exists " content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - Verification Bodies summary: Creates a verification body operationId: createVerificationBody requestBody: content: application/json: schema: $ref: '#/components/schemas/VerificationBodyCreationDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/VerificationBodyInfoDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n USER1001 | User role already exists \t\n AUTHORITY1005 | User status cannot be updated " content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' patch: tags: - Verification Bodies summary: Update the verification bodies status operationId: updateVerificationBodiesStatus requestBody: content: application/json: schema: type: array description: The verification bodies status dto to update items: $ref: '#/components/schemas/VerificationBodyUpdateStatusDTO' required: true responses: '200': description: OK '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n VERBODY1002 | Verification body status is not valid" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-users/registration/accept-authority-and-set-credentials-to-sector-user: put: tags: - Sector Users registration summary: Accept authority and set credentials to sector user operationId: acceptAuthorityAndSetCredentialsToSectorUser requestBody: content: application/json: schema: $ref: '#/components/schemas/InvitedUserCredentialsDTO' required: true responses: '204': description: No Content content: application/json: schema: $ref: '#/components/schemas/SectorUserDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nUSER1003 | User is already registered with different role \t\n USER1004 | User status is not valid \t\n AUTHORITY1005 | User status cannot be updated \t\n CCAAUTHORITY1003 | Authority already exists for a different role type than sector user \t\n EMAIL1001 | The verification link has expired \t\n TOKEN1001 | Invalid Token \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-users/registration/accept-authority-and-enable-invited-sector-user-with-credentials: put: tags: - Sector Users registration summary: Accept authority and enable sector user from invitation token operationId: acceptAuthorityAndEnableInvitedUserWithCredentials requestBody: content: application/json: schema: $ref: '#/components/schemas/SectorUserRegistrationWithCredentialsDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SectorUserDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nEMAIL1001 | The verification link has expired \t\n TOKEN1001 | Invalid Token \t\n USER1003 | User is already registered with different role \t\n AUTHORITY1005 | User status cannot be updated \t\n CCAAUTHORITY1003 | Authority already exists for a different role type than sector user\t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/request-notes/{id}: get: tags: - Request Notes summary: Get a request note operationId: getRequestNote parameters: - name: id in: path description: The note id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RequestNoteDto' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: tags: - Request Notes summary: Update a request note operationId: updateRequestNote parameters: - name: id in: path description: The note id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/NoteRequest' required: true responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' delete: tags: - Request Notes summary: Delete a request note operationId: deleteRequestNote parameters: - name: id in: path description: The note id required: true schema: type: integer format: int64 responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-users/registration/accept-authority-and-activate-user-from-invitation: put: tags: - Regulator users registration summary: Accept authority and activate regulator user from invitation operationId: acceptAuthorityAndActivateRegulatorUserFromInvite requestBody: content: application/json: schema: $ref: '#/components/schemas/InvitedUserCredentialsDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n EMAIL1001 | The verification link has expired \t\n TOKEN1001 | Invalid Token \t\n USER1001 | User role already exists \t\n USER1004 | User status is not valid t\n AUTHORITY1005 | User status cannot be updated \t\n AUTHORITY1014 | Authority already exists for a different role type or CA " content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/operator-users/registration/accept-authority-and-set-credentials-to-operator-user: put: tags: - Operator users registration summary: Accept authority and set credentials to operator user operationId: acceptAuthorityAndSetCredentialsToOperatorUser requestBody: content: application/json: schema: $ref: '#/components/schemas/InvitedUserCredentialsDTO' required: true responses: '204': description: No Content content: application/json: schema: $ref: '#/components/schemas/OperatorUserDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nUSER1003 | User is already registered with different role \t\n USER1004 | User status is not valid \t\n AUTHORITY1005 | User status cannot be updated \t\n AUTHORITY1016 | Authority already exists for a different role type than operator \t\n EMAIL1001 | The verification link has expired \t\n TOKEN1001 | Invalid Token \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/operator-users/registration/accept-authority-and-enable-invited-operator-with-credentials: put: tags: - Operator users registration summary: Accept authority and enable operator user from invitation token operationId: acceptAuthorityAndEnableInvitedOperatorUserWithCredentials requestBody: content: application/json: schema: $ref: >- #/components/schemas/CcaOperatorUserRegistrationWithCredentialsDTO required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/OperatorUserDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nEMAIL1001 | The verification link has expired \t\n TOKEN1001 | Invalid Token \t\n USER1003 | User is already registered with different role \t\n AUTHORITY1005 | User status cannot be updated \t\n AUTHORITY1016 | Authority already exists for a different role type than operator \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/notification-templates/{id}: get: tags: - Notification Templates summary: Retrieves the notification template with the provided id operationId: getNotificationTemplateById parameters: - name: id in: path description: The notification template id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/NotificationTemplateDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: tags: - Notification Templates summary: Updates the notification template with the provided id operationId: updateNotificationTemplate parameters: - name: id in: path description: The notification template id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/NotificationTemplateUpdateDTO' required: true responses: '200': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/account-notes/{id}: get: tags: - Account Notes summary: Get an account note operationId: getAccountNote parameters: - name: id in: path description: The note id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AccountNoteDto' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: tags: - Account Notes summary: Update an account note operationId: updateAccountNote parameters: - name: id in: path description: The note id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/NoteRequest' required: true responses: '200': description: OK '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' delete: tags: - Account Notes summary: Delete an account note operationId: deleteAccountNote parameters: - name: id in: path description: The note id required: true schema: type: integer format: int64 responses: '200': description: OK '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/vb-site-contacts: get: tags: - VB site contacts summary: >- Retrieves the accounts and verification body site contact of the accounts operationId: getVbSiteContacts parameters: - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int32 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AccountContactVbInfoResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - VB site contacts summary: Updates verification body site contacts operationId: updateVbSiteContacts requestBody: content: application/json: schema: type: array description: The accounts with updated verification body site contacts items: $ref: '#/components/schemas/AccountContactDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nAUTHORITY1006 | User is not related to verification body \t\n ACCOUNT1005 | Account is not related to verification body \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/users/security-setup/2fa/request-change: post: tags: - Users Security Setup summary: Requests the update of the two factor authentication operationId: requestTwoFactorAuthChange requestBody: content: application/json: schema: $ref: '#/components/schemas/OneTimePasswordDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nOTP1001 | Invalid OTP \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/users/forgot-password/token-verification: post: tags: - Forgot Password summary: Verifies the JWT token provided in the email operationId: verifyToken requestBody: content: application/json: schema: $ref: '#/components/schemas/TokenDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/EmailDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nEMAIL1001 | The verification link has expired \t\n TOKEN1001 | Invalid Token" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/users/forgot-password/reset-password: post: tags: - Forgot Password summary: Resets user's password operationId: resetPassword requestBody: content: application/json: schema: $ref: '#/components/schemas/ResetPasswordDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nTOKEN1001 | Invalid Token \t\n USER1005 | User not exist \t\n USER1004 | User status is not valid \t\n OTP1001 | Invalid OTP \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/users/forgot-password/reset-password-email: post: tags: - Forgot Password summary: Sends a reset password email operationId: sendResetPasswordEmail requestBody: content: application/json: schema: $ref: '#/components/schemas/EmailDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nOTP1001 | Invalid OTP \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/users/feedback: post: tags: - Users summary: Provides the feedback about the service for the logged in user operationId: provideUserFeedback requestBody: content: application/json: schema: $ref: '#/components/schemas/UserFeedbackDto' required: true responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/tasks/actions: post: tags: - Tasks summary: Processes a request task action operationId: processRequestTaskAction requestBody: content: application/json: schema: $ref: '#/components/schemas/RequestTaskActionProcessDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n FORM1002 | Attachment not found \t\n REQUEST_TASK_ACTION1000 | Request task action cannot proceed \t\n REQUEST_TASK_ACTION1001 | User is not the assignee of the request task \t\n ACCOUNT1000 | User account does not belong to legal entity \t\n ACCOUNT1001 | Account name already exists for the user \t\n ACCOUNT1002 | Legal entity name already exists for the user \t\n ACCOUNT1009 | Account status is not valid \t\n ACCOUNT1015 | Aviation Account location doesn't exist \t\n PERMIT1001 | Permit is in invalid state \t\n PERMIT1002 | Invalid Permit review \t\n PERMIT1003 | Invalid Permit \t\n PERMIT1004 | Invalid Permit Variation Review \t\n PERMITSURRENDER1001 | Invalid Permit surrender \t\n " content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/tasks-assignment/assign: post: tags: - Tasks Assignment summary: Assigns a task to a user operationId: assignTask requestBody: content: application/json: schema: $ref: '#/components/schemas/RequestTaskAssignmentDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nITEM1000 | Can not assign request to the provided user \t\nITEM1001 | Request task is not assignable" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/task-attachments/upload: post: tags: - Request task attachments handling summary: Upload a request task attachment operationId: uploadRequestTaskAttachment requestBody: content: multipart/form-data: schema: required: - attachment - requestTaskActionDetails type: object properties: requestTaskActionDetails: $ref: '#/components/schemas/RequestTaskAttachmentActionProcessDTO' attachment: type: string description: The request task source file attachment format: binary responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileUuidDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nPERMIT1001 | Permit is in invalid state \t\n FILE1001 | Virus found in input stream \t\n FILE1002 | File size is less than minimum \t\n FILE1003 | File size is greater than maximum \t\nFILE1004 | File upload failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-users/registration/accept-invitation: post: tags: - Sector Users registration summary: Accept invitation for sector user operationId: acceptSectorUserInvitation requestBody: content: application/json: schema: $ref: '#/components/schemas/TokenDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SectorInvitedUserInfoDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nEMAIL1001 | The verification link has expired \t\n TOKEN1001 | Invalid Token \t\n USER1002 | User is deleted \t\n NOTFOUND1001 | Resource not found \t\n CCAAUTHORITY1004 | User is not sector \t\n " content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-users/invite/sector-association/{sectorAssociationId}: post: tags: - Sector Users invitation summary: Adds a new sector user to a sector association with a specified role. operationId: inviteUserToSectorAssociation parameters: - name: sectorAssociationId in: path description: The sector association id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/SectorUserInvitationDTO' required: true responses: '204': description: No Content '400': description: Bad Request '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-authorities/sector-association/{sectorId}: get: tags: - Sector Association authorities summary: Retrieves the users of type SECTOR_USER operationId: getSectorUserAuthoritiesBySectorAssociationId parameters: - name: sectorId in: path description: The sector association id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SectorUsersAuthoritiesInfoDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - Sector Association authorities summary: Update sector user authorities operationId: updateSectorUserAuthorities parameters: - name: sectorId in: path description: The sectorId id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/SectorUserAuthorityUpdateWrapperDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nROLE1000 | Invalid operator role code \t\n AUTHORITY1001 | At least one operator admin should exist in account \t\n AUTHORITY1004 | User is not related to account \t\n AUTHORITY1008 | Authority status in not valid \t\n AUTHORITY1012 | User role can not be modified \t\nACCOUNT_CONTACT1001 | You must have a primary contact on your account \t\nACCOUNT_CONTACT1002 | You must have a financial contact on your account \t\nACCOUNT_CONTACT1003 | You must have a service contact on your account \t\nACCOUNT_CONTACT1004 | You cannot assign the same user as a primary and secondary contact on your account \t\nACCOUNT_CONTACT1005 | You cannot assign an Emitter Contact as primary contact on your account \t\nACCOUNT_CONTACT1006 | You cannot assign an Emitter Contact as secondary contact on your account" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' delete: tags: - Sector Association authorities summary: Delete the current sector user operationId: deleteCurrentSectorUser parameters: - name: sectorId in: path required: true schema: type: integer format: int64 responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-association/{id}/details: post: tags: - Sector Association Details update summary: Update the sector association sector details operationId: updateSectorAssociationDetails parameters: - name: id in: path description: The sector association id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/SectorAssociationDetailsUpdateDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n SECTOR1001 | Sector association details cannot be updated" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-association/{id}/contact: post: tags: - Sector Association Details update summary: Update the sector association sector contact operationId: updateSectorAssociationContact parameters: - name: id in: path description: The sector association id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/SectorAssociationContactDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n SECTOR1002 | Sector association contact cannot be updated" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-association/site-contacts: get: tags: - Sector Associations site contacts summary: Retrieves the sector association site contacts operationId: getSectorAssociationSiteContacts parameters: - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int32 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SectorAssociationSiteContactInfoResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - Sector Associations site contacts summary: Updates sector association site contacts operationId: updateSectorAssociationSiteContacts requestBody: content: application/json: schema: type: array description: The sector associations with updated site contacts items: $ref: '#/components/schemas/SectorAssociationSiteContactDTO' required: true responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/requests: post: tags: - Requests summary: Processes a request create action operationId: processRequestCreateAction parameters: - name: accountId in: query description: The account id required: false schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/RequestCreateActionProcessDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RequestCreateActionProcessResponseDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n REQUEST_CREATE_ACTION1000 | Request create action not allowed \t\n ACCOUNT1000 | User account does not belong to legal entity \t\n ACCOUNT1002 | Legal entity name already exists for the user \t\n " content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/requests/workflows: post: tags: - Requests summary: Get the workflows for the given search criteria operationId: getRequestDetailsByAccountId requestBody: content: application/json: schema: $ref: '#/components/schemas/RequestSearchByAccountCriteria' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RequestDetailsSearchResults' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/request-notes: get: tags: - Request Notes summary: Retrieves the notes for request id operationId: getNotesByRequestId parameters: - name: requestId in: query description: The request id required: true schema: type: string - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int32 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RequestNoteResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - Request Notes summary: Creates a new request note operationId: createRequestNote requestBody: content: application/json: schema: $ref: '#/components/schemas/RequestNoteRequest' required: true responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/request-notes/upload/request/{requestId}: post: tags: - Request Notes summary: Upload a note file operationId: uploadRequestNoteFile parameters: - name: requestId in: path description: The request id required: true schema: type: string requestBody: content: multipart/form-data: schema: required: - file type: object properties: file: type: string description: The note file format: binary responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileUuidDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-users: post: tags: - Regulator Users summary: Updates the current regulator user operationId: updateCurrentRegulatorUser requestBody: content: multipart/form-data: schema: required: - regulatorUserUpdateDTO type: object properties: regulatorUserUpdateDTO: $ref: '#/components/schemas/RegulatorUserUpdateDTO' signature: type: string description: The signature file format: binary responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RegulatorUserUpdateDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-users/{userId}: get: tags: - Regulator Users summary: >- Retrieves the user of type REGULATOR that corresponds to the provided user id operationId: getRegulatorUserByCaAndId parameters: - name: userId in: path description: The regulator user id required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RegulatorUserDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nAUTHORITY1003 | User is not related to competent authority" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - Regulator Users summary: >- Updates the user of type REGULATOR that corresponds to the provided user id operationId: updateRegulatorUserByCaAndId parameters: - name: userId in: path description: The regulator user id to update required: true schema: type: string requestBody: content: multipart/form-data: schema: required: - regulatorUserUpdateDTO type: object properties: regulatorUserUpdateDTO: $ref: '#/components/schemas/RegulatorUserUpdateDTO' signature: type: string description: The signature file format: binary responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RegulatorUserUpdateDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nAUTHORITY1003 | User is not related to competent authority \t\n INVALID_IMAGE_DIMENSIONSIMAGE1001 | Image dimensions are not valid \t\n FILE1002 | File size is less than minimum \t\n FILE1003 | File size is greater than maximum \t\n FILE1005 | File type is not accepted \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-users/{userId}/reset-2fa: post: tags: - Regulator Users summary: >- Resets the 2FA device for the user of type REGULATOR that corresponds to the provided user id operationId: resetRegulator2Fa parameters: - name: userId in: path description: Regulator's user id to reset 2FA required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RegulatorUserUpdateDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nAUTHORITY1003 | User is not related to competent authority" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-users/registration/accept-invitation: post: tags: - Regulator users registration summary: Accept invitation for regulator user operationId: acceptRegulatorInvitation requestBody: content: application/json: schema: $ref: '#/components/schemas/TokenDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/InvitedUserInfoDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nEMAIL1001 | The verification link has expired \t\n TOKEN1001 | Invalid Token \t\n USER1004 | User status is not valid \t\nUSER1001 | User role already exists \t\n AUTHORITY1005 | User status cannot be updated \t\n AUTHORITY1014 | Authority already exists for a different role type or CA " content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/regulator-users/invite: post: tags: - Regulator Users summary: Invite new regulator user operationId: inviteRegulatorUserToCA requestBody: content: multipart/form-data: schema: required: - regulatorInvitedUser - signature type: object properties: regulatorInvitedUser: $ref: '#/components/schemas/RegulatorInvitedUserDTO' signature: type: string description: The signature file format: binary responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nUSER1001 | User role already exists \t\n AUTHORITY1005 | User status cannot be updated \t\n AUTHORITY1014 | Authority already exists for a different role type or CA " content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-authorities: get: tags: - Regulator Authorities summary: Retrieves the users of type REGULATOR operationId: getCaRegulators responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RegulatorUsersAuthoritiesInfoDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - Regulator Authorities summary: Updates regulator users status operationId: updateCompetentAuthorityRegulatorUsersStatus requestBody: content: application/json: schema: type: array description: The regulator users to update items: $ref: '#/components/schemas/RegulatorUserUpdateStatusDTO' required: true responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' delete: tags: - Regulator Authorities summary: Delete the current regulator user operationId: deleteCurrentRegulatorUserByCompetentAuthority responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/operator-users/registration/accept-invitation: post: tags: - Operator users registration summary: Accept invitation for operator user operationId: acceptOperatorInvitation requestBody: content: application/json: schema: $ref: '#/components/schemas/TokenDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/CcaOperatorInvitedUserInfoDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nEMAIL1001 | The verification link has expired \t\n TOKEN1001 | Invalid Token \t\n USER1002 | User is deleted \t\n USER1003 | User is already registered with different role \t\n NOTFOUND1001 | Resource not found \t\n AUTHORITY1005 | User status cannot be updated \t\n AUTHORITY1009 | User is not operator \t\n AUTHORITY1016 | Authority already exists for a different role type than operator" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/operator-users/invite/account/{accountId}: post: tags: - Operator Users invitation summary: Adds a new operator user to an account with a specified role. operationId: inviteOperatorUserToAccount parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/CcaOperatorUserInvitationDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n AUTHORITY1005 | User status cannot be updated \t\n AUTHORITY1011 | Regulator user can only add operator administrator users to an account \t\n AUTHORITY1016 | Authority already exists for a different role type than operator \t\nUSER1000 | User registration failed \t\n USER1003 | User is already registered with different role " content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/mireports: post: tags: - MiReports summary: Generates the report identified by the provided report type operationId: generateReport requestBody: content: application/json: schema: $ref: '#/components/schemas/MiReportParams' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/MiReportResult' '400': description: "Bad Request\t\n Error Code | Description \t\nMIREPORT1000 | Invalid MI Report type" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/mireports/custom: post: tags: - MiReports summary: Generates custom report operationId: generateCustomReport requestBody: content: application/json: schema: $ref: '#/components/schemas/MiReportParams' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/MiReportResult' '400': description: "Bad Request\t\n Error Code | Description \t\nMIREPORT1000 | Invalid MI Report type" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/document-templates/{id}: get: tags: - Document Templates summary: Retrieves the document template with the provided id operationId: getDocumentTemplateById parameters: - name: id in: path description: The document template id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DocumentTemplateDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nNOTIF1001 | File does not exist for document template" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - Document Templates summary: Updates the document template with the provided id operationId: updateDocumentTemplate parameters: - name: id in: path description: The document template id required: true schema: type: integer format: int64 requestBody: content: multipart/form-data: schema: required: - file type: object properties: file: type: string description: The document template source file format: binary responses: '200': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nNOTIF1001 | File does not exist for document template" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/cca-requests: post: tags: - Cca Requests summary: Processes a cca request create action operationId: processCcaRequestCreateAction parameters: - name: sectorAssociationId in: query description: The sector association id required: true schema: type: integer format: int64 - name: accountId in: query description: The account id required: false schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/RequestCreateActionProcessDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RequestCreateActionProcessResponseDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n REQUEST_CREATE_ACTION1000 | Request create action not allowed \t\n ACCOUNT1000 | User account does not belong to legal entity \t\n ACCOUNT1002 | Legal entity name already exists for the user \t\n " content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/cca-requests/workflows: post: tags: - Cca Requests summary: Get the workflows for the given search criteria operationId: getCcaRequestDetailsByAccountId requestBody: content: application/json: schema: $ref: '#/components/schemas/RequestSearchByAccountCriteria' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RequestDetailsSearchResults' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/ca-site-contacts: get: tags: - Ca site contacts summary: >- Retrieves the accounts and competent authority site contact of the accounts operationId: getCaSiteContacts parameters: - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int32 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AccountContactInfoResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - Ca site contacts summary: Updates competent authority site contacts operationId: updateCaSiteContacts requestBody: content: application/json: schema: type: array description: The accounts with updated competent authority site contacts items: $ref: '#/components/schemas/AccountContactDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nAUTHORITY1003 | User is not related to competent authority \t\n ACCOUNT1004 | Account is not related to competent authority \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/ca-external-contacts: get: tags: - Ca external contacts summary: Retrieves the current regulator external contacts operationId: getCaExternalContacts responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/CaExternalContactsDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - Ca external contacts summary: Creates a new ca external contact operationId: createCaExternalContact requestBody: content: application/json: schema: $ref: '#/components/schemas/CaExternalContactRegistrationDTO' required: true responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/accounts/{id}/appoint-verification-body: post: tags: - Account verification body summary: Appoint verification body to account operationId: appointVerificationBodyToAccount parameters: - name: id in: path description: The account id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/AppointVerificationBodyDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nACCOUNT1006 | A verification body has already been appointed to the account \t\n ACCOUNT1008 | The verification body is not accredited to the account's emission trading scheme \t\n ACCOUNT1009 | Account status is not valid \t\n ACCOUNT1010 | Verification body is attached on open tasks \t\n NOTIF1000 | Template processing failed \t\n NOTFOUND1001 | Resource not found \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' patch: tags: - Account verification body summary: Reappoint verification body to account operationId: replaceVerificationBodyToAccount parameters: - name: id in: path description: The account id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/AppointVerificationBodyDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nACCOUNT1006 | A verification body has already been appointed to the account \t\n ACCOUNT1007 | A verification body has not been appointed to the account \t\n ACCOUNT1009 | Account status is not valid \t\n ACCOUNT1008 | The verification body is not accredited to the account's emission trading scheme \t\n ACCOUNT1010 | Verification body is attached on open tasks \t\n NOTIF1000 | Template processing failed \t\n NOTFOUND1001 | Resource not found \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/account-site-contacts/sector-association/{sectorId}: post: tags: - Target Unit Accounts site contacts summary: Updates target unit account site contacts operationId: updateTargetUnitAccountSiteContacts parameters: - name: sectorId in: path description: The sector association id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: type: array description: The target unit account with updated site contacts items: $ref: '#/components/schemas/TargetUnitAccountSiteContactDTO' required: true responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/account-notes: get: tags: - Account Notes summary: Retrieves the notes for account id operationId: getNotesByAccountId parameters: - name: accountId in: query description: The account id required: true schema: type: integer format: int64 - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int32 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AccountNoteResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' post: tags: - Account Notes summary: Creates a new account note operationId: createAccountNote requestBody: content: application/json: schema: $ref: '#/components/schemas/AccountNoteRequest' required: true responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/account-notes/upload/account/{accountId}: post: tags: - Account Notes summary: Upload a note file operationId: uploadAccountNoteFile parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 requestBody: content: multipart/form-data: schema: required: - file type: object properties: file: type: string description: The note file format: binary responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileUuidDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/users/security-setup/2fa/delete: patch: tags: - Users Security Setup summary: Delete the two factor authentication operationId: deleteOtpCredentials requestBody: content: application/json: schema: $ref: '#/components/schemas/TokenDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nTOKEN1001 | Invalid Token \t\n EMAIL1001 | The verification link has expired \t\n USER1005 | User not exist \t\n FORM1001 | Form validation failed" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/user-terms: get: tags: - Terms and conditions summary: Retrieves accepted terms and conditions version of the logged in user operationId: getUserTerms responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserTermsVersionDTO' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' patch: tags: - Terms and conditions summary: Updates accepted terms and conditions of the logged in user operationId: editUserTerms requestBody: content: application/json: schema: $ref: '#/components/schemas/UserTermsVersionUpdateDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserTermsVersionUpdateDTO' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/target-unit-accounts/{accountId}/update/sic: patch: tags: - Update Target Unit Account summary: Updates TargetUnit Account Sic code operationId: updateTargetUnitAccountSicCode parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateTargetUnitAccountSicCodeDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n ACCOUNT1009 | Account status is not valid" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/target-unit-accounts/{accountId}/update/responsible: patch: tags: - Update Target Unit Account summary: Updates TargetUnitAccount Responsible contact details operationId: updateTargetUnitAccountResponsiblePerson parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateTargetUnitAccountResponsiblePersonDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n ACCOUNT1009 | Account status is not valid" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/target-unit-accounts/{accountId}/update/financial: patch: tags: - Update Target Unit Account summary: Updates TargetUnit Account financial independenceStatus code operationId: updateTargetUnitAccountFinancialIndependenceStatusCode parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: >- #/components/schemas/UpdateTargetUnitAccountFinancialIndependenceStatusCodeDTO required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n ACCOUNT1009 | Account status is not valid" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/target-unit-accounts/{accountId}/update/administrative: patch: tags: - Update Target Unit Account summary: Updates TargetUnitAccount Administrative contact details operationId: updateTargetUnitAccountAdministrativePerson parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/TargetUnitAccountContactDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nFORM1001 | Form validation failed \t\n ACCOUNT1009 | Account status is not valid" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-users/sector-association/{sectorAssociationId}/{userId}: get: tags: - Sector Users summary: Retrieves info of sector user by sector association and user id operationId: getSectorUserById parameters: - name: sectorAssociationId in: path description: The sector association id required: true schema: type: integer format: int64 - name: userId in: path description: The sector user id required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SectorUserAuthorityDetailsDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nCCAAUTHORITY1001 | User is not related to sector association" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' patch: tags: - Sector Users summary: Updates sector user by sector association and user id operationId: updateSectorUserBySectorAssociationIdAndUserId parameters: - name: sectorAssociationId in: path description: The sector association id required: true schema: type: integer format: int64 - name: userId in: path description: The sector association id required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SectorUserAuthorityDetailsDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SectorUserAuthorityDetailsDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-users/sector-association/{sectorAssociationId}/{userId}/reset-2fa: patch: tags: - Sector Users summary: >- Resets the 2FA device for a sector user by sector association and user id operationId: resetSectorUser2Fa parameters: - name: sectorAssociationId in: path description: The sector association id required: true schema: type: integer format: int64 - name: userId in: path description: The sector user id required: true schema: type: string responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nCCAAUTHORITY1001 | User is not related to sector association" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-users/sector-association/{sectorAssociationId}/sector-user: patch: tags: - Sector Users summary: Updates logged in operator user operationId: updateCurrentSectorUser parameters: - name: sectorAssociationId in: path description: The sector association id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/SectorUserAuthorityDetailsDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SectorUserAuthorityDetailsDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/operator-users/account/{accountId}: get: tags: - Operator Users summary: Retrieves info of the logged in operator user operationId: getCurrentOperatorUser parameters: - name: accountId in: path description: The operator user id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/CcaOperatorUserDetailsDTO' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' patch: tags: - Operator Users summary: Updates logged in operator user operationId: updateCurrentOperatorUser parameters: - name: accountId in: path description: The operator account id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/CcaOperatorUserDetailsDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/CcaOperatorUserDetailsDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/operator-users/account/{accountId}/{userId}: get: tags: - Operator Users summary: Retrieves info of operator user by account and user id operationId: getOperatorUserById parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 - name: userId in: path description: The operator user id required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/CcaOperatorUserDetailsDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' patch: tags: - Operator Users summary: Updates operator user by account and user id operationId: updateOperatorUserById parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 - name: userId in: path description: The operator user id required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CcaOperatorUserDetailsDTO' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/CcaOperatorUserDetailsDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/operator-users/account/{accountId}/{userId}/reset-2fa: patch: tags: - Operator Users summary: Resets the 2FA device for an operator user by account and user id operationId: resetOperator2Fa parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 - name: userId in: path description: The operator user id required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/OperatorUserDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nAUTHORITY1004 | User is not related to account" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/operator-authorities/account/{accountId}: get: tags: - Operator Authorities summary: >- Retrieves the authorities of type OPERATOR for the given account id along with the account contact types operationId: getAccountOperatorAuthorities parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/OperatorAuthoritiesInfoDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' patch: tags: - Operator Authorities summary: Updates authorities for users of type OPERATOR for the given account id operationId: updateAccountOperatorAuthorities parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/AccountOperatorAuthorityUpdateWrapperDTO' required: true responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nROLE1000 | Invalid operator role code \t\n AUTHORITY1001 | At least one operator admin should exist in account \t\n AUTHORITY1004 | User is not related to account \t\n AUTHORITY1008 | Authority status in not valid \t\n AUTHORITY1012 | User role can not be modified \t\nACCOUNT_CONTACT1001 | You must have a primary contact on your account \t\nACCOUNT_CONTACT1002 | You must have a financial contact on your account \t\nACCOUNT_CONTACT1003 | You must have a service contact on your account \t\nACCOUNT_CONTACT1004 | You cannot assign the same user as a primary and secondary contact on your account \t\nACCOUNT_CONTACT1005 | You cannot assign an Emitter Contact as primary contact on your account \t\nACCOUNT_CONTACT1006 | You cannot assign an Emitter Contact as secondary contact on your account" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/ca-external-contacts/{id}: get: tags: - Ca external contacts summary: Returns the ca external contact with specified id operationId: getCaExternalContactById parameters: - name: id in: path description: The ca external contact id required: true schema: type: integer format: int64 responses: '200': description: OK content: '*/*': schema: $ref: '#/components/schemas/CaExternalContactDTO' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' delete: tags: - Ca external contacts summary: Deletes the ca external contact with specified id operationId: deleteCaExternalContactById parameters: - name: id in: path description: The ca external contact id required: true schema: type: integer format: int64 responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' patch: tags: - Ca external contacts summary: Edits the ca external contact with specified id operationId: editCaExternalContact parameters: - name: id in: path description: The ca external contact id required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/CaExternalContactRegistrationDTO' required: true responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/verification-bodies/{id}: get: tags: - Verification Bodies summary: Get the verification body with the provided id operationId: getVerificationBodyById parameters: - name: id in: path description: The verification body id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/VerificationBodyDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' delete: tags: - Verification Bodies summary: Delete the verification body with the provided id operationId: deleteVerificationBodyById parameters: - name: id in: path description: The verification body id required: true schema: type: integer format: int64 responses: '200': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/users: get: tags: - Users summary: Retrieves info of the logged in user operationId: getCurrentUser responses: '200': description: OK content: application/json: schema: oneOf: - $ref: '#/components/schemas/UserDTO' - $ref: '#/components/schemas/SectorUserDTO' - $ref: '#/components/schemas/OperatorUserDTO' - $ref: '#/components/schemas/RegulatorUserDTO' - $ref: '#/components/schemas/VerifierUserDTO' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/users/signature: get: tags: - Users summary: Generate the token to get the signature of the current user operationId: generateGetCurrentUserSignatureToken parameters: - name: signatureUuid in: query description: The signature uuid required: true schema: type: string format: uuid responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileToken' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/user-signatures/{token}: get: tags: - User signatures summary: Get the user signature resource for the provided file token operationId: getSignature parameters: - name: token in: path description: The signature token required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/underlying-agreements/{id}/document: get: tags: - Underlying Agreements summary: >- Generate the token to get the document that belongs to the provided underlying agreement id operationId: generateGetUnderlyingAgreementDocumentToken parameters: - name: id in: path description: The underlying agreement id required: true schema: type: integer format: int64 - name: fileDocumentUuid in: query description: The document uuid required: true schema: type: string format: uuid responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileToken' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/terms: get: tags: - Terms and conditions summary: Retrieves the latest version of terms and conditions operationId: getLatestTerms responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/TermsDTO' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/tasks/{id}: get: tags: - Tasks summary: Get task item info by id operationId: getTaskItemInfoById parameters: - name: id in: path description: The task id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RequestTaskItemDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/tasks/{id}/default-recipients: get: tags: - Tasks summary: >- Retrieves the target unit account contacts and the sector association contact operationId: getDefaultNoticeRecipients parameters: - name: id in: path description: The task id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/NoticeRecipientDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/tasks-assignment/{taskId}/candidate-assignees: get: tags: - Tasks Assignment summary: 'Returns all users to whom can be assigned the provided task ' operationId: getCandidateAssigneesByTaskId parameters: - name: taskId in: path description: The task id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/AssigneeUserInfoDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nITEM1001 | Request task is not assignable" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/tasks-assignment/{taskId}/candidate-assignees/{taskType}: get: tags: - Tasks Assignment summary: Returns all users to whom can be assigned the provided task type operationId: getCandidateAssigneesByTaskType parameters: - name: taskId in: path description: >- The current task id that user works on. Not related to the task type for which we search candidate assignees required: true schema: type: integer format: int64 - name: taskType in: path description: The task type for which you need to retrieve candidate assignees required: true schema: type: string responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/AssigneeUserInfoDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nITEM1001 | Request task is not assignable" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/task-attachments/{id}: get: tags: - Request task attachments handling summary: >- Generate the token to get the file with the provided uuid that belongs to the provided task operationId: generateRequestTaskGetFileAttachmentToken parameters: - name: id in: path description: The request task id required: true schema: type: integer format: int64 - name: attachmentUuid in: query description: The attachment uuid required: true schema: type: string format: uuid responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileToken' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/target-unit-accounts/{id}/header-info: get: tags: - Target Unit Account info view summary: Get the account header info for the provided account operationId: getAccountHeaderInfoById parameters: - name: id in: path description: The account id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/TargetUnitAccountHeaderInfoDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/target-unit-accounts/{accountId}: get: tags: - Target Unit Account info view summary: Retrieves the target unit account operationId: getTargetUnitAccountDetailsById parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/TargetUnitAccountDetailsResponseDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/target-unit-accounts/sector-association/{sectorId}: get: tags: - Target Unit Account info view summary: Retrieves the target unit accounts and their contacts operationId: getTargetUnitAccountsWithSiteContacts parameters: - name: sectorId in: path description: The sector association id required: true schema: type: integer format: int64 - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int32 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/TargetUnitAccountInfoResponseDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/target-unit-accounts/: get: tags: - Target Unit Account info view summary: Retrieves the current user associated accounts operationId: searchUserAccounts parameters: - name: term in: query description: The term to search required: false schema: maxLength: 256 minLength: 3 type: string - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int64 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AccountSearchResults' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-users/sector-association/{sectorAssociationId}: get: tags: - Sector Users summary: Retrieves info of the logged in sector user operationId: getCurrentSectorUser parameters: - name: sectorAssociationId in: path description: The sector association id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SectorUserAuthorityDetailsDTO' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-documents/document/{token}: get: tags: - Sector Association Scheme Documents summary: >- Get the sector association scheme document resource for the provided file token operationId: getSectorAssociationSchemeDocument parameters: - name: token in: path description: The sector association document token required: true schema: type: string responses: '200': description: OK content: application/json: schema: type: string format: binary '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/sector-association/{sectorId}/subsector-scheme/{subsectorSchemeId}: get: tags: - Subsector association scheme summary: >- Retrieves the subsector association scheme that corresponds to the provided subsector scheme id operationId: getSubsectorAssociationSchemeBySubsectorAssociationSchemeId parameters: - name: sectorId in: path description: The sector association id required: true schema: type: integer format: int64 - name: subsectorSchemeId in: path description: The subsector association scheme id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SubsectorAssociationSchemeDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nAUTHORITY1003 | User is not related to competent authority" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-association/{sectorId}/scheme: get: tags: - Sector association scheme summary: >- Retrieves the sector association scheme that corresponds to the provided sector id operationId: getSectorAssociationSchemeBySectorAssociationId parameters: - name: sectorId in: path description: The sector association id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SectorAssociationSchemeDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nAUTHORITY1003 | User is not related to competent authority" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-association/{sectorId}/scheme/document: get: tags: - Sector association scheme summary: >- Generate the token to get the document of the sector association with the provided sector association id operationId: generateGetSectorAssociationSchemeDocumentToken parameters: - name: sectorId in: path description: The sector association id the document belongs to required: true schema: type: integer format: int64 - name: documentUuid in: query description: The sector association document uuid required: true schema: type: string format: uuid responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileToken' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-association/{id}: get: tags: - Sector association info view summary: >- Retrieves the sector association info that corresponds to the provided sector id operationId: getSectorAssociationById parameters: - name: id in: path description: The sector association id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SectorAssociationResponseDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-association/: get: tags: - Sector association info view summary: Retrieves the sectors and their contacts operationId: getSectorAssociations responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/SectorAssociationInfoDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/requests/{id}: get: tags: - Requests summary: Get request details by id operationId: getRequestDetailsById parameters: - name: id in: path description: The request id required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RequestDetailsDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/requests/available-workflows/permit/{accountId}: get: tags: - Requests summary: Get workflows to start a task operationId: getAvailableAccountWorkflows parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 responses: '200': description: OK content: '*/*': schema: type: object additionalProperties: $ref: '#/components/schemas/RequestCreateValidationResult' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/request-notes/{requestId}/files: get: tags: - Request Notes summary: >- Generate the token to get the file that belongs to the provided request note id operationId: generateGetRequestFileNoteToken parameters: - name: requestId in: path description: The request id required: true schema: type: string - name: uuid in: query description: The note file uuid required: true schema: type: string format: uuid responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileToken' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/request-actions: get: tags: - Request actions summary: Retrieves the actions associated with the request operationId: getRequestActionsByRequestId parameters: - name: requestId in: query description: The request id required: true schema: type: string responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/RequestActionInfoDTO' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/request-actions/{id}: get: tags: - Request actions summary: Get request action by id operationId: getRequestActionById parameters: - name: id in: path description: The request action id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RequestActionDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/request-action-file-documents/{id}: get: tags: - Request action file documents handling summary: >- Generate the token to get the file document with the provided uuid that belongs to the provided request action operationId: generateRequestActionGetFileDocumentToken parameters: - name: id in: path description: The request action id required: true schema: type: integer format: int64 - name: fileDocumentUuid in: query description: The file document uuid required: true schema: type: string format: uuid responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileToken' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/request-action-attachments/{id}: get: tags: - Request action attachments handling summary: >- Generate the token to get the file with the provided uuid that belongs to the provided request action operationId: generateRequestActionGetFileAttachmentToken parameters: - name: id in: path description: The request action id required: true schema: type: integer format: int64 - name: attachmentUuid in: query description: The attachment uuid required: true schema: type: string format: uuid responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileToken' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-users/{userId}/signature: get: tags: - Regulator Users summary: >- Generate the token to get the signature of the user with the provided user id operationId: generateGetRegulatorSignatureToken parameters: - name: userId in: path description: The regulator user id the signature belongs to required: true schema: type: string - name: signatureUuid in: query description: The signature uuid required: true schema: type: string format: uuid responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileToken' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-authorities/permissions: get: tags: - Regulator Authorities summary: Retrieves the current regulator user's permissions operationId: getCurrentRegulatorUserPermissionsByCa responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorityManagePermissionDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-authorities/permissions/{userId}: get: tags: - Regulator Authorities summary: Retrieves the regulator user's permissions operationId: getRegulatorUserPermissionsByCaAndId parameters: - name: userId in: path description: The regulator user id required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorityManagePermissionDTO' '400': description: "Bad Request\t\n Error Code | Description \t\nAUTHORITY1003 | User is not related to competent authority" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-authorities/permissions/group-levels: get: tags: - Regulator Authorities summary: Retrieves the regulator permissions group levels operationId: getRegulatorPermissionGroupLevels responses: '200': description: OK content: '*/*': schema: type: object additionalProperties: type: array items: type: string enum: - NONE - VIEW_ONLY - EXECUTE '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/notification-templates: get: tags: - Notification Templates summary: Retrieves the notification templates associated with current user operationId: getCurrentUserNotificationTemplates parameters: - name: role in: query description: The role type required: true schema: type: string - name: term in: query description: The term to search required: false schema: maxLength: 256 minLength: 3 type: string - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int64 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/NotificationTemplateSearchResults' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/mireports/types: get: tags: - MiReports summary: Retrieves the mi report types for current user operationId: getCurrentUserMiReports responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/MiReportSearchResult' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/mireports/request-task-types: get: tags: - MiReports summary: Get regulator related request task types operationId: getRegulatorRequestTaskTypes responses: '200': description: OK content: application/json: schema: type: array items: type: string '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/items/{requestId}: get: tags: - Request items summary: Retrieves the items by request operationId: getItemsByRequest parameters: - name: requestId in: path description: The request id required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ItemDTOResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/items/unassigned: get: tags: - Unassigned Items summary: Retrieves the unassigned items operationId: getUnassignedItems parameters: - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int64 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ItemDTOResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/items/assigned-to-others: get: tags: - Items Assigned To Others summary: >- Retrieves the items assigned to users different than the logged-in user of the same role type who participate in the same accounts operationId: getAssignedToOthersItems parameters: - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int64 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ItemDTOResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/items/assigned-to-me: get: tags: - Items Assigned To Me summary: Retrieves the items assigned to the logged-in user operationId: getAssignedItems parameters: - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int64 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ItemDTOResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/file-notes/{token}: get: tags: - File Notes summary: Get the file note resource for the provided file token operationId: getFileNote parameters: - name: token in: path description: The file note token required: true schema: type: string responses: '200': description: OK content: application/json: schema: type: string format: binary '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/file-documents/{token}: get: tags: - File Documents summary: Get the file document resource for the provided file token operationId: getFileDocument parameters: - name: token in: path description: The file document token required: true schema: type: string responses: '200': description: OK content: application/json: schema: type: string format: binary '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/file-document-templates/{token}: get: tags: - File Document Templates summary: Get the file document template resource for the provided file token operationId: getFileDocumentTemplate parameters: - name: token in: path description: The file document token required: true schema: type: string responses: '200': description: OK content: application/json: schema: type: string format: binary '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/file-attachments/{token}: get: tags: - File Attachments summary: Get the file attachment resource for the provided file attachment token operationId: getFileAttachment parameters: - name: token in: path description: The file attachment token required: true schema: type: string responses: '200': description: OK content: application/json: schema: type: string format: binary '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/facility/generate/{accountId}: get: tags: - Facility summary: Get the next facility id per sector association id operationId: generateFacilityId parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FacilityDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/facility/facilityId: get: tags: - Facility summary: Checks if facility ID exists operationId: isActiveFacility parameters: - name: facilityId in: query description: The facility ID to check required: true schema: type: string responses: '200': description: OK content: '*/*': schema: type: boolean '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/document-templates: get: tags: - Document Templates summary: Retrieves the document templates associated with current user operationId: getCurrentUserDocumentTemplates parameters: - name: term in: query description: The term to search required: false schema: maxLength: 256 minLength: 3 type: string - name: page in: query description: The page number starting from zero required: true schema: minimum: 0 type: integer format: int64 - name: size in: query description: The page size required: true schema: minimum: 1 type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DocumentTemplateSearchResults' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/document-template-files/{id}: get: tags: - Document Template Files summary: >- Generates the token to get the file with the provided uuid that belongs to the provided document template operationId: generateGetDocumentTemplateFileToken parameters: - name: id in: path description: The document template id required: true schema: type: integer format: int64 - name: fileUuid in: query description: The file uuid required: true schema: type: string format: uuid responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileToken' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/data: get: tags: - Reference Data summary: Retrieves reference data by type operationId: getReferenceData parameters: - name: types in: query description: The reference data types. required: true schema: type: array items: type: string enum: - COUNTRIES - COUNTIES responses: '200': description: OK content: '*/*': schema: type: object additionalProperties: type: array items: $ref: '#/components/schemas/ReferenceDataDTO' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' security: [] /v1.0/cca-requests/{id}: get: tags: - Cca Requests summary: Get request details by id operationId: getCcaRequestDetailsById parameters: - name: id in: path description: The sector association id required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RequestDetailsDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/cca-authorities/sector-association/{sectorId}/sector-user-roles: get: tags: - Cca Authorities summary: Retrieves the sector user roles operationId: getSectorUserRoles parameters: - name: sectorId in: path description: The sector association id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/RoleDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/authorities/verifier-role-codes: get: tags: - Authorities summary: Retrieves the verifier role codes operationId: getVerifierRoleCodes responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/RoleDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/authorities/regulator-roles: get: tags: - Authorities summary: Returns all regulator roles operationId: getRegulatorRoles responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/RegulatorRolePermissionsDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/authorities/current-user-state: get: tags: - Authorities summary: Retrieves the status of the logged in user operationId: getCurrentUserState responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserStateDTO' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/authorities/account/{accountId}/operator-role-codes: get: tags: - Authorities summary: Retrieves the operator roles operationId: getOperatorRoleCodes parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/RoleDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/accounts/{id}/verification-body: get: tags: - Account verification body summary: Get the verification body of the account (if exists) operationId: getVerificationBodyOfAccount parameters: - name: id in: path description: The account id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/VerificationBodyNameInfoDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/accounts/{id}/active-verification-bodies: get: tags: - Account verification body summary: Get all active verification bodies operationId: getActiveVerificationBodies parameters: - name: id in: path description: The account id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/VerificationBodyNameInfoDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/account-notice/{accountId}/additional-recipients: get: tags: - Notice recipients summary: Retrieves the additional Operators and the Sector users operationId: getAdditionalNoticeRecipients parameters: - name: accountId in: path description: The target unit account id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/AdditionalNoticeRecipientDTO' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/account-notes/{accountId}/files: get: tags: - Account Notes summary: >- Generate the token to get the file that belongs to the provided account note id operationId: generateGetAccountFileNoteToken parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 - name: uuid in: query description: The note file uuid required: true schema: type: string format: uuid responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FileToken' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /ui-configuration: get: tags: - UI Configuration summary: Retrieves configuration for UI features operationId: getUIFlags responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UIPropertiesDTO' security: [] /v1.0/tasks-assignment/release/{taskId}: delete: tags: - Tasks Release summary: Releases a task operationId: releaseTask parameters: - name: taskId in: path description: The task id to be released required: true schema: type: integer format: int64 responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nITEM1000 | Can not assign request to the provided user \t\nITEM1001 | Request task is not assignable" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/sector-authorities/sector-association/{sectorId}/{userId}: delete: tags: - Sector Association authorities summary: Delete authority from the sector association operationId: deleteSectorUser parameters: - name: userId in: path required: true schema: type: string - name: sectorId in: path required: true schema: type: integer format: int64 responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/regulator-authorities/{userId}: delete: tags: - Regulator Authorities summary: Delete the regulator user that corresponds to the provided user id operationId: deleteRegulatorUserByCompetentAuthority parameters: - name: userId in: path description: The regulator to be deleted required: true schema: type: string responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' /v1.0/operator-authorities/account/{accountId}/{userId}: delete: tags: - Operator Authorities summary: Deletes authority from the account operationId: deleteAccountOperatorAuthority parameters: - name: accountId in: path description: The account id required: true schema: type: integer format: int64 - name: userId in: path description: The user id required: true schema: type: string responses: '204': description: No Content '400': description: "Bad Request\t\n Error Code | Description \t\nAUTHORITY1001 | At least one operator admin should exist in account \t\n AUTHORITY1004 | User is not related to account" content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' components: schemas: UnderlyingAgreementTargetUnitResponsiblePerson: required: - address - email - firstName - lastName type: object properties: firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string email: maxLength: 255 minLength: 0 type: string address: $ref: '#/components/schemas/AccountAddressDTO' TargetPeriod6Details: required: - baselineData - targetComposition - targets type: object properties: targetComposition: $ref: '#/components/schemas/TargetComposition' baselineData: $ref: '#/components/schemas/BaselineData' targets: $ref: '#/components/schemas/Targets' TargetPeriod5Details: required: - exist type: object properties: exist: type: boolean details: $ref: '#/components/schemas/TargetPeriod6Details' UnderlyingAgreementSaveRequestTaskActionPayload: type: object properties: payloadType: type: string underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementApplySavePayload' sectionsCompleted: type: object additionalProperties: type: string AuthorisationAndAdditionalEvidence: required: - authorisationAttachmentIds type: object properties: authorisationAttachmentIds: uniqueItems: true type: array items: type: string format: uuid additionalEvidenceAttachmentIds: uniqueItems: true type: array items: type: string format: uuid AccountReferenceData: type: object properties: targetUnitAccountDetails: $ref: '#/components/schemas/TargetUnitAccountDetails' sectorAssociationDetails: $ref: '#/components/schemas/SectorAssociationDetails' RdeForceDecisionRequestTaskPayload: required: - rdeForceDecisionPayload - rdeResponsePayload type: object properties: payloadType: type: string rdeResponsePayload: $ref: '#/components/schemas/RdeResponsePayload' rdeForceDecisionPayload: $ref: '#/components/schemas/RdeForceDecisionPayload' rdeAttachments: type: object additionalProperties: type: string UnderlyingAgreementSaveReviewGroupDecisionRequestTaskActionPayload: required: - decision - group type: object properties: payloadType: type: string group: type: string enum: - TARGET_UNIT_DETAILS - TARGET_PERIOD5_DETAILS - TARGET_PERIOD6_DETAILS - AUTHORISATION_AND_ADDITIONAL_EVIDENCE decision: $ref: '#/components/schemas/UnderlyingAgreementReviewDecision' determination: $ref: '#/components/schemas/Determination' reviewSectionsCompleted: type: object additionalProperties: type: string AdminTerminationWithdrawSaveRequestTaskActionPayload: type: object properties: payloadType: type: string adminTerminationWithdrawReasonDetails: $ref: '#/components/schemas/AdminTerminationWithdrawReasonDetails' sectionsCompleted: type: object additionalProperties: type: string ItemTargetUnitDTO: type: object properties: creationDate: type: string format: date-time requestId: type: string requestType: type: string taskId: type: integer format: int64 taskAssignee: $ref: '#/components/schemas/UserInfoDTO' taskAssigneeType: type: string taskType: type: string daysRemaining: type: integer format: int64 accountId: type: integer format: int64 accountName: type: string businessId: type: string competentAuthority: type: string enum: - ENGLAND - NORTHERN_IRELAND - OPRED - SCOTLAND - WALES isNew: type: boolean RfiResponseSubmittedRequestActionPayload: required: - rfiQuestionPayload - rfiResponsePayload type: object properties: payloadType: type: string rfiQuestionPayload: $ref: '#/components/schemas/RfiQuestionPayload' rfiResponsePayload: $ref: '#/components/schemas/RfiResponsePayload' rfiAttachments: type: object additionalProperties: type: string RequestTaskActionEmptyPayload: type: object properties: payloadType: type: string UnderlyingAgreementVariationReviewSavePayload: required: - authorisationAndAdditionalEvidence - facilities - targetPeriod5Details - targetPeriod6Details - underlyingAgreementTargetUnitDetails - underlyingAgreementVariationDetails type: object properties: underlyingAgreementTargetUnitDetails: $ref: '#/components/schemas/UnderlyingAgreementTargetUnitDetails' underlyingAgreementVariationDetails: $ref: '#/components/schemas/UnderlyingAgreementVariationDetails' facilities: uniqueItems: true type: array items: $ref: '#/components/schemas/Facility' targetPeriod5Details: $ref: '#/components/schemas/TargetPeriod5Details' targetPeriod6Details: $ref: '#/components/schemas/TargetPeriod6Details' authorisationAndAdditionalEvidence: $ref: '#/components/schemas/AuthorisationAndAdditionalEvidence' UnderlyingAgreementActivationSaveRequestTaskActionPayload: type: object properties: payloadType: type: string underlyingAgreementActivationDetails: $ref: '#/components/schemas/UnderlyingAgreementActivationDetails' sectionsCompleted: type: object additionalProperties: type: string RdeSubmittedRequestActionPayload: required: - officialDocument - rdePayload type: object properties: payloadType: type: string rdePayload: $ref: '#/components/schemas/RdePayload' usersInfo: type: object additionalProperties: $ref: '#/components/schemas/RequestActionUserInfo' officialDocument: $ref: '#/components/schemas/FileInfoDTO' AccountAddressDTO: required: - city - country - line1 - postcode type: object properties: line1: maxLength: 255 minLength: 0 type: string line2: maxLength: 255 minLength: 0 type: string city: maxLength: 255 minLength: 0 type: string postcode: maxLength: 255 minLength: 0 type: string county: maxLength: 255 minLength: 0 type: string country: maxLength: 255 minLength: 0 type: string AdminTerminationSaveRequestTaskActionPayload: type: object properties: payloadType: type: string adminTerminationReasonDetails: $ref: '#/components/schemas/AdminTerminationReasonDetails' sectionsCompleted: type: object additionalProperties: type: string RfiResponseSubmitRequestTaskActionPayload: required: - rfiResponsePayload type: object properties: payloadType: type: string rfiResponsePayload: $ref: '#/components/schemas/RfiResponsePayload' RdeForceDecisionPayload: required: - decision - evidence type: object properties: decision: type: string enum: - ACCEPTED - REJECTED evidence: maxLength: 10000 minLength: 0 type: string files: uniqueItems: true type: array items: type: string format: uuid UnderlyingAgreementActivationRequestTaskPayload: type: object properties: payloadType: type: string underlyingAgreementActivationDetails: $ref: '#/components/schemas/UnderlyingAgreementActivationDetails' sectionsCompleted: type: object additionalProperties: type: string underlyingAgreementActivationAttachments: type: object additionalProperties: type: string UnderlyingAgreementVariationSubmittedRequestActionPayload: type: object properties: payloadType: type: string businessId: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementVariationPayload' sectionsCompleted: type: object additionalProperties: type: string underlyingAgreementAttachments: type: object additionalProperties: type: string AdminTerminationSubmittedRequestActionPayload: required: - adminTerminationReasonDetails - decisionNotification - defaultContacts - officialNotice type: object properties: payloadType: type: string businessId: type: string adminTerminationReasonDetails: $ref: '#/components/schemas/AdminTerminationReasonDetails' decisionNotification: $ref: '#/components/schemas/CcaDecisionNotification' adminTerminationSubmitAttachments: type: object additionalProperties: type: string usersInfo: type: object additionalProperties: $ref: '#/components/schemas/RequestActionUserInfo' defaultContacts: type: array items: $ref: '#/components/schemas/DefaultNoticeRecipient' officialNotice: $ref: '#/components/schemas/FileInfoDTO' RdeResponseRequestTaskPayload: required: - rdeResponsePayload type: object properties: payloadType: type: string rdeResponsePayload: $ref: '#/components/schemas/RdeResponsePayload' UnderlyingAgreementVariationApplySavePayload: required: - authorisationAndAdditionalEvidence - facilities - targetPeriod5Details - targetPeriod6Details - underlyingAgreementTargetUnitDetails - underlyingAgreementVariationDetails type: object properties: underlyingAgreementTargetUnitDetails: $ref: >- #/components/schemas/UnderlyingAgreementVariationApplySaveTargetUnitDetails underlyingAgreementVariationDetails: $ref: '#/components/schemas/UnderlyingAgreementVariationDetails' facilities: uniqueItems: true type: array items: $ref: '#/components/schemas/Facility' targetPeriod5Details: $ref: '#/components/schemas/TargetPeriod5Details' targetPeriod6Details: $ref: '#/components/schemas/TargetPeriod6Details' authorisationAndAdditionalEvidence: $ref: '#/components/schemas/AuthorisationAndAdditionalEvidence' RdeDecisionForcedRequestActionPayload: required: - rdeForceDecisionPayload type: object properties: payloadType: type: string rdeForceDecisionPayload: $ref: '#/components/schemas/RdeForceDecisionPayload' rdeAttachments: type: object additionalProperties: type: string BankAccountDetailsDTO: type: object properties: sortCode: type: string accountNumber: type: string accountName: type: string iban: type: string swiftCode: type: string UnderlyingAgreementApplySavePayload: required: - authorisationAndAdditionalEvidence - facilities - targetPeriod5Details - targetPeriod6Details - underlyingAgreementTargetUnitDetails type: object properties: underlyingAgreementTargetUnitDetails: $ref: '#/components/schemas/UnderlyingAgreementApplySaveTargetUnitDetails' facilities: uniqueItems: true type: array items: $ref: '#/components/schemas/FacilityItem' targetPeriod5Details: $ref: '#/components/schemas/TargetPeriod5Details' targetPeriod6Details: $ref: '#/components/schemas/TargetPeriod6Details' authorisationAndAdditionalEvidence: $ref: '#/components/schemas/AuthorisationAndAdditionalEvidence' UnderlyingAgreementRejectedRequestActionPayload: required: - decisionNotification - defaultContacts - determination - officialNotice - underlyingAgreement type: object properties: payloadType: type: string businessId: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementPayload' underlyingAgreementAttachments: type: object additionalProperties: type: string decisionNotification: $ref: '#/components/schemas/CcaDecisionNotification' defaultContacts: type: array items: $ref: '#/components/schemas/DefaultNoticeRecipient' usersInfo: type: object additionalProperties: $ref: '#/components/schemas/RequestActionUserInfo' officialNotice: $ref: '#/components/schemas/FileInfoDTO' determination: $ref: '#/components/schemas/Determination' reviewSectionsCompleted: type: object additionalProperties: type: string reviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementReviewDecision' facilitiesReviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementFacilityReviewDecision' reviewAttachments: type: object additionalProperties: type: string UnderlyingAgreementReviewRequestTaskPayload: type: object properties: payloadType: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementPayload' sectionsCompleted: type: object additionalProperties: type: string underlyingAgreementAttachments: type: object additionalProperties: type: string reviewSectionsCompleted: type: object additionalProperties: type: string reviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementReviewDecision' facilitiesReviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementFacilityReviewDecision' reviewAttachments: type: object additionalProperties: type: string determination: $ref: '#/components/schemas/Determination' UnderlyingAgreementActivationDetails: required: - evidenceFiles type: object properties: evidenceFiles: uniqueItems: true type: array items: type: string format: uuid comments: maxLength: 10000 minLength: 0 type: string TargetUnitAccountContactDTO: required: - address - email - firstName - lastName type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string jobTitle: maxLength: 255 minLength: 0 type: string address: $ref: '#/components/schemas/AccountAddressDTO' phoneNumber: $ref: '#/components/schemas/PhoneNumberDTO' RfiSubmitRequestTaskActionPayload: required: - rfiSubmitPayload type: object properties: payloadType: type: string rfiSubmitPayload: $ref: '#/components/schemas/RfiSubmitPayload' Determination: required: - type type: object properties: type: type: string enum: - ACCEPTED - REJECTED reason: maxLength: 10000 minLength: 0 type: string additionalInformation: maxLength: 10000 minLength: 0 type: string files: uniqueItems: true type: array items: type: string format: uuid UnderlyingAgreementSaveReviewRequestTaskActionPayload: type: object properties: payloadType: type: string underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementReviewSavePayload' sectionsCompleted: type: object additionalProperties: type: string reviewSectionsCompleted: type: object additionalProperties: type: string UnderlyingAgreementPayload: required: - authorisationAndAdditionalEvidence - facilities - targetPeriod5Details - targetPeriod6Details - underlyingAgreementTargetUnitDetails type: object properties: underlyingAgreementTargetUnitDetails: $ref: '#/components/schemas/UnderlyingAgreementTargetUnitDetails' facilities: uniqueItems: true type: array items: $ref: '#/components/schemas/Facility' targetPeriod5Details: $ref: '#/components/schemas/TargetPeriod5Details' targetPeriod6Details: $ref: '#/components/schemas/TargetPeriod6Details' authorisationAndAdditionalEvidence: $ref: '#/components/schemas/AuthorisationAndAdditionalEvidence' AdminTerminationSubmitRequestTaskPayload: type: object properties: payloadType: type: string adminTerminationReasonDetails: $ref: '#/components/schemas/AdminTerminationReasonDetails' sectionsCompleted: type: object additionalProperties: type: string adminTerminationAttachments: type: object additionalProperties: type: string FacilityDetails: required: - applicationReason - facilityAddress - isCoveredByUkets - name type: object properties: name: maxLength: 255 minLength: 0 type: string isCoveredByUkets: type: boolean uketsId: maxLength: 255 minLength: 0 type: string applicationReason: type: string enum: - NEW_AGREEMENT - CHANGE_OF_OWNERSHIP previousFacilityId: maxLength: 255 minLength: 0 type: string facilityAddress: $ref: '#/components/schemas/AccountAddressDTO' PaymentProcessedRequestActionPayload: type: object properties: payloadType: type: string paymentRefNum: type: string paymentDate: type: string format: date paidByFullName: type: string amount: type: number status: type: string enum: - MARK_AS_PAID - MARK_AS_RECEIVED - COMPLETED - CANCELLED paymentMethod: type: string enum: - BANK_TRANSFER - CREDIT_OR_DEBIT_CARD receivedDate: type: string format: date UnderlyingAgreementVariationSaveRequestTaskActionPayload: type: object properties: payloadType: type: string underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementVariationApplySavePayload' sectionsCompleted: type: object additionalProperties: type: string UnderlyingAgreementReviewSavePayload: required: - authorisationAndAdditionalEvidence - facilities - targetPeriod5Details - targetPeriod6Details - underlyingAgreementTargetUnitDetails type: object properties: underlyingAgreementTargetUnitDetails: $ref: '#/components/schemas/UnderlyingAgreementTargetUnitDetails' facilities: uniqueItems: true type: array items: $ref: '#/components/schemas/FacilityItem' targetPeriod5Details: $ref: '#/components/schemas/TargetPeriod5Details' targetPeriod6Details: $ref: '#/components/schemas/TargetPeriod6Details' authorisationAndAdditionalEvidence: $ref: '#/components/schemas/AuthorisationAndAdditionalEvidence' UnderlyingAgreementReviewDecision: required: - details - type type: object properties: type: type: string enum: - ACCEPTED - REJECTED details: $ref: '#/components/schemas/UnderlyingAgreementReviewDecisionDetails' CcaDecisionNotification: required: - signatory type: object properties: operators: uniqueItems: true type: array items: type: string externalContacts: uniqueItems: true type: array items: type: integer format: int64 signatory: type: string sectorUsers: uniqueItems: true type: array items: type: string UnderlyingAgreementVariationReviewRequestTaskPayload: type: object properties: payloadType: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' originalUnderlyingAgreementContainer: $ref: '#/components/schemas/UnderlyingAgreementContainer' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementVariationPayload' sectionsCompleted: type: object additionalProperties: type: string underlyingAgreementAttachments: type: object additionalProperties: type: string reviewSectionsCompleted: type: object additionalProperties: type: string reviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementReviewDecision' facilitiesReviewGroupDecisions: type: object additionalProperties: $ref: >- #/components/schemas/UnderlyingAgreementVariationFacilityReviewDecision reviewAttachments: type: object additionalProperties: type: string determination: $ref: '#/components/schemas/Determination' UnderlyingAgreementFacilityReviewDecision: required: - details - type type: object properties: type: type: string enum: - ACCEPTED - REJECTED details: $ref: '#/components/schemas/UnderlyingAgreementReviewDecisionDetails' changeStartDate: type: boolean startDate: type: string format: date TargetUnitAccountCreationSubmittedRequestActionPayload: required: - payload type: object properties: payloadType: type: string businessId: type: string payload: $ref: '#/components/schemas/TargetUnitAccountPayload' RfiResponseSubmitRequestTaskPayload: required: - rfiQuestionPayload - rfiResponsePayload type: object properties: payloadType: type: string rfiQuestionPayload: $ref: '#/components/schemas/RfiQuestionPayload' rfiResponsePayload: $ref: '#/components/schemas/RfiResponsePayload' rfiAttachments: type: object additionalProperties: type: string UnderlyingAgreementSaveFacilityReviewGroupDecisionRequestTaskActionPayload: required: - decision - group type: object properties: payloadType: type: string group: type: string decision: $ref: '#/components/schemas/UnderlyingAgreementFacilityReviewDecision' determination: $ref: '#/components/schemas/Determination' reviewSectionsCompleted: type: object additionalProperties: type: string Targets: required: - improvement type: object properties: improvement: type: number target: type: number UnderlyingAgreementContainer: required: - sectorMeasurementType - underlyingAgreement type: object properties: sectorMeasurementType: type: string enum: - ENERGY_KWH - ENERGY_MWH - ENERGY_GJ - CARBON_KG - CARBON_TONNE sectorThroughputUnit: type: string underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreement' sectionsCompleted: type: object additionalProperties: type: string underlyingAgreementAttachments: type: object additionalProperties: type: string AdminTerminationReasonDetails: required: - explanation - reason type: object properties: reason: type: string enum: - SITE_CLOSURE_SCHEME - NOT_SIGN_AGREEMENT - TRANSFER_OF_OWNERSHIP - DATA_NOT_PROVIDED - FAILURE_TO_COMPLY - FAILURE_TO_AGREE - FAILURE_TO_PAY explanation: type: string relevantFiles: uniqueItems: true type: array items: type: string format: uuid UnderlyingAgreementVariationActivationSaveRequestTaskActionPayload: type: object properties: payloadType: type: string underlyingAgreementActivationDetails: $ref: '#/components/schemas/UnderlyingAgreementActivationDetails' sectionsCompleted: type: object additionalProperties: type: string RfiQuestionPayload: required: - questions type: object properties: questions: type: array items: maxLength: 10000 minLength: 0 type: string files: uniqueItems: true type: array items: type: string format: uuid AdminTerminationFinalDecisionRequestTaskPayload: type: object properties: payloadType: type: string adminTerminationFinalDecisionReasonDetails: $ref: '#/components/schemas/AdminTerminationFinalDecisionReasonDetails' sectionsCompleted: type: object additionalProperties: type: string adminTerminationAttachments: type: object additionalProperties: type: string Facility: required: - apply70Rule - eligibilityDetailsAndAuthorisation - facilityContact - facilityDetails - facilityExtent - facilityId - status type: object properties: status: type: string enum: - NEW - LIVE - EXCLUDED excludedDate: type: string format: date facilityId: maxLength: 255 minLength: 0 type: string facilityDetails: $ref: '#/components/schemas/FacilityDetails' facilityContact: $ref: '#/components/schemas/TargetUnitAccountContactDTO' eligibilityDetailsAndAuthorisation: $ref: '#/components/schemas/EligibilityDetailsAndAuthorisation' facilityExtent: $ref: '#/components/schemas/FacilityExtent' apply70Rule: $ref: '#/components/schemas/Apply70Rule' UnderlyingAgreementApplySaveTargetUnitDetails: required: - operatorAddress - operatorName - responsiblePersonDetails type: object properties: operatorName: maxLength: 255 minLength: 0 type: string operatorAddress: $ref: '#/components/schemas/AccountAddressDTO' responsiblePersonDetails: $ref: '#/components/schemas/UnderlyingAgreementTargetUnitResponsiblePerson' TargetUnitAccountDetails: type: object properties: operatorName: type: string operatorType: type: string enum: - LIMITED_COMPANY - PARTNERSHIP - SOLE_TRADER - NONE companyRegistrationNumber: type: string registrationNumberMissingReason: type: string address: $ref: '#/components/schemas/AccountAddressDTO' responsiblePerson: $ref: '#/components/schemas/TargetUnitAccountContactDTO' administrativeContactDetails: $ref: '#/components/schemas/TargetUnitAccountContactDTO' sectorAssociationId: type: integer format: int64 subsectorAssociationId: type: integer format: int64 RfiResponsePayload: required: - answers type: object properties: answers: type: array items: maxLength: 10000 minLength: 0 type: string files: uniqueItems: true type: array items: type: string format: uuid UnderlyingAgreementVariationSubmitRequestTaskPayload: type: object properties: payloadType: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' originalUnderlyingAgreementContainer: $ref: '#/components/schemas/UnderlyingAgreementContainer' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementVariationPayload' sectionsCompleted: type: object additionalProperties: type: string underlyingAgreementAttachments: type: object additionalProperties: type: string AdminTerminationWithdrawSubmittedRequestActionPayload: required: - adminTerminationWithdrawReasonDetails - decisionNotification - defaultContacts - officialNotice type: object properties: payloadType: type: string businessId: type: string adminTerminationWithdrawReasonDetails: $ref: '#/components/schemas/AdminTerminationWithdrawReasonDetails' decisionNotification: $ref: '#/components/schemas/CcaDecisionNotification' adminTerminationWithdrawAttachments: type: object additionalProperties: type: string usersInfo: type: object additionalProperties: $ref: '#/components/schemas/RequestActionUserInfo' defaultContacts: type: array items: $ref: '#/components/schemas/DefaultNoticeRecipient' officialNotice: $ref: '#/components/schemas/FileInfoDTO' DecisionNotification: required: - signatory type: object properties: operators: uniqueItems: true type: array items: type: string externalContacts: uniqueItems: true type: array items: type: integer format: int64 signatory: type: string PaymentCancelledRequestActionPayload: type: object properties: payloadType: type: string status: type: string enum: - MARK_AS_PAID - MARK_AS_RECEIVED - COMPLETED - CANCELLED cancellationReason: type: string AdminTerminationWithdrawRequestTaskPayload: type: object properties: payloadType: type: string adminTerminationWithdrawReasonDetails: $ref: '#/components/schemas/AdminTerminationWithdrawReasonDetails' sectionsCompleted: type: object additionalProperties: type: string adminTerminationAttachments: type: object additionalProperties: type: string UnderlyingAgreementVariationAcceptedRequestActionPayload: required: - decisionNotification - defaultContacts - determination - officialNotice - underlyingAgreementDocument type: object properties: payloadType: type: string businessId: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementVariationPayload' sectionsCompleted: type: object additionalProperties: type: string underlyingAgreementAttachments: type: object additionalProperties: type: string decisionNotification: $ref: '#/components/schemas/CcaDecisionNotification' defaultContacts: type: array items: $ref: '#/components/schemas/DefaultNoticeRecipient' usersInfo: type: object additionalProperties: $ref: '#/components/schemas/RequestActionUserInfo' officialNotice: $ref: '#/components/schemas/FileInfoDTO' determination: $ref: '#/components/schemas/Determination' reviewSectionsCompleted: type: object additionalProperties: type: string reviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementReviewDecision' facilitiesReviewGroupDecisions: type: object additionalProperties: $ref: >- #/components/schemas/UnderlyingAgreementVariationFacilityReviewDecision reviewAttachments: type: object additionalProperties: type: string underlyingAgreementDocument: $ref: '#/components/schemas/FileInfoDTO' FacilityExtent: required: - annotatedSitePlansFile - areActivitiesClaimed - eligibleProcessFile - manufacturingProcessFile - processFlowFile type: object properties: manufacturingProcessFile: type: string format: uuid processFlowFile: type: string format: uuid annotatedSitePlansFile: type: string format: uuid eligibleProcessFile: type: string format: uuid areActivitiesClaimed: type: boolean activitiesDescriptionFile: type: string format: uuid PaymentConfirmRequestTaskPayload: type: object properties: payloadType: type: string paymentRefNum: type: string paymentDate: type: string format: date paidByFullName: type: string amount: type: number status: type: string enum: - MARK_AS_PAID - MARK_AS_RECEIVED - COMPLETED - CANCELLED paymentMethod: type: string enum: - BANK_TRANSFER - CREDIT_OR_DEBIT_CARD RequestActionUserInfo: required: - name type: object properties: name: type: string roleCode: type: string contactTypes: uniqueItems: true type: array items: type: string DefaultNoticeRecipient: required: - email - name - recipientType type: object properties: name: type: string email: type: string recipientType: type: string enum: - RESPONSIBLE_PERSON - ADMINISTRATIVE_CONTACT - SECTOR_CONTACT - SECTOR_USER - OPERATOR UnderlyingAgreementVariationRejectedRequestActionPayload: required: - decisionNotification - defaultContacts - determination - officialNotice type: object properties: payloadType: type: string businessId: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementVariationPayload' sectionsCompleted: type: object additionalProperties: type: string underlyingAgreementAttachments: type: object additionalProperties: type: string decisionNotification: $ref: '#/components/schemas/CcaDecisionNotification' defaultContacts: type: array items: $ref: '#/components/schemas/DefaultNoticeRecipient' usersInfo: type: object additionalProperties: $ref: '#/components/schemas/RequestActionUserInfo' officialNotice: $ref: '#/components/schemas/FileInfoDTO' determination: $ref: '#/components/schemas/Determination' reviewSectionsCompleted: type: object additionalProperties: type: string reviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementReviewDecision' facilitiesReviewGroupDecisions: type: object additionalProperties: $ref: >- #/components/schemas/UnderlyingAgreementVariationFacilityReviewDecision reviewAttachments: type: object additionalProperties: type: string TargetUnitAccountPayload: required: - address - administrativeContactDetails - competentAuthority - emissionTradingScheme - isCompanyRegistrationNumber - name - operatorType - responsiblePerson type: object properties: name: maxLength: 255 minLength: 0 type: string emissionTradingScheme: type: string enum: - DUMMY_EMISSION_TRADING_SCHEME competentAuthority: type: string enum: - ENGLAND - NORTHERN_IRELAND - OPRED - SCOTLAND - WALES operatorType: type: string enum: - LIMITED_COMPANY - PARTNERSHIP - SOLE_TRADER - NONE isCompanyRegistrationNumber: type: boolean companyRegistrationNumber: maxLength: 255 minLength: 0 type: string registrationNumberMissingReason: maxLength: 255 minLength: 0 type: string sicCode: maxLength: 255 minLength: 0 type: string subsectorAssociationId: type: integer format: int64 address: $ref: '#/components/schemas/AccountAddressDTO' responsiblePerson: $ref: '#/components/schemas/TargetUnitAccountContactDTO' administrativeContactDetails: $ref: '#/components/schemas/TargetUnitAccountContactDTO' RdeSubmitRequestTaskActionPayload: required: - rdePayload type: object properties: payloadType: type: string rdePayload: $ref: '#/components/schemas/RdePayload' UnderlyingAgreementVariationDetails: required: - modifications - reason type: object properties: reason: maxLength: 10000 minLength: 0 type: string modifications: type: array items: type: string enum: - AMEND_OPERATOR_OR_ORGANISATION_NAME - AMEND_OPERATOR_OR_ORGANISATION_TARGET_UNIT_ADDRESS - AMEND_RESPONSIBLE_PERSON_PERSONAL_DETAILS - AMEND_ONE_OR_MORE_FACILITIES_NAME - ADD_ONE_OR_MORE_FACILITIES_TO_AGREEMENT - REMOVE_ONE_OR_MORE_FACILITIES_FROM_AGREEMENT - AMEND_70_PERCENT_RULE_EVALUATION - STRUCTURAL_CHANGE - REVIEW_OF_70_PERCENT_RULE - ERROR_DISCOVERY - ADDITION_OR_REMOVAL_ONE_OR_MORE_FACILITIES_FROM_AGREEMENT - REPLACING_ESTIMATED_WITH_ACTUAL_VALUES - UNEXPECTED_POWER_SUPPLY_DISRUPTION_DURING_TARGET_PERIOD - THROUGHPUT_DROPPING_MORE_THAN_10_PERCENT_DURING_TARGET_PERIOD - CHANGE_BETWEEN_RELATIVE_AND_NOVEM_TARGET_TYPES - CHANGE_THROUGHPUT_UNIT - ANY_CHANGES_NOT_COVERED UnderlyingAgreementVariationFacilityReviewDecision: required: - details - facilityStatus - type type: object properties: type: type: string enum: - ACCEPTED - REJECTED details: $ref: '#/components/schemas/UnderlyingAgreementReviewDecisionDetails' changeStartDate: type: boolean startDate: type: string format: date facilityStatus: type: string enum: - NEW - LIVE - EXCLUDED RfiSubmittedRequestActionPayload: required: - officialDocument - rfiSubmitPayload type: object properties: payloadType: type: string rfiSubmitPayload: $ref: '#/components/schemas/RfiSubmitPayload' usersInfo: type: object additionalProperties: $ref: '#/components/schemas/RequestActionUserInfo' rfiAttachments: type: object additionalProperties: type: string officialDocument: $ref: '#/components/schemas/FileInfoDTO' SectorAssociationDetails: type: object properties: subsectorAssociationName: type: string measurementType: type: string enum: - ENERGY_KWH - ENERGY_MWH - ENERGY_GJ - CARBON_KG - CARBON_TONNE throughputUnit: type: string FileInfoDTO: type: object properties: name: type: string uuid: type: string UnderlyingAgreementVariationPayload: required: - authorisationAndAdditionalEvidence - facilities - targetPeriod5Details - targetPeriod6Details - underlyingAgreementTargetUnitDetails - underlyingAgreementVariationDetails type: object properties: underlyingAgreementVariationDetails: $ref: '#/components/schemas/UnderlyingAgreementVariationDetails' underlyingAgreementTargetUnitDetails: $ref: '#/components/schemas/UnderlyingAgreementTargetUnitDetails' facilities: uniqueItems: true type: array items: $ref: '#/components/schemas/Facility' targetPeriod5Details: $ref: '#/components/schemas/TargetPeriod5Details' targetPeriod6Details: $ref: '#/components/schemas/TargetPeriod6Details' authorisationAndAdditionalEvidence: $ref: '#/components/schemas/AuthorisationAndAdditionalEvidence' UnderlyingAgreementSubmittedRequestActionPayload: required: - underlyingAgreement type: object properties: payloadType: type: string businessId: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementPayload' underlyingAgreementAttachments: type: object additionalProperties: type: string RdeResponseSubmitRequestTaskActionPayload: required: - rdeDecisionPayload type: object properties: payloadType: type: string rdeDecisionPayload: $ref: '#/components/schemas/RdeDecisionPayload' UnderlyingAgreementTargetUnitDetails: required: - isCompanyRegistrationNumber - operatorAddress - operatorName - operatorType - responsiblePersonDetails type: object properties: operatorName: maxLength: 255 minLength: 0 type: string operatorAddress: $ref: '#/components/schemas/AccountAddressDTO' responsiblePersonDetails: $ref: '#/components/schemas/UnderlyingAgreementTargetUnitResponsiblePerson' operatorType: type: string enum: - LIMITED_COMPANY - PARTNERSHIP - SOLE_TRADER - NONE isCompanyRegistrationNumber: type: boolean companyRegistrationNumber: maxLength: 255 minLength: 0 type: string registrationNumberMissingReason: maxLength: 255 minLength: 0 type: string subsectorAssociationName: maxLength: 255 minLength: 0 type: string subsectorAssociationId: type: integer format: int64 PaymentMarkAsReceivedRequestTaskActionPayload: required: - receivedDate type: object properties: payloadType: type: string receivedDate: type: string format: date AdminTerminationFinalDecisionSaveRequestTaskActionPayload: type: object properties: payloadType: type: string adminTerminationFinalDecisionReasonDetails: $ref: '#/components/schemas/AdminTerminationFinalDecisionReasonDetails' sectionsCompleted: type: object additionalProperties: type: string UnderlyingAgreementVariationSaveFacilityReviewGroupDecisionRequestTaskActionPayload: required: - decision - group type: object properties: payloadType: type: string group: type: string decision: $ref: >- #/components/schemas/UnderlyingAgreementVariationFacilityReviewDecision determination: $ref: '#/components/schemas/Determination' reviewSectionsCompleted: type: object additionalProperties: type: string RdeResponsePayload: required: - currentDueDate - proposedDueDate type: object properties: currentDueDate: type: string format: date proposedDueDate: type: string format: date UnderlyingAgreementReviewDecisionDetails: required: - notes type: object properties: notes: maxLength: 10000 minLength: 0 type: string files: uniqueItems: true type: array items: type: string format: uuid FacilityItem: required: - apply70Rule - eligibilityDetailsAndAuthorisation - facilityContact - facilityDetails - facilityExtent - facilityId type: object properties: facilityId: maxLength: 255 minLength: 0 type: string facilityDetails: $ref: '#/components/schemas/FacilityDetails' facilityContact: $ref: '#/components/schemas/TargetUnitAccountContactDTO' eligibilityDetailsAndAuthorisation: $ref: '#/components/schemas/EligibilityDetailsAndAuthorisation' facilityExtent: $ref: '#/components/schemas/FacilityExtent' apply70Rule: $ref: '#/components/schemas/Apply70Rule' UnderlyingAgreementSaveReviewDeterminationRequestTaskActionPayload: type: object properties: payloadType: type: string determination: $ref: '#/components/schemas/Determination' UnderlyingAgreement: required: - authorisationAndAdditionalEvidence - facilities - targetPeriod5Details - targetPeriod6Details type: object properties: facilities: uniqueItems: true type: array items: $ref: '#/components/schemas/Facility' targetPeriod5Details: $ref: '#/components/schemas/TargetPeriod5Details' targetPeriod6Details: $ref: '#/components/schemas/TargetPeriod6Details' authorisationAndAdditionalEvidence: $ref: '#/components/schemas/AuthorisationAndAdditionalEvidence' UnderlyingAgreementSubmitRequestTaskPayload: type: object properties: payloadType: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementPayload' sectionsCompleted: type: object additionalProperties: type: string underlyingAgreementAttachments: type: object additionalProperties: type: string RdeDecisionPayload: required: - decision type: object properties: decision: type: string enum: - ACCEPTED - REJECTED reason: maxLength: 10000 minLength: 0 type: string ReportRelatedRequestCreateActionPayload: required: - requestId type: object properties: payloadType: type: string requestId: type: string PhoneNumberDTO: type: object properties: countryCode: type: string number: maxLength: 255 minLength: 0 type: string UnderlyingAgreementVariationSaveReviewGroupDecisionRequestTaskActionPayload: required: - decision - group type: object properties: payloadType: type: string group: type: string enum: - TARGET_UNIT_DETAILS - TARGET_PERIOD5_DETAILS - TARGET_PERIOD6_DETAILS - AUTHORISATION_AND_ADDITIONAL_EVIDENCE - VARIATION_DETAILS decision: $ref: '#/components/schemas/UnderlyingAgreementReviewDecision' determination: $ref: '#/components/schemas/Determination' reviewSectionsCompleted: type: object additionalProperties: type: string RequestCreateActionEmptyPayload: type: object properties: payloadType: type: string AdminTerminationFinalDecisionReasonDetails: required: - explanation - finalDecisionType type: object properties: finalDecisionType: type: string enum: - TERMINATE_AGREEMENT - WITHDRAW_TERMINATION explanation: type: string relevantFiles: uniqueItems: true type: array items: type: string format: uuid TargetComposition: required: - agreementCompositionType - calculatorFile - measurementType type: object properties: calculatorFile: type: string format: uuid measurementType: type: string enum: - ENERGY_KWH - ENERGY_MWH - ENERGY_GJ - CARBON_KG - CARBON_TONNE agreementCompositionType: type: string enum: - ABSOLUTE - RELATIVE - NOVEM isTargetUnitThroughputMeasured: type: boolean throughputUnit: type: string conversionFactor: type: number conversionEvidences: uniqueItems: true type: array items: type: string format: uuid PaymentTrackRequestTaskPayload: type: object properties: payloadType: type: string amount: type: number paymentRefNum: type: string UserInfoDTO: type: object properties: firstName: type: string lastName: type: string RdeForceDecisionRequestTaskActionPayload: required: - rdeForceDecisionPayload type: object properties: payloadType: type: string rdeForceDecisionPayload: $ref: '#/components/schemas/RdeForceDecisionPayload' ItemTargetUnitAccountDTO: type: object properties: accountId: type: integer format: int64 accountName: type: string businessId: type: string competentAuthority: type: string enum: - ENGLAND - NORTHERN_IRELAND - OPRED - SCOTLAND - WALES UnderlyingAgreementVariationApplySaveTargetUnitDetails: required: - operatorAddress - operatorName - responsiblePersonDetails type: object properties: operatorName: maxLength: 255 minLength: 0 type: string operatorAddress: $ref: '#/components/schemas/AccountAddressDTO' responsiblePersonDetails: $ref: '#/components/schemas/UnderlyingAgreementTargetUnitResponsiblePerson' UnderlyingAgreementAcceptedRequestActionPayload: required: - decisionNotification - defaultContacts - determination - officialNotice - underlyingAgreement - underlyingAgreementDocument type: object properties: payloadType: type: string businessId: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementPayload' underlyingAgreementAttachments: type: object additionalProperties: type: string decisionNotification: $ref: '#/components/schemas/CcaDecisionNotification' defaultContacts: type: array items: $ref: '#/components/schemas/DefaultNoticeRecipient' usersInfo: type: object additionalProperties: $ref: '#/components/schemas/RequestActionUserInfo' officialNotice: $ref: '#/components/schemas/FileInfoDTO' determination: $ref: '#/components/schemas/Determination' reviewSectionsCompleted: type: object additionalProperties: type: string reviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementReviewDecision' facilitiesReviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementFacilityReviewDecision' reviewAttachments: type: object additionalProperties: type: string underlyingAgreementDocument: $ref: '#/components/schemas/FileInfoDTO' EligibilityDetailsAndAuthorisation: required: - agreementType - isConnectedToExistingFacility type: object properties: isConnectedToExistingFacility: type: boolean adjacentFacilityId: maxLength: 255 minLength: 0 type: string agreementType: type: string enum: - ENVIRONMENTAL_PERMITTING_REGULATIONS - ENERGY_INTENSIVE erpAuthorisationExists: type: boolean authorisationNumber: maxLength: 255 minLength: 0 type: string regulatorName: type: string enum: - ENVIRONMENT_AGENCY - SCOTTISH_ENVIRONMENT_PROTECTION_AGENCY - DEPARTMENT_OF_AGRICULTURE_ENVIRONMENT_AND_RURAL_AFFAIRS - NATURAL_RESOURCES_WALES - OTHER permitFile: type: string format: uuid RfiSubmitPayload: required: - deadline - questions - signatory type: object properties: questions: type: array items: maxLength: 10000 minLength: 0 type: string files: uniqueItems: true type: array items: type: string format: uuid deadline: type: string format: date operators: uniqueItems: true type: array items: type: string signatory: type: string RdePayload: required: - deadline - extensionDate - signatory type: object properties: extensionDate: type: string format: date deadline: type: string format: date operators: uniqueItems: true type: array items: type: string signatory: type: string PaymentMakeRequestTaskPayload: type: object properties: payloadType: type: string amount: type: number paymentRefNum: type: string creationDate: type: string format: date paymentMethodTypes: uniqueItems: true type: array items: type: string enum: - BANK_TRANSFER - CREDIT_OR_DEBIT_CARD bankAccountDetails: $ref: '#/components/schemas/BankAccountDetailsDTO' externalPaymentId: type: string Apply70Rule: required: - energyConsumed - energyConsumedEligible - evidenceFile type: object properties: energyConsumed: maximum: 100 exclusiveMaximum: false minimum: 0 exclusiveMinimum: false type: number energyConsumedProvision: maximum: 42.9 exclusiveMaximum: false minimum: 0 exclusiveMinimum: false type: number energyConsumedEligible: type: number startDate: type: string format: date evidenceFile: type: string format: uuid UnderlyingAgreementActivatedRequestActionPayload: required: - decisionNotification - defaultContacts - determination - officialNotice - underlyingAgreement - underlyingAgreementActivationDetails - underlyingAgreementDocument type: object properties: payloadType: type: string businessId: type: string accountReferenceData: $ref: '#/components/schemas/AccountReferenceData' underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementPayload' underlyingAgreementAttachments: type: object additionalProperties: type: string decisionNotification: $ref: '#/components/schemas/CcaDecisionNotification' defaultContacts: type: array items: $ref: '#/components/schemas/DefaultNoticeRecipient' usersInfo: type: object additionalProperties: $ref: '#/components/schemas/RequestActionUserInfo' officialNotice: $ref: '#/components/schemas/FileInfoDTO' determination: $ref: '#/components/schemas/Determination' reviewSectionsCompleted: type: object additionalProperties: type: string reviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementReviewDecision' facilitiesReviewGroupDecisions: type: object additionalProperties: $ref: '#/components/schemas/UnderlyingAgreementFacilityReviewDecision' reviewAttachments: type: object additionalProperties: type: string underlyingAgreementDocument: $ref: '#/components/schemas/FileInfoDTO' underlyingAgreementActivationDetails: $ref: '#/components/schemas/UnderlyingAgreementActivationDetails' underlyingAgreementActivationAttachments: type: object additionalProperties: type: string UnderlyingAgreementVariationActivationRequestTaskPayload: type: object properties: payloadType: type: string underlyingAgreementActivationDetails: $ref: '#/components/schemas/UnderlyingAgreementActivationDetails' sectionsCompleted: type: object additionalProperties: type: string underlyingAgreementActivationAttachments: type: object additionalProperties: type: string AdminTerminationFinalDecisionSubmittedRequestActionPayload: required: - adminTerminationFinalDecisionReasonDetails - decisionNotification - defaultContacts - officialNotice type: object properties: payloadType: type: string businessId: type: string adminTerminationFinalDecisionReasonDetails: $ref: '#/components/schemas/AdminTerminationFinalDecisionReasonDetails' decisionNotification: $ref: '#/components/schemas/CcaDecisionNotification' adminTerminationFinalDecisionAttachments: type: object additionalProperties: type: string usersInfo: type: object additionalProperties: $ref: '#/components/schemas/RequestActionUserInfo' defaultContacts: type: array items: $ref: '#/components/schemas/DefaultNoticeRecipient' officialNotice: $ref: '#/components/schemas/FileInfoDTO' BaselineData: required: - baselineDate - energy - energyCarbonFactor - isTwelveMonths type: object properties: isTwelveMonths: type: boolean baselineDate: type: string format: date explanation: type: string greenfieldEvidences: uniqueItems: true type: array items: type: string format: uuid energy: type: number usedReportingMechanism: type: boolean throughput: type: number performance: type: number energyCarbonFactor: type: number UnderlyingAgreementVariationSaveReviewRequestTaskActionPayload: type: object properties: payloadType: type: string underlyingAgreement: $ref: '#/components/schemas/UnderlyingAgreementVariationReviewSavePayload' sectionsCompleted: type: object additionalProperties: type: string reviewSectionsCompleted: type: object additionalProperties: type: string PaymentCancelRequestTaskActionPayload: required: - reason type: object properties: payloadType: type: string reason: type: string CcaNotifyOperatorForDecisionRequestTaskActionPayload: required: - decisionNotification type: object properties: payloadType: type: string decisionNotification: $ref: '#/components/schemas/CcaDecisionNotification' TargetUnitAccountCreationSubmitApplicationCreateActionPayload: required: - payload type: object properties: payloadType: type: string payload: $ref: '#/components/schemas/TargetUnitAccountPayload' RdeRejectedRequestActionPayload: required: - reason type: object properties: payloadType: type: string decision: type: string enum: - ACCEPTED - REJECTED reason: type: string UnderlyingAgreementVariationSaveReviewDeterminationRequestTaskActionPayload: type: object properties: payloadType: type: string determination: $ref: '#/components/schemas/Determination' AdminTerminationWithdrawReasonDetails: required: - explanation type: object properties: explanation: type: string relevantFiles: uniqueItems: true type: array items: type: string format: uuid ItemAssigneeDTO: type: object properties: taskAssignee: $ref: '#/components/schemas/UserInfoDTO' taskAssigneeType: type: string AddressDTO: required: - city - line1 - postcode type: object properties: line1: maxLength: 255 minLength: 0 type: string line2: maxLength: 255 minLength: 0 type: string city: maxLength: 255 minLength: 0 type: string county: maxLength: 255 minLength: 0 type: string postcode: maxLength: 64 minLength: 0 type: string VerificationBodyEditDTO: required: - accreditationReferenceNumber - address - emissionTradingSchemes - name type: object properties: name: maxLength: 100 minLength: 0 type: string accreditationReferenceNumber: maxLength: 25 minLength: 0 type: string address: $ref: '#/components/schemas/AddressDTO' emissionTradingSchemes: uniqueItems: true type: array items: type: string VerificationBodyUpdateDTO: required: - accreditationReferenceNumber - address - emissionTradingSchemes - id - name type: object properties: id: type: integer format: int64 name: maxLength: 100 minLength: 0 type: string accreditationReferenceNumber: maxLength: 25 minLength: 0 type: string address: $ref: '#/components/schemas/AddressDTO' emissionTradingSchemes: uniqueItems: true type: array items: type: string description: The verification body dto to update ErrorResponse: type: object properties: code: type: string message: type: string security: type: boolean data: type: array items: type: object InvitedUserCredentialsDTO: required: - invitationToken - password type: object properties: invitationToken: type: string password: type: string description: The operator user credentials SectorUserDTO: required: - email - firstName - lastName type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string status: type: string enum: - REGISTERED - PENDING - DELETED jobTitle: maxLength: 255 minLength: 0 type: string phoneNumber: $ref: '#/components/schemas/PhoneNumberDTO' mobileNumber: $ref: '#/components/schemas/PhoneNumberDTO' SectorUserRegistrationWithCredentialsDTO: required: - emailToken - firstName - lastName - password type: object properties: emailToken: type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string jobTitle: maxLength: 255 minLength: 0 type: string contactType: type: string enum: - SECTOR_ASSOCIATION - OPERATOR - CONSULTANT organisationName: type: string phoneNumber: $ref: '#/components/schemas/PhoneNumberDTO' mobileNumber: $ref: '#/components/schemas/PhoneNumberDTO' password: type: string description: The sector user NoteRequest: required: - note type: object properties: note: maxLength: 10000 minLength: 0 type: string files: uniqueItems: true type: array items: type: string format: uuid description: The note request OperatorUserDTO: required: - email - firstName - lastName type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string phoneNumber: $ref: '#/components/schemas/PhoneNumberDTO' mobileNumber: $ref: '#/components/schemas/PhoneNumberDTO' CcaOperatorUserRegistrationWithCredentialsDTO: required: - contactType - emailToken - firstName - lastName - password type: object properties: emailToken: type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string jobTitle: maxLength: 255 minLength: 0 type: string phoneNumber: $ref: '#/components/schemas/PhoneNumberDTO' mobileNumber: $ref: '#/components/schemas/PhoneNumberDTO' contactType: type: string enum: - SECTOR_ASSOCIATION - OPERATOR - CONSULTANT organisationName: type: string password: type: string description: The operator user NotificationTemplateUpdateDTO: required: - subject - text type: object properties: subject: maxLength: 255 minLength: 0 type: string text: maxLength: 10000 minLength: 0 type: string description: The data to update the notification template AdminVerifierUserInvitationDTO: required: - email - firstName - lastName - phoneNumber type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string phoneNumber: maxLength: 255 minLength: 0 type: string mobileNumber: maxLength: 255 minLength: 0 type: string VerificationBodyCreationDTO: required: - accreditationReferenceNumber - address - adminVerifierUserInvitation - emissionTradingSchemes - name type: object properties: name: maxLength: 100 minLength: 0 type: string accreditationReferenceNumber: maxLength: 25 minLength: 0 type: string address: $ref: '#/components/schemas/AddressDTO' emissionTradingSchemes: uniqueItems: true type: array items: type: string adminVerifierUserInvitation: $ref: '#/components/schemas/AdminVerifierUserInvitationDTO' description: The verification body creation dto VerificationBodyInfoDTO: type: object properties: id: type: integer format: int64 name: type: string status: type: string enum: - ACTIVE - PENDING - DISABLED AccountContactDTO: required: - accountId type: object properties: accountId: type: integer format: int64 userId: type: string OneTimePasswordDTO: required: - password type: object properties: password: type: string description: The one time authenticator code TokenDTO: required: - token type: object properties: token: type: string description: The change 2FA token EmailDTO: type: object properties: email: maxLength: 255 minLength: 0 type: string description: The user email ResetPasswordDTO: required: - otp - password - token type: object properties: token: type: string otp: pattern: \d{6} type: string password: type: string description: The new password UserFeedbackDto: required: - creatingAccountRate - onBoardingRate - onlineGuidanceRate - satisfactionRate - tasksRate - userRegistrationRate type: object properties: satisfactionRate: type: string enum: - VERY_SATISFIED - SATISFIED - NEITHER_SATISFIED_NOR_DISSATISFIED - DISSATISFIED - VERY_DISSATISFIED - NOT_APPLICABLE_NOT_USED_YET satisfactionRateReason: maxLength: 1200 minLength: 0 type: string userRegistrationRate: type: string enum: - VERY_SATISFIED - SATISFIED - NEITHER_SATISFIED_NOR_DISSATISFIED - DISSATISFIED - VERY_DISSATISFIED - NOT_APPLICABLE_NOT_USED_YET userRegistrationRateReason: maxLength: 1200 minLength: 0 type: string onlineGuidanceRate: type: string enum: - VERY_SATISFIED - SATISFIED - NEITHER_SATISFIED_NOR_DISSATISFIED - DISSATISFIED - VERY_DISSATISFIED - NOT_APPLICABLE_NOT_USED_YET onlineGuidanceRateReason: maxLength: 1200 minLength: 0 type: string creatingAccountRate: type: string enum: - VERY_SATISFIED - SATISFIED - NEITHER_SATISFIED_NOR_DISSATISFIED - DISSATISFIED - VERY_DISSATISFIED - NOT_APPLICABLE_NOT_USED_YET creatingAccountRateReason: maxLength: 1200 minLength: 0 type: string onBoardingRate: type: string enum: - VERY_SATISFIED - SATISFIED - NEITHER_SATISFIED_NOR_DISSATISFIED - DISSATISFIED - VERY_DISSATISFIED - NOT_APPLICABLE_NOT_USED_YET onBoardingRateReason: maxLength: 1200 minLength: 0 type: string tasksRate: type: string enum: - VERY_SATISFIED - SATISFIED - NEITHER_SATISFIED_NOR_DISSATISFIED - DISSATISFIED - VERY_DISSATISFIED - NOT_APPLICABLE_NOT_USED_YET tasksRateReason: maxLength: 1200 minLength: 0 type: string improvementSuggestion: maxLength: 1200 minLength: 0 type: string description: The user feedback RequestTaskActionPayload: type: object properties: payloadType: type: string discriminator: propertyName: payloadType RequestTaskActionProcessDTO: required: - requestTaskActionPayload - requestTaskActionType - requestTaskId type: object properties: requestTaskActionType: type: string requestTaskActionPayload: $ref: '#/components/schemas/RequestTaskActionPayload' requestTaskId: type: integer format: int64 description: The request task action body RequestTaskAssignmentDTO: required: - taskId - userId type: object properties: taskId: type: integer format: int64 userId: type: string description: The request task assignment body RequestTaskAttachmentActionProcessDTO: required: - requestTaskActionType - requestTaskId type: object properties: requestTaskId: type: integer format: int64 requestTaskActionType: type: string description: The request task attachment properties FileUuidDTO: type: object properties: uuid: type: string SectorInvitedUserInfoDTO: type: object properties: email: type: string invitationStatus: type: string enum: - ACCEPTED - PENDING_TO_REGISTERED_SET_REGISTER_FORM - PENDING_TO_REGISTERED_SET_REGISTER_FORM_NO_PASSWORD - PENDING_TO_REGISTERED_SET_PASSWORD_ONLY - ALREADY_REGISTERED - ALREADY_REGISTERED_SET_PASSWORD_ONLY firstName: type: string lastName: type: string roleCode: type: string contactType: type: string enum: - SECTOR_ASSOCIATION - OPERATOR - CONSULTANT sectorAssociationId: type: integer format: int64 sector: type: string SectorUserInvitationDTO: required: - email - firstName - lastName type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string roleCode: type: string contactType: type: string enum: - SECTOR_ASSOCIATION - OPERATOR - CONSULTANT description: The sector user sector association registration info SectorUserAuthorityUpdateDTO: required: - authorityStatus - userId type: object properties: userId: type: string roleCode: type: string authorityStatus: type: string enum: - PENDING - TEMP_DISABLED_PENDING - ACTIVE - DISABLED - ACCEPTED - TEMP_DISABLED SectorUserAuthorityUpdateWrapperDTO: required: - sectorUserAuthorityUpdateDTOList type: object properties: sectorUserAuthorityUpdateDTOList: type: array items: $ref: '#/components/schemas/SectorUserAuthorityUpdateDTO' description: The sector user authority to update SectorAssociationDetailsUpdateDTO: required: - commonName - legalName - noticeServiceAddress type: object properties: commonName: maxLength: 255 minLength: 0 type: string legalName: maxLength: 255 minLength: 0 type: string noticeServiceAddress: $ref: '#/components/schemas/AddressDTO' description: The sector association details fields SectorAssociationContactDTO: required: - address - email - firstName - lastName type: object properties: title: maxLength: 20 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string jobTitle: maxLength: 255 minLength: 0 type: string organisationName: maxLength: 255 minLength: 0 type: string address: $ref: '#/components/schemas/AddressDTO' phoneNumber: maxLength: 255 minLength: 0 type: string email: maxLength: 255 minLength: 0 type: string SectorAssociationSiteContactDTO: type: object properties: sectorAssociationId: type: integer format: int64 userId: type: string RequestCreateActionPayload: type: object properties: payloadType: type: string discriminator: propertyName: payloadType RequestCreateActionProcessDTO: required: - requestCreateActionPayload - requestType type: object properties: requestType: type: string requestCreateActionPayload: $ref: '#/components/schemas/RequestCreateActionPayload' description: The request create action body RequestCreateActionProcessResponseDTO: type: object properties: requestId: type: string PagingRequest: required: - pageNumber - pageSize type: object properties: pageNumber: minimum: 0 type: integer format: int64 pageSize: minimum: 1 type: integer format: int64 RequestSearchByAccountCriteria: required: - accountId - historyCategory - pageNumber - pageSize type: object properties: accountId: type: integer format: int64 requestTypes: uniqueItems: true type: array items: type: string requestStatuses: uniqueItems: true type: array items: type: string historyCategory: type: string pageNumber: minimum: 0 type: integer format: int64 pageSize: minimum: 1 type: integer format: int64 description: The search criteria RequestDetailsDTO: type: object properties: id: type: string requestType: type: string requestStatus: type: string creationDate: type: string format: date requestMetadata: $ref: '#/components/schemas/RequestMetadata' RequestDetailsSearchResults: type: object properties: requestDetails: type: array items: $ref: '#/components/schemas/RequestDetailsDTO' total: type: integer format: int64 RequestMetadata: type: object properties: type: type: string discriminator: propertyName: type RequestNoteRequest: required: - note - requestId type: object properties: note: maxLength: 10000 minLength: 0 type: string files: uniqueItems: true type: array items: type: string format: uuid requestId: type: string description: The request note request RegulatorUserDTO: required: - email - firstName - jobTitle - lastName - phoneNumber type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string jobTitle: maxLength: 255 minLength: 0 type: string phoneNumber: maxLength: 255 minLength: 0 type: string mobileNumber: maxLength: 255 minLength: 0 type: string signature: $ref: '#/components/schemas/FileInfoDTO' RegulatorUserUpdateDTO: required: - permissions - user type: object properties: user: $ref: '#/components/schemas/RegulatorUserDTO' permissions: type: object additionalProperties: type: string enum: - NONE - VIEW_ONLY - EXECUTE InvitedUserInfoDTO: type: object properties: email: type: string invitationStatus: type: string enum: - ACCEPTED - PENDING_TO_REGISTERED_SET_REGISTER_FORM - PENDING_TO_REGISTERED_SET_REGISTER_FORM_NO_PASSWORD - PENDING_TO_REGISTERED_SET_PASSWORD_ONLY - ALREADY_REGISTERED - ALREADY_REGISTERED_SET_PASSWORD_ONLY RegulatorInvitedUserDTO: required: - email - firstName - jobTitle - lastName - permissions - phoneNumber type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string jobTitle: maxLength: 255 minLength: 0 type: string phoneNumber: maxLength: 255 minLength: 0 type: string mobileNumber: maxLength: 255 minLength: 0 type: string permissions: type: object additionalProperties: type: string enum: - NONE - VIEW_ONLY - EXECUTE description: The regulator to invite RegulatorInvitedUserDetailsDTO: required: - email - firstName - jobTitle - lastName - phoneNumber type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string jobTitle: maxLength: 255 minLength: 0 type: string phoneNumber: maxLength: 255 minLength: 0 type: string mobileNumber: maxLength: 255 minLength: 0 type: string RegulatorUserUpdateStatusDTO: required: - authorityStatus - userId type: object properties: userId: type: string authorityStatus: type: string enum: - PENDING - TEMP_DISABLED_PENDING - ACTIVE - DISABLED - ACCEPTED - TEMP_DISABLED CcaOperatorInvitedUserInfoDTO: type: object properties: email: type: string invitationStatus: type: string enum: - ACCEPTED - PENDING_TO_REGISTERED_SET_REGISTER_FORM - PENDING_TO_REGISTERED_SET_REGISTER_FORM_NO_PASSWORD - PENDING_TO_REGISTERED_SET_PASSWORD_ONLY - ALREADY_REGISTERED - ALREADY_REGISTERED_SET_PASSWORD_ONLY firstName: type: string lastName: type: string roleCode: type: string contactType: type: string accountName: type: string CcaOperatorUserInvitationDTO: required: - email - firstName - lastName type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string roleCode: type: string contactType: type: string enum: - SECTOR_ASSOCIATION - OPERATOR - CONSULTANT description: The operator user account registration info MiReportParams: type: object properties: reportType: type: string description: The parameters based on which the report will be generated discriminator: propertyName: reportType MiReportResult: required: - columnNames - reportType type: object properties: reportType: type: string columnNames: type: array items: type: string discriminator: propertyName: reportType CaExternalContactRegistrationDTO: required: - description - email - name type: object properties: name: maxLength: 100 minLength: 0 type: string email: maxLength: 255 minLength: 0 type: string description: maxLength: 100 minLength: 0 type: string description: The ca external information AppointVerificationBodyDTO: required: - verificationBodyId type: object properties: verificationBodyId: type: integer format: int64 description: The verification body id to appoint to account TargetUnitAccountSiteContactDTO: required: - accountId type: object properties: accountId: type: integer format: int64 userId: type: string AccountNoteRequest: required: - accountId - note type: object properties: note: maxLength: 10000 minLength: 0 type: string files: uniqueItems: true type: array items: type: string format: uuid accountId: type: integer format: int64 description: The account note request VerificationBodyUpdateStatusDTO: required: - id - status type: object properties: id: type: integer format: int64 status: type: string enum: - ACTIVE - PENDING - DISABLED UserTermsVersionUpdateDTO: required: - version type: object properties: version: type: integer format: int32 UpdateTargetUnitAccountSicCodeDTO: type: object properties: sicCode: maxLength: 255 minLength: 0 type: string description: The updated data for sic code UpdateTargetUnitAccountResponsiblePersonDTO: type: object properties: jobTitle: maxLength: 255 minLength: 0 type: string phoneNumber: $ref: '#/components/schemas/PhoneNumberDTO' description: The updated data for responsible person UpdateTargetUnitAccountFinancialIndependenceStatusCodeDTO: required: - financialIndependenceStatus type: object properties: financialIndependenceStatus: type: string enum: - NON_FINANCIALLY_INDEPENDENT - FINANCIALLY_INDEPENDENT description: The updated data for financial independenceStatus code SectorUserAuthorityDetailsDTO: required: - contactType - email - firstName - lastName type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string status: type: string enum: - REGISTERED - PENDING - DELETED jobTitle: maxLength: 255 minLength: 0 type: string phoneNumber: $ref: '#/components/schemas/PhoneNumberDTO' mobileNumber: $ref: '#/components/schemas/PhoneNumberDTO' contactType: type: string enum: - SECTOR_ASSOCIATION - OPERATOR - CONSULTANT organisationName: type: string CcaOperatorUserDetailsDTO: required: - contactType - email - firstName - lastName type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string status: type: string enum: - REGISTERED - PENDING - DELETED jobTitle: maxLength: 255 minLength: 0 type: string phoneNumber: $ref: '#/components/schemas/PhoneNumberDTO' mobileNumber: $ref: '#/components/schemas/PhoneNumberDTO' contactType: type: string enum: - SECTOR_ASSOCIATION - OPERATOR - CONSULTANT organisationName: type: string AccountOperatorAuthorityUpdateDTO: required: - authorityStatus - userId type: object properties: userId: type: string roleCode: type: string authorityStatus: type: string enum: - PENDING - TEMP_DISABLED_PENDING - ACTIVE - DISABLED - ACCEPTED - TEMP_DISABLED AccountOperatorAuthorityUpdateWrapperDTO: required: - accountOperatorAuthorityUpdateList type: object properties: accountOperatorAuthorityUpdateList: type: array items: $ref: '#/components/schemas/AccountOperatorAuthorityUpdateDTO' description: The account operator authorities to update VerificationBodyInfoResponseDTO: type: object properties: verificationBodies: type: array items: $ref: '#/components/schemas/VerificationBodyInfoDTO' editable: type: boolean VerificationBodyDTO: type: object properties: id: type: integer format: int64 name: type: string accreditationReferenceNumber: type: string status: type: string enum: - ACTIVE - PENDING - DISABLED address: $ref: '#/components/schemas/AddressDTO' emissionTradingSchemes: uniqueItems: true type: array items: type: string AccountContactVbInfoDTO: type: object properties: accountId: type: integer format: int64 accountName: type: string type: type: string userId: type: string AccountContactVbInfoResponse: type: object properties: contacts: type: array items: $ref: '#/components/schemas/AccountContactVbInfoDTO' editable: type: boolean totalItems: type: integer format: int64 UserDTO: required: - email - firstName - lastName type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string VerifierUserDTO: required: - email - firstName - lastName - phoneNumber type: object properties: email: maxLength: 255 minLength: 0 type: string firstName: maxLength: 255 minLength: 0 type: string lastName: maxLength: 255 minLength: 0 type: string phoneNumber: maxLength: 255 minLength: 0 type: string mobileNumber: maxLength: 255 minLength: 0 type: string FileToken: type: object properties: token: type: string tokenExpirationMinutes: type: integer format: int64 UserTermsVersionDTO: type: object properties: termsVersion: type: integer format: int32 ContentDisposition: type: object properties: type: type: string name: type: string filename: type: string charset: type: string size: type: integer format: int64 deprecated: true creationDate: type: string format: date-time deprecated: true modificationDate: type: string format: date-time deprecated: true readDate: type: string format: date-time deprecated: true attachment: type: boolean formData: type: boolean inline: type: boolean HttpHeaders: type: object properties: origin: type: string allow: uniqueItems: true type: array items: $ref: '#/components/schemas/HttpMethod' accept: type: array items: $ref: '#/components/schemas/MediaType' acceptLanguageAsLocales: type: array items: type: object properties: language: type: string displayName: type: string country: type: string variant: type: string script: type: string unicodeLocaleAttributes: uniqueItems: true type: array items: type: string unicodeLocaleKeys: uniqueItems: true type: array items: type: string displayLanguage: type: string displayScript: type: string displayCountry: type: string displayVariant: type: string extensionKeys: uniqueItems: true type: array items: type: string iso3Language: type: string iso3Country: type: string acceptLanguage: type: array items: type: object properties: range: type: string weight: type: number format: double acceptPatch: type: array items: $ref: '#/components/schemas/MediaType' accessControlAllowCredentials: type: boolean accessControlAllowHeaders: type: array items: type: string accessControlAllowMethods: type: array items: $ref: '#/components/schemas/HttpMethod' accessControlAllowOrigin: type: string accessControlExposeHeaders: type: array items: type: string accessControlMaxAge: type: integer format: int64 accessControlRequestHeaders: type: array items: type: string accessControlRequestMethod: $ref: '#/components/schemas/HttpMethod' acceptCharset: type: array items: type: string contentDisposition: $ref: '#/components/schemas/ContentDisposition' etag: type: string expires: type: integer format: int64 ifMatch: type: array items: type: string ifNoneMatch: type: array items: type: string ifUnmodifiedSince: type: integer format: int64 pragma: type: string range: type: array items: $ref: '#/components/schemas/HttpRange' upgrade: type: string vary: type: array items: type: string empty: type: boolean location: type: string format: uri host: type: object properties: hostString: type: string address: type: object properties: hostAddress: type: string address: type: string format: byte hostName: type: string linkLocalAddress: type: boolean multicastAddress: type: boolean anyLocalAddress: type: boolean loopbackAddress: type: boolean siteLocalAddress: type: boolean mcglobal: type: boolean mcnodeLocal: type: boolean mclinkLocal: type: boolean mcsiteLocal: type: boolean mcorgLocal: type: boolean canonicalHostName: type: string port: type: integer format: int32 unresolved: type: boolean hostName: type: string all: type: object additionalProperties: type: string writeOnly: true lastModified: type: integer format: int64 date: type: integer format: int64 contentLength: type: integer format: int64 bearerAuth: type: string writeOnly: true basicAuth: type: string writeOnly: true contentLanguage: type: object properties: language: type: string displayName: type: string country: type: string variant: type: string script: type: string unicodeLocaleAttributes: uniqueItems: true type: array items: type: string unicodeLocaleKeys: uniqueItems: true type: array items: type: string displayLanguage: type: string displayScript: type: string displayCountry: type: string displayVariant: type: string extensionKeys: uniqueItems: true type: array items: type: string iso3Language: type: string iso3Country: type: string cacheControl: type: string connection: type: array items: type: string ifModifiedSince: type: integer format: int64 contentType: $ref: '#/components/schemas/MediaType' additionalProperties: type: array items: type: string HttpMethod: type: object HttpRange: type: object HttpStatusCode: type: object properties: error: type: boolean is4xxClientError: type: boolean is5xxServerError: type: boolean is1xxInformational: type: boolean is2xxSuccessful: type: boolean is3xxRedirection: type: boolean MediaType: type: object properties: type: type: string subtype: type: string parameters: type: object additionalProperties: type: string qualityValue: type: number format: double wildcardType: type: boolean wildcardSubtype: type: boolean subtypeSuffix: type: string charset: type: string concrete: type: boolean ProblemDetail: type: object properties: type: type: string format: uri title: type: string status: type: integer format: int32 detail: type: string instance: type: string format: uri properties: type: object additionalProperties: type: object TermsDTO: required: - url - version type: object properties: url: type: string version: type: integer format: int32 RequestInfoDTO: type: object properties: id: type: string type: type: string competentAuthority: type: string enum: - ENGLAND - NORTHERN_IRELAND - OPRED - SCOTLAND - WALES accountId: type: integer format: int64 requestMetadata: $ref: '#/components/schemas/RequestMetadata' paymentCompleted: type: boolean paymentAmount: type: string format: decimal RequestTaskDTO: type: object properties: id: type: integer format: int64 type: type: string payload: $ref: '#/components/schemas/RequestTaskPayload' assignable: type: boolean assigneeUserId: type: string assigneeFullName: type: string daysRemaining: type: integer format: int64 startDate: type: string format: date-time RequestTaskItemDTO: type: object properties: requestTask: $ref: '#/components/schemas/RequestTaskDTO' allowedRequestTaskActions: type: array items: type: string userAssignCapable: type: boolean requestInfo: $ref: '#/components/schemas/RequestInfoDTO' RequestTaskPayload: type: object properties: payloadType: type: string discriminator: propertyName: payloadType NoticeRecipientDTO: type: object properties: firstName: type: string lastName: type: string email: type: string type: type: string enum: - RESPONSIBLE_PERSON - ADMINISTRATIVE_CONTACT - SECTOR_CONTACT - SECTOR_USER - OPERATOR AssigneeUserInfoDTO: type: object properties: id: type: string firstName: type: string lastName: type: string TargetUnitAccountHeaderInfoDTO: type: object properties: name: type: string businessId: type: string status: type: string enum: - NEW - LIVE - CANCELLED - TERMINATED - REJECTED SubsectorAssociationDTO: required: - name type: object properties: name: maxLength: 255 minLength: 0 type: string TargetUnitAccountDetailsDTO: type: object properties: id: type: integer format: int64 businessId: type: string status: type: string enum: - NEW - LIVE - CANCELLED - TERMINATED - REJECTED name: type: string competentAuthority: type: string enum: - ENGLAND - NORTHERN_IRELAND - OPRED - SCOTLAND - WALES operatorType: type: string enum: - LIMITED_COMPANY - PARTNERSHIP - SOLE_TRADER - NONE companyRegistrationNumber: type: string registrationNumberMissingReason: type: string sicCode: type: string sectorAssociationId: type: integer format: int64 subsectorAssociationId: type: integer format: int64 financialIndependenceStatus: type: string enum: - NON_FINANCIALLY_INDEPENDENT - FINANCIALLY_INDEPENDENT address: $ref: '#/components/schemas/AccountAddressDTO' responsiblePerson: $ref: '#/components/schemas/TargetUnitAccountContactDTO' administrativeContactDetails: $ref: '#/components/schemas/TargetUnitAccountContactDTO' createdBy: type: string TargetUnitAccountDetailsResponseDTO: type: object properties: targetUnitAccountDetails: $ref: '#/components/schemas/TargetUnitAccountDetailsDTO' subsectorAssociation: $ref: '#/components/schemas/SubsectorAssociationDTO' underlyingAgreementDetails: $ref: '#/components/schemas/UnderlyingAgreementDetailsDTO' UnderlyingAgreementDetailsDTO: type: object properties: id: type: integer format: int64 activationDate: type: string format: date fileDocument: $ref: '#/components/schemas/FileInfoDTO' TargetUnitAccountInfoDTO: type: object properties: accountId: type: integer format: int64 businessId: type: string accountName: type: string status: type: string enum: - NEW - LIVE - CANCELLED - TERMINATED - REJECTED siteContactUserId: type: string TargetUnitAccountInfoResponseDTO: type: object properties: accountsWithSiteContact: type: array items: $ref: '#/components/schemas/TargetUnitAccountInfoDTO' editable: type: boolean totalItems: type: integer format: int64 AccountSearchResultInfoDTO: type: object properties: id: type: integer format: int64 name: type: string businessId: type: string status: type: string AccountSearchResults: type: object properties: accounts: type: array items: $ref: '#/components/schemas/AccountSearchResultInfoDTO' total: type: integer format: int64 SectorUserAuthorityInfoDTO: type: object properties: firstName: type: string lastName: type: string roleName: type: string roleCode: type: string contactType: type: string status: type: string enum: - PENDING - TEMP_DISABLED_PENDING - ACTIVE - DISABLED - ACCEPTED - TEMP_DISABLED userId: type: string SectorUsersAuthoritiesInfoDTO: type: object properties: authorities: type: array items: $ref: '#/components/schemas/SectorUserAuthorityInfoDTO' editable: type: boolean SubsectorAssociationSchemeDTO: required: - subsectorAssociation - targetSet type: object properties: subsectorAssociation: $ref: '#/components/schemas/SubsectorAssociationDTO' targetSet: $ref: '#/components/schemas/TargetSetDTO' TargetCommitmentDTO: required: - targetPeriod type: object properties: targetPeriod: maxLength: 255 minLength: 0 type: string targetImprovement: type: string format: decimal TargetSetDTO: required: - energyOrCarbonUnit - id - targetCurrencyType type: object properties: id: type: integer format: int64 targetCurrencyType: maxLength: 255 minLength: 0 type: string throughputUnit: maxLength: 255 minLength: 0 type: string energyOrCarbonUnit: maxLength: 255 minLength: 0 type: string targetCommitments: type: array items: $ref: '#/components/schemas/TargetCommitmentDTO' SectorAssociationSchemeDTO: required: - id - umbrellaAgreement type: object properties: id: type: integer format: int64 umbrellaAgreement: $ref: '#/components/schemas/SectorAssociationSchemeDocumentDTO' targetSet: $ref: '#/components/schemas/TargetSetDTO' umaDate: type: string format: date sectorDefinition: type: string subsectorAssociationSchemes: type: array items: $ref: '#/components/schemas/SubsectorAssociationSchemeInfoDTO' SectorAssociationSchemeDocumentDTO: required: - fileName - fileType - id - uuid type: object properties: uuid: type: string id: type: integer format: int64 fileName: maxLength: 255 minLength: 0 type: string fileSize: type: integer format: int64 fileType: type: string SubsectorAssociationSchemeInfoDTO: required: - id type: object properties: id: type: integer format: int64 subsectorAssociation: $ref: '#/components/schemas/SubsectorAssociationDTO' SectorAssociationDetailsResponseDTO: required: - acronym - commonName - competentAuthority - energyIntensiveOrEPR - legalName - noticeServiceAddress type: object properties: competentAuthority: type: string enum: - ENGLAND - NORTHERN_IRELAND - OPRED - SCOTLAND - WALES commonName: maxLength: 255 minLength: 0 type: string acronym: maxLength: 255 minLength: 0 type: string legalName: maxLength: 255 minLength: 0 type: string facilitator: $ref: '#/components/schemas/UserBasicInfoDTO' noticeServiceAddress: $ref: '#/components/schemas/AddressDTO' energyIntensiveOrEPR: maxLength: 255 minLength: 0 type: string SectorAssociationResponseDTO: required: - sectorAssociationContact - sectorAssociationDetails type: object properties: sectorAssociationContact: $ref: '#/components/schemas/SectorAssociationContactDTO' sectorAssociationDetails: $ref: '#/components/schemas/SectorAssociationDetailsResponseDTO' editable: type: boolean UserBasicInfoDTO: type: object properties: firstName: type: string lastName: type: string SectorAssociationSiteContactInfoDTO: type: object properties: sectorAssociationId: type: integer format: int64 sectorName: type: string userId: type: string SectorAssociationSiteContactInfoResponse: type: object properties: siteContacts: type: array items: $ref: '#/components/schemas/SectorAssociationSiteContactInfoDTO' editable: type: boolean totalItems: type: integer format: int64 SectorAssociationInfoDTO: type: object properties: id: type: integer format: int64 sector: type: string mainContact: type: string RequestCreateValidationResult: type: object properties: valid: type: boolean accountStatus: type: string applicableAccountStatuses: uniqueItems: true type: array items: type: string requests: uniqueItems: true type: array items: type: string NotePayload: required: - note type: object properties: note: maxLength: 10000 minLength: 0 type: string files: type: object additionalProperties: type: string RequestNoteDto: type: object properties: id: type: integer format: int64 payload: $ref: '#/components/schemas/NotePayload' submitter: type: string lastUpdatedOn: type: string format: date-time requestId: type: string RequestNoteResponse: type: object properties: requestNotes: type: array items: $ref: '#/components/schemas/RequestNoteDto' totalItems: type: integer format: int64 RequestActionInfoDTO: type: object properties: id: type: integer format: int64 type: type: string submitter: type: string creationDate: type: string format: date-time RequestActionDTO: type: object properties: id: type: integer format: int64 type: type: string payload: $ref: '#/components/schemas/RequestActionPayload' requestId: type: string requestType: type: string requestAccountId: type: integer format: int64 competentAuthority: type: string enum: - ENGLAND - NORTHERN_IRELAND - OPRED - SCOTLAND - WALES submitter: type: string creationDate: type: string format: date-time RequestActionPayload: type: object properties: payloadType: type: string discriminator: propertyName: payloadType RegulatorUserAuthorityInfoDTO: type: object properties: userId: type: string firstName: type: string lastName: type: string jobTitle: type: string authorityCreationDate: type: string format: date-time authorityStatus: type: string enum: - PENDING - TEMP_DISABLED_PENDING - ACTIVE - DISABLED - ACCEPTED - TEMP_DISABLED RegulatorUsersAuthoritiesInfoDTO: type: object properties: caUsers: type: array items: $ref: '#/components/schemas/RegulatorUserAuthorityInfoDTO' editable: type: boolean AuthorityManagePermissionDTO: type: object properties: permissions: type: object additionalProperties: type: string enum: - NONE - VIEW_ONLY - EXECUTE editable: type: boolean OperatorAuthoritiesInfoDTO: type: object properties: authorities: type: array items: $ref: '#/components/schemas/OperatorAuthorityInfoDTO' editable: type: boolean OperatorAuthorityInfoDTO: type: object properties: firstName: type: string lastName: type: string roleName: type: string roleCode: type: string contactType: type: string status: type: string enum: - PENDING - TEMP_DISABLED_PENDING - ACTIVE - DISABLED - ACCEPTED - TEMP_DISABLED authorityCreationDate: type: string format: date-time userId: type: string NotificationTemplateInfoDTO: type: object properties: id: type: integer format: int64 name: type: string workflow: type: string lastUpdatedDate: type: string format: date-time NotificationTemplateSearchResults: type: object properties: templates: type: array items: $ref: '#/components/schemas/NotificationTemplateInfoDTO' total: type: integer format: int64 NotificationTemplateDTO: type: object properties: id: type: integer format: int64 name: type: string subject: type: string text: type: string eventTrigger: type: string workflow: type: string lastUpdatedDate: type: string format: date-time MiReportSearchResult: type: object properties: id: type: integer format: int32 miReportType: type: string ItemDTO: type: object properties: creationDate: type: string format: date-time requestId: type: string requestType: type: string taskId: type: integer format: int64 taskAssignee: $ref: '#/components/schemas/UserInfoDTO' taskAssigneeType: type: string taskType: type: string daysRemaining: type: integer format: int64 isNew: type: boolean ItemDTOResponse: type: object properties: items: type: array items: $ref: '#/components/schemas/ItemDTO' totalItems: type: integer format: int64 FacilityDTO: type: object properties: facilityId: type: string DocumentTemplateInfoDTO: type: object properties: id: type: integer format: int64 name: type: string workflow: type: string lastUpdatedDate: type: string format: date-time DocumentTemplateSearchResults: type: object properties: templates: type: array items: $ref: '#/components/schemas/DocumentTemplateInfoDTO' total: type: integer format: int64 DocumentTemplateDTO: type: object properties: id: type: integer format: int64 name: type: string workflow: type: string lastUpdatedDate: type: string format: date-time notificationTemplateId: type: integer format: int64 fileUuid: type: string filename: type: string ReferenceDataDTO: type: object RoleDTO: type: object properties: name: type: string code: type: string AccountContactInfoDTO: type: object properties: accountId: type: integer format: int64 accountName: type: string userId: type: string AccountContactInfoResponse: type: object properties: contacts: type: array items: $ref: '#/components/schemas/AccountContactInfoDTO' editable: type: boolean totalItems: type: integer format: int64 CaExternalContactDTO: type: object properties: id: type: integer format: int64 name: type: string email: type: string description: type: string lastUpdatedDate: type: string format: date-time CaExternalContactsDTO: type: object properties: caExternalContacts: type: array items: $ref: '#/components/schemas/CaExternalContactDTO' isEditable: type: boolean RegulatorRolePermissionsDTO: type: object properties: name: type: string code: type: string rolePermissions: type: object additionalProperties: type: string enum: - NONE - VIEW_ONLY - EXECUTE UserStateDTO: type: object properties: userId: type: string roleType: type: string status: type: string enum: - NO_ROLE_TYPE - ENABLED - DISABLED - ACCEPTED - TEMP_DISABLED - NO_AUTHORITY VerificationBodyNameInfoDTO: type: object properties: id: type: integer format: int64 name: type: string AdditionalNoticeRecipientDTO: type: object properties: firstName: type: string lastName: type: string email: type: string type: type: string enum: - RESPONSIBLE_PERSON - ADMINISTRATIVE_CONTACT - SECTOR_CONTACT - SECTOR_USER - OPERATOR userId: type: string AccountNoteDto: type: object properties: id: type: integer format: int64 payload: $ref: '#/components/schemas/NotePayload' submitter: type: string lastUpdatedOn: type: string format: date-time accountId: type: integer format: int64 AccountNoteResponse: type: object properties: accountNotes: type: array items: $ref: '#/components/schemas/AccountNoteDto' totalItems: type: integer format: int64 NotificationAlertDTO: required: - body - subject type: object properties: subject: type: string body: type: string UIPropertiesDTO: type: object properties: features: type: object additionalProperties: type: boolean analytics: type: object additionalProperties: type: string keycloakServerUrl: type: string notificationAlerts: type: array items: $ref: '#/components/schemas/NotificationAlertDTO' securitySchemes: bearerAuth: type: http scheme: bearer