Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Request:
- POST https://api.maxbonus.ru:38200/api/cashbox/check
- {
- "coupon": "687523388469",
- "customer_token": null,
- "items": [
- {
- "code": "9918",
- "index": 1,
- "mrc": 0.0,
- "price": 6000.0,
- "qty": 1.0
- },
- {
- "code": "9934",
- "index": 0,
- "mrc": 0.0,
- "price": 2500.0,
- "qty": 1.0
- }
- ],
- "pay_bonus": null
- }
- Response:
- {
- "statusCode": 200,
- "message": "Data retrieval successfully",
- "data": {
- "code": null,
- "calc_id": "a0779ffe79c4eda06a51ba429daefcde",
- "customer_token": "88888888888",
- "customer_total_bonus": 0,
- "total_max_bonus_can_pay": 0,
- "total_bonus_pay": 0,
- "total_add_bonus": 0,
- "total_discount": 0,
- "total_check_amount": 8500,
- "campaign_id": 0,
- "campaign_name": null,
- "coupon": "687523388469",
- "coupon_used": "",
- "items": [
- {
- "code": "9918",
- "qty": 1,
- "sum": 6000,
- "max_bonus_can_pay": 1800,
- "calc_discount": 0,
- "calc_bonus_add": 0,
- "not_exist": false,
- "not_discount": false,
- "index": 1,
- "price": 6000,
- "action": 0,
- "pay_bonus": 0
- },
- {
- "code": "9934",
- "qty": 1,
- "sum": 2500,
- "max_bonus_can_pay": 750,
- "calc_discount": 0,
- "calc_bonus_add": 0,
- "not_exist": false,
- "not_discount": false,
- "index": 0,
- "price": 2500,
- "action": 0,
- "pay_bonus": 0
- }
- ],
- "coupon_code": "0",
- "coupon_message": "Купон не найден в чеке"
- },
- "backendExecTimeSec": 0.229987
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement