Skip to content

LoyaltyTier ​

Type: schema

TypeScript Definition ​

typescript
LoyaltyTier: {{
            id: $Read<string>;
            name: string;
            total_spent_threshold: number | null;
            total_orders_threshold: number | null;
            points_earning_rate: number | null;
            fixed_points: number | null;
            is_initial: $Read<boolean>;
            next_tier_id: $Read<string | null>;
        };
        /** MandateDebitSchedule */
}

OpenAPI Schema ​

json
{
  "title": "LoyaltyTier",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/LoyaltyTier",
    "description": "API reference for the LoyaltyTier schema"
  },
  "required": [
    "id",
    "name",
    "total_spent_threshold",
    "total_orders_threshold",
    "points_earning_rate",
    "fixed_points",
    "is_initial",
    "next_tier_id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "readOnly": true
    },
    "name": {
      "type": "string"
    },
    "total_spent_threshold": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "total_orders_threshold": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "points_earning_rate": {
      "type": [
        "number",
        "null"
      ]
    },
    "fixed_points": {
      "type": [
        "integer",
        "null"
      ]
    },
    "is_initial": {
      "type": "boolean",
      "readOnly": true
    },
    "next_tier_id": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    }
  },
  "x-tags": [
    "Customers"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: