Default
Returns a paginated list of staffs.
Response format
json
Possible values: Page number
1
Number of items per page
20
Successful operation
Forbidden
GET /api/v1/staffs/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer JWT
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": "[email protected]",
"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": "[email protected]",
"is_active": true,
"remote_id": "2222",
"username": "john.doe",
"permission_groups": [
1
],
"current_store": null
}
]
}
Creates a new staff record.
List of retail store IDs
List of permission group IDs
Staff created successfully
Bad Request
Forbidden
POST /api/v1/staffs/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 163
{
"retail_stores": [
1
],
"first_name": "text",
"last_name": "text",
"email": "[email protected]",
"is_active": true,
"remote_id": "text",
"password": "text",
"permission_groups": [
1
]
}
{
"retail_stores": [
[
1,
2
]
],
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"remote_id": 123,
"password": "text",
"permission_groups": [
[
5,
6
]
]
}
Returns detailed information of a staff by its ID.
Response format
json
Possible values: Successful operation
Forbidden
Not Found
GET /api/v1/staffs/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer JWT
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": "[email protected]",
"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": "[email protected]",
"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.
Response format
json
Possible values: [1,2]
John
Doe
[email protected]
true
true
abcd-1234
johndoe
Successful operation
Bad Request
Forbidden
Not Found
PUT /api/v1/staffs/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 170
{
"retail_stores": [
1,
2
],
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"is_active": true,
"is_staff": true,
"remote_id": "abcd-1234",
"username": "johndoe"
}
{
"retail_stores": [
[
1,
2
]
],
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"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.
Response format
json
Possible values: [1,2]
John
Doe
[email protected]
true
true
abcd-1234
johndoe
Successful operation
Bad Request
Forbidden
Not Found
PATCH /api/v1/staffs/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 170
{
"retail_stores": [
1,
2
],
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"is_active": true,
"is_staff": true,
"remote_id": "abcd-1234",
"username": "johndoe"
}
{
"retail_stores": [
[
1,
2
]
],
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"remote_id": 123,
"password": "text",
"permission_groups": [
[
5,
6
]
]
}
Returns the permission details of given staff identified by its ID.
Response format
json
Possible values: Successful operation
Forbidden
Not Found
GET /api/v1/staffs/{id}/list_staff_permission_info/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer JWT
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.
32
The new password to be set for the staff.
123
Successful 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
json
Possible values: Successful operation
Forbidden
GET /api/v1/staffs/duplicate_email_staffs/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: Bearer JWT
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": "[email protected]",
"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": "[email protected]",
"is_active": true,
"remote_id": "2222",
"username": "john.doe",
"permission_groups": [
1
],
"current_store": null
}
]
Was this helpful?