newsletter.updated

The newsletter.updated event is triggered whenever a Newsletter record has been updated for the end-user on the Pelcro platform. That could mean a user decided to subscribe to a new newsletter or unsubscribe from one or many of which the user was subscribed to.

{
  "type": "newsletter.updated",
  "id": "evt_mCOlYucNuN87DiuoGXAHEnkO",
  "created": 1676985992,
  "triggered_from": "open_api",
  "data": {
    "object": {
      "site_id": 775,
      "consent_type": "",
      "consent_text": "",
      "consent_ip": "172.70.243.22",
      "consent_url": "",
      "lists": null,
      "source": "web",
      "email": "[email protected]",
      "created_at": "2023-01-10T22:01:17.000000Z",
      "updated_at": "2023-02-21T13:26:32.000000Z",
      "deleted_at": null,
      "id": 658468,
      "first_name": null,
      "last_name": null,
      "postal_code": null,
      "object": "newsletter"
    },
    "previous_attributes": {
      "email": "[email protected]"
    }
  }
}