Webhooks
Listen for Upzelo events so your integration can automatically trigger reactions
Last updated
{
"data": {
"type": "flow.started",
"attempt": 1,
"customer": {
"external_id": "cus_1234",
"name": "Richard Hendricks",
"email": "richard@piedpiper.com",
"description": "Created middle-out compression",
"created": "2023-01-01 00:02:04",
"phone": "07123456789",
"additional_id": null,
"upzelo_id": "upz_cus_1234",
"metadata": null,
"country": "GB",
"state": "East Sussex"
},
"subscription": {
"external_id": "sub_1234",
"additional_id": null,
"current_period_start": "2023-01-01 00:00:00",
"current_period_end": "2023-01-31 23:59:59",
"cancel_at_period_end": false,
"status": "active",
"start_date": "2020-01-01 00:00:00",
"canceled_at": null,
"upzelo_id": "upz_sub_1234"
},
"flow": {
"title": "High-value customers",
"reason": "Matched audience"
},
"app_id": "upz_app_1234",
"test_mode": true,
}
}{
"data": {
"type": "flow.abandoned",
"attempt": 1,
"customer": {
"external_id": "cus_1234",
"name": "Richard Hendricks",
"email": "richard@piedpiper.com",
"description": "Created middle-out compression",
"created": "2023-01-01 00:02:04",
"phone": "07123456789",
"additional_id": null,
"upzelo_id": "upz_cus_1234",
"metadata": null,
"country": "GB",
"state": "East Sussex"
},
"subscription": {
"external_id": "sub_1234",
"additional_id": null,
"current_period_start": "2023-01-01 00:00:00",
"current_period_end": "2023-01-31 23:59:59",
"cancel_at_period_end": false,
"status": "active",
"start_date": "2020-01-01 00:00:00",
"canceled_at": null,
"upzelo_id": "upz_sub_1234"
},
"flow": {
"title": "High-value customers",
"reason": "Matched audience"
},
"app_id": "upz_app_1234",
"test_mode": true,
}
}{
"data": {
"type": "subscription.pause",
"attempt": 1,
"customer": {
"external_id": "cus_1234",
"name": "Richard Hendricks",
"email": "richard@piedpiper.com",
"description": "Created middle-out compression",
"created": "2023-01-01 00:02:04",
"phone": "07123456789",
"additional_id": null,
"upzelo_id": "upz_cus_1234",
"metadata": null,
"country": "GB",
"state": "East Sussex"
},
"subscription": {
"external_id": "sub_1234",
"additional_id": null,
"current_period_start": "2023-01-01 00:00:00",
"current_period_end": "2023-01-31 23:59:59",
"cancel_at_period_end": false,
"status": "active",
"start_date": "2020-01-01 00:00:00",
"canceled_at": null,
"upzelo_id": "upz_sub_1234"
},
"duration": 2,
"duration_unit": "month",
"app_id": "upz_app_1234",
"test_mode": true,
}
}{
"data": {
"type": "subscription.skip-charge",
"attempt": 1,
"customer": {
"external_id": "cus_1234",
"name": "Richard Hendricks",
"email": "richard@piedpiper.com",
"description": "Created middle-out compression",
"created": "2023-01-01 00:02:04",
"phone": "07123456789",
"additional_id": null,
"upzelo_id": "upz_cus_1234",
"metadata": null,
"country": "GB",
"state": "East Sussex"
},
"subscription": {
"external_id": "sub_1234",
"additional_id": null,
"current_period_start": "2023-01-01 00:00:00",
"current_period_end": "2023-01-31 23:59:59",
"cancel_at_period_end": false,
"status": "active",
"start_date": "2020-01-01 00:00:00",
"canceled_at": null,
"upzelo_id": "upz_sub_1234"
},
"app_id": "upz_app_1234",
"test_mode": true,
}
}
}{
"data": {
"type": "subscription.plan-change",
"attempt": 1,
"customer": {
"external_id": "cus_1234",
"name": "Richard Hendricks",
"email": "richard@piedpiper.com",
"description": "Created middle-out compression",
"created": "2023-01-01 00:02:04",
"phone": "07123456789",
"additional_id": null,
"upzelo_id": "upz_cus_1234",
"metadata": null,
"country": "GB",
"state": "East Sussex"
},
"subscription": {
"external_id": "sub_1234",
"additional_id": null,
"current_period_start": "2023-01-01 00:00:00",
"current_period_end": "2023-01-31 23:59:59",
"cancel_at_period_end": false,
"status": "active",
"start_date": "2020-01-01 00:00:00",
"canceled_at": null,
"upzelo_id": "upz_sub_1234"
},
"price": {
"external_id": "price_1234"
},
"app_id": "upz_app_1234",
"test_mode": true,
}
}{
"data": {
"type": "subscription.free-period",
"attempt": 1,
"customer": {
"external_id": "cus_1234",
"name": "Richard Hendricks",
"email": "richard@piedpiper.com",
"description": "Created middle-out compression",
"created": "2023-01-01 00:02:04",
"phone": "07123456789",
"additional_id": null,
"upzelo_id": "upz_cus_1234",
"metadata": null,
"country": "GB",
"state": "East Sussex"
},
"subscription": {
"external_id": "sub_1234",
"additional_id": null,
"current_period_start": "2023-01-01 00:00:00",
"current_period_end": "2023-01-31 23:59:59",
"cancel_at_period_end": false,
"status": "active",
"start_date": "2020-01-01 00:00:00",
"canceled_at": null,
"upzelo_id": "upz_sub_1234"
},
"coupon": {
"external_id": "coupon_1234",
"duration_in_months": 1,
"duration": "once",
"amount_off": null,
"percent_off": 20
},
"app_id": "upz_app_1234",
"test_mode": true,
}
}{
"data": {
"type": "subscription.discount",
"attempt": 1,
"customer": {
"external_id": "cus_1234",
"name": "Richard Hendricks",
"email": "richard@piedpiper.com",
"description": "Created middle-out compression",
"created": "2023-01-01 00:02:04",
"phone": "07123456789",
"additional_id": null,
"upzelo_id": "upz_cus_1234",
"metadata": null,
"country": "GB",
"state": "East Sussex"
},
"subscription": {
"external_id": "sub_1234",
"additional_id": null,
"current_period_start": "2023-01-01 00:00:00",
"current_period_end": "2023-01-31 23:59:59",
"cancel_at_period_end": false,
"status": "active",
"start_date": "2020-01-01 00:00:00",
"canceled_at": null,
"upzelo_id": "upz_sub_1234"
},
"coupon": {
"external_id": "coupon_1234",
"duration_in_months": 1,
"duration": "once",
"amount_off": 1000, // Cent value
"percent_off": null
},
"app_id": "upz_app_1234",
"test_mode": true,
}
}{
"data": {
"type": "subscription.cancelled",
"attempt": 1,
"customer": {
"external_id": "cus_1234",
"name": "Richard Hendricks",
"email": "richard@piedpiper.com",
"description": "Created middle-out compression",
"created": "2023-01-01 00:02:04",
"phone": "07123456789",
"additional_id": null,
"upzelo_id": "upz_cus_1234",
"metadata": null,
"country": "GB",
"state": "East Sussex"
},
"subscription": {
"external_id": "sub_1234",
"additional_id": null,
"current_period_start": "2023-01-01 00:00:00",
"current_period_end": "2023-01-31 23:59:59",
"cancel_at_period_end": false,
"status": "active",
"start_date": "2020-01-01 00:00:00",
"canceled_at": null,
"upzelo_id": "upz_sub_1234"
},
"app_id": "upz_app_1234",
"test_mode": true,
}
}{
"data": {
"type": "request.created",
"attempt": 1,
"customer": {
"external_id": "cus_1234",
"name": "Richard Hendricks",
"email": "richard@piedpiper.com",
"description": "Created middle-out compression",
"created": "2023-01-01 00:02:04",
"phone": "07123456789",
"additional_id": null,
"upzelo_id": "upz_cus_1234",
"metadata": null,
"country": "GB",
"state": "East Sussex"
},
"subscription": {
"external_id": "sub_1234",
"additional_id": null,
"current_period_start": "2023-01-01 00:00:00",
"current_period_end": "2023-01-31 23:59:59",
"cancel_at_period_end": false,
"status": "active",
"start_date": "2020-01-01 00:00:00",
"canceled_at": null,
"upzelo_id": "upz_sub_1234"
},
"flow": {
"title": "High-value customers",
"reason": "Matched audience"
},
"app_id": "upz_app_1234",
"test_mode": true,
"request_type": "cancel"
}
}