Skip to content

BuyXGetYCouponPromotion

Type: schema

TypeScript Definition

typescript
BuyXGetYCouponPromotion: {components["schemas"]["CouponPromotionCommonDetail"] & {
            details: components["schemas"]["BuyXGetYRule"]
}

Component References

ReferenceResolves To
components["schemas"]["CouponPromotionCommonDetail"]CouponPromotionCommonDetail
components["schemas"]["BuyXGetYRule"]BuyXGetYRule

OpenAPI Schema

json
{
  "title": "BuyXGetYCouponPromotion",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/BuyXGetYCouponPromotion",
    "description": "API reference for the BuyXGetYCouponPromotion schema"
  },
  "allOf": [
    {
      "$ref": "#/components/schemas/CouponPromotionCommonDetail"
    },
    {
      "type": "object",
      "required": [
        "details",
        "applies_to_product"
      ],
      "properties": {
        "details": {
          "$ref": "#/components/schemas/BuyXGetYRule"
        },
        "applies_to_product": {
          "enum": [
            "product"
          ]
        }
      }
    }
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: