Adds or edits contractor number
Adds or edits contractor number by its ID.
Request
POST
https://courier.yandex.ru/api/v1/companies/{company_id}/numbers/{contractor_company_id}
Path parameters
Name |
Description |
company_id* |
Type: integer The ID of the company that is used in requests to the Track & Trace API. |
contractor_company_id* |
Type: integer The ID of the contractor-company that is used in requests to the Track & Trace API. |
Body
application/json
{
"number": "string",
"name": "string"
}
Name |
Description |
number* |
Type: string Company number. |
name |
Type: string Company name. Max length: |
Responses
200 OK
Deprecated
Number was added.
401 Unauthorized
Deprecated
Authorization failed. Send the correct OAuth token in the authorization header.
403 Forbidden
Deprecated
You do not have access to this object.
422 Unprocessable Entity
Deprecated
Incorrect input.
No longer supported, please use an alternative and newer version.