Advocate Signup Web Hook

Triggered when Advocate Signup form is submitted.

Payload parameters provided for Advocate Signup Web Hook

  • offer — subhash of parameters describing the offer
    • email — referrer’s email address
    • short_url_code
  • campaign — subhash of parameters describing the campaign
    • id — unique campaign ID
    • cached_slug — unique SEO friendly ID
    • type — either “StandaloneCampaign” or “DoubleSidedDealCampaign”
    • tag_names — array of campaign’s tags
  • email — affiliate member’s email address

If the Signup form included first and last name fields or subscription checkbox, additional parameters will be present:

  • first_name — affiliate member’s first name
  • last_name — affiliate member’s last name
  • sub_choice — subscription choice
  • subscribed_at — date affiliate member has subscribed
  • unsubscribed_at — date affiliate member has unsubscribed

Sample payload

{
  "offer": {
    "email": "referrer@example.com",
    "short_url_code": "1a2PV"
  },
  "campaign": {
    "id": 361325654,
    "type": "StandaloneCampaign",
    "cached_slug": "affiliate-campaign-test",
    "tag_names": ["default"]
  },
  "email": "john@example.com",
  "first_name": "John",
  "last_name": "Doe",
  "gender": null,
  "sub_choice": false,
  "subscribed_at": "2014-08-14T02:01:16.824-07:00",
  "unsubscribed_at": null
}

cURL example

curl --data 'key=<key>&payload={"offer":{"email":"referrer@example.com","short_url_code":"1a2PV"},"campaign":{"id":361325654,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"email":"john@example.com","first_name":"John","last_name":"Doe","gender":null,"sub_choice":false,"subscribed_at":"2014-08-14T02:01:16.824-07:00","unsubscribed_at":null}' <url>