Skip to main content
WEBHOOK
Surge sends campaign.rejected when a campaign registration needs changes. The data.status field is rejected. The data.feedback array identifies the affected fields and explains the required changes. An entry with the changes_needed outcome requires a correction. The array can also contain entries with the warning outcome. Use data.feedback to show the required corrections in your application. For help with corrections, see Fixing rejected registrations.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
account_id
string
required

The ID of the account in which this event occurred

data
object
required

The data associated with the event

timestamp
string<date-time>
required

The timestamp when this event occurred, in ISO8601 format

type
string
required

The type of the event. Always campaign.rejected for this event.

Allowed value: "campaign.rejected"

Response

200

Return a 200 status to indicate that the data was received successfully