Redeeming a logged-in customer's reward points for a coupon code
POST {{api-url}}/reward-points/public/customer/redeem?siteCode=main
Gets the logged-in customer's reward points, swaps them for a coupon code by using the given redemption option ID, and returns a coupon code.
Note: This public API endpoint is accessible to all customers and is meant to be used on the storefront.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
siteCode | string | Site code, defined when a site is created. |
Request Body
{"id"=>"6458df84dd553b76bd4a5425"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string | ||
saas-token | string |