Staff Services
Returns a paginated list of staffs.
Response format
jsonPossible values: Page number
1Number of items per page
20Successful operation
Forbidden
GET /api/v1/staffs/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1,
"next": "text",
"previous": "text",
"results": [
{
"id": 32,
"retail_stores": [
{
"id": 81,
"address": {
"id": 81,
"township": {
"id": 2190,
"city": {
"id": 125,
"country": {
"id": 3,
"translations": null,
"created_date": "2024-05-08T19:12:57.305774Z",
"modified_date": "2024-11-29T12:06:02.290922Z",
"omnitron_id": 36,
"name": "Türkiye",
"code": "tr"
},
"translations": null,
"created_date": "2024-05-08T19:14:58.516332Z",
"modified_date": "2024-05-08T19:14:58.516350Z",
"omnitron_id": 286,
"name": "İstanbul"
},
"translations": null,
"created_date": "2024-05-08T19:15:00.868236Z",
"modified_date": "2024-05-08T19:15:00.868248Z",
"omnitron_id": 1453,
"name": "Esenler"
},
"created_date": "2024-11-29T12:06:10.367353Z",
"modified_date": "2024-12-03T11:39:34.611098Z",
"phone_number": "+905555555555",
"line": "Lorem İpsum Dolor Sit Amet",
"postcode": null,
"retail_store": 81
},
"created_date": "2024-11-29T12:06:09.609920Z",
"modified_date": "2024-12-30T13:39:36.474266Z",
"omnitron_id": 1,
"name": "Test Stock Location",
"email": "test@akinon.com",
"remote_id": "123",
"is_active": true,
"fast_delivery": false
}
],
"last_login": "2025-07-18T10:06:16.115573Z",
"is_superuser": false,
"is_staff": true,
"date_joined": "2024-12-30T13:40:22.530558Z",
"created_date": "2024-12-30T13:40:22.531128Z",
"modified_date": "2025-07-18T10:06:16.116904Z",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"is_active": true,
"remote_id": "2222",
"username": "john.doe",
"permission_groups": [
1
],
"current_store": null
}
]
}Creates a new staff record.
Before sending this request:
Retrieve available
retail_storesfrom the Instore Backend:GET /api/v1/retail-stores/Retrieve available
permission_groupsfrom the Instore Backend:GET /api/v1/permission-groups/
List of retail store IDs
List of permission group IDs
Staff created successfully
List of retail store IDs
[1,2]JohnDoejohn.doe@test.com123[5,6]Bad Request
Forbidden
POST /api/v1/staffs/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 163
{
"retail_stores": [
1
],
"first_name": "text",
"last_name": "text",
"email": "name@gmail.com",
"is_active": true,
"remote_id": "text",
"password": "text",
"permission_groups": [
1
]
}{
"retail_stores": [
[
1,
2
]
],
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@test.com",
"remote_id": 123,
"password": "text",
"permission_groups": [
[
5,
6
]
]
}Returns detailed information of a staff by its ID.
Response format
jsonPossible values: Successful operation
Forbidden
Not Found
GET /api/v1/staffs/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"results": [
{
"id": 32,
"retail_stores": [
{
"id": 81,
"address": {
"id": 81,
"township": {
"id": 2190,
"city": {
"id": 125,
"country": {
"id": 3,
"translations": null,
"created_date": "2024-05-08T19:12:57.305774Z",
"modified_date": "2024-11-29T12:06:02.290922Z",
"omnitron_id": 36,
"name": "Türkiye",
"code": "tr"
},
"translations": null,
"created_date": "2024-05-08T19:14:58.516332Z",
"modified_date": "2024-05-08T19:14:58.516350Z",
"omnitron_id": 286,
"name": "İstanbul"
},
"translations": null,
"created_date": "2024-05-08T19:15:00.868236Z",
"modified_date": "2024-05-08T19:15:00.868248Z",
"omnitron_id": 1453,
"name": "Esenler"
},
"created_date": "2024-11-29T12:06:10.367353Z",
"modified_date": "2024-12-03T11:39:34.611098Z",
"phone_number": "+905555555555",
"line": "Lorem İpsum Dolor Sit Amet",
"postcode": null,
"retail_store": 81
},
"created_date": "2024-11-29T12:06:09.609920Z",
"modified_date": "2024-12-30T13:39:36.474266Z",
"omnitron_id": 1,
"name": "Test Stock Location",
"email": "test@akinon.com",
"remote_id": "123",
"is_active": true,
"fast_delivery": false
}
],
"last_login": "2025-07-18T10:06:16.115573Z",
"is_superuser": false,
"is_staff": true,
"date_joined": "2024-12-30T13:40:22.530558Z",
"created_date": "2024-12-30T13:40:22.531128Z",
"modified_date": "2025-07-18T10:06:16.116904Z",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"is_active": true,
"remote_id": "2222",
"username": "john.doe",
"permission_groups": [
1
],
"current_store": null
}
]
}Updates the details of a single staff identified by its ID.
Before sending this request:
Retrieve available
retail_storesfrom the Instore Backend:GET /api/v1/retail-stores/
Response format
jsonPossible values: [1,2]JohnDoejohn.doe@example.comtruetrueabcd-1234johndoeSuccessful operation
List of retail store IDs
[1,2]JohnDoejohn.doe@test.com123[5,6]Bad Request
Forbidden
Not Found
PUT /api/v1/staffs/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 170
{
"retail_stores": [
1,
2
],
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"is_active": true,
"is_staff": true,
"remote_id": "abcd-1234",
"username": "johndoe"
}{
"retail_stores": [
[
1,
2
]
],
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@test.com",
"remote_id": 123,
"password": "text",
"permission_groups": [
[
5,
6
]
]
}Partially updates the details of a single staff. Only the provided fields will be updated; other fields remain unchanged.
Before sending this request:
Retrieve available
retail_storesfrom the Instore Backend:GET /api/v1/retail-stores/
Response format
jsonPossible values: [1,2]JohnDoejohn.doe@example.comtruetrueabcd-1234johndoeSuccessful operation
List of retail store IDs
[1,2]JohnDoejohn.doe@test.com123[5,6]Bad Request
Forbidden
Not Found
PATCH /api/v1/staffs/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 170
{
"retail_stores": [
1,
2
],
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"is_active": true,
"is_staff": true,
"remote_id": "abcd-1234",
"username": "johndoe"
}{
"retail_stores": [
[
1,
2
]
],
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@test.com",
"remote_id": 123,
"password": "text",
"permission_groups": [
[
5,
6
]
]
}Returns the permission details of given staff identified by its ID.
Response format
jsonPossible values: Successful operation
1true2024-12-30T13:40:22.531128Z2025-07-18T10:06:16.116904ZOMS CargoCompany Listcargo_company-oms:oms-cargo-company[1]Forbidden
Not Found
GET /api/v1/staffs/{id}/list_staff_permission_info/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"is_visible_for_user": true,
"created_date": "2024-12-30T13:40:22.531128Z",
"modified_date": "2025-07-18T10:06:16.116904Z",
"name": "OMS CargoCompany List",
"path": "cargo_company-oms:oms-cargo-company",
"label": "text",
"method": "text",
"parent": "text",
"permission_groups": [
1
]
}Changes the password of the staff.
The ID of the staff whose password will be changed.
32The new password to be set for the staff.
123Successful operation
No content
Bad Request
Forbidden
POST /api/v1/staffs/change_password/ HTTP/1.1
Host: sandbox.akinon.com
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"staff": 32,
"new_password": "123"
}No content
Returns staff records that have the same email address.
Response format
jsonPossible values: Successful operation
322025-07-18T10:06:16.115573Zfalsetrue2024-12-30T13:40:22.530558Z2024-12-30T13:40:22.531128Z2025-07-18T10:06:16.116904ZJohnDoejohn.doe@example.comtrue2222john.doe[1]Forbidden
GET /api/v1/staffs/duplicate_email_staffs/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 32,
"retail_stores": [
{
"id": 81,
"address": {
"id": 81,
"township": {
"id": 2190,
"city": {
"id": 125,
"country": {
"id": 3,
"translations": null,
"created_date": "2024-05-08T19:12:57.305774Z",
"modified_date": "2024-11-29T12:06:02.290922Z",
"omnitron_id": 36,
"name": "Türkiye",
"code": "tr"
},
"translations": null,
"created_date": "2024-05-08T19:14:58.516332Z",
"modified_date": "2024-05-08T19:14:58.516350Z",
"omnitron_id": 286,
"name": "İstanbul"
},
"translations": null,
"created_date": "2024-05-08T19:15:00.868236Z",
"modified_date": "2024-05-08T19:15:00.868248Z",
"omnitron_id": 1453,
"name": "Esenler"
},
"created_date": "2024-11-29T12:06:10.367353Z",
"modified_date": "2024-12-03T11:39:34.611098Z",
"phone_number": "+905555555555",
"line": "Lorem İpsum Dolor Sit Amet",
"postcode": null,
"retail_store": 81
},
"created_date": "2024-11-29T12:06:09.609920Z",
"modified_date": "2024-12-30T13:39:36.474266Z",
"omnitron_id": 1,
"name": "Test Stock Location",
"email": "test@akinon.com",
"remote_id": "123",
"is_active": true,
"fast_delivery": false
}
],
"last_login": "2025-07-18T10:06:16.115573Z",
"is_superuser": false,
"is_staff": true,
"date_joined": "2024-12-30T13:40:22.530558Z",
"created_date": "2024-12-30T13:40:22.531128Z",
"modified_date": "2025-07-18T10:06:16.116904Z",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"is_active": true,
"remote_id": "2222",
"username": "john.doe",
"permission_groups": [
1
],
"current_store": null
}
]Last updated
Was this helpful?

