5.01. Регистрация мерчанта
Начало регистрации мерчанта
Request
POST
b2b.taxi.tst.yandex.net/api/b2b/platform/merchant/registration/init
Тестовое окружение
POST
b2b-authproxy.taxi.yandex.net/api/b2b/platform/merchant/registration/init
Продакшен-окружение
Query parameters
|
Name |
Description |
|
external_merchant_id |
Type: string ID мерчанта во внешней системе Example: |
Body
application/json
{
"site_url": "example.ru",
"legal_info": {
"name": "Мерч 2.0",
"inn": "9715386101",
"ogrn": "1215573935220",
"kpp": "773691001",
"type": "ООО",
"address": {
"full_address": "Москва, Пролетарский проспект, 19"
}
},
"contact": {
"name": "Пупкин Василий Михайлович",
"representative_name": "Пупкин Василий Михайлович",
"phone": "+79529999999",
"email": "example@mail.ru"
},
"shipment_type": "import"
}
|
Name |
Description |
|
contact |
Type: MerchantContactInfo Данные контактного лица Example
|
|
legal_info |
Type: MerchantLegalInfo Example
|
|
site_url |
Type: string URL сайта мерчанта Example: |
|
shipment_type |
Type: string Тип отгрузки:
Enum: |
MerchantAddress
|
Name |
Description |
|
full_address |
Type: string Полный адрес с указанием города, улицы и номера дома. Example: |
Example
{
"full_address": "Москва, Пролетарский проспект, 19"
}
MerchantLegalInfo
|
Name |
Description |
|
address |
Type: MerchantAddress Example
|
|
inn |
Type: string ИНН мерчанта Example: |
|
name |
Type: string Официальное название Example: |
|
ogrn |
Type: string ОГРН мерчанта Example: |
|
type |
Type: string Тип юридического лица Enum: |
|
kpp |
Type: string КПП отправителя Example: |
Example
{
"name": "Мерч 2.0",
"inn": "9715386101",
"ogrn": "1215573935220",
"kpp": "773691001",
"type": "ООО",
"address": {
"full_address": "Москва, Пролетарский проспект, 19"
}
}
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
Body
application/json
{
"registration_id": "1929e056e1864cb38a392f013ad103bc/0d565a3a6dfd4ca491340cf33a8a3f65"
}
|
Name |
Description |
|
registration_id |
Type: string ID регистрации мерчанта Example: |
400 Bad Request
Некорректные данные
Body
application/json
{
"code": "",
"message": ""
}
|
Name |
Description |
|
code |
Type: string Код ошибки Example: `` |
|
message |
Type: string Сообщение ошибки Example: `` |
403 Forbidden
Запрещено создавать мерчантов
Body
application/json
{
"code": "",
"message": ""
}
|
Name |
Description |
|
code |
Type: string Код ошибки Example: `` |
|
message |
Type: string Сообщение ошибки 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.