Employee
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.
POST /employee/create
This method allows adding employee into the account.
Required permission: employee_create · how permissions work
Example request
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/employee/create' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"full_name": "string",
"phone_number": "string",
"accesses": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"positions": [],
"role_id": "string"
}
]
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/employee/create', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"full_name": "string",
"phone_number": "string",
"accesses": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"positions": [],
"role_id": "string"
}
]
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/employee/create",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"full_name": "string",
"phone_number": "string",
"accesses": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"positions": [],
"role_id": "string",
},
],
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"full_name": "string",
"phone_number": "string",
"accesses": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"positions": [],
"role_id": "string"
}
]
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/employee/create');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Request body
| Field | Type | Required | Description |
|---|---|---|---|
full_name | string | Yes | |
inn | string | No | |
phone_number | string | Yes | |
jshir | string | No | |
address | string | No | |
passport_number | string | No | |
passport_issued_date | string | No | |
passport_issued_by | string | No | |
acceptance_date | string | No | |
work_rate | number | No | Default: 0 |
testing_end_time | string | No | |
contract_end_time | string | No | Default: false |
holidays | number | No | Default: 0 |
comment | string | No | |
pincode | string | No | Required unless is_free is true. |
password | string | No | Required unless is_free is true. |
is_free | boolean | No | Default: false |
accesses | object[] | Yes | |
accesses[].organization_id | string | Yes | |
accesses[].positions | object[] | No | |
accesses[].positions[].position_id | string | Yes | |
accesses[].positions[].section_id | string | Yes | |
accesses[].role_id | string | No | |
person_id | string | No | person id of employee |
gender | string | No | One of: male, female |
image | string | No | image path of employee that uploaded to the server |
last_name | string | No | |
middle_name | string | No | |
birth_date | string | No | date of birth of employee |
legal_person_id | string | No | id of legal person |
telegram_link | string | No | link of telegram account |
email | string | No | email of employee |
is_supplier | boolean | No | is supplier or not. Default: false |
is_customer | boolean | No | is customer or not. Default: false |
status | string | No | status of employee. One of: active, inactive |
short_name | string | No | short name of employee |
code | string | No | code of employee |
postal_code | string | No | postal code of employee |
owner_id | string | No | id of owner |
manager_id | string | No | id of manager |
delivery_address | object | No | delivery address of employee |
delivery_address.lat | number | No | Default: 0 |
delivery_address.long | number | No | Default: 0 |
delivery_address.human_address | object | No | |
delivery_address.human_address.address | string | No | |
delivery_address.human_address.city | string | No | |
delivery_address.human_address.state | string | No | |
delivery_address.human_address.zip | string | No | |
delivery_address.bearing | number | No | |
web_site | string | No |
{
"full_name": "string",
"inn": "string",
"phone_number": "string",
"jshir": "string",
"address": "string",
"passport_number": "string",
"passport_issued_date": "string",
"passport_issued_by": "string",
"acceptance_date": "string",
"work_rate": 0,
"testing_end_time": "string",
"contract_end_time": false,
"holidays": 0,
"comment": "string",
"pincode": "string",
"password": "string",
"is_free": false,
"accesses": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"positions": [],
"role_id": "string"
}
],
"person_id": "string",
"gender": "male",
"image": "string",
"last_name": "string",
"middle_name": "string",
"birth_date": "string",
"legal_person_id": "string",
"telegram_link": "string",
"email": "string",
"is_supplier": false,
"is_customer": false,
"status": "active",
"short_name": "string",
"code": "string",
"postal_code": "string",
"owner_id": "67b486d242ed76693cd2cc59",
"manager_id": "67b486d242ed76693cd2cc59",
"delivery_address": {
"lat": 0,
"long": 0,
"human_address": {
"address": "string",
"city": "string",
"state": "string",
"zip": "string"
},
"bearing": 0
},
"web_site": "string"
}Response
| Field | Type | Description |
|---|---|---|
_id | string | id of employee |
full_name | string | |
inn | string | |
phone_number | string | |
jshir | string | |
passport_number | string | |
passport_issued_date | string | |
passport_issued_by | string | |
acceptance_date | string | |
work_rate | number | Default: 0 |
testing_end_time | string | |
contract_end_time | string | Default: false |
holidays | number | Default: 0 |
comment | string | |
is_free | boolean | Default: false |
address | string | address of employee |
gender | string | One of: male, female |
image | string | image path of employee that uploaded to the server |
last_name | string | |
middle_name | string | |
birth_date | string | date of birth of employee |
legal_person_id | string | id of legal person |
telegram_link | string | link of telegram account |
email | string | email of employee |
is_supplier | boolean | is supplier or not. Default: false |
status | string | status of employee. One of: active, inactive |
short_name | string | short name of employee |
web-site | string | web-site of employee |
code | string | code of employee |
postal_code | string | postal code of employee |
delivery_address | object | delivery address of employee |
delivery_address.lat | number | Default: 0 |
delivery_address.long | number | Default: 0 |
delivery_address.human_address | object | |
delivery_address.human_address.address | string | |
delivery_address.human_address.city | string | |
delivery_address.human_address.state | string | |
delivery_address.human_address.zip | string | |
number | string | number of employee |
balance_action | string | action of balance |
is_boss | boolean | is boss or not. Default: false |
employment_type | string | |
salary | object | |
salary.is_active | boolean | |
salary.employee_id | string | |
salary.organization_id | string | |
salary.type | string | One of: fixed, task_by |
salary.amount | number | Default: 0 |
salary.currency_id | string | id of currency |
salary.unit | string | One of: hour, day |
salary_currency_id | string | id of currency |
boss_id | string | id of boss |
balance | object | |
balance.organization_id | string | |
balance.payment_method_id | string | |
balance.currency_id | string | |
balance.amount | number | Default: 0 |
balance_currency_id | string | id of currency |
balance_list | object[] | |
balance_list[]._id | string | |
balance_list[].amount | number | Default: 0 |
balance_list[].organization_id | string | |
balance_list[].payment_method_id | string | |
balance_list[].currency_id | string | |
positions | object[] | |
positions[].organization_id | string | |
positions[].section | object | |
positions[].section._id | string | |
positions[].section.is_deleted | boolean | |
positions[].section.completely_deleted | boolean | |
positions[].section.name | string | |
positions[].position | object | |
positions[].position._id | string | |
positions[].position.is_deleted | boolean | |
positions[].position.completely_deleted | boolean | |
positions[].position.name | string | |
positions[].role | object | |
positions[].role._id | string | |
positions[].role.is_deleted | boolean | |
positions[].role.completely_deleted | boolean | |
positions[].role.name | string | |
positions[].role.web | boolean | |
positions[].role.mobile | boolean | |
positions[].role_id | string | |
is_deleted | boolean | Default: false |
completely_deleted | boolean | Default: false |
created_at | string | date of creation |
updated_at | string | date of update |
person | object | |
person._id | string | id of person |
person.name | string | name of person |
person.full_name | string | last name of person |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"_id": "67b486d242ed76693cd2cc59",
"full_name": "string",
"inn": "string",
"phone_number": "string",
"jshir": "string",
"passport_number": "string",
"passport_issued_date": "string",
"passport_issued_by": "string",
"acceptance_date": "string",
"work_rate": 0,
"testing_end_time": "string",
"contract_end_time": false,
"holidays": 0,
"comment": "string",
"is_free": false,
"address": "string",
"gender": "male",
"image": "string",
"last_name": "string",
"middle_name": "string",
"birth_date": "string",
"legal_person_id": "string",
"telegram_link": "string",
"email": "string",
"is_supplier": false,
"status": "active",
"short_name": "string",
"web-site": "string",
"code": "string",
"postal_code": "string",
"delivery_address": {
"lat": 0,
"long": 0,
"human_address": {
"address": "string",
"city": "string",
"state": "string",
"zip": "string"
}
},
"number": "string",
"balance_action": "string",
"is_boss": false,
"employment_type": "string",
"salary": {
"is_active": false,
"employee_id": "string",
"organization_id": "string",
"type": "fixed",
"amount": 0,
"currency_id": "string",
"unit": "hour"
},
"salary_currency_id": "string",
"boss_id": "string",
"balance": {
"organization_id": "string",
"payment_method_id": "string",
"currency_id": "string",
"amount": 0
},
"balance_currency_id": "string",
"balance_list": [
{
"_id": "string",
"amount": 0,
"organization_id": "string",
"payment_method_id": "string",
"currency_id": "string"
}
],
"positions": [
{
"organization_id": "string",
"section": {
"_id": null,
"is_deleted": null,
"completely_deleted": null,
"name": null
},
"position": {
"_id": null,
"is_deleted": null,
"completely_deleted": null,
"name": null
},
"role": {
"_id": null,
"is_deleted": null,
"completely_deleted": null,
"name": null,
"web": null,
"mobile": null
},
"role_id": "string"
}
],
"is_deleted": false,
"completely_deleted": false,
"created_at": "string",
"updated_at": "string",
"person": {
"_id": "string",
"name": "string",
"full_name": "string"
}
},
"time": "2025-05-01T12:00:00Z"
}PUT /employee/update
This method allows updating employee in the account.
Required permission: employee_update · how permissions work
Example request
curl -X PUT 'https://api.bito.uz/integration-api/integration/api/v2/employee/update' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"_id": "67b486d242ed76693cd2cc59",
"full_name": "string",
"phone_number": "string",
"accesses": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"positions": [],
"role_id": "string"
}
]
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/employee/update', {
method: 'PUT',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"_id": "67b486d242ed76693cd2cc59",
"full_name": "string",
"phone_number": "string",
"accesses": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"positions": [],
"role_id": "string"
}
]
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"PUT",
"https://api.bito.uz/integration-api/integration/api/v2/employee/update",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"_id": "67b486d242ed76693cd2cc59",
"full_name": "string",
"phone_number": "string",
"accesses": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"positions": [],
"role_id": "string",
},
],
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"_id": "67b486d242ed76693cd2cc59",
"full_name": "string",
"phone_number": "string",
"accesses": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"positions": [],
"role_id": "string"
}
]
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/employee/update');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Request body
| Field | Type | Required | Description |
|---|---|---|---|
_id | string | Yes | |
full_name | string | Yes | |
inn | string | No | |
phone_number | string | Yes | |
jshir | string | No | |
address | string | No | |
passport_number | string | No | |
passport_issued_date | string | No | |
passport_issued_by | string | No | |
acceptance_date | string | No | |
work_rate | number | No | Default: 0 |
testing_end_time | string | No | |
contract_end_time | string | No | Default: false |
holidays | number | No | Default: 0 |
comment | string | No | |
is_free | boolean | No | Default: false |
accesses | object[] | Yes | |
accesses[].organization_id | string | Yes | |
accesses[].positions | object[] | No | |
accesses[].positions[].position_id | string | Yes | |
accesses[].positions[].section_id | string | Yes | |
accesses[].role_id | string | No | |
person_id | string | No | person id of employee |
gender | string | No | One of: male, female |
image | string | No | image path of employee that uploaded to the server |
last_name | string | No | |
middle_name | string | No | |
birth_date | string | No | date of birth of employee |
legal_person_id | string | No | id of legal person |
telegram_link | string | No | link of telegram account |
email | string | No | email of employee |
status | string | No | status of employee. One of: active, inactive |
short_name | string | No | short name of employee |
code | string | No | code of employee |
postal_code | string | No | postal code of employee |
owner_id | string | No | id of owner |
manager_id | string | No | id of manager |
delivery_address | object | No | delivery address of employee |
delivery_address.lat | number | No | Default: 0 |
delivery_address.long | number | No | Default: 0 |
delivery_address.human_address | object | No | |
delivery_address.human_address.address | string | No | |
delivery_address.human_address.city | string | No | |
delivery_address.human_address.state | string | No | |
delivery_address.human_address.zip | string | No | |
delivery_address.bearing | number | No | |
web_site | string | No |
{
"_id": "67b486d242ed76693cd2cc59",
"full_name": "string",
"inn": "string",
"phone_number": "string",
"jshir": "string",
"address": "string",
"passport_number": "string",
"passport_issued_date": "string",
"passport_issued_by": "string",
"acceptance_date": "string",
"work_rate": 0,
"testing_end_time": "string",
"contract_end_time": false,
"holidays": 0,
"comment": "string",
"is_free": false,
"accesses": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"positions": [],
"role_id": "string"
}
],
"person_id": "string",
"gender": "male",
"image": "string",
"last_name": "string",
"middle_name": "string",
"birth_date": "string",
"legal_person_id": "string",
"telegram_link": "string",
"email": "string",
"status": "active",
"short_name": "string",
"code": "string",
"postal_code": "string",
"owner_id": "67b486d242ed76693cd2cc59",
"manager_id": "67b486d242ed76693cd2cc59",
"delivery_address": {
"lat": 0,
"long": 0,
"human_address": {
"address": "string",
"city": "string",
"state": "string",
"zip": "string"
},
"bearing": 0
},
"web_site": "string"
}Response
Same response shape as POST /employee/create.
DELETE /employee/delete/{id}
Delete a employee
Required permission: employee_delete · how permissions work
Example request
curl -X DELETE 'https://api.bito.uz/integration-api/integration/api/v2/employee/delete/6712f0a9c4d1e87b3a0f9911' \
-H "api-key: $BITO_API_KEY"const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/employee/delete/6712f0a9c4d1e87b3a0f9911', {
method: 'DELETE',
headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"DELETE",
"https://api.bito.uz/integration-api/integration/api/v2/employee/delete/6712f0a9c4d1e87b3a0f9911",
headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/employee/delete/6712f0a9c4d1e87b3a0f9911');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes |
Request body
No request body.
Response
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": "ok",
"time": "2025-05-01T12:00:00Z"
}GET /employee/get-by-id/{id}
Get employee using its _id
Required permission: employee · how permissions work
Example request
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/employee/get-by-id/6712f0a9c4d1e87b3a0f9911' \
-H "api-key: $BITO_API_KEY"const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/employee/get-by-id/6712f0a9c4d1e87b3a0f9911', {
method: 'GET',
headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"GET",
"https://api.bito.uz/integration-api/integration/api/v2/employee/get-by-id/6712f0a9c4d1e87b3a0f9911",
headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/employee/get-by-id/6712f0a9c4d1e87b3a0f9911');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes |
Request body
No request body.
Response
Same response shape as POST /employee/create.
GET /employee/get-deleted
Get deleted employee ids
Required permission: employee · how permissions work
Example request
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/employee/get-deleted?deleted_at=DELETED_AT' \
-H "api-key: $BITO_API_KEY"const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/employee/get-deleted?deleted_at=DELETED_AT', {
method: 'GET',
headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"GET",
"https://api.bito.uz/integration-api/integration/api/v2/employee/get-deleted?deleted_at=DELETED_AT",
headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/employee/get-deleted?deleted_at=DELETED_AT');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deleted_at | string | Yes |
Request body
No request body.
Response
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": [
"string"
],
"time": "2025-05-01T12:00:00Z"
}POST /employee/get-paging
Get employees by paging
Required permission: employee · how permissions work
Example request
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/employee/get-paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 1,
"limit": 20
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/employee/get-paging', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"page": 1,
"limit": 20
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/employee/get-paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 1,
"limit": 20,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 1,
"limit": 20
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/employee/get-paging');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Request body
| Field | Type | Required | Description |
|---|---|---|---|
page | number | Yes | Default: 1 |
limit | number | Yes | Default: 20 |
organization_id | string | No | |
position_id | string | No | |
section_id | string | No | |
search | string | No | |
organization_ids | string[] | No | Organization ObjectIds. |
access_field_name | string | No | |
balance_type | string | No | One of: debt, credit, not_zero, zero |
status | string | No | One of: active, inactive, all |
{
"page": 1,
"limit": 20,
"organization_id": "67b486d242ed76693cd2cc59",
"position_id": "67b486d242ed76693cd2cc59",
"section_id": "67b486d242ed76693cd2cc59",
"search": "string",
"organization_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"access_field_name": "string",
"balance_type": "debt",
"status": "active"
}Response
data.total is the total number of records and data.data[] holds the current page. The table below describes one record.
| Field | Type | Description |
|---|---|---|
_id | string | id of employee |
full_name | string | full name of employee |
number | string | number of employee |
phone_number | string | phone number of employee |
balance_list | object[] | |
balance_list[]._id | string | |
balance_list[].amount | number | Default: 0 |
balance_list[].organization_id | string | |
balance_list[].payment_method_id | string | |
balance_list[].currency_id | string | |
person_id | string | id of person |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"total": 0,
"data": [
{
"_id": "67b486d242ed76693cd2cc59",
"full_name": "string",
"number": "string",
"phone_number": "string",
"balance_list": [
{
"_id": "string",
"amount": 0,
"organization_id": "string",
"payment_method_id": "string",
"currency_id": "string"
}
],
"person_id": "string"
}
]
},
"time": "2025-05-01T12:00:00Z"
}POST /employee/get-by-phone-number
Fetch a single employee by phone number. The number is normalised before lookup, so it may be sent with or without a leading +. Returns 400 when no employee carries that number.
Required permission: employee · how permissions work
Example request
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/employee/get-by-phone-number' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"phone_number": "998901234567"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/employee/get-by-phone-number', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"phone_number": "998901234567"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/employee/get-by-phone-number",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"phone_number": "998901234567",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"phone_number": "998901234567"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/employee/get-by-phone-number');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Request body
| Field | Type | Required | Description |
|---|---|---|---|
phone_number | string | Yes | Employee phone number in international format (required). |
{
"phone_number": "998901234567"
}Response
Same response shape as POST /employee/create.
This page is generated from the OpenAPI spec.