Organizations API
Use the Organizations API to create, retrieve, update, and delete Organizations.
Last updated
Use the Organizations API to create, retrieve, update, and delete Organizations.
Last updated
Refer to Organizations API on the Requests and Responses page for more information about the parameters.
POST
/v1/organizations
Use this endpoint to create an Organization and register on the Midaz platform. You can create several Organizations. However, you must create one Organization at a time.
parentOrganizationId field
The parentOrganizationId
field is optional and can be used in two different scenarios:
If the organization needs to be linked to an existing one, populate it with the ID of the "parent" organization obtained from the response of the previously created organization.
The field is unnecessary if you are creating an organization without a parent.
Name | Value |
---|---|
GET
/v1/organizations
Use this endpoint to retrieve the information of all Organizations you have created.
If an organization has been deleted, the information of the organization will be displayed, including the date when the deletion occurred in the deletedAt
field.
Headers
Response codes
GET
/v1/organizations/{{organization_id}}
Use this endpoint to retrieve the information of a specific Organization using the identifier (id
).
Headers
Response codes
If an organization has been deleted, the information of the organization will be displayed, including the date when the deletion occurred in the deletedAt
field.
PATCH
/v1/organizations/{{organization_id}}
Use this endpoint to edit and update the information of a specific Organization. When you update an Organization, the following fields can be edited:
legalName
parentOganizationId
doingBusinessAs
address
status
metadata
When updating the metadata
object, all previous key-value pairs must be included in the update, or they will be removed. Check the Metadata section for more information.
For compliance reasons, the "legalDocument"
field cannot be updated once the Organization has been created.
Headers
Response codes
DELETE
/v1/organizations/{{organization_id}}
Use this endpoint to deactivate an Organization.
Headers
Response codes
Name | Value |
---|---|
Name | Value |
---|---|
Name | Value |
---|---|
Name | Value |
---|---|
Content-Type
application/json
Authorization
Bearer <token>
Authorization
Bearer <token>
Authorization
Bearer <token>
Content-Type
application/json
Authorization
Bearer <token>
Authorization
Bearer <token>