Skip to main content

Добавить новую организацию

POST 

/v5/orgs

Коды возможных ошибок:

[500]: "InternalServerError" - внутренняя ошибка сервера [429]: "TooManyRequests" - превышено ограничение на количество запросов в секунду [401]: "Unauthorized" - для выполнения операции требуется авторизация [403]: "NoPermissions" - нет прав на выполнение этой операции [422]: "RequestIsNotValid" - параметры запроса не прошли валидацию [422]: "AliasIsAlreadyTaken" - указанный псевдоним уже занят другой организаций [422]: "Duplicate" - дубликат (объект с таким уникальным идентификатором уже существует)

Request

Query Parameters

    presentation PresentationModes

    Possible values: [compact, full]

Header Parameters

    Accept-Language stringrequired

    Язык используемый для ответов

    Example: ru-RU
    X-LP-Client-Identifier stringrequired

    Идентификатор клиента

    Example: 5c031006-934e-4273-81d4-088aad3d4c47
    X-LP-Client-Type stringrequired

    Possible values: [Unknown, App, WebApp, Service]

    Тип клиента

    Example: App
    X-LP-Client-Name string

    Имя клиента

    Example: Swagger
    X-LP-Client-OS-Name string

    ОС клиента

    Example: SwaggerDoc
    X-LP-Client-OS-Version string

    Версия ОС клиента

    Example: 1.0
    X-LP-Client-Screen-Resolution string

    Разрешение экрана ОС клиента

    Example: 1280x0900
    X-LP-Client-Model string

    Модель оборудования клиента

    Example: Chrome 75
    X-LP-Organization-Alias string

    Организация по умолчанию

    X-LP-Client-Extensions csv

    Поддерживаемые клиентом расширения моделей

Body

Данные новой организации

    name stringrequired

    Possible values: >= 2 characters and <= 24 characters

    alias stringrequired

    Possible values: >= 2 characters and <= 24 characters, Value must match regular expression ^[a-zA-Z0-9_-]{2,24}$

    support

    object

    line stringrequired

    Possible values: >= 2 characters and <= 24 characters

    responsibility stringrequired

    Possible values: >= 2 characters and <= 128 characters

    phone stringnullable

    Possible values: >= 10 characters and <= 18 characters, Value must match regular expression ((8|\+7)-?)?\(?\d{3,5}\)?-?\d{1}-?\d{1}-?\d{1}-?\d{1}-?\d{1}((-?\d{1})?-?\d{1})?

    email stringnullable

    Possible values: >= 6 characters and <= 64 characters, Value must match regular expression ^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$

    opening_hours stringnullable

    Possible values: >= 2 characters and <= 128 characters

    whatsapp stringnullable

    Possible values: >= 2 characters and <= 64 characters

    viber stringnullable

    Possible values: >= 2 characters and <= 64 characters

    telegram stringnullable

    Possible values: >= 2 characters and <= 64 characters

    type_of stringnullable

    extensions

    OrganizationExtensions

    Расширения

    notification_service

    object

    turned_on booleanrequired
    primary_url_for_notifications urirequired
    secondary_url_for_notifications urinullable
    version stringrequired

    Possible values: non-empty and <= 8 characters

    lifepay_auth

    object

    signature stringrequired

    Possible values: >= 8 characters and <= 128 characters

    version stringrequired

    Possible values: non-empty and <= 8 characters

    meta stringnullable

    Possible values: <= 128 characters

    meta_data

    object

    nullable

    property name* string
    guid uuid

Responses

Created

Schema

    name stringrequired

    Possible values: >= 2 characters and <= 24 characters

    alias stringrequired

    Possible values: >= 2 characters and <= 24 characters, Value must match regular expression ^[a-zA-Z0-9_-]{2,24}$

    owner

    object

    guid uuid
    type_of stringnullable

    support

    object

    line stringrequired

    Possible values: >= 2 characters and <= 24 characters

    responsibility stringrequired

    Possible values: >= 2 characters and <= 128 characters

    phone stringnullable

    Possible values: >= 10 characters and <= 18 characters, Value must match regular expression ((8|\+7)-?)?\(?\d{3,5}\)?-?\d{1}-?\d{1}-?\d{1}-?\d{1}-?\d{1}((-?\d{1})?-?\d{1})?

    email stringnullable

    Possible values: >= 6 characters and <= 64 characters, Value must match regular expression ^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$

    opening_hours stringnullable

    Possible values: >= 2 characters and <= 128 characters

    whatsapp stringnullable

    Possible values: >= 2 characters and <= 64 characters

    viber stringnullable

    Possible values: >= 2 characters and <= 64 characters

    telegram stringnullable

    Possible values: >= 2 characters and <= 64 characters

    type_of stringnullable

    extensions

    OrganizationExtensions

    Расширения

    notification_service

    object

    turned_on booleanrequired
    primary_url_for_notifications urirequired
    secondary_url_for_notifications urinullable
    version stringrequired

    Possible values: non-empty and <= 8 characters

    lifepay_auth

    object

    signature stringrequired

    Possible values: >= 8 characters and <= 128 characters

    version stringrequired

    Possible values: non-empty and <= 8 characters

    created_at date-time
    updated_at date-time
    deleted_at date-timenullable
    meta stringnullable

    Possible values: <= 128 characters

    meta_data

    object

    nullable

    property name* string
    guid uuid
    type_of stringnullable
Loading...