{ "opencollection": "1.0.0", "info": { "name": "Commerce Layer addresses custom_promotion_rules API", "version": "7.10.1" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "custom_promotion_rules", "type": "folder" }, "items": [ { "info": { "name": "Retrieve the custom 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/custom_promotion_rule", "params": [ { "name": "buyXPayYPromotionId", "value": "", "type": "path", "description": "The resource's id" } ] }, "docs": "Retrieve the custom promotion rule associated to the buy x pay y promotion" }, { "info": { "name": "List all custom promotion rules", "type": "http" }, "http": { "method": "GET", "url": "https://{your_organization_slug}.commercelayer.io/api/custom_promotion_rules" }, "docs": "List all custom promotion rules" }, { "info": { "name": "Create a custom promotion rule", "type": "http" }, "http": { "method": "POST", "url": "https://{your_organization_slug}.commercelayer.io/api/custom_promotion_rules", "body": { "type": "json", "data": "{}" } }, "docs": "Create a custom promotion rule" }, { "info": { "name": "Retrieve a custom promotion rule", "type": "http" }, "http": { "method": "GET", "url": "https://{your_organization_slug}.commercelayer.io/api/custom_promotion_rules/:customPromotionRuleId", "params": [ { "name": "customPromotionRuleId", "value": "", "type": "path", "description": "The resource's id" } ] }, "docs": "Retrieve a custom promotion rule" }, { "info": { "name": "Update a custom promotion rule", "type": "http" }, "http": { "method": "PATCH", "url": "https://{your_organization_slug}.commercelayer.io/api/custom_promotion_rules/:customPromotionRuleId", "params": [ { "name": "customPromotionRuleId", "value": "", "type": "path", "description": "The resource's id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a custom promotion rule" }, { "info": { "name": "Delete a custom promotion rule", "type": "http" }, "http": { "method": "DELETE", "url": "https://{your_organization_slug}.commercelayer.io/api/custom_promotion_rules/:customPromotionRuleId", "params": [ { "name": "customPromotionRuleId", "value": "", "type": "path", "description": "The resource's id" } ] }, "docs": "Delete a custom promotion rule" }, { "info": { "name": "Retrieve the custom promotion rule associated to the external promotion", "type": "http" }, "http": { "method": "GET", "url": "https://{your_organization_slug}.commercelayer.io/api/external_promotions/:externalPromotionId/custom_promotion_rule", "params": [ { "name": "externalPromotionId", "value": "", "type": "path", "description": "The resource's id" } ] }, "docs": "Retrieve the custom promotion rule associated to the external promotion" }, { "info": { "name": "Retrieve the custom 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/custom_promotion_rule", "params": [ { "name": "fixedAmountPromotionId", "value": "", "type": "path", "description": "The resource's id" } ] }, "docs": "Retrieve the custom promotion rule associated to the fixed amount promotion" }, { "info": { "name": "Retrieve the custom 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/custom_promotion_rule", "params": [ { "name": "fixedPricePromotionId", "value": "", "type": "path", "description": "The resource's id" } ] }, "docs": "Retrieve the custom promotion rule associated to the fixed price promotion" }, { "info": { "name": "Retrieve the custom 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/custom_promotion_rule", "params": [ { "name": "freeGiftPromotionId", "value": "", "type": "path", "description": "The resource's id" } ] }, "docs": "Retrieve the custom promotion rule associated to the free gift promotion" }, { "info": { "name": "Retrieve the custom 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/custom_promotion_rule", "params": [ { "name": "freeShippingPromotionId", "value": "", "type": "path", "description": "The resource's id" } ] }, "docs": "Retrieve the custom promotion rule associated to the free shipping promotion" }, { "info": { "name": "Retrieve the custom 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/custom_promotion_rule", "params": [ { "name": "percentageDiscountPromotionId", "value": "", "type": "path", "description": "The resource's id" } ] }, "docs": "Retrieve the custom promotion rule associated to the percentage discount promotion" }, { "info": { "name": "Retrieve the custom promotion rule associated to the promotion", "type": "http" }, "http": { "method": "GET", "url": "https://{your_organization_slug}.commercelayer.io/api/promotions/:promotionId/custom_promotion_rule", "params": [ { "name": "promotionId", "value": "", "type": "path", "description": "The resource's id" } ] }, "docs": "Retrieve the custom promotion rule associated to the promotion" } ] } ], "bundled": true }