Campaign
All of:- Campaign Base
-
Campaign Additional Data
Campaign Base
STATIC: vouchers need to be manually publishedSTANDALONE: campaign for single vouchersAvailable values:AUTO_UPDATE,STATIC,STANDALONE| | voucher | See: Campaign Voucher | | auto_joinboolean| Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | | join_onceboolean| If this value is set totrue, customers will be able to join the campaign only once. It is alwaysfalsefor generic (standalone) vouchers campaigns and it cannot be changed in them. It is alwaystruefor loyalty campaigns and it cannot be changed in them. | | use_voucher_metadata_schemaboolean| Flag indicating whether the campaign is to use the voucher’s metadata schema instead of the campaign metadata schema. | | validity_timeframe | See: Validity Timeframe | | validity_day_of_week | See: Validity Day Of Week | | validity_hours | See: Validity Hours | | activity_duration_after_publishingstring| Defines the amount of time the vouchers will be active after publishing. The value is shown in the ISO 8601 format. For example, a voucher with the value of P24D will be valid for a duration of 24 days. | | vouchers_countinteger| Total number of unique vouchers in campaign. | | start_datestring| Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is inactive before this date.Example:2022-09-20T00:00:00.000Z | | expiration_datestring| Expiration timestamp defines when the campaign expires in ISO 8601 format. Campaign is inactive after this date.Example:2022-09-30T00:00:00.000Z | | activeboolean| A flag to toggle the campaign on or off. You can disable a campaign even though it’s within the active period defined by thestart_dateandexpiration_date.-trueindicates an active campaignfalseindicates an inactive campaign | | metadataobject| The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format. | | created_atstring| Timestamp representing the date and time when the campaign was created. The value is shown in the ISO 8601 format.Example:2021-12-01T08:00:50.038Z | | updated_atstring| Timestamp representing the date and time when the campaign was last updated in ISO 8601 format.Example:2022-09-20T09:18:19.623Z | | categorystring| Unique category name. | | creation_statusstring| Indicates the status of the campaign creation.Available values:DONE,IN_PROGRESS,FAILED,DRAFT,MODIFYING| | vouchers_generation_statusstring| Indicates the status of the campaign’s voucher generation.Available values:DONE,IN_PROGRESS,FAILED,DRAFT,MODIFYING| | readonlyboolean| Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles. It is also not returned for restricted users who use the GET Campaign summary endpoint. | | protectedboolean| Indicates whether the resource can be deleted. | | category_idstring,null| Unique category ID that this campaign belongs to.Example:cat_0b688929a2476386a7 | | categoriesarray| Contains details about the campaign category. For the GET List campaigns endpoint, this is returned only if theexpand=categoryquery parameter is passed in the request. Otherwise, it is returned as an empty array. For GET Campaign summary endpoint, it is always returned as an empty array.Array of Category | | objectstring| The type of the object represented by JSON. This object stores information about the campaign. | | referral_program | See: Referral Program | | loyalty_tiers_expiration | See: Loyalty Tiers Expiration | | access_settings_assignments | See: Access Settings Campaign Assignments List |
Promotion Tiers
Validation Rules Assignments List
Campaign Voucher
Validity Timeframe
Validity Day Of Week
Integer array corresponding to the particular days of the week in which the voucher is valid.0Sunday1Monday2Tuesday3Wednesday4Thursday5Friday6Saturday
Validity Hours
Category
Referral Program
Loyalty Tiers Expiration
Access Settings Campaign Assignments List
Promotion Tier
-
falseindicates an inactive promotion tier | | start_datestring| Activation timestamp defines when the promotion tier starts to be active in ISO 8601 format. Promotion tier is inactive before this date.Example:2022-09-23T00:00:00.000Z | | expiration_datestring| Activation timestamp defines when the promotion tier expires in ISO 8601 format. Promotion tier is inactive after this date.Example:2022-09-26T00:00:00.000Z | | validity_timeframe | See: Validity Timeframe | | validity_day_of_week | See: Validity Day Of Week | | validity_hours | See: Validity Hours | | summaryobject| Contains statistics about promotion tier redemptions and orders.Attributes Descriptionredemptionsobject Contains statistics about promotion tier redemptions. Attributes Descriptiontotal_redeemedinteger Number of times the promotion tier was redeemed. ordersobject Contains statistics about orders related to the promotion tier. Attributes Descriptiontotal_amountinteger Sum of order totals. total_discount_amountinteger Sum of total discount applied using the promotion tier. | | objectstring| The type of the object represented by JSON. This object stores information about the promotion tier. | | validation_rule_assignments | See: Validation Rule Assignments List | | category_idstring| Promotion tier category ID.Example:cat_0c9da30e7116ba6bba | | categoriesarray| Array of Category |
Business Validation Rule Assignment
Discount
Contains information about discount. One of: Amount, Unit, Unit Multiple, Percent, FixedGift
Campaign Loyalty Card
Code Config
- Alphabetic:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ - Alphabetic Lowercase:
abcdefghijklmnopqrstuvwxyz - Alphabetic Uppercase:
ABCDEFGHIJKLMNOPQRSTUVWXYZ - Numbers:
0123456789 - Custom: a custom character set |
| prefix
string| A text appended before the code. | | postfixstring| A text appended after the code. | | patternstring| A pattern for codes where hashes (#) will be replaced with random characters. Overrideslength. | | initial_countinteger| Internal value, does not change anything if provided. |
Areas and Stores Campain Assignment
Validation Rule Assignments List
Amount
Unit
Unit Multiple
Percent
Fixed
Validation Rule Assignment
Discount Amount Vouchers Effect Types
Available values:APPLY_TO_ORDER, APPLY_TO_ITEMS, APPLY_TO_ITEMS_PROPORTIONALLY, APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY, APPLY_TO_ITEMS_BY_QUANTITY
Discount Unit Vouchers Effect Types
Available values:ADD_MISSING_ITEMS, ADD_NEW_ITEMS, ADD_MANY_ITEMS
Simple Product Discount Unit
Simple Sku Discount Unit
One Unit
Discount Percent Vouchers Effect Types
Available values:APPLY_TO_ORDER, APPLY_TO_ITEMS
Discount Fixed Vouchers Effect Types
Available values:APPLY_TO_ORDER, APPLY_TO_ITEMS