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

KeyDatatypeRequiredDescription
siteCodestringSite code, defined when a site is created.

Request Body

{"id"=>"6458df84dd553b76bd4a5425"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring
saas-tokenstring