Processed Campaign Customers

Returns an array of all customer IDs and associated promotion codes for a particular campaign ID.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Rate Limit

This endpoint is subject to the general API rate limit of 50 requests per 10 seconds. Learn more about handling rate limits.

Query Parameters

ParameterTypeRequiredDefaultMaxDescription
CampaignIDint32YesThe action serial of a specific scheduled campaign occurrence. Obtained from the Optimove campaign scheduling system in the Webhook payload
CustomerAttributestringNoComma- (or delimiter-) separated list of customer attribute names to include in the response. Attribute values are returned in the Attributes field. Invalid attribute names are silently ignored; if none of the requested attributes are valid, Attributes is null
CustomerAttributeDelimiterstringNo;The delimiter used to separate attribute names in the CustomerAttribute parameter
topint32No10,000200,000Maximum number of customers to return per page
skipint32No0Number of customers to skip (offset for pagination)

Response Fields

FieldTypeNullableDescription
CustomerIDstringNoThe identifier of a customer in your customer database
PromoCodestringNoThe promotion code assigned to this customer for this campaign. Empty string if none assigned
ActionIdint32NoThe action ID associated with this customer in the campaign
ChannelIdsarray of int32YesThe execution channel identifiers configured for this campaign. null if no channels are configured
AttributesobjectYesKey-value map of customer attribute values requested via the CustomerAttribute parameter. null if no attributes were requested or none are valid. Campaign Execution 2.0: values preserve their original types (strings, integers, floats, booleans, etc.). Legacy: all values are returned as strings regardless of the underlying type

Error Responses

Status CodeConditionRetryable
400 Bad RequestThe campaign occurrence does not have Conditional Execution enabledNo
400 Bad RequestThe Conditional Execution window has expiredNo — the window is permanently closed
400 Bad RequestAll requested attributes are invalidNo
404 Not FoundThe campaign occurrence was not foundNo
500 Internal Server ErrorUnexpected server-side failureYes

Sample Request

GET /current/customers/GetProcessedCampaignCustomers
? CampaignID = 6577
& CustomerAttribute = Name,Email,Age
& CustomerAttributeDelimiter = ,
& skip = 0
& top = 100

Sample Response (200 OK)

[
  {
    "CustomerID": "tester1",
    "PromoCode": "promotion1",
    "ActionId": 123,
    "ChannelIds": [
      22,
      15
    ],
    "Attributes": {
      "Name": "John Doe",
      "Email": "[email protected]",
      "Age": 34
    }
  },
  {
    "CustomerID": "tester2",
    "PromoCode": "promotion1",
    "ActionId": 123,
    "ChannelIds": [
      22,
      15
    ],
    "Attributes": {
      "Name": "Jane Doe",
      "Email": "[email protected]",
      "Age": 28
    }
  }
]

Sample Response (400 Bad Request) — expired campaign window

Campaign execution window has expired.

Query Params
int32
required
string
string
Defaults to ;
int32
≤ 200000
Defaults to 10000

Maximum number of customers to return per page.

int32
Defaults to 0

Number of customers to skip (offset for pagination).

Response
200

Success

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!