Skip to main content

Добавить новый фискальный документ 'Отчет об открытии смены'

POST 

/v5/orgs/:org_guid/fiscal-registrars/:registrar_guid/docs/shift-opening-reports

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

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

Request

Path Parameters

    org_guid uuidrequired

    Уникальный идентификатор организации

    registrar_guid uuidrequired

    Уникальный идентификатор фискального регистратора

Query Parameters

    presentation PresentationModes

    Possible values: [compact, full]

Header Parameters

    Accept-Language stringrequired

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

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

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

    Example: 108bd191-dd80-4632-aa1b-c4f1974cc6ab
    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

Данные нового фискального документа

    fiscal_form FiscalDocumentForms (string)required

    Possible values: [RegistrationReport, ShiftOpeningReport, Receipt, StrictForm, ShiftClosingReport, FiscalDriveClosingReport, OperatorConfirmation, ReRegistrationReport, SettlementReport, ReceiptOfCorrection, StrictFormOfCorrection]

    fiscal_drive_number stringrequired

    Possible values: <= 16 characters, Value must match regular expression ^\d+$

    number int32required
    cashier_name stringnullable

    Possible values: <= 64 characters

    issued_at date-timerequired

    fiscal_registrar

    object

    guid uuid
    type_of stringnullable

    sources

    object

    fiscal_document_form V5FEFiscalForms (string)

    Possible values: [RegistrationReport, ShiftOpeningReport, Receipt, StrictForm, ShiftClosingReport, FiscalDriveClosingReport, OperatorConfirmation, ReRegistrationReport, SettlementReport, ReceiptOfCorrection, StrictFormOfCorrection]

    fiscal_registrar_version stringnullable

    Possible values: <= 3 characters

    fiscal_registrar_format V5FEFiscalFormats (string)

    Possible values: [Version1, Version2, Version3, Version4]

    additional_attribute stringnullable

    Possible values: <= 32 characters

    additional_data bytenullable
    shift_number int32
    ofd_timeout_is_expired booleannullable
    fiscal_drive_replacement_is_required booleannullable
    fiscal_drive_memory_is_overflowed booleannullable
    fiscal_drive_resource_is_exhausted booleannullable
    ofd_messages V5FEOfdMessages (string)[]nullable

    Possible values: [FormatLogicErrorWasDetected, MessagesCheckingIsRequired, FiscalRegistrarFormatUpdatingIsRequired, YourProblemsWerePlanned, SettingsChangingIsRequired, OfdIsRevoked]

    fiscal_document_format V5FEFiscalFormats (string)

    Possible values: [Version1, Version2, Version3, Version4]

    organization_name stringnullable

    Possible values: <= 256 characters

    organization_inn stringnullable

    Possible values: <= 12 characters

    issued_at date-time
    fiscal_registrar_registration_number stringnullable

    Possible values: <= 20 characters

    fiscal_registrar_serial_number stringnullable
    cashier_name stringnullable

    Possible values: <= 64 characters

    cashier_inn stringnullable

    Possible values: <= 12 characters

    settlement_address stringnullable

    Possible values: <= 256 characters

    settlement_location stringnullable

    Possible values: <= 256 characters

    fiscal_document_number int32
    fiscal_drive_number stringnullable

    Possible values: <= 16 characters

    fiscal_sign int64nullable

    additional_attributes

    object[]

    nullable

  • Array [

  • name stringnullable

    Possible values: <= 128 characters

    value stringnullable

    Possible values: <= 1024 characters

  • ]

  • type_of stringnullable
    meta stringnullable

    Possible values: <= 128 characters

    meta_data

    object

    nullable

    property name* string
    guid uuid

Responses

Created

Schema

    fiscal_form FiscalDocumentForms (string)required

    Possible values: [RegistrationReport, ShiftOpeningReport, Receipt, StrictForm, ShiftClosingReport, FiscalDriveClosingReport, OperatorConfirmation, ReRegistrationReport, SettlementReport, ReceiptOfCorrection, StrictFormOfCorrection]

    fiscal_drive_number stringrequired

    Possible values: <= 16 characters, Value must match regular expression ^\d+$

    number int32required
    cashier_name stringnullable

    Possible values: <= 64 characters

    issued_at date-timerequired

    fiscal_registrar

    object

    guid uuid
    type_of stringnullable

    sources

    object

    fiscal_document_name stringnullable
    fiscal_document_form V5FEFiscalForms (string)

    Possible values: [RegistrationReport, ShiftOpeningReport, Receipt, StrictForm, ShiftClosingReport, FiscalDriveClosingReport, OperatorConfirmation, ReRegistrationReport, SettlementReport, ReceiptOfCorrection, StrictFormOfCorrection]

    fiscal_registrar_version stringnullable

    Possible values: <= 3 characters

    fiscal_registrar_format V5FEFiscalFormats (string)

    Possible values: [Version1, Version2, Version3, Version4]

    additional_attribute stringnullable

    Possible values: <= 32 characters

    additional_data bytenullable
    shift_number int32
    ofd_timeout_is_expired booleannullable
    fiscal_drive_replacement_is_required booleannullable
    fiscal_drive_memory_is_overflowed booleannullable
    fiscal_drive_resource_is_exhausted booleannullable
    ofd_messages V5FEOfdMessages (string)[]nullable

    Possible values: [FormatLogicErrorWasDetected, MessagesCheckingIsRequired, FiscalRegistrarFormatUpdatingIsRequired, YourProblemsWerePlanned, SettingsChangingIsRequired, OfdIsRevoked]

    fiscal_document_format V5FEFiscalFormats (string)

    Possible values: [Version1, Version2, Version3, Version4]

    organization_name stringnullable

    Possible values: <= 256 characters

    organization_inn stringnullable

    Possible values: <= 12 characters

    issued_at date-time
    fiscal_registrar_registration_number stringnullable

    Possible values: <= 20 characters

    fiscal_registrar_serial_number stringnullable
    cashier_name stringnullable

    Possible values: <= 64 characters

    cashier_inn stringnullable

    Possible values: <= 12 characters

    settlement_address stringnullable

    Possible values: <= 256 characters

    settlement_location stringnullable

    Possible values: <= 256 characters

    fiscal_document_number int32
    fiscal_drive_number stringnullable

    Possible values: <= 16 characters

    fiscal_sign int64nullable

    additional_attributes

    object[]

    nullable

  • Array [

  • name stringnullable

    Possible values: <= 128 characters

    value stringnullable

    Possible values: <= 1024 characters

  • ]

  • type_of stringnullable
    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...