younifyd
Menu

Get a customer segment

Get a customer segment

GET/shops/{shopKey}/countries/{countryCode}/customer-segments/{segmentGuid}

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get a customer segment action (under CustomerSegments).
  3. Fill in the fields below, then reference the result from later steps as {{getACustomerSegment.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

countryCodestringrequired

The shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.

segmentGuidstring (uuid)required

Unique identifier of the customer segment.

Response

Returns 200 with an object. Read it in later steps with {{getACustomerSegment.response.data.<field>}}.

guidstring (uuid)

Unique identifier of the segment.

referenceKeystring

Business-facing identifier.

namestring

Display name of the segment.

criteriaDslstring

Criteria DSL defining the segment rules (e.g. `"TIER-A" IN groups AND LTV > 1000`).

rulesinteger

The number of conditions in the criteriaDsl.

activeboolean

Whether the segment is active.

createdDatestring (date-time)
updatedDatestring (date-time)
json
{
  "guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "referenceKey": "string",
  "name": "string",
  "criteriaDsl": "string",
  "rules": 0,
  "active": false,
  "createdDate": "2025-01-01T00:00:00Z",
  "updatedDate": "2025-01-01T00:00:00Z"
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Get a customer segment — SCAYLE Admin — Documentation