cURL
curl --request GET \ --url https://{cluster}.voucherify.io/v1/segments/{segmentId} \ --header 'Authorization: Bearer <token>' \ --header 'X-App-Id: <api-key>' \ --header 'X-App-Token: <api-key>'
{ "id": "seg_Mv5w1b2FIEbiCCO5ioT8TfI2", "name": "Tiers 2 - Senior", "created_at": "2022-06-09T13:21:26.656Z", "type": "auto-update", "filter": { "junction": "and", "loyalty_points.campaigns.Tiers 2.points": { "conditions": { "$more_than_equal": [ 41 ] } } }, "initial_sync_status": "DONE", "object": "segment" }
Retrieves the segment with a given segment ID.
auto-update
passive
static
segment
Was this page helpful?