- Request
- Headers
- Body
- BalanceLimit
- WorkRuleId
- PaymentServiceId
- BlockOrdersOnBalanceBelowLimit
- Account
- FirstName
- MiddleName
- LastName
- FullName
- Address
- Phone
- ContactInfo
- BirthDate
- CountryCode
- ExpiryDate
- IssueDate
- Number
- DriverLicense
- Date
- DriverLicenseExperience
- IdDoc
- TaxIdentificationNumber
- Person
- HireDate
- Comment
- Profile
- CarId
- Platform
- Partner
- OrderProvider
- Responses
- 200 OK
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 429 Too Many Requests
- 500 Internal Server Error
Driver profile creation
Driver profile creation
Request
POST
https://fleet-api.taxi.yandex.net/v2/parks/contractors/driver-profile
Headers
|
Name |
Description |
|
X-API-Key |
Type: string API-key Min length: Example: |
|
X-Client-ID |
Type: string Client ID Min length: Example: |
|
X-Idempotency-Token |
Type: string Idempotent request token. Must contain only printable ASCII characters Min length: Max length: Example: |
|
X-Park-ID |
Type: string Partner ID Example: |
Body
application/json
{
"account": {
"balance_limit": "50",
"work_rule_id": "bc43tre6ba054dfdb7143ckfgvcby63e",
"payment_service_id": "12345",
"block_orders_on_balance_below_limit": true
},
"person": {
"full_name": {
"first_name": "Ivan",
"middle_name": "Ivanovich",
"last_name": "Ivanov"
},
"contact_info": {
"address": "Moscow, Ivanovskaya Ul., bld. 40/2, appt. 63",
"email": "example-email@example.com",
"phone": "+79999999999"
},
"driver_license": {
"birth_date": "1975-10-28",
"country": "rus",
"expiry_date": "2050-10-28",
"issue_date": "2020-10-28",
"number": "070236"
},
"driver_license_experience": {
"total_since_date": "1970-01-01"
},
"id_doc": {
"address": "example"
},
"tax_identification_number": "7743013902"
},
"profile": {
"hire_date": "2020-10-28",
"comment": "great driver"
},
"car_id": "5011ade6ba054dfdb7143c8cc9460dbc",
"order_provider": {
"platform": true,
"partner": true
}
}
|
Name |
Description |
|
order_provider |
Type: OrderProvider Example
|
|
person |
Type: Person Driver's personal info Example
|
|
profile |
Type: Profile Example
|
|
account |
Type: Account Driver's account Example
|
|
car_id |
Type: CarId Vehicle ID Min length: Max length: Example: |
BalanceLimit
Balance limit
Type: string
Example: 50
WorkRuleId
Work rule ID
Type: string
Example: bc43tre6ba054dfdb7143ckfgvcby63e
PaymentServiceId
ID for payments (generated automatically if missing)
Type: string
Example: 12345
BlockOrdersOnBalanceBelowLimit
Disable all orders if balance is below the limit
Type: boolean
Account
Driver's account
|
Name |
Description |
|
balance_limit |
Type: BalanceLimit Balance limit Example: |
|
block_orders_on_balance_below_limit |
Type: BlockOrdersOnBalanceBelowLimit Disable all orders if balance is below the limit Example: |
|
work_rule_id |
Type: WorkRuleId Work rule ID Example: |
|
payment_service_id |
Type: PaymentServiceId ID for payments (generated automatically if missing) Example: |
Example
{
"balance_limit": "50",
"work_rule_id": "bc43tre6ba054dfdb7143ckfgvcby63e",
"payment_service_id": "12345",
"block_orders_on_balance_below_limit": true
}
FirstName
Name
Type: string
Example: Ivan
MiddleName
Middle name
Type: string
Example: Ivanovich
LastName
Last name
Type: string
Example: Ivanov
FullName
Driver's full name
|
Name |
Description |
|
first_name |
Type: FirstName Name Example: |
|
last_name |
Type: LastName Last name Example: |
|
middle_name |
Type: MiddleName Middle name Example: |
Example
{
"first_name": "Ivan",
"middle_name": "Ivanovich",
"last_name": "Ivanov"
}
Address
Address
Type: string
Example: Moscow, Ivanovskaya Ul., bld. 40/2, appt. 63
Type: string
Example: example-email@example.com
Phone
Phone number
Type: string
Pattern: ^\+\d{1,15}$
Example: +79999999999
ContactInfo
Driver's contact info
|
Name |
Description |
|
phone |
Type: Phone Phone number Pattern: Example: |
|
address |
Type: Address Address Example: |
|
|
Type: Email Example: |
Example
{
"address": "Moscow, Ivanovskaya Ul., bld. 40/2, appt. 63",
"email": "example-email@example.com",
"phone": "+79999999999"
}
BirthDate
Birth date in ISO 8601 format without time zone
Type: string
Example: 1975-10-28
CountryCode
Country of issue (Three-letter code)
Type: string
Example: rus
ExpiryDate
Driver's license expiry date in ISO 8601 format without time zone
Type: string
Example: 2050-10-28
IssueDate
Date of issue of the driver's license in ISO 8601 format without time zone
Type: string
Example: 2020-10-28
Number
Driver's license series and number
Type: string
Example: 070236
DriverLicense
Driver's license info
|
Name |
Description |
|
country |
Type: CountryCode Country of issue (Three-letter code) Example: |
|
expiry_date |
Type: ExpiryDate Driver's license expiry date in ISO 8601 format without time zone Example: |
|
issue_date |
Type: IssueDate Date of issue of the driver's license in ISO 8601 format without time zone Example: |
|
number |
Type: Number Driver's license series and number Example: |
|
birth_date |
Type: BirthDate Birth date in ISO 8601 format without time zone Example: |
Example
{
"birth_date": "1975-10-28",
"country": "rus",
"expiry_date": "2050-10-28",
"issue_date": "2020-10-28",
"number": "070236"
}
Date
Date without time zone in ISO 8601 format
Type: string
Example: 1970-01-01
DriverLicenseExperience
Driving experience since
|
Name |
Description |
|
total_since_date |
Type: Date Date without time zone in ISO 8601 format Example: |
Example
{
"total_since_date": "1970-01-01"
}
IdDoc
Identification document
|
Name |
Description |
|
address |
Type: string Registration address Example: |
Example
{
"address": "example"
}
TaxIdentificationNumber
Tax identification number
Type: string
Min length: 1
Example: 7743013902
Person
Driver's personal info
|
Name |
Description |
|
contact_info |
Type: ContactInfo Driver's contact info Example
|
|
driver_license |
Type: DriverLicense Driver's license info Example
|
|
full_name |
Type: FullName Driver's full name Example
|
|
driver_license_experience |
Type: DriverLicenseExperience Driving experience since Example
|
|
id_doc |
Type: IdDoc Identification document Example
|
|
tax_identification_number |
Type: TaxIdentificationNumber Tax identification number Min length: Example: |
Example
{
"full_name": {
"first_name": "Ivan",
"middle_name": "Ivanovich",
"last_name": "Ivanov"
},
"contact_info": {
"address": "Moscow, Ivanovskaya Ul., bld. 40/2, appt. 63",
"email": "example-email@example.com",
"phone": "+79999999999"
},
"driver_license": {
"birth_date": "1975-10-28",
"country": "rus",
"expiry_date": "2050-10-28",
"issue_date": "2020-10-28",
"number": "070236"
},
"driver_license_experience": {
"total_since_date": "1970-01-01"
},
"id_doc": {
"address": "example"
},
"tax_identification_number": "7743013902"
}
HireDate
Hiring date in ISO 8601 format without time zone
Type: string
Example: 2020-10-28
Comment
Notes
Type: string
Example: great driver
Profile
|
Name |
Description |
|
hire_date |
Type: HireDate Hiring date in ISO 8601 format without time zone Example: |
|
comment |
Type: Comment Notes Example: |
Example
{
"hire_date": "2020-10-28",
"comment": "great driver"
}
CarId
Vehicle ID
Type: string
Min length: 1
Max length: 100
Example: 5011ade6ba054dfdb7143c8cc9460dbc
Platform
Are orders from the platform available
Type: boolean
Partner
Are orders from a partner available
Type: boolean
OrderProvider
|
Name |
Description |
|
partner |
Type: Partner Are orders from a partner available Example: |
|
platform |
Type: Platform Are orders from the platform available Example: |
Example
{
"platform": true,
"partner": true
}
Responses
200 OK
Creating a driver profile
Body
application/json
{
"contractor_profile_id": "2111ade6gk054dfdb9iu8c8cc9460mks"
}
|
Name |
Description |
|
contractor_profile_id |
Type: ContractorProfileId Driver's profile ID Example: |
ContractorProfileId
Driver's profile ID
Type: string
Example: 2111ade6gk054dfdb9iu8c8cc9460mks
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: |