curl --request PUT \
--url https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"description": "Extended through New Year",
"end_date": "2027-01-07T23:59:59Z",
"promotional_price": {
"amount": "8.99",
"currency": "USD"
}
}
'import requests
url = "https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}"
payload = {
"description": "Extended through New Year",
"end_date": "2027-01-07T23:59:59Z",
"promotional_price": {
"amount": "8.99",
"currency": "USD"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: 'Extended through New Year',
end_date: '2027-01-07T23:59:59Z',
promotional_price: {amount: '8.99', currency: 'USD'}
})
};
fetch('https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}', 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://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'description' => 'Extended through New Year',
'end_date' => '2027-01-07T23:59:59Z',
'promotional_price' => [
'amount' => '8.99',
'currency' => 'USD'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}"
payload := strings.NewReader("{\n \"description\": \"Extended through New Year\",\n \"end_date\": \"2027-01-07T23:59:59Z\",\n \"promotional_price\": {\n \"amount\": \"8.99\",\n \"currency\": \"USD\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"Extended through New Year\",\n \"end_date\": \"2027-01-07T23:59:59Z\",\n \"promotional_price\": {\n \"amount\": \"8.99\",\n \"currency\": \"USD\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"Extended through New Year\",\n \"end_date\": \"2027-01-07T23:59:59Z\",\n \"promotional_price\": {\n \"amount\": \"8.99\",\n \"currency\": \"USD\"\n }\n}"
response = http.request(request)
puts response.read_body{
"description": "Black Friday weekend",
"end_date": "2026-12-31T23:59:59Z",
"id": "9f8e7d6c-5b4a-3210-fedc-ba9876543210",
"is_active": true,
"metadata": {
"campaign_id": "bf-2026"
},
"offer_id": "c4d5e6f7-8901-2345-abcd-ef6789012345",
"promotion_type": "SEASONAL",
"promotional_price": {
"amount": "9.99",
"currency": "USD"
},
"short_id": "keATfB8VP2gSjcnTbsMNQL",
"start_date": "2026-11-25T00:00:00Z"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Update in-store offer promotion
Partially update an in-store offer promotion. Omitted keys preserve existing values; metadata follows Stripe semantics (empty string deletes a key, null clears all). offer_id is not updatable — delete and recreate to move a promotion. Returns 404 when the promotion does not exist or the caller lacks MANAGE_OFFERS on the parent offer’s owning organization.
curl --request PUT \
--url https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"description": "Extended through New Year",
"end_date": "2027-01-07T23:59:59Z",
"promotional_price": {
"amount": "8.99",
"currency": "USD"
}
}
'import requests
url = "https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}"
payload = {
"description": "Extended through New Year",
"end_date": "2027-01-07T23:59:59Z",
"promotional_price": {
"amount": "8.99",
"currency": "USD"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: 'Extended through New Year',
end_date: '2027-01-07T23:59:59Z',
promotional_price: {amount: '8.99', currency: 'USD'}
})
};
fetch('https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}', 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://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'description' => 'Extended through New Year',
'end_date' => '2027-01-07T23:59:59Z',
'promotional_price' => [
'amount' => '8.99',
'currency' => 'USD'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}"
payload := strings.NewReader("{\n \"description\": \"Extended through New Year\",\n \"end_date\": \"2027-01-07T23:59:59Z\",\n \"promotional_price\": {\n \"amount\": \"8.99\",\n \"currency\": \"USD\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"Extended through New Year\",\n \"end_date\": \"2027-01-07T23:59:59Z\",\n \"promotional_price\": {\n \"amount\": \"8.99\",\n \"currency\": \"USD\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/retailers/api/v1/in-store-promotions/{promotion_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"Extended through New Year\",\n \"end_date\": \"2027-01-07T23:59:59Z\",\n \"promotional_price\": {\n \"amount\": \"8.99\",\n \"currency\": \"USD\"\n }\n}"
response = http.request(request)
puts response.read_body{
"description": "Black Friday weekend",
"end_date": "2026-12-31T23:59:59Z",
"id": "9f8e7d6c-5b4a-3210-fedc-ba9876543210",
"is_active": true,
"metadata": {
"campaign_id": "bf-2026"
},
"offer_id": "c4d5e6f7-8901-2345-abcd-ef6789012345",
"promotion_type": "SEASONAL",
"promotional_price": {
"amount": "9.99",
"currency": "USD"
},
"short_id": "keATfB8VP2gSjcnTbsMNQL",
"start_date": "2026-11-25T00:00:00Z"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Authorizations
Path Parameters
UUID of the in-store promotion to update.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Body
Partial update payload for an in-store offer promotion.
Every field is optional. Omitted keys preserve existing values (PATCH semantics
on a PUT endpoint, kept for backward compatibility). offer_id is not updatable
— delete and recreate to move a promotion to a different offer.
Developer-attached key/value data. Send {} or null to clear. Empty-string values delete that key. Omitted keys are preserved.
Show child attributes
Show child attributes
Time-windowed override for the offer's regular price, as {"amount", "currency"} with both required together. Must be non-negative. When multiple promotions overlap on the same offer the cheapest active one wins; $0 is allowed and intentional for free-with-purchase BOGO arms (it is not a sentinel for 'unknown').
Show child attributes
Show child attributes
{ "amount": "5.99", "currency": "USD" }
Timestamp at which this promotion becomes effective (inclusive). Must be strictly before end_date — the database enforces end_date > start_date.
Timestamp at which this promotion stops being effective (inclusive). A daily Celery beat task flips is_active to false once this passes; the row is kept for historical pricing rather than deleted.
Merchandising context — display-only, does not change resolution semantics. Use SEASONAL for time-of-year promotions (Black Friday, holiday), CLEARANCE for end-of-life inventory, BOGO for buy-one-get-one arms (often at promotional_price=0), BUNDLE for discounts that apply when buying with another product, INTRODUCTORY for launch pricing, LOYALTY for member-only prices, and SALE (the default) for everything else.
SALE, CLEARANCE, BOGO, BUNDLE, SEASONAL, INTRODUCTORY, LOYALTY Optional human-readable label shown alongside the promoted price (e.g. 'Black Friday weekend', 'Member appreciation week'). Free-form, up to 255 characters. Empty string when no label is needed.
255Soft-deactivate flag. true means the promotion is eligible for cheapest-active resolution within its date window; false excludes it (the daily beat task auto-flips this to false once end_date passes). Use the update endpoint to set this to false rather than deleting if you want to preserve the historical pricing row.
Response
OK
A time-windowed promotional price on an :class:InStoreOffer.
Mirrors :class:apps.retailers.models.InStoreOfferPromotion. The row stores
promotional_price as an amount plus its own ISO 4217 currency;
nothing is read through to the parent PhysicalStore.
Stable UUID primary key of the promotion. Use this for cross-references.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$URL-safe shortuuid (base57) encoding of id. Up to 22 characters; preferred over id in human-shareable URLs and log lines.
22UUID of the parent InStoreOffer this promotion applies to. The offer must already exist; create it via the in-store offers API before attaching promotions. Immutable after creation — moving a promotion to a different offer means deleting and recreating.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Timestamp at which this promotion becomes effective (inclusive). Must be strictly before end_date — the database enforces end_date > start_date.
Timestamp at which this promotion stops being effective (inclusive). A daily Celery beat task flips is_active to false once this passes; the row is kept for historical pricing rather than deleted.
Developer-attached key/value data attached to this object. Up to 50 keys; key max 40 chars, value max 500 chars.
Show child attributes
Show child attributes
Time-windowed override for the offer's regular price, as {"amount", "currency"} with both required together. Must be non-negative. When multiple promotions overlap on the same offer the cheapest active one wins; $0 is allowed and intentional for free-with-purchase BOGO arms (it is not a sentinel for 'unknown').
Show child attributes
Show child attributes
{ "amount": "5.99", "currency": "USD" }
Merchandising context — display-only, does not change resolution semantics. Use SEASONAL for time-of-year promotions (Black Friday, holiday), CLEARANCE for end-of-life inventory, BOGO for buy-one-get-one arms (often at promotional_price=0), BUNDLE for discounts that apply when buying with another product, INTRODUCTORY for launch pricing, LOYALTY for member-only prices, and SALE (the default) for everything else.
SALE, CLEARANCE, BOGO, BUNDLE, SEASONAL, INTRODUCTORY, LOYALTY Optional human-readable label shown alongside the promoted price (e.g. 'Black Friday weekend', 'Member appreciation week'). Free-form, up to 255 characters. Empty string when no label is needed.
255Soft-deactivate flag. true means the promotion is eligible for cheapest-active resolution within its date window; false excludes it (the daily beat task auto-flips this to false once end_date passes). Use the update endpoint to set this to false rather than deleting if you want to preserve the historical pricing row.