Create a new sub-account for a legal entity.
POST/legal-entities/:legalEntityUuid/sub-accounts
Creates a new sub-account for a specific legal entity, identified by its UUID. The sub-account will be granted access only to documents related to the legal entity. The operation is idempotent: if the email is already associated with the legal entity, the existing association is returned with status 201 and no changes are made. The email is matched case-insensitively.
Request
Responses
- 201
- 400
- 403
- 409
- 422
Sub-account associated with the legal entity. Also returned, unchanged, if the email is already associated with it.
Invalid input
Forbidden
The email address is already registered in A-Cube for another account, or the same association was created concurrently.
An error occurred