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_CHEQUES

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

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

Примеры

Успех

Запрос:

[
  {
    "info": {
      "uuid": "9aa03f0c-d77c-40ae-8f4d-236c432054a8",
      "name": "Чек 1",
      "chequeType": "Postponed",
      "note": "Cheque2",
      "number": "111IKASSA"
    },
    "currency": "BYN",
    "chequeDiscount": {
      "isPercent": true,
      "value": "5"
    },
    "chequeIncrease": {
      "isPercent": true,
      "value": "5"
    },
    "tpTaxNumber": "123456789",
    "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_CHEQUES"
}

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

Запрос:

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

Ответ BaseResponse:

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