kadestro

Untitled

Apr 15th, 2021
508
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Request:
  2. POST https://api.maxbonus.ru:38200/api/cashbox/check
  3. {
  4.     "coupon": "687523388469",
  5.     "customer_token": null,
  6.     "items": [
  7.         {
  8.             "code": "9918",
  9.             "index": 1,
  10.             "mrc": 0.0,
  11.             "price": 6000.0,
  12.             "qty": 1.0
  13.         },
  14.         {
  15.             "code": "9934",
  16.             "index": 0,
  17.             "mrc": 0.0,
  18.             "price": 2500.0,
  19.             "qty": 1.0
  20.         }
  21.     ],
  22.     "pay_bonus": null
  23. }
  24.  
  25. Response:
  26. {
  27.     "statusCode": 200,
  28.     "message": "Data retrieval successfully",
  29.     "data": {
  30.         "code": null,
  31.         "calc_id": "a0779ffe79c4eda06a51ba429daefcde",
  32.         "customer_token": "88888888888",
  33.         "customer_total_bonus": 0,
  34.         "total_max_bonus_can_pay": 0,
  35.         "total_bonus_pay": 0,
  36.         "total_add_bonus": 0,
  37.         "total_discount": 0,
  38.         "total_check_amount": 8500,
  39.         "campaign_id": 0,
  40.         "campaign_name": null,
  41.         "coupon": "687523388469",
  42.         "coupon_used": "",
  43.         "items": [
  44.             {
  45.                 "code": "9918",
  46.                 "qty": 1,
  47.                 "sum": 6000,
  48.                 "max_bonus_can_pay": 1800,
  49.                 "calc_discount": 0,
  50.                 "calc_bonus_add": 0,
  51.                 "not_exist": false,
  52.                 "not_discount": false,
  53.                 "index": 1,
  54.                 "price": 6000,
  55.                 "action": 0,
  56.                 "pay_bonus": 0
  57.             },
  58.             {
  59.                 "code": "9934",
  60.                 "qty": 1,
  61.                 "sum": 2500,
  62.                 "max_bonus_can_pay": 750,
  63.                 "calc_discount": 0,
  64.                 "calc_bonus_add": 0,
  65.                 "not_exist": false,
  66.                 "not_discount": false,
  67.                 "index": 0,
  68.                 "price": 2500,
  69.                 "action": 0,
  70.                 "pay_bonus": 0
  71.             }
  72.         ],
  73.         "coupon_code": "0",
  74.         "coupon_message": "Купон не найден в чеке"
  75.     },
  76.     "backendExecTimeSec": 0.229987
  77. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×