Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Добавление чеков

Параметры

Header:

INTENT_OPERATION_TYPE - ADD_OR_EDIT_CHEQUES

Auth-token - Токен авторизации (опционально). Подробнее

Тело запроса: [ChequeRequest] (массив)

Примеры

Успех

Запрос:

{
  "cheques": [
    {
      "info": {
        "uuid": "2",
        "note": "Note",
        "number": "Заказ 1",
      },
      "currency": "BYN",
      "chequeDiscount": {
        "isPercent": false,
        "value": "5"
      },
      "chequeIncrease": {
        "isPercent": true,
        "value": "5"
      },
      "tpTaxNumber": "243624356",
      "isEdit": false,
      "prefix": [
        {
          "Text": {
            "text": "тексттекст"
          }
        },
        {
          "QrCode": {
            "qrCode": "BASE64"
          }
        }
      ],
      "suffix": [
        {
          "Text": {
            "text": "тексттекст"
          }
        },
        {
          "QrCode": {
            "qrCode": "BASE64"
          }
        }
      ],
      "items": [
        {
          "price": "100",
          "name": "Tovar",
          "quantity": "1",
          "code": {
            "type": "1",
            "value": "112321312310"
          },
          "discount": {
            "isPercent": true,
            "value": "10"
          },
          "increase": {
            "isPercent": true,
            "value": "5"
          },
          "section": {
            "code": 111,
            "name": "имя секции"
          },
          "markings": [
            {
              "si": "midom0im20m03223d-2-d"
            },
            {
              "ukz": "2321987121CAC"
            }
          ],
          "taxRate": "tax10"
        }
      ]
    }
  ]
}

Ответ BaseResponse:

{
  "messageDetail": "Чеки успешно добавлены",
  "messageTitle": "Успех",
  "registerNumberSKO": "131010705",
  "resultCode": 200,
  "type": "ADD_OR_EDIT_CHEQUES"
}

Ошибка (неуникальный UUID)

Запрос:

[
  {
    "info": {
      "uuid": "bb074ac8-3661-4c56-818e-26686d5a7ec3",
      "name": "Чек 2"
    },
    "currency": "BYN",
    "chequeDiscount": {
      "isPercent": true,
      "value": "5"
    },
    "items": [
      {
        "name": "Чай",
        "price": "5"
      }
    ]
  }
]

Ответ BaseResponse:

{
  "messageDetail": "UUID чека \"bb074ac8-3661-4c56-818e-26686d5a7ec3\" не уникален",
  "messageTitle": "Ошибка",
  "resultCode": 491,
  "type": "ADD_OR_EDIT_CHEQUES"
}