{
  "opencollection": "1.0.0",
  "info": {
    "name": "Commerce Layer addresses coupon_codes_promotion_rules API",
    "version": "7.10.1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "coupon_codes_promotion_rules",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve the coupon codes promotion rule associated to the buy x pay y promotion",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/buy_x_pay_y_promotions/:buyXPayYPromotionId/coupon_codes_promotion_rule",
            "params": [
              {
                "name": "buyXPayYPromotionId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the coupon codes promotion rule associated to the buy x pay y promotion"
        },
        {
          "info": {
            "name": "List all coupon codes promotion rules",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/coupon_codes_promotion_rules"
          },
          "docs": "List all coupon codes promotion rules"
        },
        {
          "info": {
            "name": "Create a coupon codes promotion rule",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{your_organization_slug}.commercelayer.io/api/coupon_codes_promotion_rules",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a coupon codes promotion rule"
        },
        {
          "info": {
            "name": "Retrieve a coupon codes promotion rule",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/coupon_codes_promotion_rules/:couponCodesPromotionRuleId",
            "params": [
              {
                "name": "couponCodesPromotionRuleId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve a coupon codes promotion rule"
        },
        {
          "info": {
            "name": "Update a coupon codes promotion rule",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{your_organization_slug}.commercelayer.io/api/coupon_codes_promotion_rules/:couponCodesPromotionRuleId",
            "params": [
              {
                "name": "couponCodesPromotionRuleId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a coupon codes promotion rule"
        },
        {
          "info": {
            "name": "Delete a coupon codes promotion rule",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{your_organization_slug}.commercelayer.io/api/coupon_codes_promotion_rules/:couponCodesPromotionRuleId",
            "params": [
              {
                "name": "couponCodesPromotionRuleId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Delete a coupon codes promotion rule"
        },
        {
          "info": {
            "name": "Retrieve the promotion rule associated to the coupon",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/coupons/:couponId/promotion_rule",
            "params": [
              {
                "name": "couponId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the promotion rule associated to the coupon"
        },
        {
          "info": {
            "name": "Retrieve the coupon codes promotion rule associated to the external promotion",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/external_promotions/:externalPromotionId/coupon_codes_promotion_rule",
            "params": [
              {
                "name": "externalPromotionId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the coupon codes promotion rule associated to the external promotion"
        },
        {
          "info": {
            "name": "Retrieve the coupon codes promotion rule associated to the fixed amount promotion",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/fixed_amount_promotions/:fixedAmountPromotionId/coupon_codes_promotion_rule",
            "params": [
              {
                "name": "fixedAmountPromotionId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the coupon codes promotion rule associated to the fixed amount promotion"
        },
        {
          "info": {
            "name": "Retrieve the coupon codes promotion rule associated to the fixed price promotion",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/fixed_price_promotions/:fixedPricePromotionId/coupon_codes_promotion_rule",
            "params": [
              {
                "name": "fixedPricePromotionId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the coupon codes promotion rule associated to the fixed price promotion"
        },
        {
          "info": {
            "name": "Retrieve the coupon codes promotion rule associated to the flex promotion",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/flex_promotions/:flexPromotionId/coupon_codes_promotion_rule",
            "params": [
              {
                "name": "flexPromotionId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the coupon codes promotion rule associated to the flex promotion"
        },
        {
          "info": {
            "name": "Retrieve the coupon codes promotion rule associated to the free gift promotion",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/free_gift_promotions/:freeGiftPromotionId/coupon_codes_promotion_rule",
            "params": [
              {
                "name": "freeGiftPromotionId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the coupon codes promotion rule associated to the free gift promotion"
        },
        {
          "info": {
            "name": "Retrieve the coupon codes promotion rule associated to the free shipping promotion",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/free_shipping_promotions/:freeShippingPromotionId/coupon_codes_promotion_rule",
            "params": [
              {
                "name": "freeShippingPromotionId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the coupon codes promotion rule associated to the free shipping promotion"
        },
        {
          "info": {
            "name": "Retrieve the coupon codes promotion rule associated to the percentage discount promotion",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/percentage_discount_promotions/:percentageDiscountPromotionId/coupon_codes_promotion_rule",
            "params": [
              {
                "name": "percentageDiscountPromotionId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the coupon codes promotion rule associated to the percentage discount promotion"
        },
        {
          "info": {
            "name": "Retrieve the coupon codes promotion rule associated to the promotion",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/promotions/:promotionId/coupon_codes_promotion_rule",
            "params": [
              {
                "name": "promotionId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the coupon codes promotion rule associated to the promotion"
        }
      ]
    }
  ],
  "bundled": true
}