{ "opencollection": "1.0.0", "info": { "name": "IO.Common Accounts Consumption API", "version": "1.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://identity.scanbro.com/connect/authorize", "accessTokenUrl": "https://identity.scanbro.com/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Consumption", "type": "folder" }, "items": [ { "info": { "name": "Get period consumption", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v1/Consumption", "params": [ { "name": "dateFrom", "value": "", "type": "query", "description": "Consumption report period start date" }, { "name": "dateTo", "value": "", "type": "query", "description": "Consumption report period end date" }, { "name": "locationId", "value": "", "type": "query", "description": "Location id to get consumption in selected location" }, { "name": "accountId", "value": "", "type": "query" }, { "name": "itemId", "value": "", "type": "query", "description": "To filter based on itemId" }, { "name": "itemCode", "value": "", "type": "query", "description": "ItemCode can also be used for filtering" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://identity.scanbro.com/connect/authorize", "accessTokenUrl": "https://identity.scanbro.com/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get period consumption" } ] } ], "bundled": true }