- Request
- Headers
- Body
- DriverProfilesListRequestQuery
- DriverProfileListRequestFields
- DriverProfileRequestSortOrderField
- DriverProfilesListRequestQueryPark
- VehicleField
- DriverProfilesListRequestQueryParkAccount
- DriverProfilesListRequestQueryParkCurrentStatus
- DriverProfilesListRequestQueryParkDriverProfile
- DriverProfilesListRequestQueryParkUpdatedAt
- DriverProfilesListRequestQueryParkAccountLastTransactionDate
- DriverStatus
- WorkStatus
- Responses
- 200 OK
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 429 Too Many Requests
- 500 Internal Server Error
Getting list of driver profiles (couriers)
Returns a list of driver (courier) profiles associated with a given partner. It is the recommended method for obtaining profiles. The platform also supports pagination and filtering. The platform allows obtaining the following:
- all driver (courier) profiles;
- all driver (courier) profiles with the given status and working conditions;
- driver (courier) profiles selected by ID.
Request
POST
https://fleet-api.taxi.yandex.net/v1/parks/driver-profiles/list
Headers
|
Name |
Description |
|
Accept-Language* |
Type: string Preferred language of the response Example: Min length: |
|
X-API-Key* |
Type: string API-key Example: Min length: |
|
X-Client-ID* |
Type: string Client ID Example: Min length: |
Body
application/json
{
"query": {
"park": {
"id": "ee6f33c4562b4e1f8646d157bd70b2c4",
"driver_profile": {
"id": [
"2111ade6gk054dfdb9iu8c8cc9460mks"
],
"work_rule_id": [
"bc43tre6ba054dfdb7143ckfgvcby63e"
],
"work_status": [
"working"
]
},
"current_status": {
"status": [
"free"
]
},
"account": {
"last_transaction_date": {
"from": "2022-12-29T18:02:01Z",
"to": "2022-12-29T18:02:01Z"
}
},
"updated_at": {
"from": "2022-12-29T18:02:01Z",
"to": "2022-12-29T18:02:01Z"
}
},
"text": "string"
},
"fields": {
"account": [
"balance"
],
"car": [
"color"
],
"current_status": [
"status"
],
"driver_profile": [
"last_name"
],
"park": [
"name"
],
"updated_at": false
},
"sort_order": [
{
"direction": "asc",
"field": "driver_profile.created_date"
}
],
"limit": 200,
"offset": 0
}
|
Name |
Description |
|
query* |
Type: DriverProfilesListRequestQuery Filters can be merged using logical "AND" |
|
fields |
Type: DriverProfileListRequestFields Profile fields to be retrieved. When empty, all profile fields are retrieved.
To exclude a specific block of fields, pass an empty array for the corresponding section. E.g. specify
|
|
limit |
Type: integer<int32> Number of list items being requested Default: Example: Min value: Max value: |
|
offset |
Type: integer<int32> Offset from the beginning of the list Default: Example: Min value: |
|
sort_order |
Type: DriverProfileRequestSortOrderField[] An array of fields to define profiles order in the response |
DriverProfilesListRequestQuery
Filters can be merged using logical "AND"
|
Name |
Description |
|
park |
Type: DriverProfilesListRequestQueryPark Partner parameters |
|
text |
Type: string Arbitrary full-text search request |
DriverProfileListRequestFields
Profile fields to be retrieved. When empty, all profile fields are retrieved.
To exclude a specific block of fields, pass an empty array for the corresponding section. E.g. specify "car": [] if you want to exclude vehicle information.
Example:
"fields": {
"car": [],
"park": [],
"driver_profile": [
"first_name",
"last_name",
"id"
],
"account": [
"id",
"balance",
"balance_limit",
"currency"
]
}
|
Name |
Description |
|
account |
Type: string[] Account data to be retrieved. Possible values:
Example: |
|
car |
Type: VehicleField[] Vehicle data to be retrieved. Possible values:
Example: Enum: |
|
current_status |
Type: string[] Driver state data to be retrieved. Possible values:
Example: |
|
driver_profile |
Type: string[] Driver profile data to be retrieved. Possible values:
Example: |
|
park |
Type: string[] Partner data to be retrieved. Possible values:
Example: |
|
updated_at |
Type: boolean Whether to return time of latest update |
DriverProfileRequestSortOrderField
|
Name |
Description |
|
direction* |
Type: string Sorting direction. Possible values:
Example: Enum: |
|
field* |
Type: string Field used to sort the values. Possible values:
Example: Enum: |
DriverProfilesListRequestQueryPark
Partner parameters
|
Name |
Description |
|
id* |
Type: string Partner ID Example: |
|
account |
Type: DriverProfilesListRequestQueryParkAccount Filters by account data |
|
current_status |
Type: DriverProfilesListRequestQueryParkCurrentStatus Filter by driver's current state |
|
driver_profile |
Type: DriverProfilesListRequestQueryParkDriverProfile Filters by driver profile data |
|
updated_at |
Type: DriverProfilesListRequestQueryParkUpdatedAt Filters by time of latest update; Half-interval for which a start or end point must be indicated |
VehicleField
Vehicle field
|
Type |
Description |
|
Example: Enum: |
DriverProfilesListRequestQueryParkAccount
Filters by account data
|
Name |
Description |
|
last_transaction_date |
Type: DriverProfilesListRequestQueryParkAccountLastTransactionDate Half-interval for which a start or end point must be indicated |
DriverProfilesListRequestQueryParkCurrentStatus
Filter by driver's current state
|
Name |
Description |
|
status* |
Type: DriverStatus[] Driver's current state. Possible values:
Example: Enum: |
DriverProfilesListRequestQueryParkDriverProfile
Filters by driver profile data
|
Name |
Description |
|
id |
Type: string[] Driver's profile ID Example: |
|
work_rule_id |
Type: string[] Work rule ID Example: |
|
work_status |
Type: WorkStatus[] Driver's working status. Possible values:
Example: Enum: |
DriverProfilesListRequestQueryParkUpdatedAt
Filters by time of latest update; Half-interval for which a start or end point must be indicated
|
Name |
Description |
|
from |
Type: string<date-time> Start time as per ISO 8601 |
|
to |
Type: string<date-time> End time as per ISO 8601 |
DriverProfilesListRequestQueryParkAccountLastTransactionDate
Half-interval for which a start or end point must be indicated
|
Name |
Description |
|
from |
Type: string<date-time> Start time as per ISO 8601 |
|
to |
Type: string<date-time> End time as per ISO 8601 |
DriverStatus
Driver's current state. Possible values:
offline— offline;busy— busy;free— available;in_order_free- is on the ride now, available (stacked rides enabled);in_order_busy— is on the ride now, busy (stacked rides disabled).
|
Type |
Description |
|
Example: Enum: |
WorkStatus
Driver's working status. Possible values:
working— "Is working" status.not_working— "Not working" status;fired— status for dismissed drivers;
|
Type |
Description |
|
Example: Enum: |
Responses
200 OK
List of driver profiles was received successfully
Body
application/json
{
"limit": 200,
"offset": 0,
"total": 728,
"driver_profiles": [
{
"accounts": [
{
"id": "33de650c6a1a40bfa78dd981817da866",
"type": "current",
"balance": "700.0000",
"balance_limit": "50",
"currency": "RUB"
}
],
"car": {
"id": "2111ade6gk054dfdb9iu8c8cc9460mks",
"status": "working",
"amenities": [
[
"wifi"
]
],
"category": [
[
"econom"
]
],
"callsign": "123456789",
"brand": "Mercedes-Benz",
"model": "E-klasse",
"year": 2019,
"color": "Черный",
"number": "Т8654Т99",
"registration_cert": "123456789",
"vin": "12345678909876543"
},
"current_status": {
"status": "free",
"status_updated_at": "2020-04-27T08:44:05.871+0000"
},
"driver_profile": {
"id": "2111ade6gk054dfdb9iu8c8cc9460mks",
"park_id": "ee6f33c4562b4e1f8646d157bd70b2c4",
"created_date": "2020-04-23T13:08:05.552+0000",
"last_name": "Ivanov",
"first_name": "Ivan",
"middle_name": "Ivanovich",
"driver_license": {
"issue_date": "2020-10-28",
"expiration_date": "2050-10-28",
"number": "070236",
"normalized_number": "AA00123456",
"country": "rus",
"birth_date": "1975-10-28"
},
"phones": [
"+79999999999"
],
"work_rule_id": "bc43tre6ba054dfdb7143ckfgvcby63e",
"work_status": "working",
"check_message": "great driver",
"comment": "great driver",
"employment_type": "selfemployed",
"has_contract_issue": false
}
}
],
"parks": [
{
"id": "ee6f33c4562b4e1f8646d157bd70b2c4",
"city": "Tel Aviv",
"name": "Mickey Mouse Company"
}
]
}
|
Name |
Description |
|
driver_profiles* |
Type: DriverProfile[] List of profiles |
|
limit* |
Type: integer<int32> Requested number of list items Example: |
|
offset* |
Type: integer<int32> Requested offset from the beginning of the list Example: |
|
parks* |
Type: DriverProfilePark[] List of partners |
|
total* |
Type: integer<int32> Total number of list items Example: |
DriverProfile
|
Name |
Description |
|
accounts |
Type: DriverProfileAccount[] List of accounts associated with the driver |
|
car |
Type: Vehicle Vehicle data |
|
current_status |
|
|
driver_profile |
Type: DriverProfileModel Driver profile |
DriverProfilePark
|
Name |
Description |
|
city |
Type: string City where the partner operates Example: |
|
id |
Type: string Partner ID Example: |
|
name |
Type: string Partner name Example: |
DriverProfileAccount
Account information
|
Name |
Description |
|
balance |
Type: string Current account balance (fixed-point sum) Example: |
|
balance_limit |
Type: string Balance limit Example: |
|
currency |
Type: string Currency as per ISO 4217 Example: |
|
id |
Type: string Account ID Example: |
|
type |
Type: AccountType Account type. Possible values:
Example: Enum: |
Vehicle
Vehicle data
|
Name |
Description |
|
id* |
Type: string Vehicle ID Example: |
|
amenities |
Type: string[] Vehilce amenity. Possible values:
Example:
Enum: |
|
brand |
Type: string Vehicle make Example: |
|
callsign |
Type: string Vehicle code name (short name) Example: |
|
category |
Type: string[] List of vehicle categories. Possible values:
Example:
Enum: |
|
color |
Type: ColorEnum Vehicle color. Possible values:
Example: Enum: |
|
model |
Type: string Vehicle model Example: |
|
number |
Type: string License plate number Example: |
|
registration_cert |
Type: string Vehicle registration certificate (Required field for Russia) Example: |
|
status |
Type: string Vehicle status. Currently possible values:
Example: |
|
vin |
Type: string VIN (Required field for Russia) Example: |
|
year |
Type: integer Year of vehicle manufacture Example: |
DriverProfileCurrentStatus
|
Name |
Description |
|
status |
Type: DriverStatus Driver's current state. Possible values:
Example: Enum: |
|
status_updated_at |
Type: string Time of the last update of the current driver status in the ISO 8601 format. Example: |
DriverProfileModel
Driver profile
|
Name |
Description |
||||||||||||
|
check_message |
Type: string Notes (available to park employees) Example: |
||||||||||||
|
comment |
Type: string Notes Example: |
||||||||||||
|
created_date |
Type: string Date of profile creation as per ISO 8601 Example: |
||||||||||||
|
driver_license |
Type: object
Driver's license |
||||||||||||
|
employment_type |
Type: EmploymentType Driver's employment type. Possible values:
Example: Enum: |
||||||||||||
|
first_name |
Type: string Name Example: |
||||||||||||
|
has_contract_issue |
Type: boolean There are problems with confirming employment |
||||||||||||
|
id |
Type: string Driver's profile ID Example: |
||||||||||||
|
last_name |
Type: string Last name Example: |
||||||||||||
|
middle_name |
Type: string Middle name Example: |
||||||||||||
|
park_id |
Type: string Partner ID Example: |
||||||||||||
|
phones |
Type: string[] Phone number Example: Pattern: |
||||||||||||
|
work_rule_id |
Type: string Work rule ID Example: |
||||||||||||
|
work_status |
Type: WorkStatus Driver's working status. Possible values:
Example: Enum: |
AccountType
Account type. Possible values:
current— current account.
|
Type |
Description |
|
Example: Enum: |
ColorEnum
Vehicle color. Possible values:
Белый— White;Желтый— Yellow;Бежевый— Beige;Черный— Black;Голубой— Light blue;Серый— Gray;Красный— Red;Оранжевый— Orange;Синий— Dark blue;Зеленый— Green;Коричневый— Brown;Фиолетовый— Purple;Розовый— Pink.
|
Type |
Description |
|
Example: Enum: |
EmploymentType
Driver's employment type. Possible values:
selfemployed— Self-employed;park_employee— Park employee;individual_entrepreneur— Individual entrepreneur;
|
Type |
Description |
|
Example: Enum: |
400 Bad Request
Invalid request parameters
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
401 Unauthorized
Request authorization parameters are missing
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
403 Forbidden
Insufficient rights to execute the request
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
429 Too Many Requests
Limit of requests was exceeded
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
500 Internal Server Error
Internal server error
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
No longer supported, please use an alternative and newer version.