List a member's redeemable rewards
const url = 'https://api.loyx.se/partners/v1/memberships/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rewards?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.loyx.se/partners/v1/memberships/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rewards?limit=50' \ --header 'Authorization: Bearer <token>'The rewards the member can redeem now, for the member card at the till: active rewards only, none from a paused campaign, and, when the store is given (store_id or external_store_id, not both), none that do not run at that store. Cursor-paginated, newest first. Read-only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The membership’s internal UUID.
The membership’s internal UUID.
Query Parameters
Section titled “Query Parameters”Maximum rewards to return (1-200).
Maximum rewards to return (1-200).
Responses
Section titled “Responses”Cursor-paginated list of redeemable rewards.
Cursor-paginated list of a member’s redeemable rewards, newest first.
object
Rewards, newest first.
One reward the member can redeem now, at the store asked about.
object
The reward’s id (the member’s entitlement); redemption will take this id.
What the member gets. Which fields are set depends on kind.
object
Money in minor units with the currency and how to format it.
object
ISO 4217 currency code.
RFC 5646 locale for formatting (e.g. sv-SE).
Divisor to convert to major units (e.g. 100 for SEK).
Amount in minor units (e.g. öre, cents).
Benefit kind: percent, amount, fixed_price, free_item, text, bundle_price, bundle_percent or multibuy. Open enum: handle unknown values by showing description.
Money in minor units with the currency and how to format it.
object
ISO 4217 currency code.
RFC 5646 locale for formatting (e.g. sv-SE).
Divisor to convert to major units (e.g. 100 for SEK).
Amount in minor units (e.g. öre, cents).
When the member received it (UTC).
The member holding the reward.
The offer the reward was granted from.
Terms lines to show the cashier.
How many times it has been used so far.
Display title.
Example generated
{ "data": [ { "_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "benefit": { "amount": { "currency": "example", "locale": "example", "minor_units": 1, "value": 1 }, "description": "example", "kind": "example", "pay_quantity": 1, "per": "example", "percent": 1, "price": { "currency": "example", "locale": "example", "minor_units": 1, "value": 1 }, "quantity": 1 }, "created_at": "2026-04-15T12:00:00Z", "max_redemptions": 1, "membership_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "offer_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "terms_and_conditions": [ "example" ], "times_redeemed": 1, "title": "example", "valid_from": "2026-04-15T12:00:00Z", "valid_to": "2026-04-15T12:00:00Z" } ], "pagination": { "has_more": true, "limit": 1, "next_cursor": "example" }}store_reference_ambiguous (both store parameters sent) or invalid_cursor.
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
Example generated
{ "error": { "code": "example", "details": [ { "message": "example", "param": "example" } ], "doc_url": "example", "message": "example", "param": "example", "type": "example" }, "request_id": "example"}missing_token, invalid_authorization_header or invalid_token: get a new access token and retry once.
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
Example generated
{ "error": { "code": "example", "details": [ { "message": "example", "param": "example" } ], "doc_url": "example", "message": "example", "param": "example", "type": "example" }, "request_id": "example"}insufficient_scope: the API key lacks the scope this route needs.
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
Example generated
{ "error": { "code": "example", "details": [ { "message": "example", "param": "example" } ], "doc_url": "example", "message": "example", "param": "example", "type": "example" }, "request_id": "example"}Membership or store not found.
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
Example generated
{ "error": { "code": "example", "details": [ { "message": "example", "param": "example" } ], "doc_url": "example", "message": "example", "param": "example", "type": "example" }, "request_id": "example"}Validation Error
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
Example generated
{ "error": { "code": "example", "details": [ { "message": "example", "param": "example" } ], "doc_url": "example", "message": "example", "param": "example", "type": "example" }, "request_id": "example"}rate_limit_exceeded: wait Retry-After seconds.
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
Example generated
{ "error": { "code": "example", "details": [ { "message": "example", "param": "example" } ], "doc_url": "example", "message": "example", "param": "example", "type": "example" }, "request_id": "example"}internal_server_error or database_error (type internal_error): our fault. Retry with backoff; quote request_id.
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
Example generated
{ "error": { "code": "example", "details": [ { "message": "example", "param": "example" } ], "doc_url": "example", "message": "example", "param": "example", "type": "example" }, "request_id": "example"}