Get customer coupons
Returns a customer’s coupons that are not expired, have been assigned, and have not yet been picked up in store.
Filtering by store and chainBy default, all of the customer’s available coupons are returned, regardless of store or chain. The following optional filters narrow the results to a specific location:
storeId - Returns only coupons for offers that include this store. Coupons already assigned to the customer are included if they are not tied to a specific store, or if they are tied to this one.
chainId - Returns only coupons for offers that include this chain.
preferredStore - Filters the same way as storeId. Additionally returns the preferredStore-type coupons.
Notes:
-
storeId and chainId can be combined to narrow results to a specific store and chain at once.
-
preferredStore cannot be combined with storeId or chainId; sending them together returns an error (400 Bad Request).
-
preferredStore-type coupons are returned only when preferredStore is provided. Without it, no preferredStore-type coupons are returned. When provided, only the coupons available at that store are returned.
includedRelations requests extra information for each coupon. It is optional and more than one value can be provided at a time. Anything not requested is returned empty.
-
StoresAndChains - When included, each coupon lists the IDs of the stores and chains its offer applies to; when omitted, returns empty arrays.
-
Discount - When included, each coupon includes the discount details of its offer; when omitted, returns null.
By default, coupons already picked up in store are excluded. Setting queryRedeemed to true includes those as well, only if they are not expired.
Authorizations
Opaque Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"
Path Parameters
The id of the customer.
Query Parameters
List of relations that should be included.
StoresAndChains, Discount Specifies if the redeemed coupons are included.
The preferred store of the customer.
The selected store to retrieve related available coupons.
The selected chain to retrieve related available coupons.
Response
OK
All coupons that match the query. Never null, but can be empty.