Download OpenAPI specification:Download
enfore API for managing promotions and related objects
Sales vouchers represent a liability of the business against whoever owns the voucher.
The enfore platform supports three types of sales vouchers: gift cards, product vouchers, and category vouchers.
Gift cards have a direct monetary value and can be used to pay for any kind of product/service (with some limitations due to tax laws).
Returns gift cards, sorted in ascending order by issued_date_and_time
.
For gift cards without such a value, the timestamp of their import into the system is used instead.
org-id required | string ID of the organization whose data is being accessed. |
from required | string <date-time> Defines the time starting from which objects are to be returned. Objects with exactly this date are also returned - this means that the start of a left-closed interval is defined. Timestamp in UTC. The date-time notation as defined by RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt), section 5.6, with the "Z" as time-offset. For example, 2017-07-21T17:32:28.123Z |
to required | string <date-time> Defines the time up to which objects are to be returned. Objects with exactly this date are not returned - this means that the end of a right-open interval is defined. Timestamp in UTC. The date-time notation as defined by RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt), section 5.6, with the "Z" as time-offset. For example, 2017-07-21T17:32:28.123Z |
limit | integer <int64> [ 1 .. 5000 ] Max number of objects to be returned per page.
Note that both the |
offset | integer <int64> >= 0 Offset of items and problems of where to start the next page.
Similar to limit and offset in SQL, one would obtain the second page with |
number | string When specified, only gift cards with the specified number are returned. |
external_number | string When specified, only gift cards with the specified external number are returned. |
Data successfully returned
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
- {
- "id": "string",
- "name": "string",
- "number": "string",
- "status": "ISSUED",
- "current_balance": {
- "value": 0,
- "unit": "AUD"
}, - "initial_balance": {
- "value": 0,
- "unit": "AUD"
}, - "issued_date_and_time": "2025-03-25T16:02:20Z",
- "expiration_date_and_time": "2025-03-25T16:02:20Z",
- "last_used_date_and_time": "2025-03-25T16:02:20Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string",
- "sold_via_invoice": "string"
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
name required | string The name of the gift card. This usually is the name of the "source product". |
external_number required | string A unique number provided by a third-party. For use when importing externally issued gift cards into the system. |
status required | string (GiftCardStatus) Enum: "ISSUED" "PARTIALLY_REDEEMED" "REDEEMED" "EXPIRED" "CANCELED" "DEACTIVATED" The possible status values for a gift card. |
current_balance required | object (Money) A Money represents a monetary value (i.e., a currency and an amount), for example "120 EUR" or "2,500.75 USD". |
initial_balance | object (Money) A Money represents a monetary value (i.e., a currency and an amount), for example "120 EUR" or "2,500.75 USD". |
issued_date_and_time | string <date-time> Timestamp when the gift card was issued. |
expiration_date_and_time | string <date-time> Timestamp when the gift card will/did expire. |
tax | string (Tax) Enum: "CH_STANDARD_VAT_2008" "CH_REDUCED_VAT_2008" "CH_ACCOMMODATION_VAT_2008" "CH_STANDARD_VAT_2024" "CH_REDUCED_VAT_2024" "CH_ACCOMMODATION_VAT_2024" "CH_NO_VAT" "AT_STANDARD_VAT_2016" "AT_INTERMEDIATE_VAT_2016" "AT_REDUCED_VAT_2016" "AT_SPECIAL_VAT_2016" "AT_NO_VAT" "DE_STANDARD_VAT_2007" "DE_REDUCED_VAT_2007" "DE_STANDARD_VAT_2020" "DE_AGRICULTURE_VAT_2007" "DE_AGRICULTURE_VAT_2022" "DE_AGRICULTURE_VAT_2023" "DE_SYLVICULTURE_VAT_2007" "DE_REDUCED_VAT_2020" "DE_NO_VAT" A Tax represents a specific and unchangeable tax. Whenever a tax (rate) changes due to new legislation or other reasons, a new Tax must be defined and used from then on. For example, the standard VAT rates in Germany have been changed multiple times in the last 50 years:
For now, we only use the tax DE_STANDARD_VAT_2007. But if, hypothetically, Germany would increase its standard VAT rate to 21% on 1/JAN/2020, we would define a new tax DE_STANDARD_VAT_2020 and use that from 1/JAN/2020 on. |
source_product | string [ 1 .. 256 ] characters The ID of the gift card product that caused the creation of this gift card voucher. |
Gift card has been created successfully
Invalid parameters were sent by the client
Credentials missing or not sufficient
Specified data is semantically incorrect.
Production
{- "name": "string",
- "external_number": "string",
- "status": "ISSUED",
- "current_balance": {
- "value": 0,
- "unit": "AUD"
}, - "initial_balance": {
- "value": 0,
- "unit": "AUD"
}, - "issued_date_and_time": "2025-03-25T16:02:21Z",
- "expiration_date_and_time": "2025-03-25T16:02:21Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string"
}
{- "id": "string",
- "name": "string",
- "number": "string",
- "external_number": "string",
- "status": "ISSUED",
- "current_balance": {
- "value": 0,
- "unit": "AUD"
}, - "initial_balance": {
- "value": 0,
- "unit": "AUD"
}, - "issued_date_and_time": "2025-03-25T16:02:21Z",
- "expiration_date_and_time": "2025-03-25T16:02:21Z",
- "last_used_date_and_time": "2025-03-25T16:02:21Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string",
- "sold_via_invoice": "string"
}
org-id required | string ID of the organization whose data is being accessed. |
gift-card-id required | string ID of the gift card |
The possible activation statuses for a gift card. They result in changes to the GiftCardStatus depending on the current balance:
Gift card activation status has been updated successfully
Invalid parameters were sent by the client
Credentials missing or not sufficient
Specified data is semantically incorrect.
Production
"ACTIVE"
"ACTIVE"
org-id required | string ID of the organization whose data is being accessed. |
gift-card-id required | string ID of the gift card |
Data successfully returned
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "id": "string",
- "name": "string",
- "number": "string",
- "status": "ISSUED",
- "current_balance": {
- "value": 0,
- "unit": "AUD"
}, - "initial_balance": {
- "value": 0,
- "unit": "AUD"
}, - "issued_date_and_time": "2025-03-25T16:02:21Z",
- "expiration_date_and_time": "2025-03-25T16:02:21Z",
- "last_used_date_and_time": "2025-03-25T16:02:21Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string",
- "sold_via_invoice": "string",
- "@type": "InternalGiftCard"
}
Retrieve all currently active event subscriptions.
org-id required | string ID of the organization whose data is being accessed. |
List of registrations.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
callback_url required | string <uri> The callback URL where event notifications are to be delivered. It must be HTTPS to prevent man-in-the-middle attacks. |
Registration of subscription successful (or already subscribed)
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{
}
{- "id": "string",
- "public_key": "string"
}
{- "org_id": "string",
- "items": [
- {
- "name": "string",
- "status": "ISSUED",
- "current_balance": {
- "value": 0,
- "unit": "AUD"
}, - "initial_balance": {
- "value": 0,
- "unit": "AUD"
}, - "issued_date_and_time": "2025-03-25T16:02:21Z",
- "expiration_date_and_time": "2025-03-25T16:02:21Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string"
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
subscription-id required | string ID of the subscription to delete |
Subscription was successfully deleted
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Production
{- "title": "string",
- "detail": "string",
}
Returns redemptions of the gift card sorted ascending order by transaction_date_and_time
.
org-id required | string ID of the organization whose data is being accessed. |
gift-card-id required | string ID of the gift card |
limit | integer <int64> [ 1 .. 5000 ] Max number of objects to be returned per page.
Note that both the |
offset | integer <int64> >= 0 Offset of items and problems of where to start the next page.
Similar to limit and offset in SQL, one would obtain the second page with |
Data successfully returned
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
- {
- "id": "string",
- "transaction_date_and_time": "2025-03-25T16:02:21Z",
- "redeemed_amount": {
- "value": 0,
- "unit": "AUD"
}, - "invoices": [
- "string"
]
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
gift-card-id required | string ID of the gift card |
redeemed_amount required | object (Money) A Money represents a monetary value (i.e., a currency and an amount), for example "120 EUR" or "2,500.75 USD". |
external_reference required | string [ 1 .. 256 ] characters An external reference for the redemption. E.g., an invoice number. |
Redemption has successfully been recorded
Invalid parameters were sent by the client
Credentials missing or not sufficient
Specified data is semantically incorrect.
Production
{- "redeemed_amount": {
- "value": 0,
- "unit": "AUD"
}, - "external_reference": "string"
}
{- "id": "string",
- "transaction_date_and_time": "2025-03-25T16:02:21Z",
- "redeemed_amount": {
- "value": 0,
- "unit": "AUD"
}, - "external_reference": "string"
}
org-id required | string ID of the organization whose data is being accessed. |
gift-card-id required | string ID of the gift card |
gift-card-redemption-id required | string ID of the gift card redemption |
Data successfully returned
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "id": "string",
- "transaction_date_and_time": "2025-03-25T16:02:21Z",
- "redeemed_amount": {
- "value": 0,
- "unit": "AUD"
}, - "invoices": [
- "string"
], - "@type": "InternalGiftCardRedemption"
}
Returns product vouchers, sorted in ascending order by issued_date_and_time
.
For product vouchers without such a value, the timestamp of their import into the system is used instead.
org-id required | string ID of the organization whose data is being accessed. |
from required | string <date-time> Defines the time starting from which objects are to be returned. Objects with exactly this date are also returned - this means that the start of a left-closed interval is defined. Timestamp in UTC. The date-time notation as defined by RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt), section 5.6, with the "Z" as time-offset. For example, 2017-07-21T17:32:28.123Z |
to required | string <date-time> Defines the time up to which objects are to be returned. Objects with exactly this date are not returned - this means that the end of a right-open interval is defined. Timestamp in UTC. The date-time notation as defined by RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt), section 5.6, with the "Z" as time-offset. For example, 2017-07-21T17:32:28.123Z |
limit | integer <int64> [ 1 .. 5000 ] Max number of objects to be returned per page.
Note that both the |
offset | integer <int64> >= 0 Offset of items and problems of where to start the next page.
Similar to limit and offset in SQL, one would obtain the second page with |
number | string When specified, only product vouchers with the specified number are returned. |
external_number | string When specified, only product vouchers with the specified external number are returned. |
Data successfully returned
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
- {
- "id": "string",
- "name": "string",
- "number": "string",
- "external_number": "string",
- "status": "ISSUED",
- "product": "string",
- "product_sales_price_and_quantity": {
- "price": {
- "value": 0,
- "unit": "AUD"
}, - "price_is_gross": true,
- "quantity": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}
}, - "current_balance": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "initial_balance": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "issued_date_and_time": "2025-03-25T16:02:21Z",
- "expiration_date_and_time": "2025-03-25T16:02:21Z",
- "last_used_date_and_time": "2025-03-25T16:02:21Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string",
- "sold_via_invoice": "string"
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
product-voucher-id required | string ID of the product voucher |
Data successfully returned
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "id": "string",
- "name": "string",
- "number": "string",
- "external_number": "string",
- "status": "ISSUED",
- "product": "string",
- "product_sales_price_and_quantity": {
- "price": {
- "value": 0,
- "unit": "AUD"
}, - "price_is_gross": true,
- "quantity": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}
}, - "current_balance": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "initial_balance": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "issued_date_and_time": "2025-03-25T16:02:21Z",
- "expiration_date_and_time": "2025-03-25T16:02:21Z",
- "last_used_date_and_time": "2025-03-25T16:02:21Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string",
- "sold_via_invoice": "string"
}
Retrieve all currently active event subscriptions.
org-id required | string ID of the organization whose data is being accessed. |
List of registrations.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
callback_url required | string <uri> The callback URL where event notifications are to be delivered. It must be HTTPS to prevent man-in-the-middle attacks. |
Registration of subscription successful (or already subscribed)
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{
}
{- "id": "string",
- "public_key": "string"
}
{- "org_id": "string",
- "items": [
- {
- "name": "string",
- "number": "string",
- "external_number": "string",
- "status": "ISSUED",
- "product": "string",
- "product_sales_price_and_quantity": {
- "price": {
- "value": 0,
- "unit": "AUD"
}, - "price_is_gross": true,
- "quantity": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}
}, - "current_balance": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "initial_balance": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "issued_date_and_time": "2025-03-25T16:02:22Z",
- "expiration_date_and_time": "2025-03-25T16:02:22Z",
- "last_used_date_and_time": "2025-03-25T16:02:22Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string"
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
subscription-id required | string ID of the subscription to delete |
Subscription was successfully deleted
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Production
{- "title": "string",
- "detail": "string",
}
Category vouchers can be redeemed for products of a specfic sales category only.
Returns category vouchers, sorted in ascending order by issued_date_and_time
.
For category vouchers without such a value, the timestamp of their import into the system is used instead.
org-id required | string ID of the organization whose data is being accessed. |
from required | string <date-time> Defines the time starting from which objects are to be returned. Objects with exactly this date are also returned - this means that the start of a left-closed interval is defined. Timestamp in UTC. The date-time notation as defined by RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt), section 5.6, with the "Z" as time-offset. For example, 2017-07-21T17:32:28.123Z |
to required | string <date-time> Defines the time up to which objects are to be returned. Objects with exactly this date are not returned - this means that the end of a right-open interval is defined. Timestamp in UTC. The date-time notation as defined by RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt), section 5.6, with the "Z" as time-offset. For example, 2017-07-21T17:32:28.123Z |
limit | integer <int64> [ 1 .. 5000 ] Max number of objects to be returned per page.
Note that both the |
offset | integer <int64> >= 0 Offset of items and problems of where to start the next page.
Similar to limit and offset in SQL, one would obtain the second page with |
number | string When specified, only category vouchers with the specified number are returned. |
external_number | string When specified, only category vouchers with the specified external number are returned. |
Data successfully returned
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
- {
- "id": "string",
- "name": "string",
- "number": "string",
- "external_number": "string",
- "status": "ISSUED",
- "sales_categories": [
- "string"
], - "current_balance": {
- "value": 0,
- "unit": "AUD"
}, - "initial_balance": {
- "value": 0,
- "unit": "AUD"
}, - "issued_date_and_time": "2025-03-25T16:02:22Z",
- "expiration_date_and_time": "2025-03-25T16:02:22Z",
- "last_used_date_and_time": "2025-03-25T16:02:22Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string",
- "sold_via_invoice": "string"
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
category-voucher-id required | string ID of the category voucher |
Data successfully returned
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "id": "string",
- "name": "string",
- "number": "string",
- "external_number": "string",
- "status": "ISSUED",
- "sales_categories": [
- "string"
], - "current_balance": {
- "value": 0,
- "unit": "AUD"
}, - "initial_balance": {
- "value": 0,
- "unit": "AUD"
}, - "issued_date_and_time": "2025-03-25T16:02:22Z",
- "expiration_date_and_time": "2025-03-25T16:02:22Z",
- "last_used_date_and_time": "2025-03-25T16:02:22Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string",
- "sold_via_invoice": "string"
}
Retrieve all currently active event subscriptions.
org-id required | string ID of the organization whose data is being accessed. |
List of registrations.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
callback_url required | string <uri> The callback URL where event notifications are to be delivered. It must be HTTPS to prevent man-in-the-middle attacks. |
Registration of subscription successful (or already subscribed)
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{
}
{- "id": "string",
- "public_key": "string"
}
{- "org_id": "string",
- "items": [
- {
- "name": "string",
- "number": "string",
- "external_number": "string",
- "status": "ISSUED",
- "sales_categories": [
- "string"
], - "current_balance": {
- "value": 0,
- "unit": "AUD"
}, - "initial_balance": {
- "value": 0,
- "unit": "AUD"
}, - "issued_date_and_time": "2025-03-25T16:02:22Z",
- "expiration_date_and_time": "2025-03-25T16:02:22Z",
- "last_used_date_and_time": "2025-03-25T16:02:22Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string"
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
subscription-id required | string ID of the subscription to delete |
Subscription was successfully deleted
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Production
{- "title": "string",
- "detail": "string",
}
External loyalty programs are loyalty programs where the calculation and management of the earned points is handled by an external system.
Returns external loyalty program drafts, sorted in descending order by their creation timestamp.
org-id required | string ID of the organization whose data is being accessed. |
limit | integer <int64> [ 1 .. 5000 ] Max number of objects to be returned per page.
Note that both the |
offset | integer <int64> >= 0 Offset of items and problems of where to start the next page.
Similar to limit and offset in SQL, one would obtain the second page with |
Data successfully returned
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "coupon_identity": {
- "display_name": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
]
}, - "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "revoke_points_on_refund": true,
- "do_not_grant_points_before_payment": false,
- "subscription_checks": [
- "WHEN_STARTING_BASKET"
], - "calculate_points_without_subscription": false
}, - "subscription_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
name required | string The name of the loyalty program |
description | string A description of the loyalty program |
short_description | string A short description of the loyalty program |
identity_images | Array of objects (PromotionIdentityImage) |
start_date_and_time | string <date-time> |
end_date_and_time | string <date-time> |
coupon_identity | object (CouponIdentity) |
configuration required | object (ExternalLoyaltyProgramConfiguration) |
Object has been created successfully
Invalid parameters were sent by the client
Credentials missing or not sufficient
Specified data is semantically incorrect.
Production
{- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "coupon_identity": {
- "display_name": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
]
}, - "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "revoke_points_on_refund": true,
- "do_not_grant_points_before_payment": false,
- "subscription_checks": [
- "WHEN_STARTING_BASKET"
], - "calculate_points_without_subscription": false
}, - "subscription_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "coupon_identity": {
- "display_name": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
]
}, - "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "revoke_points_on_refund": true,
- "do_not_grant_points_before_payment": false,
- "subscription_checks": [
- "WHEN_STARTING_BASKET"
], - "calculate_points_without_subscription": false
}, - "subscription_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
loyalty-program-draft-id required | string ID of the loyalty program draft |
Data successfully returned
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "coupon_identity": {
- "display_name": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
]
}, - "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "revoke_points_on_refund": true,
- "do_not_grant_points_before_payment": false,
- "subscription_checks": [
- "WHEN_STARTING_BASKET"
], - "calculate_points_without_subscription": false
}, - "subscription_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
loyalty-program-draft-id required | string ID of the loyalty program draft |
name required | string The name of the loyalty program |
description | string A description of the loyalty program |
short_description | string A short description of the loyalty program |
identity_images | Array of objects (PromotionIdentityImage) |
start_date_and_time | string <date-time> |
end_date_and_time | string <date-time> |
coupon_identity | object (CouponIdentity) |
configuration required | object (ExternalLoyaltyProgramConfiguration) |
Object is successfully updated.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Not Implemented.
Production
{- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "coupon_identity": {
- "display_name": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
]
}, - "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "revoke_points_on_refund": true,
- "do_not_grant_points_before_payment": false,
- "subscription_checks": [
- "WHEN_STARTING_BASKET"
], - "calculate_points_without_subscription": false
}, - "subscription_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "coupon_identity": {
- "display_name": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
]
}, - "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "revoke_points_on_refund": true,
- "do_not_grant_points_before_payment": false,
- "subscription_checks": [
- "WHEN_STARTING_BASKET"
], - "calculate_points_without_subscription": false
}, - "subscription_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
loyalty-program-draft-id required | string ID of the loyalty program draft |
Object was successfully deleted
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Production
{- "title": "string",
- "detail": "string",
}
Returns external loyalty programs, sorted in descending order by start_date_and_time
.
For promotions without such a value, the timestamp of their import into the system is used instead.
org-id required | string ID of the organization whose data is being accessed. |
limit | integer <int64> [ 1 .. 5000 ] Max number of objects to be returned per page.
Note that both the |
offset | integer <int64> >= 0 Offset of items and problems of where to start the next page.
Similar to limit and offset in SQL, one would obtain the second page with |
Data successfully returned
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "status": "SCHEDULED",
- "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "coupon_identity": {
- "display_name": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
]
}, - "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "revoke_points_on_refund": true,
- "do_not_grant_points_before_payment": false,
- "subscription_checks": [
- "WHEN_STARTING_BASKET"
], - "calculate_points_without_subscription": false
}, - "subscription_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
draft_id required | string <= 256 characters |
operation required | string (LoyaltyProgramOperation) Enum: "SCHEDULE" "ACTIVATE" Possible operations for creating a loyalty program
|
Loyalty program has been created successfully
Invalid parameters were sent by the client
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "draft_id": "string",
- "operation": "SCHEDULE"
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "status": "SCHEDULED",
- "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "coupon_identity": {
- "display_name": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
]
}, - "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "revoke_points_on_refund": true,
- "do_not_grant_points_before_payment": false,
- "subscription_checks": [
- "WHEN_STARTING_BASKET"
], - "calculate_points_without_subscription": false
}, - "subscription_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
loyalty-program-id required | string ID of the loyalty program |
Data successfully returned
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "status": "SCHEDULED",
- "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "coupon_identity": {
- "display_name": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
]
}, - "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "revoke_points_on_refund": true,
- "do_not_grant_points_before_payment": false,
- "subscription_checks": [
- "WHEN_STARTING_BASKET"
], - "calculate_points_without_subscription": false
}, - "subscription_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
loyalty-program-id required | string ID of the loyalty program |
updates | Array of objects (ExternalLoyaltyProgramUpdate) |
Promotion successfully updated.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Specified data is semantically incorrect.
Production
{- "updates": [
- {
- "@type": "LoyaltyProgramEndDateAndTimeUpdate",
- "end_date_and_time": "2025-03-25T16:02:22Z"
}
]
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "status": "SCHEDULED",
- "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "coupon_identity": {
- "display_name": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
]
}, - "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "revoke_points_on_refund": true,
- "do_not_grant_points_before_payment": false,
- "subscription_checks": [
- "WHEN_STARTING_BASKET"
], - "calculate_points_without_subscription": false
}, - "subscription_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
loyalty-program-id required | string ID of the loyalty program |
Possible status values for loyalty programs
SCHEDULED
- The loyalty program has not been started yetACTIVE
- The loyalty program has been started but not ended yetARCHIVED
- The loyalty program has endedStatus successfully updated.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "title": "string",
- "detail": "string",
}
External coupon promotions are coupon-based promotions where the calculation and management of the coupons and coupon-triggered discounts are handled by an external system.
Returns external coupon promotion drafts, sorted in descending order by their creation timestamp.
org-id required | string ID of the organization whose data is being accessed. |
limit | integer <int64> [ 1 .. 5000 ] Max number of objects to be returned per page.
Note that both the |
offset | integer <int64> >= 0 Offset of items and problems of where to start the next page.
Similar to limit and offset in SQL, one would obtain the second page with |
Data successfully returned
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "use_external_pricing_engine": false,
- "internal_accounting": false
}, - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "customer_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
name required | string The name of the coupon promotion |
description | string A description of the coupon promotion |
short_description | string A short description of the coupon promotion |
identity_images | Array of objects (PromotionIdentityImage) |
start_date_and_time | string <date-time> |
end_date_and_time | string <date-time> |
configuration required | object (ExternalCouponPromotionConfiguration) |
Object has been created successfully
Invalid parameters were sent by the client
Credentials missing or not sufficient
Specified data is semantically incorrect.
Production
{- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "use_external_pricing_engine": false,
- "internal_accounting": false
}, - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "customer_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "use_external_pricing_engine": false,
- "internal_accounting": false
}, - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "customer_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
coupon-promotion-draft-id required | string ID of the coupon promotion draft |
Data successfully returned
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "use_external_pricing_engine": false,
- "internal_accounting": false
}, - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "customer_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
coupon-promotion-draft-id required | string ID of the coupon promotion draft |
name required | string The name of the coupon promotion |
description | string A description of the coupon promotion |
short_description | string A short description of the coupon promotion |
identity_images | Array of objects (PromotionIdentityImage) |
start_date_and_time | string <date-time> |
end_date_and_time | string <date-time> |
configuration required | object (ExternalCouponPromotionConfiguration) |
Object is successfully updated.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Not Implemented.
Production
{- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "use_external_pricing_engine": false,
- "internal_accounting": false
}, - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "customer_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "use_external_pricing_engine": false,
- "internal_accounting": false
}, - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "customer_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
coupon-promotion-draft-id required | string ID of the coupon promotion draft |
Object was successfully deleted
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Production
{- "title": "string",
- "detail": "string",
}
Returns external coupon promotions, sorted in descending order by start_date_and_time
.
For promotions without such a value, the timestamp of their import into the system is used instead.
org-id required | string ID of the organization whose data is being accessed. |
limit | integer <int64> [ 1 .. 5000 ] Max number of objects to be returned per page.
Note that both the |
offset | integer <int64> >= 0 Offset of items and problems of where to start the next page.
Similar to limit and offset in SQL, one would obtain the second page with |
Data successfully returned
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "status": "SCHEDULED",
- "start_date_and_time": "2025-03-25T16:02:22Z",
- "end_date_and_time": "2025-03-25T16:02:22Z",
- "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "use_external_pricing_engine": false,
- "internal_accounting": false
}, - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "customer_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
draft_id required | string <= 256 characters |
operation required | string (PromotionCreateOperation) Enum: "SCHEDULE" "ACTIVATE" Possible operations for creating a promotions
|
Promotion has been created successfully
Invalid parameters were sent by the client
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "draft_id": "string",
- "operation": "SCHEDULE"
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "status": "SCHEDULED",
- "start_date_and_time": "2025-03-25T16:02:23Z",
- "end_date_and_time": "2025-03-25T16:02:23Z",
- "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "use_external_pricing_engine": false,
- "internal_accounting": false
}, - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "customer_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
coupon-promotion-id required | string ID of the coupon promotion |
Data successfully returned
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "status": "SCHEDULED",
- "start_date_and_time": "2025-03-25T16:02:23Z",
- "end_date_and_time": "2025-03-25T16:02:23Z",
- "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "use_external_pricing_engine": false,
- "internal_accounting": false
}, - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "customer_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
coupon-promotion-id required | string ID of the coupon promotion |
updates | Array of objects (ExternalCouponPromotionUpdate) |
Promotion successfully updated.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Specified data is semantically incorrect.
Production
{- "updates": [
- {
- "@type": "PromotionEndDateAndTimeUpdate",
- "end_date_and_time": "2025-03-25T16:02:23Z"
}
]
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "short_description": "string",
- "identity_images": [
- {
- "image_id": "string",
- "limitations": {
- "language_tags": [
- "strin"
]
}
}
], - "status": "SCHEDULED",
- "start_date_and_time": "2025-03-25T16:02:23Z",
- "end_date_and_time": "2025-03-25T16:02:23Z",
- "configuration": {
- "access_configuration": {
- "url": "string",
- "credentials_key": "string",
- "timeout_in_millis": 2000,
- "max_retries": 3,
- "retry_interval_in_millis": 250
}, - "processing_configuration": {
- "use_external_pricing_engine": false,
- "internal_accounting": false
}, - "coupon_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "customer_identifier_configuration": [
- {
- "@type": "PrefixConstraint",
- "prefix": "string",
- "fixed_length": 0,
- "modifiers": [
- {
- "@type": "TruncationModifier",
- "number_of_characters": 0,
- "at_beginning": true
}
]
}
], - "linked_external_payment_method": {
- "id": "stringstringstringstring",
- "type": "BASIC"
}
}
}
org-id required | string ID of the organization whose data is being accessed. |
coupon-promotion-id required | string ID of the coupon promotion |
Possible status values for coupon promotions
SCHEDULED
- The coupon promotion has not been started yetACTIVE
- The coupon promotion has been started but not ended yetARCHIVED
- The coupon promotion has endedStatus successfully updated.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Specified data is semantically incorrect.
Production
{- "title": "string",
- "detail": "string",
}
Retrieve all currently active event subscriptions.
org-id required | string ID of the organization whose data is being accessed. |
List of registrations.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
callback_url required | string <uri> The callback URL where event notifications are to be delivered. It must be HTTPS to prevent man-in-the-middle attacks. |
Registration of subscription successful (or already subscribed)
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{
}
{- "id": "string",
- "public_key": "string"
}
{- "org_id": "string",
- "items": [
- {
- "name": "string",
- "status": "ISSUED",
- "current_balance": {
- "value": 0,
- "unit": "AUD"
}, - "initial_balance": {
- "value": 0,
- "unit": "AUD"
}, - "issued_date_and_time": "2025-03-25T16:02:23Z",
- "expiration_date_and_time": "2025-03-25T16:02:23Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string"
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
subscription-id required | string ID of the subscription to delete |
Subscription was successfully deleted
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Production
{- "title": "string",
- "detail": "string",
}
Retrieve all currently active event subscriptions.
org-id required | string ID of the organization whose data is being accessed. |
List of registrations.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
callback_url required | string <uri> The callback URL where event notifications are to be delivered. It must be HTTPS to prevent man-in-the-middle attacks. |
Registration of subscription successful (or already subscribed)
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{
}
{- "id": "string",
- "public_key": "string"
}
{- "org_id": "string",
- "items": [
- {
- "name": "string",
- "number": "string",
- "external_number": "string",
- "status": "ISSUED",
- "product": "string",
- "product_sales_price_and_quantity": {
- "price": {
- "value": 0,
- "unit": "AUD"
}, - "price_is_gross": true,
- "quantity": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}
}, - "current_balance": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "initial_balance": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "issued_date_and_time": "2025-03-25T16:02:23Z",
- "expiration_date_and_time": "2025-03-25T16:02:23Z",
- "last_used_date_and_time": "2025-03-25T16:02:23Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string"
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
subscription-id required | string ID of the subscription to delete |
Subscription was successfully deleted
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Production
{- "title": "string",
- "detail": "string",
}
Retrieve all currently active event subscriptions.
org-id required | string ID of the organization whose data is being accessed. |
List of registrations.
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{- "items": [
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
callback_url required | string <uri> The callback URL where event notifications are to be delivered. It must be HTTPS to prevent man-in-the-middle attacks. |
Registration of subscription successful (or already subscribed)
Invalid parameters were sent by the client
Credentials missing or not sufficient
Production
{
}
{- "id": "string",
- "public_key": "string"
}
{- "org_id": "string",
- "items": [
- {
- "name": "string",
- "number": "string",
- "external_number": "string",
- "status": "ISSUED",
- "sales_categories": [
- "string"
], - "current_balance": {
- "value": 0,
- "unit": "AUD"
}, - "initial_balance": {
- "value": 0,
- "unit": "AUD"
}, - "issued_date_and_time": "2025-03-25T16:02:23Z",
- "expiration_date_and_time": "2025-03-25T16:02:23Z",
- "last_used_date_and_time": "2025-03-25T16:02:23Z",
- "tax": "CH_STANDARD_VAT_2008",
- "source_product": "string"
}
], - "problems": [
- {
- "title": "string",
- "detail": "string",
}
]
}
org-id required | string ID of the organization whose data is being accessed. |
subscription-id required | string ID of the subscription to delete |
Subscription was successfully deleted
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Production
{- "title": "string",
- "detail": "string",
}