redeemCoupon
- Home
- Points & Loyalty
- SvcPoints
- redeemCoupon
redeemCoupon
Redeems a coupon for a user.
Parameters
Name | Description |
node_id required | Node ID |
user_id required | User ID to adjust/retrieve points for. |
code required | Coupon code to redeem points for. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcPoints?action=redeemCoupon&node_id=188234&user_id=229928503&code=stayhungry&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 |
{ "service":"svcPoints", "action":"redeemCoupon", "code":1, "message":"Coupon Successfully Redeemed", "item":{ "value":"100" } } |
Service Information
Service | svcPoints |
Method | redeemCoupon |
Type | REST |
Response Types | JSON, XML |