Data schemas
ApiResponse[CampaignData]
ApiResponse_CampaignData_ · Fields, types and constraints of data accepted or returned by the API.
dataCampaignDataRequiredSuccessful response payload.
metaContextPageMetaContextMetaPageMetaRequestMetaRequiredResponse metadata.
Additional fields: No
ApiResponse[list[CampaignData]]
ApiResponse_list_CampaignData__ · Fields, types and constraints of data accepted or returned by the API.
dataArray <CampaignData> RequiredSuccessful response payload.
metaContextPageMetaContextMetaPageMetaRequestMetaRequiredResponse metadata.
Additional fields: No
CampaignCreate
CampaignCreate · Fields, types and constraints of data accepted or returned by the API.
audienceStringOptionalCustomers
Constraints
enum["all", "guest", "customer", "selected"]
benefit_typeStringOptionalVariant of the data structure described by its allowed values.
Constraints
enum["percentage", "fixed", "none"]
category_idsArray <String> OptionalIdentifiers of related categories.
maxItems:1000Constraints · Array 1
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
codeString nullOptionalStable machine-readable code.
Constraints · String 1
pattern"^[A-Za-z0-9]{6,16}$"
combine_couponsBooleanOptionalCombine with other codes
combine_promotionsBooleanOptionalAllow this code on products with automatic promotions
customer_idsArray <String> OptionalCustomer information recorded for this resource.
maxItems:1000Constraints · Array 1
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
ends_atString nullOptionalActive until
String:format:"date-time"free_shippingBooleanOptionalFree shipping
marketsArray <MarketData-Input> RequiredMarkets available in the store context.
minItems:1maxItems:1000minimum_quantityIntegerOptionalMinimum number of items in cart
minimum:1maximum:2147483647nameStringRequiredResource name in the relevant context.
minLength:1maxLength:160per_customer_limitIntegerOptionalUsage limit per customer
minimum:-1maximum:2147483647percentageStringOptionalPercentage
maxLength:19Constraints
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
product_idsArray <String> OptionalIdentifiers of related products.
maxItems:1000Constraints · Array 1
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
product_scopeStringOptionalProducts
Constraints
enum["all", "selected"]
show_accountBooleanOptionalIn the customer account
show_cartBooleanOptionalIn the cart
show_productBooleanOptionalOn product pages
starts_atString nullOptionalActive from
String:format:"date-time"usage_limitIntegerOptionalUsage limit
minimum:-1maximum:2147483647
Additional fields: No
CampaignData
CampaignData · Fields, types and constraints of data accepted or returned by the API.
audienceStringOptionalCustomers
Constraints
enum["all", "guest", "customer", "selected"]
benefit_typeStringOptionalVariant of the data structure described by its allowed values.
Constraints
enum["percentage", "fixed", "none"]
category_idsArray <String> OptionalIdentifiers of related categories.
maxItems:1000Constraints · Array 1
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
codeString nullOptionalStable machine-readable code.
Constraints · String 1
pattern"^[A-Za-z0-9]{6,16}$"
combine_couponsBooleanOptionalCombine with other codes
combine_promotionsBooleanOptionalAllow this code on products with automatic promotions
created_atStringRequiredCreation time.
format:"date-time"created_byCreatorDataRequiredCreated by
customer_idsArray <String> OptionalCustomer information recorded for this resource.
maxItems:1000Constraints · Array 1
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
enabledBooleanRequiredWhether this setting is enabled.
ends_atString nullOptionalActive until
String:format:"date-time"free_shippingBooleanOptionalFree shipping
idStringRequiredResource identifier; preserve it as returned.
kindStringRequiredVariant of the data structure described by its allowed values.
Constraints
enum["coupon", "promotion"]
marketsArray <shopently_engine__domains__discounts__adapters__public_http__schemas__MarketData> RequiredMarkets available in the store context.
minItems:1maxItems:1000minimum_quantityIntegerOptionalMinimum number of items in cart
minimum:1maximum:2147483647nameStringRequiredResource name in the relevant context.
minLength:1maxLength:160per_customer_limitIntegerOptionalUsage limit per customer
minimum:-1maximum:2147483647percentageStringOptionalPercentage
maxLength:19Constraints
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
product_idsArray <String> OptionalIdentifiers of related products.
maxItems:1000Constraints · Array 1
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
product_scopeStringOptionalProducts
Constraints
enum["all", "selected"]
show_accountBooleanOptionalIn the customer account
show_cartBooleanOptionalIn the cart
show_productBooleanOptionalOn product pages
starts_atString nullOptionalActive from
String:format:"date-time"updated_atStringRequiredMost recent update time.
format:"date-time"usage_limitIntegerOptionalUsage limit
minimum:-1maximum:2147483647used_countIntegerRequiredTimes used
versionIntegerRequiredResource version used for concurrency control.
Additional fields: No
CampaignStatus
CampaignStatus · Fields, types and constraints of data accepted or returned by the API.
enabledBooleanRequiredWhether this setting is enabled.
expected_versionIntegerRequiredVersion read before the write; a mismatch rejects the update.
minimum:1maximum:9223372036854775807
Additional fields: No
CampaignUpdate
CampaignUpdate · Fields, types and constraints of data accepted or returned by the API.
audienceStringOptionalCustomers
Constraints
enum["all", "guest", "customer", "selected"]
benefit_typeStringOptionalVariant of the data structure described by its allowed values.
Constraints
enum["percentage", "fixed", "none"]
category_idsArray <String> OptionalIdentifiers of related categories.
maxItems:1000Constraints · Array 1
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
codeString nullOptionalStable machine-readable code.
Constraints · String 1
pattern"^[A-Za-z0-9]{6,16}$"
combine_couponsBooleanOptionalCombine with other codes
combine_promotionsBooleanOptionalAllow this code on products with automatic promotions
customer_idsArray <String> OptionalCustomer information recorded for this resource.
maxItems:1000Constraints · Array 1
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
ends_atString nullOptionalActive until
String:format:"date-time"expected_versionIntegerRequiredVersion read before the write; a mismatch rejects the update.
minimum:1maximum:9223372036854775807free_shippingBooleanOptionalFree shipping
marketsArray <MarketData-Input> RequiredMarkets available in the store context.
minItems:1maxItems:1000minimum_quantityIntegerOptionalMinimum number of items in cart
minimum:1maximum:2147483647nameStringRequiredResource name in the relevant context.
minLength:1maxLength:160per_customer_limitIntegerOptionalUsage limit per customer
minimum:-1maximum:2147483647percentageStringOptionalPercentage
maxLength:19Constraints
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
product_idsArray <String> OptionalIdentifiers of related products.
maxItems:1000Constraints · Array 1
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
product_scopeStringOptionalProducts
Constraints
enum["all", "selected"]
show_accountBooleanOptionalIn the customer account
show_cartBooleanOptionalIn the cart
show_productBooleanOptionalOn product pages
starts_atString nullOptionalActive from
String:format:"date-time"usage_limitIntegerOptionalUsage limit
minimum:-1maximum:2147483647
Additional fields: No
CreatorData
CreatorData · Fields, types and constraints of data accepted or returned by the API.
kindStringRequiredVariant of the data structure described by its allowed values.
Constraints
enum["admin", "api"]
labelStringRequiredResource name in the relevant context.
referenceStringRequiredIdentifier of the referenced entity.
Additional fields: No
MarketData
MarketData-Input · Fields, types and constraints of data accepted or returned by the API.
currencyStringRequiredCurrency code for the amount.
Constraints
pattern"^[A-Z]{3}$"
fixed_amountStringOptionalDiscount amount
maxLength:19Constraints
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
market_idStringRequiredMarket identifier returned by the context endpoint.
Constraints
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
maximum_priceString nullOptionalMaximum product price
String:maxLength:19Constraints · String 1
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
minimum_priceString nullOptionalMinimum product price
String:maxLength:19Constraints · String 1
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
minimum_subtotalStringOptionalMinimum cart value
maxLength:19Constraints
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
minor_unitsIntegerRequiredNumber of fractional digits used by the currency.
minimum:0maximum:4
Additional fields: No
MarketData
shopently_engine__domains__discounts__adapters__public_http__schemas__MarketData · Fields, types and constraints of data accepted or returned by the API.
currencyStringRequiredCurrency code for the amount.
Constraints
pattern"^[A-Z]{3}$"
fixed_amountStringOptionalDiscount amount
maxLength:19Constraints
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
market_idStringRequiredMarket identifier returned by the context endpoint.
Constraints
pattern"^[a-z0-9][a-z0-9_-]{0,62}$"
maximum_priceString nullOptionalMaximum product price
String:maxLength:19Constraints · String 1
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
minimum_priceString nullOptionalMinimum product price
String:maxLength:19Constraints · String 1
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
minimum_subtotalStringOptionalMinimum cart value
maxLength:19Constraints
pattern"^(0|[1-9][0-9]{0,13})(\\.[0-9]{1,4})?$"
minor_unitsIntegerRequiredNumber of fractional digits used by the currency.
minimum:0maximum:4
Additional fields: No