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: |
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
|
|
legal_name |
Type: string Официальное название Example: |
|
site_url |
Type: string URL сайта мерчанта Example: |
MerchantContactInfo
Данные контактного лица
|
Name |
Description |
|
|
Type: string Адрес электронной почты Example: |
|
name |
Type: string ФИО Example: |
|
phone |
Type: string Номер телефона Example: |
|
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: |
||
|
message |
Type: string Example: |
||
|
details |
Type: object
Детали ошибки 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.