Skip to content

FixedPriceRuleBasedQuantity

Type: schema

TypeScript Definition

typescript
FixedPriceRuleBasedQuantity: {{
            /** @constant */
            spending_criteria_type: "minimum-quantity";
            products: {
                product_id: string | null;
                variant_id: string | null;
                minimum_quantity: number;
                /** @description null means there is no limit. */
                maximum_quantity: number | null;
                offer_price: number;
            }[];
        };
        /** FreeGoodCouponPromotion */
}

OpenAPI Schema

json
{
  "title": "FixedPriceRuleBasedQuantity",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/FixedPriceRuleBasedQuantity",
    "description": "API reference for the FixedPriceRuleBasedQuantity schema"
  },
  "required": [
    "spending_criteria_type",
    "products"
  ],
  "properties": {
    "spending_criteria_type": {
      "type": "string",
      "const": "minimum-quantity"
    },
    "products": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "product_id",
          "variant_id",
          "minimum_quantity",
          "maximum_quantity",
          "offer_price"
        ],
        "properties": {
          "product_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "variant_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "minimum_quantity": {
            "type": "integer",
            "minimum": 1
          },
          "maximum_quantity": {
            "description": "null means there is no limit.",
            "type": [
              "integer",
              "null"
            ]
          },
          "offer_price": {
            "type": "number"
          }
        }
      }
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: