Customer Webhooks

Triggering Events

Below are the following events that trigger Customer's webhooks -

  • On Creation
  • Any update on the customer profile
  • Two accounts being merged

Sample Content of the Sent Request

Customer Events

{
    "event_type": "CUSTOMER",
    "data": {
        "status": "ACTIVE",
        "birthday": "1922-08-02",
        "email": "[email protected]",
        "phone": "4963777719",
        "notes": "234",
        "gender": "F",
        "banned": false,
        "addresses": [
            {
                "type": null,
                "street1": "",
                "street2": "",
                "city": "",
                "state": "CA",
                "primary": false,
                "id": null,
                "zipcode": ""
            }
        ],
        "imageList": [
            {
                "type": "miscUpload",
                "url": "https://treezgreengoddess.s3.amazonaws.com/customer/1_178125_miscUpload_14-08-19-23-57-21?AWSAccessKeyId=AKIAJRSVLVDZ7PXO7KNQ&Expires=1567100501&Signature=q9ydWFIT%2FztXwrVwE92tOjKStYA%3D",
                "lastupdated": "2019-08-14 23:57:21"
            }
        ],
        "customer_id": "178125",
        "first_name": "ALINA1",
        "middle_name": null,
        "last_name": "ANDREEVA",
        "drivers_license": "4486456",
        "drivers_license_expiration": "2029-09-07",
        "state_medical_id": "N/A",
        "permit_expiration": "N/A",
        "physician_first_name": null,
        "physician_last_name": null,
        "physician_license": null,
        "physician_address": null,
        "physician_phone": null,
        "caregiver_name_1": "N/A",
        "caregiver_name_2": "N/A",
        "rewards_balance": 871,
        "rewards_type": "POINTS",
        "signup_date": "2019-08-14T23:53:22.000-07:00",
        "last_visit_date": "2019-08-19 12:19:19.000",
        "last_update": "2019-08-29T09:41:42.000-07:00",
        "opt_out": "true",
        "referral_source": "Leafly",
        "warning_1": false,
        "warning_2": false,
        "merged_customer_ids": [],
        "patient_type": "ADULT"
    }
}

What’s Next

Check the Parameters Explained page for the Customer API for the definition of each available field.

Did this page help you?