{ "opencollection": "1.0.0", "info": { "name": "FirstPromoter API", "version": "1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Promo Codes", "type": "folder" }, "items": [ { "info": { "name": "Create promo code", "type": "http" }, "http": { "method": "POST", "url": "https://api.firstpromoter.com/api/v2/affiliate/promo_codes", "headers": [ { "name": "Account-ID", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create promo code" }, { "info": { "name": "Update promo code by id", "type": "http" }, "http": { "method": "PUT", "url": "https://api.firstpromoter.com/api/v2/affiliate/promo_codes/:id", "headers": [ { "name": "Account-ID", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Can not be updated if archived and ext_id present and promoter can manage tracking coupons." }, { "info": { "name": "Archive promo code by id", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.firstpromoter.com/api/v2/affiliate/promo_codes/:id", "headers": [ { "name": "Account-ID", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Archive promo code by id only if promo code is created by current promoter." } ] } ], "bundled": true }