{ "opencollection": "1.0.0", "info": { "name": "IO.Common Accounts Journals 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": "Journals", "type": "folder" }, "items": [ { "info": { "name": "GetJournals", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/Journals", "params": [ { "name": "type", "value": "", "type": "query" }, { "name": "Filter", "value": "", "type": "query" }, { "name": "Page", "value": "", "type": "query" }, { "name": "PageSize", "value": "", "type": "query" }, { "name": "SortColumn", "value": "", "type": "query" }, { "name": "SortOrder", "value": "", "type": "query" }, { "name": "locationId", "value": "", "type": "query" }, { "name": "operationId", "value": "", "type": "query" }, { "name": "showPosted", "value": "", "type": "query" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "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}}" } } } }, { "info": { "name": "Returns journal details by journalId", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/Journals/:journalId", "params": [ { "name": "journalId", "value": "", "type": "path", "description": "JournalId" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "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": "Returns journal details by journalId" }, { "info": { "name": "Adds new line to journal (Not allowed for counting journal)", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/Journals/:journalId", "params": [ { "name": "journalId", "value": "", "type": "path" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "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": "Adds new line to journal (Not allowed for counting journal)" }, { "info": { "name": "Updates journal details. Description is always updated. Date, OperationId and LocationId are updated only if journal has no lines.", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/v1/Journals/:journalId", "params": [ { "name": "journalId", "value": "", "type": "path" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "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": "Updates journal details. Description is always updated. Date, OperationId and LocationId are updated only if journal has no lines." }, { "info": { "name": "Delete journal by journalId", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/v1/Journals/:journalId", "params": [ { "name": "journalId", "value": "", "type": "path" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "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": "Delete journal by journalId" }, { "info": { "name": "Returns journal lines by journalId", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/Journals/:journalId/lines", "params": [ { "name": "journalId", "value": "", "type": "path", "description": "journalid" }, { "name": "Filter", "value": "", "type": "query" }, { "name": "Page", "value": "", "type": "query" }, { "name": "PageSize", "value": "", "type": "query" }, { "name": "SortColumn", "value": "", "type": "query" }, { "name": "SortOrder", "value": "", "type": "query" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "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": "Returns journal lines by journalId" }, { "info": { "name": "Re-creates counting journal lines", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/Journals/:journalId/lines/recreate", "params": [ { "name": "journalId", "value": "", "type": "path", "description": "JournalId" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "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": "Re-creates counting journal lines" }, { "info": { "name": "Create counting journal", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/Journals/counting", "params": [ { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "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": "Create counting journal" }, { "info": { "name": "Create correction journal", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/Journals/correction", "params": [ { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "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": "Create correction journal" }, { "info": { "name": "Post journal journal", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/Journals/:journalId/post", "params": [ { "name": "journalId", "value": "", "type": "path", "description": "JournalId to be posted" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "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": "Post journal journal" }, { "info": { "name": "Creates new confirmation journal", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/Journals/confirmation", "params": [ { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "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": "Creates new confirmation journal" }, { "info": { "name": "Save all journal lines", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/Journals/confirmation/:journalId/lines", "params": [ { "name": "journalId", "value": "", "type": "path" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "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": "Save all journal lines" }, { "info": { "name": "Create xlsx file including journal lines", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/Journals/:journalId/lines/xlsx", "params": [ { "name": "journalId", "value": "", "type": "path", "description": "Journal Id" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "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": "Create xlsx file including journal lines" } ] } ], "bundled": true }