Skip to content

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

ParameterTypeRequiredDescription
idstringYes

Request body

No request body.

Response

FieldTypeDescription
idstringorganization ID
namestringorganization name
is_defaultbooleanIs this organization the default?
director_idstringDirector ID
phone_numberstringPhone number
addressstringorganization balance
typestringorganization type. One of: main, ordinary, b2b
descriptionstringorganization 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.

Bito 2.0 Integration API