Organization
INFO
Every response arrives in the shared envelope — code, message, messages, status_code, time — with the payload in data. The tables below describe what is inside data.
GET /organization/get-all
Get all organization
Request body
No request body.
Response
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": [],
"time": "2025-05-01T12:00:00Z"
}GET /organization/get-by-id/{id}
Get an organization by its _id.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes |
Request body
No request body.
Response
| Field | Type | Description |
|---|---|---|
id | string | organization ID |
name | string | organization name |
is_default | boolean | Is this organization the default? |
director_id | string | Director ID |
phone_number | string | Phone number |
address | string | organization balance |
type | string | organization type. One of: main, ordinary, b2b |
description | string | organization description |
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"id": "string",
"name": "string",
"is_default": false,
"director_id": "string",
"phone_number": "string",
"address": "string",
"type": "main",
"description": "string"
},
"time": "2025-05-01T12:00:00Z"
}This page is generated from the OpenAPI spec.