curl --request GET \
--url https://{host}/promotion/v3/customers/{customerId}/coupons \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/promotion/v3/customers/{customerId}/coupons"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/promotion/v3/customers/{customerId}/coupons', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/promotion/v3/customers/{customerId}/coupons",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/promotion/v3/customers/{customerId}/coupons"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/promotion/v3/customers/{customerId}/coupons")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/promotion/v3/customers/{customerId}/coupons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"coupons": [
{
"offerId": "571a1c59-09f6-4899-bd18-5e43de2939d3",
"couponId": "3942b459-1595-447b-8541-4eabaa565602",
"posCouponId": null,
"offerType": "appCoupon",
"offerContent": {
"title": "10% Off Coca-Cola & Fanta – Chain 1 Deal",
"description": "Refresh your day with a cool discount! For a limited time, get 10% off Coca-Cola or Fanta when purchased without any other offers. This exclusive deal for Chain 1 is your ticket to crisp, bubbly savings—no stacking needed.",
"brand": "Coca-Cola Refreshments",
"imageUrl": "https://example.com/assets/coke_fanta_discount.jpg",
"discountLabel": "10% Off Coca-Cola & Fanta",
"normalPriceLabel": null,
"pricePerUnitLabelEnabled": true,
"unitOfMeasure": "L",
"conditionLabel": "Buy 1 Coca-Cola or Fanta",
"receiptDisplayText": "10% off Coca-Cola or Fanta",
"tags": [],
"icons": [],
"autogenerateDiscountLabel": null
},
"validFrom": "2026-11-18T00:00:00Z",
"validTo": "2026-11-24T00:00:00Z",
"activationTime": null,
"storeIds": [],
"chainIds": [
"1"
],
"isRedeemed": false,
"prices": {
"currency": "EUR",
"normalPrice": 5,
"price": 4.5,
"normalPricePerUnit": 10,
"pricePerUnit": 9
},
"discount": {
"priority": 5,
"allowOtherDiscountsOnTop": false,
"itemsApplicationType": "NonDiscountedItems",
"impactLevel": "Line",
"maxDiscountAmount": 5,
"maxDiscountAmountPerCoupon": 0,
"maxNumberApplyPerReceipt": 1,
"applyOnHighestPrice": false,
"applicationType": "OnThreshold",
"discountType": "SimpleLine",
"checkoutTypes": null,
"rewardRedemptionSettings": null,
"rules": [
{
"type": "Percentage",
"value": 0.1,
"thresholdType": "Quantity",
"thresholdValue": 1,
"affiliations": [
{
"type": "Product",
"id": null,
"identifiers": [
"coca-cola",
"fanta"
],
"applicationType": "Include"
}
]
}
]
},
"redemptionLimit": 1,
"redeemedCount": 0,
"displayPriority": 5,
"deletedAt": null,
"assignedBy": null
}
]
}Get customer coupons
Your backend or the app calls this to show a customer their coupons. Returns the customer’s coupons that are not expired, have been assigned, and have not yet been picked up in store, ordered by offer type, then display priority, then pick-up date.
Filtering by store and chain
By default, all of the customer’s available coupons are returned, regardless of store or chain. Three optional filters narrow the result to a location:
storeId: 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: only coupons for offers that include this chain. Can be combined withstoreId.preferredStore: filters likestoreIdand additionally returns the customer’s preferred-store coupons, which are returned only when this parameter is set. Cannot be combined withstoreIdorchainId; sending them together returns 400.
Selecting additional details
includedRelations requests extra information for each coupon, and more than one value can be given. Anything not requested
is returned empty: without StoresAndChains the storeIds and chainIds arrays are empty, without Discount the discount
field is null.
Including already used coupons
By default, coupons already picked up in store are excluded. queryRedeemed=true includes them as well, as long as they are
not expired.
Households
Where your environment uses households, the list also holds the coupons of the customer’s household. An offer with
scope: Household has one coupon per household, which everyone in the household sees and any of them can use. The
household comes from the X-Household-Id header when your backend sends it; otherwise Lobyco looks it up for the
customer, who must then be in exactly one household. The offer’s audience is still checked for the customer, never for
the household.
curl --request GET \
--url https://{host}/promotion/v3/customers/{customerId}/coupons \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/promotion/v3/customers/{customerId}/coupons"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/promotion/v3/customers/{customerId}/coupons', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/promotion/v3/customers/{customerId}/coupons",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/promotion/v3/customers/{customerId}/coupons"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/promotion/v3/customers/{customerId}/coupons")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/promotion/v3/customers/{customerId}/coupons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"coupons": [
{
"offerId": "571a1c59-09f6-4899-bd18-5e43de2939d3",
"couponId": "3942b459-1595-447b-8541-4eabaa565602",
"posCouponId": null,
"offerType": "appCoupon",
"offerContent": {
"title": "10% Off Coca-Cola & Fanta – Chain 1 Deal",
"description": "Refresh your day with a cool discount! For a limited time, get 10% off Coca-Cola or Fanta when purchased without any other offers. This exclusive deal for Chain 1 is your ticket to crisp, bubbly savings—no stacking needed.",
"brand": "Coca-Cola Refreshments",
"imageUrl": "https://example.com/assets/coke_fanta_discount.jpg",
"discountLabel": "10% Off Coca-Cola & Fanta",
"normalPriceLabel": null,
"pricePerUnitLabelEnabled": true,
"unitOfMeasure": "L",
"conditionLabel": "Buy 1 Coca-Cola or Fanta",
"receiptDisplayText": "10% off Coca-Cola or Fanta",
"tags": [],
"icons": [],
"autogenerateDiscountLabel": null
},
"validFrom": "2026-11-18T00:00:00Z",
"validTo": "2026-11-24T00:00:00Z",
"activationTime": null,
"storeIds": [],
"chainIds": [
"1"
],
"isRedeemed": false,
"prices": {
"currency": "EUR",
"normalPrice": 5,
"price": 4.5,
"normalPricePerUnit": 10,
"pricePerUnit": 9
},
"discount": {
"priority": 5,
"allowOtherDiscountsOnTop": false,
"itemsApplicationType": "NonDiscountedItems",
"impactLevel": "Line",
"maxDiscountAmount": 5,
"maxDiscountAmountPerCoupon": 0,
"maxNumberApplyPerReceipt": 1,
"applyOnHighestPrice": false,
"applicationType": "OnThreshold",
"discountType": "SimpleLine",
"checkoutTypes": null,
"rewardRedemptionSettings": null,
"rules": [
{
"type": "Percentage",
"value": 0.1,
"thresholdType": "Quantity",
"thresholdValue": 1,
"affiliations": [
{
"type": "Product",
"id": null,
"identifiers": [
"coca-cola",
"fanta"
],
"applicationType": "Include"
}
]
}
]
},
"redemptionLimit": 1,
"redeemedCount": 0,
"displayPriority": 5,
"deletedAt": null,
"assignedBy": null
}
]
}Authorizations
Headers
Query Parameters
Extra details to include for each coupon. Omitted, the store and chain lists come back empty and discount is null.
Extra details that can be requested for each coupon in a list.
StoresAndChains: fillstoreIdsandchainIdswith the stores and chains the offer applies to.Discount: filldiscountwith the discount the coupon grants.
This list is not final. Lobyco may add a value at any time, and a consumer must not fail on a value it does not know.
StoresAndChains, Discount