Promotion API
Last updated
Last updated
The Promotion API endpoints provide access to CDP promotion data within our system. These endpoints enable you to import your promotion code from a third-party promotion engine into CDP and more, allowing your application to interact with our event data.
To access these endpoints, you will need to authenticate your requests using OAuth 2.0 and ensure that the access token is authenticated with the scope promotion
. Please refer to our Authentication Guide for details on how to obtain an access token.
Creates a new promotion pool in the system.
restrictionType = 1
, allocationTypes
must contain at least one valid value.restrictionType = 2
, allocationTypes
must be null
.shareAccess
configuration determines the access control of the pool./api/promotion/pool
Bearer 5474r2x214z26484u2e4y4u5u42424n594o4XXXXYYYY
Name of the promotion pool.
Untitled Pool#2025-02-05 16:26:07
Unique identifier for the pool.
untitled_pool20250205_162607
Pool restriction type.
2
: Restricted allocation3
: Unrestricted allocation1
1
, 2
Detailed description of the pool.
Types of allocation for the pool.
Required when restrictionType
is 1
.
Must be null
when restrictionType
is 2
.
Allowed values:
audience
user
customer
email
phone
["audience"]
Multi-language support for pool name.
Import promotion codes in batch to an existing pool.
job_run_id
should be unique for each import batch./api/promotion/import
Bearer 5474r2x214z26484u2e4y4u5u42424n594o4XXXXYYYY
Array of promotion codes to import.
ID of the target promotion pool.
223123
Unique identifier for the import job.
728334d0-164a-11ee-be56-0242ac120002
Search for a list of promotion code(s) in the CDP based on conditions.
/api/item/search
Bearer 5474r2x214z26484u2e4y4u5u42424n594o4XXXXYYYY
Identifier for the item type. This is a constant and cannot be changed.
-100
-100
Name of the item type. This is a constant and cannot be changed.
promotion_code
promotion_code
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"]
Filtering conditions for the search.
Filter Items Order Rules:
allocated_time
.audience_type
, allocated_audience
, and code_status
, but they can appear in any order.allocated_time
is present.