cURL
curl --request POST \ --url https://api.example.com/api/discount/wallet-points \ --header 'Content-Type: application/json' \ --data ' { "state": true, "tss_points_status": true } '
{ "products": { "items": [ { "prod_id": 12345, "product": "Classic T-Shirt", "price": 799, "quantity": 2, "sub_total": 1598 } ] }, "meta": { "items": [ { "name": "reward_points", "used_points": 500, "total_points": 1250 }, { "name": "tss_money", "used_tss_money": 500, "total_tss_money": 1250 }, { "name": "tss_points", "used_tss_points": 200, "total_tss_points": 850 }, { "name": "calculations", "sub_total": 1598, "used_tss_money": 500, "used_tss_points": 200, "total": 898 } ] } }
Manage TSS Money and TSS Points for cart discounts
Show properties
{ "title": "Bad Request", "description": "Insufficient TSS Money" }
{ "title": "Bad Request", "description": "TSS Money can't be applied on Gift Vouchers" }
{ "title": "Bad Request", "description": "Sorry! TSS points and coupons can not be used together" }
{ "title": "Bad Request", "description": "TSS Points can't be used for donation" }
POST /api/discount/wallet-points { "state": true }
POST /api/discount/wallet-points { "tss_points_status": true }
POST /api/discount/wallet-points { "state": false, "tss_points_status": false }