{
"customer": {
"id": "cust_5P5B8oy1pxM3sTOZ8qDpmkpG",
"source_id": "a-tst",
"name": "Alex Test",
"address": {
"city": null,
"state": null,
"line_1": null,
"line_2": null,
"country": null,
"postal_code": null
},
"summary": {
"redemptions": {
"total_redeemed": 0,
"total_failed": 0,
"total_succeeded": 0,
"total_rolled_back": 0,
"total_rollback_failed": 0,
"total_rollback_succeeded": 0,
"gift": {
"redeemed_amount": 0,
"amount_to_go": 0
},
"loyalty_card": {
"redeemed_points": 0,
"points_to_go": 0
}
},
"orders": {
"total_amount": 0,
"total_count": 0,
"average_amount": 0,
"last_order_amount": 0
}
},
"loyalty": {
"points": 0,
"referred_customers": 0,
"campaigns": {}
},
"referrals": {
"total": 0,
"campaigns": []
},
"metadata": {},
"system_metadata": {},
"created_at": "2024-02-29T14:04:46.506Z",
"object": "customer"
},
"segment": {
"id": "seg_n3vVcU5t0m3rs4rEPr3C1oU5",
"name": "New Customers",
"object": "segment"
}
}{
"customer": {
"id": "cust_5P5B8oy1pxM3sTOZ8qDpmkpG",
"source_id": "a-tst",
"name": "Alex Test",
"address": {
"city": null,
"state": null,
"line_1": null,
"line_2": null,
"country": null,
"postal_code": null
},
"summary": {
"redemptions": {
"total_redeemed": 0,
"total_failed": 0,
"total_succeeded": 0,
"total_rolled_back": 0,
"total_rollback_failed": 0,
"total_rollback_succeeded": 0,
"gift": {
"redeemed_amount": 0,
"amount_to_go": 0
},
"loyalty_card": {
"redeemed_points": 0,
"points_to_go": 0
}
},
"orders": {
"total_amount": 0,
"total_count": 0,
"average_amount": 0,
"last_order_amount": 0
}
},
"loyalty": {
"points": 0,
"referred_customers": 0,
"campaigns": {}
},
"referrals": {
"total": 0,
"campaigns": []
},
"metadata": {},
"system_metadata": {},
"created_at": "2024-02-29T14:04:46.506Z",
"object": "customer"
},
"segment": {
"id": "seg_n3vVcU5t0m3rs4rEPr3C1oU5",
"name": "New Customers",
"object": "segment"
}
}TheDocumentation Index
Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
Use this file to discover all available pages before exploring further.
EVENTS.CUSTOMER.SEGMENT.LEFT event indicates that a customer has left a customer segment. It returns details about the customer and the segment.
When the event is used in a “Customer left segment” distribution webhook, the data object always contains the following required objects:
customer,segment.
- “Notify customers about promotion” sends also the following objects:
campaign,promotion_tier,
- “Send and publish unique codes from campaign” sends also the following objects:
campaign,voucher,publication,
- “Send plain message to customers” sends only the basic objects listed above.
Body
Event data object schema for customer.segment.left
Customer details with details about loyalty and referral programs.
Show child attributes
Show child attributes
Simplified segment data.
Show child attributes
Show child attributes
Details about the campaign related to the distribution with a promotion or send voucher purpose.
Show child attributes
Show child attributes
Details about the voucher related to the distribution with a send voucher purpose.
Show child attributes
Show child attributes
Details about the publication related to the distribution with a send voucher purpose.
Show child attributes
Show child attributes
Details about the promotion tier related to the distribution with a promotion purpose.
Show child attributes
Show child attributes
Response
Webhook accepted
Was this page helpful?

