Skip to main content
Version: Next

Create legal unit

Information

Use this endpoint to create a new legal unit.

In case of French entity you can directly claim as yours.

This endpoint is synchronous
The role admin is needed in order to use this endpoint

Note: Using this endpoint will claim the company as yours automatically in outbound direction.

Endpoints

POST/v1/config/business/entity/legalunit

Body parameters
namestring - Required

countryenum - Required

typestring - Optional - Default value : LEGAL_UNIT


identifierSchemestring - Required

identifierValuestring - Required

operatorRelationobject - Optional

identifiersarray - Optional




Request

POST /v1/config/business/entity/legalUnit


curl -X 'POST'
'https://api.ppd.iopole.fr//v1/config/business/entity/legalUnit'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer ${TOKEN}'
-d '{
"name": "IOPOLE Belgique",
"country": "BE",
"scope": "PRIVATE_TAX_PAYER",
"identifierScheme": "0208",
"identifierValue": "0114445670"
}'

Response

Status: 201 - application/json

Description: Created business entity id and identifier id

Schema:

  • type: enum
    The type of the response object.
  • id: string
    The unique identifier for the created element.

Examples:

[
  {
    "type": "BUSINESS_ENTITY",
    "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
  },
  {
    "type": "BUSINESS_ENTITY_IDENTIFIER",
    "id": "a67ac10b-58cc-4372-a567-0e02b2c3d123"
  }
]

Status: 401

Description: Unauthorized - Authentication is required and has failed or has not yet been provided.

Status: 403

Description: Forbidden - The server understood the request, but it refuses to authorize it. Note: This endpoint requires an admin account.

Status: 409

Description: Conflict - The request could not be completed. A business unit with the same identifiers already exists.