Promotion API
Introduction
Authentication
Creates a new promotion pool in the system.
Notes:
- All pool names and codes must be unique in the system.
- File import fields are optional and only required when importing promotions from a file.
- When
restrictionType = 1,allocationTypesmust contain at least one valid value. - When
restrictionType = 2,allocationTypesmust benull. shareAccessconfiguration determines the access control of the pool.
Authorizations
Header parameters
Content-TypestringRequiredDefault:
application/jsonAuthorizationstringRequiredExample:
Bearer 5474r2x214z26484u2e4y4u5u42424n594o4XXXXYYYYBody
pool_namestringRequiredExample:
Name of the promotion pool.
Untitled Pool#2025-02-05 16:26:07pool_codestringRequiredExample:
Unique identifier for the pool.
untitled_pool20250205_162607restrictionTypeinteger · enumRequiredExample:
Pool restriction type.
2: Restricted allocation3: Unrestricted allocation
1Possible values: descriptionstringOptional
Detailed description of the pool.
Responses
200
Success
application/json
400
Error
application/json
post
/api/promotion/poolImport promotion codes in batch to an existing pool.
Notes:
- Maximum 500 promotions can be imported in a single request.
- All promotions in the batch must belong to the same pool.
- Each promotion code must have a unique id within the pool.
job_run_idshould be unique for each import batch.
Authorizations
Header parameters
Content-TypestringRequiredDefault:
application/jsonAuthorizationstringRequiredExample:
Bearer 5474r2x214z26484u2e4y4u5u42424n594o4XXXXYYYYBody
pool_idintegerRequiredExample:
ID of the target promotion pool.
223123job_run_idstringRequiredExample:
Unique identifier for the import job.
728334d0-164a-11ee-be56-0242ac120002Responses
200
Success
application/json
400
Error
application/json
post
/api/promotion/importSearch for a list of promotion code(s) in the CDP based on conditions.
Authorizations
Header parameters
Content-TypestringRequiredDefault:
application/jsonAuthorizationstringRequiredExample:
Bearer 5474r2x214z26484u2e4y4u5u42424n594o4XXXXYYYYBody
itemTypeIdinteger · enumOptionalExample:
Identifier for the item type. This is a constant and cannot be changed.
-100Possible values: itemTypeNamestring · enumOptionalExample:
Name of the item type. This is a constant and cannot be changed.
promotion_codePossible values: attrsstring[]OptionalExample:
List of attributes to retrieve. Default attributes are:
allocated_audience: Allocated to audienceallocated_time: Allocated timeaudience_type: Audience typepool_id: Promotion pool IDredeem_visitor_id: Visitor used codestory_id: Journey IDtransaction_code: Transaction IDcode_status: Code statusdate_created: Created dateid: IDlast_updated: Last updatedlast_used_source: Last used sourcelast_used_time: Last used timename: Namecampaign_id: Campaign IDvariant_id: Variant ID
["id","name","pool_id","date_created","allocated_time","allocated_audience","audience_type","code_status","last_used_source","last_used_time"]Responses
200
Success
application/json
400
Unauthorized
application/json
403
Forbidden
application/json
post
/api/item/searchLast updated