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_ORDER

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

Тело запроса: [ChequeRequest]

Примеры

Успех

Запрос:

 {
  "info": {
    "uuid": "11111111",
    "table": 1,
    "place": 1,
    "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": "241799903",
  "resultCode": 200,
  "type": "ADD_OR_EDIT_ORDER"
}

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

Ответ BaseResponse:

{
  "messageDetail": "UUID чека \"11111111\" не уникален",
  "messageTitle": "Ошибка",
  "resultCode": 491,
  "type": "ADD_OR_EDIT_ORDER"
}