{ "opencollection": "1.0.0", "info": { "name": "Admin Account / Address Promotion Categories API", "version": "v3" }, "items": [ { "info": { "name": "Promotion Categories", "type": "folder" }, "items": [ { "info": { "name": "Return a list of Promotion Categories", "type": "http" }, "http": { "method": "GET", "url": "http://{defaultHost}/api/v2/platform/promotion_categories", "params": [ { "name": "page", "value": "1", "type": "query" }, { "name": "per_page", "value": "50", "type": "query" }, { "name": "include", "value": "promotions", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" }, { "name": "filter[code_eq]", "value": "BLK-FRI", "type": "query" }, { "name": "filter[name_eq]", "value": "2020 Promotions", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns a list of Promotion Categories" }, { "info": { "name": "Create a Promotion Category", "type": "http" }, "http": { "method": "POST", "url": "http://{defaultHost}/api/v2/platform/promotion_categories", "params": [ { "name": "include", "value": "promotions", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates a Promotion Category" }, { "info": { "name": "Return a Promotion Category", "type": "http" }, "http": { "method": "GET", "url": "http://{defaultHost}/api/v2/platform/promotion_categories/:id", "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "include", "value": "promotions", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns a Promotion Category" }, { "info": { "name": "Update a Promotion Category", "type": "http" }, "http": { "method": "PATCH", "url": "http://{defaultHost}/api/v2/platform/promotion_categories/:id", "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "include", "value": "promotions", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Updates a Promotion Category" }, { "info": { "name": "Delete a Promotion Category", "type": "http" }, "http": { "method": "DELETE", "url": "http://{defaultHost}/api/v2/platform/promotion_categories/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Deletes a Promotion Category" } ] } ], "bundled": true }