Self-employed walking courier profile creation
Walking courier profile creation
Request
POST
https://fleet-api.taxi.yandex.net/v3/parks/contractors/walking-courier-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
{
"profile": {
"birth_date": "1970-01-01",
"full_name": {
"first_name": "Ivan",
"middle_name": "Ivanovich",
"last_name": "Ivanov"
},
"phone": "+79999999999",
"work_rule_id": "bc43tre6ba054dfdb7143ckfgvcby63e"
},
"selfemployed": {
"address": "Moscow, Ivanovskaya Ul., bld. 40/2",
"phone": "+79999999999",
"address_apartment": "65",
"deactivation_contractor_id": "817def613d3b45a0ac95f179eb285263"
}
}
|
Name |
Description |
|
profile |
Type: WalkingCourierWriteModel Example
|
|
selfemployed |
Type: WalkingCourierSelfemployed Fields for creating park self-employed in the Russian Federation Example
|
Date
Date without time zone in ISO 8601 format
Type: string
Example: 1970-01-01
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"
}
Phone
Phone number
Type: string
Pattern: ^\+\d{1,15}$
Example: +79999999999
WorkRuleId
Work rule ID
Type: string
Example: bc43tre6ba054dfdb7143ckfgvcby63e
WalkingCourierWriteModel
|
Name |
Description |
|
birth_date |
Type: Date Date without time zone in ISO 8601 format Example: |
|
full_name |
Type: FullName Driver's full name Example
|
|
phone |
Type: Phone Phone number Pattern: Example: |
|
work_rule_id |
Type: WorkRuleId Work rule ID Example: |
Example
{
"birth_date": "1970-01-01",
"full_name": {
"first_name": "Ivan",
"middle_name": "Ivanovich",
"last_name": "Ivanov"
},
"phone": "+79999999999",
"work_rule_id": "bc43tre6ba054dfdb7143ckfgvcby63e"
}
WalkingCourierSelfemployed
Fields for creating park self-employed in the Russian Federation
|
Name |
Description |
|
address |
Type: string Registration address Example: |
|
phone |
Type: string Phone number in "My tax" app Pattern: Example: |
|
address_apartment |
Type: string Apartment number Example: |
|
deactivation_contractor_id |
Type: string Contractor id that is converted to park self-employed Example: |
Example
{
"address": "Moscow, Ivanovskaya Ul., bld. 40/2",
"phone": "+79999999999",
"address_apartment": "65",
"deactivation_contractor_id": "817def613d3b45a0ac95f179eb285263"
}
Responses
200 OK
Creating a walking courier profile
Body
application/json
{
"id": "2111ade6gk054dfdb9iu8c8cc9460mks"
}
|
Name |
Description |
|
id |
Type: string Walking courier's profile ID Example: |
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: |
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: |