curl --request GET \
--url https://{host}/coupon/v2/customers/{customerId}/couponsimport requests
url = "https://{host}/coupon/v2/customers/{customerId}/coupons"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/coupon/v2/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}/coupon/v2/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",
]);
$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}/coupon/v2/customers/{customerId}/coupons"
req, _ := http.NewRequest("GET", url, nil)
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}/coupon/v2/customers/{customerId}/coupons")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/coupon/v2/customers/{customerId}/coupons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"availableCoupons": [
{
"offerId": "3b48cb63-b312-447b-8dc7-b642e0b3aeee",
"couponId": "a39ce3b4-6415-4439-90e6-dccdad6262c2",
"dateToPickUp": "2026-12-06T12:20:11.8190181Z",
"reservedBy": "pos-475-2",
"reservedUntil": "2026-11-06T12:22:11.8190207Z",
"receiptDisplayText": "10% off Coca-Cola products",
"offerType": "appCoupon",
"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"
}
]
}
]
},
"content": {
"title": "10% Off Coca-Cola",
"description": "Get 10% off on all Coca‑Cola products.",
"brand": "Coca‑Cola",
"imageUrl": "https://example.com/images/coca-cola-discount.png",
"discountLabel": "10% OFF",
"normalPriceLabel": "Regular Price",
"pricePerUnitLabelEnabled": null,
"unitOfMeasure": "EA",
"conditionLabel": "Valid on Coca‑Cola products only",
"receiptDisplayText": "10% off Coca‑Cola products",
"tags": null,
"icons": null,
"autogenerateDiscountLabel": null
},
"storeIds": null,
"chainIds": [
"chain-001"
],
"fundedBy": null
}
]
}Get customer coupons
The POS calls this for a checked-in customer, at check-in or at subtotal, to learn which coupons the customer can use in this sale. A coupon is listed while it is activated and not expired, its offer is published, the customer is still in the offer’s audience where the offer has one, and its redemptions are below the offer’s limit. A coupon of a preactivated offer is listed without the customer having activated it. Where households are enabled, the household’s coupons are listed too.
Pass storeId to get only the coupons valid in that store; omitted, coupons for every store are returned. A coupon another system has reserved is still listed, with reservedBy and reservedUntil filled in: skip it, and reserve the ones you apply with POST /api/v1/customers/{customerId}/coupons/reserve.
With includeOfferData=true each coupon comes with the offer’s discount rules, content and receipt text, so the POS can price the basket itself; discount.maxDiscountAmount is then what the coupon can still grant when the offer limits the amount per coupon. Without it, the response holds the ids and the reservation fields only, which is enough for a POS that lets Lobyco calculate the discounts.
purchaseTime and idempotencyKey replay an earlier purchase: the list is evaluated as of that time, and coupons already redeemed under that key stay listed. Lobyco’s bonus allocation uses them when it re-evaluates a purchase; a POS pricing a sale now sends neither.
curl --request GET \
--url https://{host}/coupon/v2/customers/{customerId}/couponsimport requests
url = "https://{host}/coupon/v2/customers/{customerId}/coupons"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/coupon/v2/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}/coupon/v2/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",
]);
$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}/coupon/v2/customers/{customerId}/coupons"
req, _ := http.NewRequest("GET", url, nil)
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}/coupon/v2/customers/{customerId}/coupons")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/coupon/v2/customers/{customerId}/coupons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"availableCoupons": [
{
"offerId": "3b48cb63-b312-447b-8dc7-b642e0b3aeee",
"couponId": "a39ce3b4-6415-4439-90e6-dccdad6262c2",
"dateToPickUp": "2026-12-06T12:20:11.8190181Z",
"reservedBy": "pos-475-2",
"reservedUntil": "2026-11-06T12:22:11.8190207Z",
"receiptDisplayText": "10% off Coca-Cola products",
"offerType": "appCoupon",
"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"
}
]
}
]
},
"content": {
"title": "10% Off Coca-Cola",
"description": "Get 10% off on all Coca‑Cola products.",
"brand": "Coca‑Cola",
"imageUrl": "https://example.com/images/coca-cola-discount.png",
"discountLabel": "10% OFF",
"normalPriceLabel": "Regular Price",
"pricePerUnitLabelEnabled": null,
"unitOfMeasure": "EA",
"conditionLabel": "Valid on Coca‑Cola products only",
"receiptDisplayText": "10% off Coca‑Cola products",
"tags": null,
"icons": null,
"autogenerateDiscountLabel": null
},
"storeIds": null,
"chainIds": [
"chain-001"
],
"fundedBy": null
}
]
}Headers
Query Parameters
Response
The coupons the customer can use now, with the store filter applied. Empty when there are none.