Vincent is here! Just say the word, and Vincent will build the campaigns for you! Get early access.
curl --request POST \
--url https://{cluster}.voucherify.io/v1/segments \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "Customers in a new Segment",
"type": "static",
"customers": [
"cust_iajsExT2QB4sGWzABY85WRqV",
"cust_sehkNIi8Uq2qQuRqSr7xn4Zi"
]
}
'{
"id": "seg_vC8iOSCqUG02EsPzsHynLv8i",
"name": "Customers in a new Segment",
"created_at": "2022-09-13T08:57:15.801Z",
"type": "static",
"filter": null,
"initial_sync_status": "DONE",
"object": "segment"
}Create a customer segment.
๐ง Limit on static segments
There is a cap on the number of customers that you can assign to a static segment: 20,000. If you would like to create a bigger segment, then you can use the unlimited
auto-updateorpassivesegment instead and use some customer metadata to build this segment.
๐ง Limit on Active and Passive segments
You can create a maximum of 100 passive and active segments.
curl --request POST \
--url https://{cluster}.voucherify.io/v1/segments \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "Customers in a new Segment",
"type": "static",
"customers": [
"cust_iajsExT2QB4sGWzABY85WRqV",
"cust_sehkNIi8Uq2qQuRqSr7xn4Zi"
]
}
'{
"id": "seg_vC8iOSCqUG02EsPzsHynLv8i",
"name": "Customers in a new Segment",
"created_at": "2022-09-13T08:57:15.801Z",
"type": "static",
"filter": null,
"initial_sync_status": "DONE",
"object": "segment"
}Documentation Index
Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
Use this file to discover all available pages before exploring further.
Specify the boundary conditions for the customer segment.
Request body schema for creating a static customer segment in POST v1/segments.
Returns a customer segment object.
Response body schema for POST v1/segments.
Unique segment ID.
"seg_1wc52c5z6r1kQ81brO8j9Hk2"
Segment name.
Timestamp representing the date and time when the segment was created. The value is shown in the ISO 8601 format.
"2022-05-12T13:01:56.896Z"
Defines whether the segment is:
auto-update): customers enter and leave the segment based on the defined filters and the customer.segment.entered and customer.segment.left events are triggered,passive): customers enter and leave the segment based on the defined filters, but the customer.segment.entered and customer.segment.left events are not triggered,static): manually selected customers.auto-update, passive, static Defines a set of criteria for an auto-update or passive segment type.
The type of the object represented by JSON. This object stores information about the customer segment.
segment Was this page helpful?