{ "opencollection": "1.0.0", "info": { "name": "FirstPromoter Admin API - Products", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Products", "type": "folder" }, "items": [ { "info": { "name": "Get available products", "type": "http" }, "http": { "method": "GET", "url": "https://api.firstpromoter.com/api/v2/company/products", "headers": [ { "name": "Account-ID", "value": "" } ], "params": [ { "name": "q", "value": "", "type": "query", "description": "Search params. Searches by name and prices" } ] }, "docs": "Get available products \n **HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/products`
" }, { "info": { "name": "Create product", "type": "http" }, "http": { "method": "POST", "url": "https://api.firstpromoter.com/api/v2/company/products", "headers": [ { "name": "Account-ID", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create product \n **HTTP Request**
`POST https://api.firstpromoter.com/api/v2/company/products`
" }, { "info": { "name": "Get product", "type": "http" }, "http": { "method": "GET", "url": "https://api.firstpromoter.com/api/v2/company/products/:id", "headers": [ { "name": "Account-ID", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "ID of the product" } ] }, "docs": "Get product based on id \n **HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/products/{id}`
" }, { "info": { "name": "Update product", "type": "http" }, "http": { "method": "PUT", "url": "https://api.firstpromoter.com/api/v2/company/products/:id", "headers": [ { "name": "Account-ID", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "ID of the product to be updated" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update product based on id \n **HTTP Request**
`PUT https://api.firstpromoter.com/api/v2/company/products/{id}`
" }, { "info": { "name": "Delete product", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.firstpromoter.com/api/v2/company/products/:id", "headers": [ { "name": "Account-ID", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "ID of the product to be deleted" } ] }, "docs": "Delete product based on id \n **HTTP Request**
`DELETE https://api.firstpromoter.com/api/v2/company/products/{id}`
" } ] } ], "bundled": true }