Journey Docs
Partner API ExplorerLoyaltyRule Attributes

List rule attributes

Required scopepartner:loyalty:benefits:read
GET
/v1/partner/loyalty/rule-attributes

The attribute vocabulary a benefit eligibility rule may be built from: each entry gives the attribute key, its value type, the operators it accepts, and whether it supports a time window. Static configuration — a rule referencing an attribute absent from this list cannot be evaluated.

Authorization

headerAuthorizationBearer <token>

WorkOS access token (JWT) for a user who is a member of the partner organization. The organization the request is scoped to is taken from the token, not from a header or query parameter.

Only a JWT is accepted in this header. A Journey jny_ API key sent as a bearer token is rejected with 401 Invalid or expired token; send it in X-API-Key instead.

WorkOS organization API keys are not accepted yet.

Response Body

The attribute catalog.

application/json
  1. response
attributes?array<>
curl -X GET 'https://api-prd.cf.journey.com/v1/partner/loyalty/rule-attributes'
{  "attributes": [    {      "allowedOperators": [        "gte",        "lte",        "eq"      ],      "key": "nights_stayed",      "label": "Nights stayed",      "valueType": "number",      "windowed": true    }  ]}