POST
/
v1
/
organizations
Create an Organization
curl --request POST \
  --url https://onboarding.sandbox.midaz.io/v1/organizations \
  --header 'Content-Type: <content-type>' \
  --data '{
  "legalName": "Hilll - Hessel",
  "parentOrganizationId": "e1ed3a74-654a-4b44-ad7d-37a9fac46d71",
  "doingBusinessAs": "Medhurst and Sons",
  "legalDocument": "22367046391413",
  "status": {
    "code": "ACTIVE",
    "description": "acies stillicidium angustus vulgaris contego"
  },
  "address": {
    "line1": "138 West Street",
    "line2": "Apt. 458",
    "zipCode": "97446-2761",
    "city": "Sandyview",
    "state": "Massachusetts",
    "country": "BI"
  },
  "metadata": {}
}'
{
"id": "cc15194a-6bc9-4ebb-b15d-43411a54ba4b",
"parentOrganizationId": null,
"legalName": "Empresa Teste Ltda",
"doingBusinessAs": "Empresa Teste",
"legalDocument": "86820799000188",
"address": {
"line1": "Rua Botucatu, 10",
"line2": "Casa B",
"zipCode": "04023060",
"city": "São Paulo",
"state": "SP",
"country": "BR"
},
"status": {
"code": "ACTIVE",
"description": null
},
"createdAt": "2024-02-08T16:59:31+0300",
"updatedAt": "2024-02-08T16:59:31+0300",
"deletedAt": null
}

Headers

Content-Type
string
required

The type of media of the resource. Must be application/json.

X-Request-Id
string

A unique identifier used to trace and track each request.

Body

application/json

The legal name of the Organization.

Maximum length: 256

The document of the Organization.

Maximum length: 256
address
object
required

An object containing information about the address of the Organization.

parentOrganizationId
string<uuid> | null

The unique identifier of the parent Organization.

doingBusinessAs
string | null

The trade name of the Organization.

Maximum length: 256
status
object

An object containing information about the status.

metadata
object

An object containing key-value pairs to add as metadata, where the field name is the key and the field value is the value. For example, to add a Cost Center, use 'costCenter': 'BR_11101997'.

Response

Indicates that the resource was successfully created and the operation was completed as expected.

id
string<uuid>

The unique identifier of the Organization.

The legal name of the Organization.

Maximum length: 256
parentOrganizationId
string<uuid> | null

The unique identifier of the parent Organization.

doingBusinessAs
string | null

The trade name of the Organization.

Maximum length: 256

The document of the Organization.

Maximum length: 256
status
object

An object containing information about the status.

address
object

An object containing information about the address of the Organization.

metadata
object

An object containing key-value pairs to add as metadata, where the field name is the key and the field value is the value. For example, to add a Cost Center, use 'costCenter': 'BR_11101997'.

createdAt
string<date-time>

Timestamp of creation (UTC).

updatedAt
string<date-time>

Timestamp of last update (UTC).

deletedAt
string<date-time> | null

Timestamp of soft deletion, if applicable (UTC).