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_5uMqltz5TptlNz4NXYO02YPJ",
    "created": 1624544286,
    "data": {
        "object": {
            "site_id": 1,
            "consent_type": "",
            "consent_text": "",
            "consent_ip": "",
            "consent_url": "",
            "lists": "vip,vip 2",
            "source": "web",
            "email": "[email protected]",
            "created_at": "2021-06-24 14:17:16",
            "updated_at": "2021-06-24 14:18:06",
            "deleted_at": null,
            "id": 1,
            "first_name": "first name",
            "last_name": "last name",
            "postal_code": "123456",
            "object": "newsletter"
        },
        "previous_attributes": {
            "lists": "vip"
        }
    }
}