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: eyJsZWFkX2lkIjoiNTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAwIn0=

limit

Type: integer

Limit of elements in response

Default: 100

Min value: 1

Max value: 100

Headers

Name

Description

X-API-Key

Type: string

API-key

Min length: 1

Example: <API key>

X-Client-ID

Type: string

Client ID

Min length: 1

Example: <Client ID>

X-Park-ID

Type: string

Partner ID

Example: ee6f33c4562b4e1f8646d157bd70b2c4

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
[
  {
    "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

Type: string

Cursor for next page

Example: eyJsZWFkX2lkIjoiNTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAwIn0=

ContractorApplicationItem

Name

Description

lead_id

Type: string<uuid>

Lead ID

Example: 550e8400-e29b-41d4-a716-446655440000

phone

Type: string

Phone number

Example: +79999999999

vehicle_id

Type: string

Vehicle ID

Example: 5011ade6ba054dfdb7143c8cc9460dbc

created_at

Type: string<date-time>

Application creation date and time

Example: 2023-12-15T09:00:00+03:00

driver_id

Type: string

Driver ID

Example: 33de650c6a1a40bfa78dd981817da866

request_type

Type: string

Request type: phonecall - created by phone call, multiple - multibooking

Enum: phonecall, multiple

schema

Type: object

non_working_days

Type: integer

Number of days when the car is not rented

price

Type: string

Daily rental price

Pattern: ^[0-9]+(\.[0-9]{1,4})?$

Example: 1500.0000

working_days

Type: integer

Number of days when the car is rented

Rental scheme

Example
{
  "price": "1500.0000",
  "working_days": 6,
  "non_working_days": 1
}

updated_at

Type: string<date-time>

Application update date and time

Example: 2023-12-15T14:30:00+03:00

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: Textual description of the error

code

Type: string

Machine-readable error code

Example: 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: Textual description of the error

code

Type: string

Machine-readable error code

Example: 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: Textual description of the error

code

Type: string

Machine-readable error code

Example: 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: Textual description of the error

code

Type: string

Machine-readable error code

Example: 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: Textual description of the error

code

Type: string

Machine-readable error code

Example: example