curl --request POST \
--url https://api.loyaltylion.com/v2/customers/{merchant_id}/claimed_rewards/{claimed_reward_id}/refund \
--header 'Authorization: Bearer <token>'{
"claimed_reward": {
"id": 123,
"claimed_at": "<string>",
"point_cost": 123,
"redeemable": {
"redeemable_type": "<string>",
"fulfilled": true,
"fulfilled_at": "<string>",
"expires_on": "<unknown>"
},
"reward": {
"id": 123,
"title": "<string>",
"description": "<string>",
"sort_key": 123,
"content": {},
"point_cost": 123,
"method": "<string>",
"discount_type": "flat",
"discount_amount": 123,
"minimum_spend": 123,
"usage_limit": 123,
"min_redemption_amount": 123,
"max_redemption_amount": 123,
"max_free_shipping": "<unknown>",
"site_id": 123,
"target_site": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"order_type": "<string>",
"target_type": "<string>",
"target_collections": [
{
"id": 123,
"url": "<string>",
"restriction_text": "<string>"
}
],
"target_products": [
{
"inventory_count": 123,
"sort_key": 123,
"id": 123,
"variant_id": 123,
"sku": "<string>",
"url": "<string>",
"image_url": "<string>",
"title": "<string>",
"handle": "<string>"
}
],
"session_options": "<unknown>",
"auto_refund_seconds": "<unknown>",
"expiry_options": {
"kind": "<string>",
"seconds": "<unknown>"
},
"redeemable_expiry_options": "<unknown>",
"supported_channels": [
"web"
],
"kind": "<string>",
"recurring_cycle_limit": 123
},
"state": "approved",
"session": {
"kind": "cart",
"token": "<string>"
},
"auto_refund_at": "<string>",
"expires_at": "<string>"
},
"remote_resource_deleted": true
}curl --request POST \
--url https://api.loyaltylion.com/v2/customers/{merchant_id}/claimed_rewards/{claimed_reward_id}/refund \
--header 'Authorization: Bearer <token>'{
"claimed_reward": {
"id": 123,
"claimed_at": "<string>",
"point_cost": 123,
"redeemable": {
"redeemable_type": "<string>",
"fulfilled": true,
"fulfilled_at": "<string>",
"expires_on": "<unknown>"
},
"reward": {
"id": 123,
"title": "<string>",
"description": "<string>",
"sort_key": 123,
"content": {},
"point_cost": 123,
"method": "<string>",
"discount_type": "flat",
"discount_amount": 123,
"minimum_spend": 123,
"usage_limit": 123,
"min_redemption_amount": 123,
"max_redemption_amount": 123,
"max_free_shipping": "<unknown>",
"site_id": 123,
"target_site": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"order_type": "<string>",
"target_type": "<string>",
"target_collections": [
{
"id": 123,
"url": "<string>",
"restriction_text": "<string>"
}
],
"target_products": [
{
"inventory_count": 123,
"sort_key": 123,
"id": 123,
"variant_id": 123,
"sku": "<string>",
"url": "<string>",
"image_url": "<string>",
"title": "<string>",
"handle": "<string>"
}
],
"session_options": "<unknown>",
"auto_refund_seconds": "<unknown>",
"expiry_options": {
"kind": "<string>",
"seconds": "<unknown>"
},
"redeemable_expiry_options": "<unknown>",
"supported_channels": [
"web"
],
"kind": "<string>",
"recurring_cycle_limit": 123
},
"state": "approved",
"session": {
"kind": "cart",
"token": "<string>"
},
"auto_refund_at": "<string>",
"expires_at": "<string>"
},
"remote_resource_deleted": true
}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
The ID of the customer in your platform or ecommerce store
The ID of the claimed reward to refund
200
Show child attributes
ISO 8601 timestamp indicating when this reward was claimed
The number of points it cost to claim this reward
Show child attributes
"fulfilment"Indicates if this reward has been fulfilled
An ISO8601 timestamp representing when the reward was fulfilled, or null if it is not yet fulfilled
This field is always null for fulfilment rewards because they do not expire
Show child attributes
"voucher"flat, percentage "subscription""all"Show child attributes
The current inventory count of this product variant, or null if inventory is not tracked. If the count is zero, you should ensure it is not selectable by customers when redeeming the reward
web, pos, mobile "active_subscription_discount_voucher"approved, declined, expired, pending, void ISO 8601 timestamp indicating when this reward will automatically be voided and refunded if it has not yet been used, or null if not applicable
Deprecated in favour of auto_refund_at
Indicates if the redeemable resource associated with this reward was also deleted from the remote system. This will only be true if LoyaltyLion manages the resource. For example, when refunding a voucher-based reward with a Shopify store LoyaltyLion will also delete the voucher in Shopify