GuidesAPI ReferenceChangelog
Guides

Create child organizations

Learn how White Label resellers can create and manage child organizations under their parent account programmatically

If you are a White Label reseller, you can create child organizations under your parent account programmatically. This lets you onboard and manage client organizations at scale without relying on manual setup.

Before you begin

Make sure you have the following prerequisites:

👍

The Partner Portal can be activated by a Deel representative once your partnership begins. Contact us if you would like to become a partner.

Step 1: Send the request

Use the Create child organization endpoint to create a new child organization.

📘

The email of the child organization admin must be unique

If the same email is already used for another organization, you must use a different one.

curl --request POST \
     --url https://api-sandbox.demo.deel.com/rest/v2/organizations/children \
     --header 'accept: application/json' \
     --header 'authorization: Bearer {TOKEN}' \
     --header 'content-type: application/json' \
     --data '
{
  "data": {
    "child_organization": {
      "name": "Example Organization Ltd",
      "department": "Finance",
      "is_api_enabled": true,
      "workforce_size": 100,
      "headquarters_country": "US"
    },
    "parent_organization": {
      "admin_email": "[email protected]"
    }
  }
}
'

Where:

FieldRequiredTypeFormatDescriptionExample
child_organization.nameYesstring-The name of the child organization."Example Organization Ltd"
child_organization.departmentNostring-The name of the department where the manager will be assigned."Finance"
child_organization.is_api_enabledNoboolean-Flag that enables the public API for the child organization. Enable this if the child organization needs to use Deel APIs.true
child_organization.workforce_sizeNointegerThe number of workers in the child organization. Accepted values must be between 1 and 100000.100
child_organization.headquarters_countryNostringISO 3166-1 alpha-2 codeThe headquarters country code of the child organization."US"
parent_organization.admin_emailYesstringemailThe email address of the parent organization admin."[email protected]"

A successful response (201) returns the child organization details and a scoped service account ID.

{
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdJZCI6IjliM2M2ZjRkLTI3ZTEtNDZjMi1iYzJlLTNlNWEyOWFmOGQxOSJ9.s3cr3tSignatur3",
      "created_at": "2024-10-10T10:00:00Z",
      "updated_at": "2024-10-10T10:00:00Z"
    }
  ]
}

Where:

FieldDescription
idA unique service account ID of the created child organization.
tokenThe Auth token for the child organization.
created_atThe timestamp when the child organization was created.
updated_atThe timestamp when the child organization was last updated.

After you create a child organization, the returned auth token enables the new organization to make subsequent API calls, such as onboarding workers, setting up legal entities, or configuring payroll and payouts.