Free products can only be refunded on Shopify, and must use Shopify Functions.
If you are still using Shopify Scripts for free products, get in
touch and we’ll switch you over to Shopify
Functions
Interaction with the Initialize Customer Session API
If you are initializing a customer session regularly (e.g. on each page load, or after any change to the cart), and you are passing your current serialized cart, you typically do not need to manually refund free product rewards. The Initialize Customer Session API will use your serialized cart to check if any active free product rewards are present in the cart. If any are missing, they will be automatically refunded.Authorizations
An API key linked to a Program in LoyaltyLion, with a set of permissions (scopes). API keys can be created manually, or acquired through an OAuth2 flow. The API key should be provided as a Bearer token in the Authorization header
Path Parameters
Your LoyaltyLion Site ID
Query Parameters
The sales channel from which this request is made. Must be provided as this query parameter, or the X-LoyaltyLion-Channel header
Available options:
web, pos, mobile Body
application/json
Body
The LoyaltyLion ID of the claimed reward to cancel and refund
Response
201
The updated claimed reward that was refunded
The customer object, updated as of the reward refund, i.e. any refunded points will be returned to their points balance. This customer will always have state set to enrolled, as only enrolled customers can redeem rewards