Skip to content

FixedPricePromotion

Type: schema

TypeScript Definition

typescript
FixedPricePromotion: {{
            /**
             * @description discriminator enum property added by openapi-typescript
             * @enum {string}
             */
            promotion_type: "fixed-price";
            offer_price: number;
        };
        /** FixedPriceRule */
}

OpenAPI Schema

json
{
  "title": "FixedPricePromotion",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/FixedPricePromotion",
    "description": "API reference for the FixedPricePromotion schema"
  },
  "required": [
    "promotion_type",
    "offer_price"
  ],
  "properties": {
    "promotion_type": {
      "type": "string",
      "enum": [
        "discount",
        "volume-based",
        "fixed-price",
        "free-goods"
      ],
      "const": "fixed-price",
      "readOnly": true
    },
    "offer_price": {
      "type": "number"
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: