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

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
{
  "name": "Пупкин Василий Михайлович",
  "representative_name": "Пупкин Василий Михайлович",
  "phone": "+79529999999",
  "email": "example@mail.ru"
}

legal_info

Type: MerchantLegalInfo

Example
{
  "name": "Мерч 2.0",
  "inn": "9715386101",
  "ogrn": "1215573935220",
  "kpp": "773691001",
  "type": "ООО",
  "address": {
    "full_address": "Москва, Пролетарский проспект, 19"
  }
}

site_url

Type: string

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

Example: example.ru

shipment_type

Type: string

Тип отгрузки:

  • import - самопривоз на СЦ/ПВЗ;
  • withdraw - забор со склада мерчанта.

Enum: import, withdraw

MerchantAddress

Name

Description

full_address

Type: string

Полный адрес с указанием города, улицы и номера дома.

Example: Москва, Пролетарский проспект, 19

Example
{
  "full_address": "Москва, Пролетарский проспект, 19"
}

MerchantLegalInfo

Name

Description

address

Type: MerchantAddress

Example
{
  "full_address": "Москва, Пролетарский проспект, 19"
}

inn

Type: string

ИНН мерчанта

Example: 9715386101

name

Type: string

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

Example: Мерч 2.0

ogrn

Type: string

ОГРН мерчанта

Example: 1215573935220

type

Type: string

Тип юридического лица

Enum: ООО, ЗАО, АО, ИП, ЧП, ОАО, Физ. лицо, Иностранное предприятие ООО, Иное

kpp

Type: string

КПП отправителя

Example: 773691001

Example
{
  "name": "Мерч 2.0",
  "inn": "9715386101",
  "ogrn": "1215573935220",
  "kpp": "773691001",
  "type": "ООО",
  "address": {
    "full_address": "Москва, Пролетарский проспект, 19"
  }
}

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

Body

application/json
{
  "registration_id": "1929e056e1864cb38a392f013ad103bc/0d565a3a6dfd4ca491340cf33a8a3f65"
}

Name

Description

registration_id

Type: string

ID регистрации мерчанта

Example: 1929e056e1864cb38a392f013ad103bc/0d565a3a6dfd4ca491340cf33a8a3f65

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.