Get offer by id
curl --request GET \
--url https://{host}/promotion/v2/campaigns/{campaignId} \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/promotion/v2/campaigns/{campaignId}"
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/v2/campaigns/{campaignId}', 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/v2/campaigns/{campaignId}",
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/v2/campaigns/{campaignId}"
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/v2/campaigns/{campaignId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/promotion/v2/campaigns/{campaignId}")
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{
"unifiedCampaignId": "9e83cd73-190f-4f48-bd10-dc198db9bfcd",
"campaignId": "781ee352-7fbf-4890-a7a9-d96805672011",
"campaignName": "coca_cola_10p_off",
"validFrom": "2026-11-05T00:00:00Z",
"validTo": "2026-11-11T00:00:00Z",
"previewVisibleFrom": null,
"campaignType": "appCoupon",
"scope": "Individual",
"content": {
"iconTags": [],
"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": "Non-member price 5EUR",
"pricePerUnitLabelEnabled": true,
"unitOfMeasure": "L",
"conditionLabel": "Buy 1 Coca-Cola or Fanta",
"receiptDisplayText": "10% off Coca-Cola or Fanta",
"tags": [],
"icons": [],
"autogenerateDiscountLabel": null
},
"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,
"maxNumberApplyPerReceiptDecimal": 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": "coca-cola",
"applicationType": "Include"
},
{
"type": "Product",
"id": "fanta",
"applicationType": "Include"
}
]
}
]
},
"status": "Active",
"redemptionLimit": 1,
"totalCoupons": null,
"statistics": {
"assignedCoupons": 1240,
"activatedCoupons": 830,
"claimedCoupons": 412,
"totalValue": 185.4,
"minValue": 0.45,
"maxValue": 0.5,
"avgValue": 0.45,
"minBasket": 4.5,
"maxBasket": 212.3,
"avgBasket": 38.7
},
"chainIds": [
"1"
],
"storeIds": [],
"isDefault": false,
"offerSynchronized": true,
"fundedBy": "Coca-Cola Refreshments",
"audience": null,
"metadata": null,
"authorName": "Integration",
"isTemplate": false,
"displayPriority": 5,
"preactivated": false,
"ignoreOnPos": false,
"defaultValidForDays": null,
"rewardRedemptionSettings": null,
"modifiedDate": "2026-11-04T12:20:15.4892515Z",
"modifiedBy": "Integration"
}
Get offer by id
Returns one offer. campaignId is the id the offer was created with. Store and chain lists, the discount and the
statistics are left out unless requested with includedRelations.
GET
/
v2
/
campaigns
/
{campaignId}
Get offer by id
curl --request GET \
--url https://{host}/promotion/v2/campaigns/{campaignId} \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/promotion/v2/campaigns/{campaignId}"
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/v2/campaigns/{campaignId}', 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/v2/campaigns/{campaignId}",
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/v2/campaigns/{campaignId}"
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/v2/campaigns/{campaignId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/promotion/v2/campaigns/{campaignId}")
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{
"unifiedCampaignId": "9e83cd73-190f-4f48-bd10-dc198db9bfcd",
"campaignId": "781ee352-7fbf-4890-a7a9-d96805672011",
"campaignName": "coca_cola_10p_off",
"validFrom": "2026-11-05T00:00:00Z",
"validTo": "2026-11-11T00:00:00Z",
"previewVisibleFrom": null,
"campaignType": "appCoupon",
"scope": "Individual",
"content": {
"iconTags": [],
"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": "Non-member price 5EUR",
"pricePerUnitLabelEnabled": true,
"unitOfMeasure": "L",
"conditionLabel": "Buy 1 Coca-Cola or Fanta",
"receiptDisplayText": "10% off Coca-Cola or Fanta",
"tags": [],
"icons": [],
"autogenerateDiscountLabel": null
},
"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,
"maxNumberApplyPerReceiptDecimal": 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": "coca-cola",
"applicationType": "Include"
},
{
"type": "Product",
"id": "fanta",
"applicationType": "Include"
}
]
}
]
},
"status": "Active",
"redemptionLimit": 1,
"totalCoupons": null,
"statistics": {
"assignedCoupons": 1240,
"activatedCoupons": 830,
"claimedCoupons": 412,
"totalValue": 185.4,
"minValue": 0.45,
"maxValue": 0.5,
"avgValue": 0.45,
"minBasket": 4.5,
"maxBasket": 212.3,
"avgBasket": 38.7
},
"chainIds": [
"1"
],
"storeIds": [],
"isDefault": false,
"offerSynchronized": true,
"fundedBy": "Coca-Cola Refreshments",
"audience": null,
"metadata": null,
"authorName": "Integration",
"isTemplate": false,
"displayPriority": 5,
"preactivated": false,
"ignoreOnPos": false,
"defaultValidForDays": null,
"rewardRedemptionSettings": null,
"modifiedDate": "2026-11-04T12:20:15.4892515Z",
"modifiedBy": "Integration"
}
Authorizations
Query Parameters
Extra details to include. Omitted, storeIds, chainIds, discount and statistics are null.
Extra details that can be requested for each offer.
StoresAndChains: fillstoreIdsandchainIdswith the stores and chains the offer applies to.Statistics: fillstatisticswith the offer's coupon counts.Discount: filldiscountwith the offer's discount and its rules.
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.
Available options:
StoresAndChains, Statistics, Discount Response
The offer.
An offer as stored, with the relations that were requested.
Last modified on August 10, 2026