Skip to content

ApplicablePromotion ​

Type: schema

TypeScript Definition ​

typescript
ApplicablePromotion: {{
            id: string;
            name: string;
            promotion_type: components["schemas"]["PromotionType"];
            estimated_discount: number | null;
            savings_message: string;
        };
        /**
         * AppliedCoupon
         * @description Details about an active coupon applied to a cart/order
         */
}

Component References ​

ReferenceResolves To
components["schemas"]["PromotionType"]PromotionType

OpenAPI Schema ​

json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "promotion_type": {
      "$ref": "#/components/schemas/PromotionType"
    },
    "estimated_discount": {
      "type": [
        "number",
        "null"
      ]
    },
    "savings_message": {
      "type": "string"
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/ApplicablePromotion"
  },
  "required": [
    "id",
    "name",
    "promotion_type",
    "estimated_discount",
    "savings_message"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: