Getting a list of contractor applications from the garage
Getting a list of contractor applications from the garage with pagination
Request
GET
https://fleet-api.taxi.yandex.net/v1/parks/contractors/applications/list
Query parameters
|
Name |
Description |
|
cursor |
Type: string Cursor for obtaining the next data chunk Example: |
|
limit |
Type: integer Limit of elements in response Default: Min value: Max value: |
Headers
|
Name |
Description |
|
X-API-Key |
Type: string API-key Min length: Example: |
|
X-Client-ID |
Type: string Client ID Min length: Example: |
|
X-Park-ID |
Type: string Partner ID Example: |
Responses
200 OK
List of vehicle applications
Body
application/json
{
"items": [
{
"lead_id": "550e8400-e29b-41d4-a716-446655440000",
"driver_id": "33de650c6a1a40bfa78dd981817da866",
"phone": "+79999999999",
"vehicle_id": "5011ade6ba054dfdb7143c8cc9460dbc",
"schema": {
"price": "1500.0000",
"working_days": 6,
"non_working_days": 1
},
"request_type": "multiple",
"created_at": "2023-12-15T09:00:00+03:00",
"updated_at": "2023-12-15T14:30:00+03:00"
}
],
"cursor": "eyJsZWFkX2lkIjoiNTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAwIn0="
}
|
Name |
Description |
|
items |
Type: ContractorApplicationItem[] List of applications Example
|
|
cursor |
Type: string Cursor for next page Example: |
ContractorApplicationItem
|
Name |
Description |
||||||
|
lead_id |
Type: string<uuid> Lead ID Example: |
||||||
|
phone |
Type: string Phone number Example: |
||||||
|
vehicle_id |
Type: string Vehicle ID Example: |
||||||
|
created_at |
Type: string<date-time> Application creation date and time Example: |
||||||
|
driver_id |
Type: string Driver ID Example: |
||||||
|
request_type |
Type: string Request type: phonecall - created by phone call, multiple - multibooking Enum: |
||||||
|
schema |
Type: object
Rental scheme Example
|
||||||
|
updated_at |
Type: string<date-time> Application update date and time Example: |
Example
{
"lead_id": "550e8400-e29b-41d4-a716-446655440000",
"driver_id": "33de650c6a1a40bfa78dd981817da866",
"phone": "+79999999999",
"vehicle_id": "5011ade6ba054dfdb7143c8cc9460dbc",
"schema": {
"price": "1500.0000",
"working_days": 6,
"non_working_days": 1
},
"request_type": "multiple",
"created_at": "2023-12-15T09:00:00+03:00",
"updated_at": "2023-12-15T14:30:00+03:00"
}
400 Bad Request
Invalid request parameters
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |
401 Unauthorized
Request authorization parameters are missing
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |
403 Forbidden
Insufficient rights to execute the request
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |
429 Too Many Requests
Limit of requests was exceeded
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |
500 Internal Server Error
Internal server error
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |