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