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<int64>

The ID of the company that is used in requests to the Track & Trace API.

contractor_company_id*

Type: integer<int64>

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: 80

Responses

200 OK

Number was added.

401 Unauthorized

Authorization failed. Send the correct OAuth token in the authorization header.

403 Forbidden

You do not have access to this object.

422 Unprocessable Entity

Incorrect input.