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 - MONEY_BACK

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

Тело запроса: MoneyBack

Примеры

Успех

Запрос:

{
  "cashier": "Кассир",
  "itemList": [
    {
      "nameTitle": "Товар 2",
      "codeNumber": "234002634987",
      "typeCode": "1",
      "markings": [
        {
          "si": "midom0im20m03223d-2-d"
        },
        {
          "ukz": "2321987121CAC"
        }
      ]
    },
      "price": "1",
      "amount": "9999.99",
      "isPercentDiscount": false,
      "discount": "9999.98",
      "isPercentIncrease": true,
      "increase": "50",
      "section": {
        "code": 123,
        "name": "бакалея"
      }
    ],
  "cashless": "0",
  "cash": "1",
  "other": "0", 
  "prefix": [{"Text": {"text": "тексттекст"}}, {"QrCode": {"qrCode" : "BASE64"}}],
  "suffix": [{"Text": {"text": "тексттекст"}}, {"QrCode": {"qrCode" : "BASE64"}}],
  "operationId": "123"
}

Ответ BaseResponse:

{
  "dateTime": "2022-07-06T10:00:56+03:00",
  "messageDetail": "Успешный возврат",
  "messageTitle": "Успех",
  "numberCheck": "9148",
  "registerNumberSKO": "131010705",
  "resultCode": 200,
  "rrn": "",
  "type": "MONEY_BACK",
  "uid": "E0CC03A64326BAE607CF1091",
  "total": "1",
  "isPrintSuccess": false,
  "payments": [
      {
          "type": "Cash",
          "sum": "1"
      }
  ]
}

Ошибка (в кассе недостаточно средств)

Запрос:

{
  "cashier": "Кассир",
  "codeNumber": "0",
  "typeCode": 0,
  "price": "1000",
  "amount": "1.00",
  "discount": "0",
  "cashless": "0",
  "cash": "1000",
  "other": "0"
}

Ответ BaseResponse:

{
  "messageDetail": "Невозможно провести операцию, в кассе недостаточно средств",
  "messageTitle": "Ошибка",
  "resultCode": 425,
  "type": "MONEY_BACK"
}