Organizations API
Use the Organizations API to create, retrieve, update, and delete Organizations.
Refer to Organizations API on the Requests and Responses page for more information about the parameters.
Create an Organization
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.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Response codes
Retrieve all Organizations
GET
/v1/organizations
Use this endpoint to retrieve the information of all Organizations you have created.
Headers
Name | Value |
---|---|
Authorization |
|
Response codes
Retrieve Organization by id
GET
/v1/organizations/{{id}}
Use this endpoint to retrieve the information of a specific Organization using the identifier (id
).
Headers
Name | Value |
---|---|
Authorization |
|
Response codes
Update an Organization
PATCH
/v1/organizations/{{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
doingBusinessAs
address
status
parentOganizationId
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
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Response codes
Delete an Organization
DELETE
/v1/organizations/{{id}}
Use this endpoint to deactivate an Organization.
Headers
Name | Value |
---|---|
Authorization |
|
Response codes
Last updated