curl --request POST \
--url https://api.hyperline.co/v1/customers/segments/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rules": [
{
"operator": "and",
"conditions": [
{
"field": "country",
"operator": "in",
"value": [
"FR"
]
}
]
}
]
}
'{
"meta": {
"total": 1,
"taken": 1,
"skipped": 0
},
"data": [
{
"id": "<string>",
"name": "<string>",
"country": "FR",
"currency": "EUR",
"language": "fr",
"billing_email": "<string>"
}
]
}Preview which customers match the given segment rules without saving the segment.
curl --request POST \
--url https://api.hyperline.co/v1/customers/segments/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rules": [
{
"operator": "and",
"conditions": [
{
"field": "country",
"operator": "in",
"value": [
"FR"
]
}
]
}
]
}
'{
"meta": {
"total": 1,
"taken": 1,
"skipped": 0
},
"data": [
{
"id": "<string>",
"name": "<string>",
"country": "FR",
"currency": "EUR",
"language": "fr",
"billing_email": "<string>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
0 <= x <= 100x >= 01Show child attributes
Was this page helpful?