Skip to content

LoyaltyPointActivity ​

Type: schema

Description ​

Loyalty Point Activity

TypeScript Definition ​

typescript
LoyaltyPointActivity: {{
            /**
             * @description The action that occurred.
             * @enum {string}
             */
            action: "add" | "remove";
            /**
             * @description New enrolments use new-customer; older activities can retain new customer.
             * @enum {string}
             */
            activity: "order" | "credit-note" | "signup" | "bonus" | "tier-upgrade" | "new-customer" | "other" | "new customer";
            reference_number: string | null;
            title: string;
            loyalty_points: number;
            remarks: string | null;
            /** Format: date-time */
            created_at: string;
            /** Format: date-time */
            modified_at: string;
        };
        /** LoyaltyProgram */
}

OpenAPI Schema ​

json
{
  "title": "LoyaltyPointActivity",
  "description": "Loyalty Point Activity",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/LoyaltyPointActivity",
    "description": "API reference for the LoyaltyPointActivity schema"
  },
  "required": [
    "activity",
    "reference_number",
    "title",
    "loyalty_points",
    "remarks",
    "created_at",
    "modified_at",
    "action"
  ],
  "properties": {
    "action": {
      "description": "The action that occurred.",
      "type": "string",
      "enum": [
        "add",
        "remove"
      ]
    },
    "activity": {
      "description": "New enrolments use new-customer; older activities can retain new customer.",
      "type": "string",
      "enum": [
        "order",
        "credit-note",
        "signup",
        "bonus",
        "tier-upgrade",
        "new-customer",
        "other",
        "new customer"
      ]
    },
    "reference_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": "string"
    },
    "loyalty_points": {
      "type": "integer"
    },
    "remarks": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: