5.06. Обновить информацию о мерчанте

Обновить информацию о мерчанте

Request

POST

b2b.taxi.tst.yandex.net/api/b2b/platform/merchant/update

Тестовое окружение

POST

b2b-authproxy.taxi.yandex.net/api/b2b/platform/merchant/update

Продакшен-окружение

Query parameters

Name

Description

merchant_id

Type: string

ID мерчанта

Example: 290587090cfc4943856851c8c3b2eebf

Body

application/json
{
  "legal_name": "Мерч 2.0",
  "site_url": "example.ru",
  "contact": {
    "name": "Пупкин Василий Михайлович",
    "representative_name": "Пупкин Василий Михайлович",
    "phone": "+79529999999",
    "email": "example@mail.ru"
  }
}

Name

Description

contact

Type: MerchantContactInfo

Данные контактного лица

Example
{
  "name": "Пупкин Василий Михайлович",
  "representative_name": "Пупкин Василий Михайлович",
  "phone": "+79529999999",
  "email": "example@mail.ru"
}

legal_name

Type: string

Официальное название

Example: Мерч 2.0

site_url

Type: string

URL сайта мерчанта

Example: example.ru

MerchantContactInfo

Данные контактного лица

Name

Description

email

Type: string

Адрес электронной почты

Example: example@mail.ru

name

Type: string

ФИО

Example: Пупкин Василий Михайлович

phone

Type: string

Номер телефона

Example: +79529999999

representative_name

Type: string

ФИО представителя. Используется для электронной подписи

Example: Пупкин Василий Михайлович

Example
{
  "name": "Пупкин Василий Михайлович",
  "representative_name": "Пупкин Василий Михайлович",
  "phone": "+79529999999",
  "email": "example@mail.ru"
}

Responses

200 OK

OK

400 Bad Request

Некорректный запрос

Body

application/json
{
  "code": "legal_checks_invalid_inn",
  "message": "Legal checks error for inn",
  "details": {
    "invalid_fields": [
      "example"
    ]
  }
}

Name

Description

code

Type: string

Example: legal_checks_invalid_inn

message

Type: string

Example: Legal checks error for inn

details

Type: object

invalid_fields

Type: string[]

Example
[
  "example"
]

Детали ошибки

Example
{
  "invalid_fields": [
    "example"
  ]
}

404 Not Found

Мерчант не найден

Body

application/json
{
  "code": "",
  "message": ""
}

Name

Description

code

Type: string

Код ошибки

Example: ``

message

Type: string

Сообщение ошибки

Example: ``

No longer supported, please use an alternative and newer version.