remove-loyalty-reward Function
Removes a loyalty reward from the cart.
Example
fetch('/s/api/v1/cart/loyalty/reward', {
method: 'DELETE',
headers: {
'X-CSRF-TOKEN': 'csrf_token_from_csrf_meta_tag',
},
body: JSON.stringify({
rewardId: "11ef116173e1369d8c6b089e019fd17a",
orderId: "11ef1d135548d3a88c6b089e019fd17a"
})
})
.then((response) => ...);
You can use the Site Theme SDK instead of calling the Cart API directly. The SDK is intended to simplify cart actions.