Creating legal entity
POST {{api-url}}/customer-management/{{tenant}}/legal-entities
Creates a new legal entity for the tenant. A legal entity represents a company or it's subsidiary in the system.
### Required scopes
* clientmanagement.legalentity_manage
Request Body
{"name"=>"Coca-Cola Poland", "type"=>"COMPANY", "legalInfo"=>{"legalName"=>"Some company name", "registrationDate"=>"2022-03-31T13:18:02.379Z", "taxRegistrationNumber"=>"1234", "registrationAgency"=>"Comp reg agency", "countryOfRegistration"=>"DE", "registrationId"=>"627e06ecf0452c2d6c0b81391"}, "accountLimit"=>{"currency"=>"EUR", "value"=>1000.99}, "customerGroups"=>[{"id"=>"1gr5e52e-6e27-4ac5-9471-2467d3fb7500"}], "entitiesAddresses"=>[{"id"=>"123e123455452c2d6c0b81390"}], "documents"=>[{"id"=>"123e121111452c2d6c0b81390"}, {"id"=>"123e06ecf0acd223133333345"}], "approvalGroup"=>[{"id"=>"123e121111452c12330b81390"}, {"id"=>"123e061110acd223133333345"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"id":"53ac81fd0cce8b26b36f3492"}