{"info":{"_postman_id":"19611731-8354-49d8-be32-1a43d304decf","name":"tomato pay API","description":"<html><head></head><body><p>The tomato pay API platform, built by, and loved by developers, enables anyone to build exceptional financial products to serve small businesses.</p>\n<p>By leveraging tomato pay's APIs such as our Open Banking, payments and intelligence APIs, you will gain valuable insights into your users finances so you can deliver the right product, to the right small business, at the right time.</p>\n<p><strong>Payments</strong></p>\n<ul><li><p>Our payments API is built on the faster payment bank rails. It powers instant, cheaper and more secure payments without all the administrative burden.</p></li><li><p>Immediate settlement at a significant discount to cards, direct debit and other payment methods.</p></li><li><p>Secure authentication through a customer's own bank, reducing the risk of fraud.</p></li></ul>\n\n<p><strong>Data Aggregation</strong></p>\n<p>Through Open Banking, your customers can connect their bank accounts to get a holistic view of their finances.</p>\n<p><strong>Cash Flow Profiles</strong></p>\n<ul><li><p>The core of our innovation lies in our ability to analyse your customers' aggregated financial data and enhance it with machine intelligence.</p></li><li><p>Produce cash flow forecasts, and surface automated insights.</p></li><li><p>Categorise your customers' transactions and provide timely, and valuable insights on their spending habits.</p></li></ul>\n\n<p><a href=\"https://developer.tomatopay.co.uk/signup\"><strong>Get your free API key developer.tomatopay.co.uk</strong></a></p>\n<h1 id=\"open-banking-apis-status\">Open Banking APIs Status</h1>\n\n<p>Monitor the performance, availability and error rates of Open Banking APIs through a transparent and user-friendly dashboard.</p>\n<p><a href=\"https://www.api.expert/industry/openbankingukproduction/\"><strong>Click here to go see the status page</strong></a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Open Banking APIs Status","slug":"open-banking-apis-status"}],"owner":"13113188","collectionId":"19611731-8354-49d8-be32-1a43d304decf","publishedId":"TVYNXusq","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"000000","highlight":"FA4147"},"publishDate":"2024-12-10T11:54:26.000Z"},"item":[{"name":"Partner APIs","item":[{"name":"Authorisation","item":[{"name":"Create Token","event":[{"listen":"test","script":{"id":"04274b97-51dd-4d56-a4b0-14fc7c0aefe5","exec":["//setting authentication environment variable","var jsonData = pm.response.json();","var token = jsonData.access_token;","var token_type = jsonData.token_type","postman.setEnvironmentVariable(\"Authorization\", token_type+\" \"+token);","",""],"type":"text/javascript"}}],"id":"0122ace2-ac2f-4fbe-8778-3d1cdfa00f4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"text/plain"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}","type":"text"},{"key":"X-Api-Key","value":"{{X-Api-Key}}","type":"text"}],"url":"{{auth_url}}/token","description":"<h2> Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n<th>Type</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Partner ID</td>\n<td>ID of the partner who is authorized to have an app connected to the tomato pay APIs</td>\n<td>Header</td>\n</tr>\n<tr>\n<td>API Key</td>\n<td>A secret key used to authenticate a client</td>\n<td>Header</td>\n</tr>\n</tbody>\n</table>\n</div><p>If you haven't already, you can obtain your API key by signing up <a href=\"https://developer.askfractal.com/signup\">here</a></p>\n<p>tomato pay API uses JWT (JSON web tokens) to authenticate requests to all other endpoints. These tokens expire every 30 minutes. To obtain a JWT, use the API key, and click on your app in the ‘My Apps’ section.  </p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>access_token</td>\n<td>string</td>\n<td>Access token</td>\n</tr>\n<tr>\n<td>expires_in</td>\n<td>string</td>\n<td>Expiry time of the token (in seconds) (Default 30 minutes or 1800 seconds)</td>\n</tr>\n<tr>\n<td>partner_id</td>\n<td>string</td>\n<td>ID of the partner who is authorised to have an app connected to the tomato pay APIs</td>\n</tr>\n<tr>\n<td>token_type</td>\n<td>string</td>\n<td>Type of token (Bearer in this case)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f1592efb-6314-456a-a5e9-e7d8f81acc8f","id":"f1592efb-6314-456a-a5e9-e7d8f81acc8f","name":"Authorisation","type":"folder"}},"urlObject":{"path":["token"],"host":["{{auth_url}}"],"query":[],"variable":[]}},"response":[{"id":"d6430590-2a86-4f2a-b17e-82e46a86ceea","name":"Get Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"","type":"text","value":"","disabled":true}],"body":{"mode":"raw","raw":""},"url":"{{auth_url}}/token"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"424"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 15:27:08 GMT"},{"key":"x-amzn-RequestId","value":"3e784e36-633c-44e2-83cb-7ba00f4fe6ce"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIMX3HJrDoEFc0g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f998dcb-6862fd943e37d45c3520c770"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a59cacde45227666db5b17829b32dd95.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"fZRg6jevlMqeovqmWpK1yj9hhekVDVzV_KrBakB6qlpNCH8BPh3rVA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"accesstoken123\",\n    \"expires_in\": 1800,\n    \"partner_id\": \"partnerid256\",\n    \"token_type\": \"Bearer\"\n}"}],"_postman_id":"0122ace2-ac2f-4fbe-8778-3d1cdfa00f4f"}],"id":"f1592efb-6314-456a-a5e9-e7d8f81acc8f","description":"<h1> Overview </h1>\nTo call any of tomato pay APIs which require authentication, it’s necessary to first request the creation of an access token. Requests to authenticated APIs which do not include a valid access token will be rejected.","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"af107dc1-b5da-466e-8942-dbc9056a403d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d60a6cb4-a45b-4cc9-a79c-49bc3d4d9ce8","type":"text/javascript","exec":[""]}}],"_postman_id":"f1592efb-6314-456a-a5e9-e7d8f81acc8f"},{"name":"Company API","item":[{"name":"Create Bulk Companies","id":"2f6de4f8-74f8-4f12-9126-374dd05a68e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n  \"values\":[\n      {\n        \"name\": \"Company name\", \n        \"description\": \"Micro SME\", \n        \"website\": \"www.companyname.com\", \n        \"address\":\"London\", \n        \"industry\":\"IT\", \n        \"externalId\": \"19988-7766\", \n        \"crn\": \"14455-345\"\n      },\n      {\n        \"name\": \"Fintech Company\",\n        \"description\": \"SME Fintech\",\n        \"website\": \"askfractal.com\",\n        \"industry\": \"IT\",\n        \"address\": \"Ig2 London, Ilford\",\n        \"externalId\": \"external-12112\",\n        \"crn\": \"crn-1211\"\n      }\n  ]\n}"},"url":"{{base_url}}/company/v2/companies","description":"<p>Create multiple companies and link their financial data to their profile. While creating a company, you can add the following as company details:</p>\n<ul>\n<li>Name</li>\n<li>Description</li>\n<li>Website</li>\n<li>Address</li>\n<li>Industry</li>\n<li>External id</li>\n<li>CRN (Companies house number)</li>\n</ul>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Company name</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>Registered address of the company</td>\n</tr>\n<tr>\n<td>website</td>\n<td>string</td>\n<td>Website (<a href=\"http://www.smewebsite.com\">www.smewebsite.com</a>)</td>\n</tr>\n<tr>\n<td>industry</td>\n<td>string</td>\n<td>Industry name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Company description</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>External ID that a partner may want to use to identify a company</td>\n</tr>\n<tr>\n<td>crn</td>\n<td>string</td>\n<td>Companies house number; specific to companies registered with Companies house in the UK</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Without company name</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid name”}</td>\n</tr>\n<tr>\n<td>Wrong body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid json\"}</td>\n</tr>\n<tr>\n<td>Empty request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid name\"}</td>\n</tr>\n<tr>\n<td>Wrong Partner ID</td>\n<td>403 Access Denied</td>\n<td>{\"error”: “Access denied”}</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f54e9405-ccf6-44ea-bc10-e034628af85a","id":"f54e9405-ccf6-44ea-bc10-e034628af85a","name":"Company API","type":"folder"}},"urlObject":{"path":["company","v2","companies"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"3273e3b6-3e45-4c94-baad-c797f1e0a1b6","name":"Create Bulk Companies","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n  \"values\":[\n      {\n        \"name\": \"Company name\", \n        \"description\": \"Micro SME\", \n        \"website\": \"www.companyname.com\", \n        \"address\":\"London\", \n        \"industry\":\"IT\", \n        \"externalId\": \"19988-7766\", \n        \"crn\": \"14455-345\"\n      },\n      {\n        \"name\": \"Fintech Company\",\n        \"description\": \"SME Fintech\",\n        \"website\": \"askfractal.com\",\n        \"industry\": \"IT\",\n        \"address\": \"Ig2 London, Ilford\",\n        \"externalId\": \"external-12112\",\n        \"crn\": \"crn-1211\"\n      }\n  ]\n}"},"url":"{{base_url}}/company/v2/companies"},"status":"Multi-Status (WebDAV) (RFC 4918)","code":207,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"186"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 14:53:29 GMT"},{"key":"x-amzn-RequestId","value":"bb6a87fa-e7ce-4c98-8c21-44b4cf7555f3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIHcfHOODoEFaqQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9985e9-4aa8e10f1bf2265200a2ae7f"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 78ddfb54ad788c32ecf2935db37685b8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"aNvd9jyD8RXkZNApPuYHGYeKH8e0J7TUakhZcezmyaHq0BSfktmylQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"CompanyID1234\",\n            \"message\": \"Created\",\n            \"status\": 201\n        },\n        {\n            \"id\": \"CompanyID5678\",\n            \"message\": \"Created\",\n            \"status\": 201\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"2f6de4f8-74f8-4f12-9126-374dd05a68e3"},{"name":"Create Single Company","id":"6db28aed-8a65-423e-96d1-9fe8cad98ee3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n\"name\": \"Company name\", \n\"description\": \"Micro SME\", \n\"website\": \"www.companyname.com\", \n\"address\": \"London\", \n\"industry\": \"IT\", \n\"externalId\": \"19988-7766\", \n\"crn\": \"14455-345\"\n}"},"url":"{{base_url}}/company/v2/companies","description":"<p>Create a company to link their financial data to the company. While creating a company, you can add the following as company details:</p>\n<ul>\n<li>Name</li>\n<li>Description</li>\n<li>Website</li>\n<li>Address</li>\n<li>Industry</li>\n<li>External id</li>\n<li>CRN (Companies house number)</li>\n</ul>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Company name</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>Registered address of the company</td>\n</tr>\n<tr>\n<td>website</td>\n<td>string</td>\n<td>Website (<a href=\"http://www.smewebsite.com\">www.smewebsite.com</a>)</td>\n</tr>\n<tr>\n<td>industry</td>\n<td>string</td>\n<td>Industry name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Company description</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>External ID that a partner may want to use to identify a company</td>\n</tr>\n<tr>\n<td>crn</td>\n<td>string</td>\n<td>Companies house number; specific to companies registered with Companies house in the UK</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Without company name</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid name”}</td>\n</tr>\n<tr>\n<td>Wrong body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid JSON\"}</td>\n</tr>\n<tr>\n<td>Empty request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid name\"}</td>\n</tr>\n<tr>\n<td>Wrong Partner ID</td>\n<td>403 Access Denied</td>\n<td>{\"error”: “Access denied”}</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f54e9405-ccf6-44ea-bc10-e034628af85a","id":"f54e9405-ccf6-44ea-bc10-e034628af85a","name":"Company API","type":"folder"}},"urlObject":{"path":["company","v2","companies"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"72182fd1-96e0-4059-8e15-54583b65f079","name":"Create Single Company","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n\"name\": \"Company name\", \n\"description\": \"Micro SME\", \n\"website\": \"www.companyname.com\", \n\"address\": \"London\", \n\"industry\": \"IT\", \n\"externalId\": \"19988-7766\", \n\"crn\": \"14455-345\"\n}"},"url":"{{base_url}}/company/v2/companies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"246"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 15:27:15 GMT"},{"key":"x-amzn-RequestId","value":"97c9230f-97ab-4d09-96cd-8d6b3246b9c8"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIMY3Gb_DoEFjHA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f998dd2-2fd610680b9b76f24c1a5528"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 1e00c42760ff679060e160d93e8831b6.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"CebnlG0IdhgXCyd1tE88lNq-zJI-VTm9nZ3FoWyYwKKnOtnOjgGGfg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"CompanyID12345\",\n    \"name\": \"Company name\",\n    \"description\": \"Micro SME\",\n    \"website\": \"www.companyname.com\",\n    \"industry\": \"IT\",\n    \"address\": \"London\",\n    \"externalId\": \"19988-7766\",\n    \"crn\": \"14455-345\",\n    \"createdAt\": \"2020-10-28T15:27:15.367Z\"\n}"}],"_postman_id":"6db28aed-8a65-423e-96d1-9fe8cad98ee3"},{"name":"Get Companies","event":[{"listen":"test","script":{"id":"0e948567-312c-478d-97da-7e632fb4565c","exec":["//companyId should be unique","pm.test(\"checking for unique companyId \", function () {","    var jsonData = pm.response.json();","    var size = jsonData.results.length;","    for(var i = 0; i < size; i++) {","     var companyIdCheck = jsonData.results[i].id;","   for(var j = i+1; j < size; j++){","         pm.expect(jsonData.results[j].id).not.to.eql(companyIdCheck);","   }"," }","});","","//validating response with empty string crn","pm.test(\"Validating response with empty string crn\", function(){","   var jsonData = pm.response.json();","   var size = jsonData.results.length;","      for(var i=0; i<size; i++){","         pm.expect(jsonData.results[i].crn).to.be.eql('');","      }   ","      ","});"],"type":"text/javascript"}}],"id":"90508006-0875-44e1-8373-2ab09269baca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":"{{base_url}}/company/v2/companies","description":"<p>The 'Get Companies' endpoint will return a list of all the companies that you have created.</p>\n<p>The following details will be returned for the company:</p>\n<ul>\n<li>Company id</li>\n<li>Name of the company</li>\n<li>Date of creation</li>\n<li>Registered address</li>\n<li>Website</li>\n<li>Industry</li>\n<li>External ID</li>\n<li>Companies house number (CRN)</li>\n</ul>\n<p>The companies can be queried by external ID and/or CRN.</p>\n<h2> Query Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>External ID that a partner may want to use to identify a company</td>\n</tr>\n<tr>\n<td>crn</td>\n<td>string</td>\n<td>Companies house number; specific to companies registered with Companies house in the UK</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the company</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Description of the company</td>\n</tr>\n<tr>\n<td>website</td>\n<td>string</td>\n<td>Company website</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>Address of the company</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>string</td>\n<td>Date of creation of the company</td>\n</tr>\n<tr>\n<td>industry</td>\n<td>string</td>\n<td>Industry name</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>External ID that a partner may want to use to identify a company</td>\n</tr>\n<tr>\n<td>crn</td>\n<td>string</td>\n<td>Companies house number; specific to companies registered with Companies house in the UK</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f54e9405-ccf6-44ea-bc10-e034628af85a","id":"f54e9405-ccf6-44ea-bc10-e034628af85a","name":"Company API","type":"folder"}},"urlObject":{"path":["company","v2","companies"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""},{"disabled":true,"description":{"content":"<p>External ID that a partner may want to use to identify a company</p>\n","type":"text/plain"},"key":"externalId","value":""},{"disabled":true,"description":{"content":"<p>Companies house number; specific to companies registered with Companies house in the UK</p>\n","type":"text/plain"},"key":"crn","value":""}],"variable":[]}},"response":[{"id":"45d6d545-279c-4847-a24c-9b2e76cc4996","name":"Get Companies","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":{"raw":"{{base_url}}/company/v2/companies","host":["{{base_url}}"],"path":["company","v2","companies"],"query":[{"key":"pageId","value":"","description":"Page offset of results","disabled":true},{"key":"externalId","value":"","description":"External ID that a partner may want to use to identify a company","disabled":true},{"key":"crn","value":"","description":"Companies house number; specific to companies registered with Companies house in the UK","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"117557"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 14:43:06 GMT"},{"key":"x-amzn-RequestId","value":"188eec3e-5e5d-4192-9b51-1f3f1d3993a5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIF6_HCSDoEFsMg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f998379-58807acf7966271827c7e25a"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 78ddfb54ad788c32ecf2935db37685b8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"8ZF9J1pUhOobIk5hEu17W2gEemSw6n3h_nDy-lT9W3V5DGGI5Xxb6Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"CompanyID1234\",\n            \"name\": \"Company name\",\n            \"description\": \"Micro SME\",\n            \"website\": \"www.companyname.com\",\n            \"industry\": \"IT\",\n            \"address\": \"London\",\n            \"externalId\": \"19988-7766\",\n            \"crn\": \"14455-345\",\n            \"createdAt\": \"2020-10-21T12:55:09.655Z\"\n        }\n    ],\n   \"links\": {}\n}"}],"_postman_id":"90508006-0875-44e1-8373-2ab09269baca"},{"name":"Get Company (by id)","event":[{"listen":"test","script":{"id":"c1eeac69-3ec2-4852-bffe-cd438a0832d9","exec":[""],"type":"text/javascript"}}],"id":"e4942d08-43a3-4ecc-a0dc-78f701535199","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":"{{base_url}}/company/v2/companies/:companyId","description":"<p>The ‘Get company’ endpoint will return company details for a specific company.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>companyId</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the company</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Description of the company</td>\n</tr>\n<tr>\n<td>website</td>\n<td>string</td>\n<td>Company website</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>Address of the company</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>string</td>\n<td>Date of creation of the company</td>\n</tr>\n<tr>\n<td>industry</td>\n<td>string</td>\n<td>Industry name</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>External ID that a partner may want to use to identify a company</td>\n</tr>\n<tr>\n<td>crn</td>\n<td>string</td>\n<td>Companies house number; specific to companies registered with Companies house in the UK</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid company id</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f54e9405-ccf6-44ea-bc10-e034628af85a","id":"f54e9405-ccf6-44ea-bc10-e034628af85a","name":"Company API","type":"folder"}},"urlObject":{"path":["company","v2","companies",":companyId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"68da19ff-df71-4ac4-a3d3-aba7adb11e03","description":{"content":"<p>Unique identifier for the company</p>\n","type":"text/plain"},"type":"string","value":"","key":"companyId"}]}},"response":[{"id":"641daca2-f1a6-4389-8474-3883fa3387fe","name":"Get Company (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":{"raw":"{{base_url}}/company/v2/companies/:companyId","host":["{{base_url}}"],"path":["company","v2","companies",":companyId"],"variable":[{"key":"companyId","value":"CompanyID9890","description":"Unique identifer for the company"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"243"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 15:38:53 GMT"},{"key":"x-amzn-RequestId","value":"3e3af632-403c-47d9-8f1b-0bd944bc7f7d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIOGKFItjoEFUyA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f99908d-1791f134633ea6471e149efd"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 afd7214ed49113ddaef00931a8295535.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"jOSZxgBcPL558tNXPrvfinNmwJ83rgTl-Rw4_5A4oK2L-XAN1SIT9A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"CompanyID9890\",\n    \"name\": \"Company name\",\n    \"description\": \"Micro SME\",\n    \"website\": \"www.companyname.com\",\n    \"industry\": \"IT\",\n    \"address\": \"London\",\n    \"externalId\": \"19988-7766\",\n    \"crn\": \"14455-345\",\n    \"createdAt\": \"2020-10-28T15:27:15.367Z\"\n}"}],"_postman_id":"e4942d08-43a3-4ecc-a0dc-78f701535199"},{"name":"Update Company (by id)","event":[{"listen":"test","script":{"id":"4e518867-5926-46dd-b7ec-6038a9149417","exec":[""],"type":"text/javascript"}}],"id":"f8838b9c-ed79-40ff-b02d-5a8f8e28b53a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"externalId\":\"3456\"\n}"},"url":"{{base_url}}/company/v2/companies/:companyId","description":"<p>The ‘Update company’ endpoint will let you update a specific company’s details when the company id is passed as a parameter.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>companyId</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Company name</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>Registered address of the company</td>\n</tr>\n<tr>\n<td>website</td>\n<td>string</td>\n<td>Website (<a href=\"http://www.smewebsite.com\">www.smewebsite.com</a>)</td>\n</tr>\n<tr>\n<td>industry</td>\n<td>string</td>\n<td>Industry name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Company description</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>External ID that a partner may want to use to identify a company</td>\n</tr>\n<tr>\n<td>crn</td>\n<td>string</td>\n<td>Companies house number; specific to companies registered with Companies house in the UK</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n204 No content\n<br />\n\n<h2> Error messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Without company id</td>\n<td>403 Forbidden</td>\n<td>{“error”: “Invalid request”, “hint”: “Unsupported method or endpoint”}</td>\n</tr>\n<tr>\n<td>Invalid company id</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f54e9405-ccf6-44ea-bc10-e034628af85a","id":"f54e9405-ccf6-44ea-bc10-e034628af85a","name":"Company API","type":"folder"}},"urlObject":{"path":["company","v2","companies",":companyId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"e3fb6d7c-d045-41f5-9681-015b7cf37876","description":{"content":"<p>Unique identifier for the company</p>\n","type":"text/plain"},"type":"string","value":"","key":"companyId"}]}},"response":[{"id":"e52a2969-6196-400a-8ec1-95fb87e8c28c","name":"Update Company (by id)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"externalId\":\"3456\"\n}"},"url":{"raw":"{{base_url}}/company/v2/companies/:companyId","host":["{{base_url}}"],"path":["company","v2","companies",":companyId"],"variable":[{"key":"companyId","value":"CompanyID9890","description":"Unique identifer for the company"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 15:40:18 GMT"},{"key":"x-amzn-RequestId","value":"9037936c-efc6-4963-92b2-7584dc0a75ea"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIOTaH9wDoEF0Ag="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9990e2-512e6d2553679f1475bacecf"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 afd7214ed49113ddaef00931a8295535.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"0Ww4BFjDrfXyTJ0ClOagTn3wE3aU9sX14RxvBcQzhCpxJA_EphA4hg=="}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"f8838b9c-ed79-40ff-b02d-5a8f8e28b53a"},{"name":"Delete Company (by id)","id":"5bc2032b-8418-4f90-a391-195679a948a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":"{{base_url}}/company/v2/companies/:companyId","description":"<p>The ‘Delete company’ endpoint will let you delete a company when the company id has passed as a parameter.</p>\n<p>Deleting the company will also delete all the data that has been associated with the company. The data includes bank accounts, bank transactions, forecasts etc.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>companyId</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n202 Accepted\n<br />\n\n<h2> Error messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Without company id</td>\n<td>403 Forbidden</td>\n<td>{“error”: “Invalid request”, “hint”: “Unsupported method or endpoint”}</td>\n</tr>\n<tr>\n<td>Invalid company id</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f54e9405-ccf6-44ea-bc10-e034628af85a","id":"f54e9405-ccf6-44ea-bc10-e034628af85a","name":"Company API","type":"folder"}},"urlObject":{"path":["company","v2","companies",":companyId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"b6723069-0ce3-45f6-bc68-c7064c0d1e98","description":{"content":"<p>Unique identifier for the company</p>\n","type":"text/plain"},"type":"string","value":"","key":"companyId"}]}},"response":[{"id":"52ccb307-db24-4cc1-be96-799de9fd2035","name":"Delete Company (by id)","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":{"raw":"{{base_url}}/company/v2/companies/:companyId","host":["{{base_url}}"],"path":["company","v2","companies",":companyId"],"variable":[{"key":"companyId","value":"CompanyID9890","description":"Unique identifer for the company"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 15:40:56 GMT"},{"key":"x-amzn-RequestId","value":"80a5f711-55a5-4711-96a0-dd1576e25cd7"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIOZXEbkjoEFkmw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f999108-0880ec3960af92263c64e417"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 afd7214ed49113ddaef00931a8295535.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"OuWYNVD0cRHQyvS6RCYVb1gxvk2TmCA39x3olR0LNuismigz9eaITg=="}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"5bc2032b-8418-4f90-a391-195679a948a9"}],"id":"f54e9405-ccf6-44ea-bc10-e034628af85a","description":"<h1> Overview </h1>\n\n<p>tomato pay Company API lets you create and retrieve companies. A company must be created before calling any other APIs as all financial data of an SME will be linked to the company. </p>\n<p>Following endpoints for Company are supported:</p>\n<ul>\n<li> Create single company </li>\n<li> Create bulk companies </li>\n<li> Get companies </li>\n<li> Get company by id </li>\n<li> Update company </li>\n<li> Delete company </li>\n</ul>\n<br />\n<br />\n<em>\nLast updated: 14th October 2020\n<ul>\n<li> Added Update Company endpoint </li> \n<li> Companies can be queried by External ID and/or CRN </li> \n<li> Added support for creating single company and multiple companies </li> \n</ul>\n</em>","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e7b1ee32-1f50-491e-b385-2f6ba5bb5f77","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c25c7b53-1ae6-449a-9d23-067a39509914","type":"text/javascript","exec":[""]}}],"_postman_id":"f54e9405-ccf6-44ea-bc10-e034628af85a"},{"name":"Bank Data API","item":[{"name":"Consents","item":[{"name":"Retrieve Banks","id":"e09cc91a-1026-49a7-8447-83719f8d7865","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":"{{base_url}}/banking/v2/banks","description":"<p>Retrieve a list of all available banks with their corresponding bank ids and logos. Bank id is required to create an auth for a bank, or to retrieve accounts, balances, and transactions for a particular bank.</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the bank</td>\n</tr>\n<tr>\n<td>logo</td>\n<td>string (link for logo in svg format)</td>\n<td>Link with bank's logo</td>\n</tr>\n<tr>\n<td>pngLogo</td>\n<td>string</td>\n<td>Bank logo URL</td>\n</tr>\n<tr>\n<td>rdfName</td>\n<td>string</td>\n<td>Bank name</td>\n</tr>\n<tr>\n<td>aisStatus</td>\n<td>object</td>\n<td>Status of Account information services (i.e. downloading accounts, balances, transactions etc.) consent</td>\n</tr>\n<tr>\n<td>aisStatus-&gt;status</td>\n<td>string</td>\n<td>status {Up, Down}</td>\n</tr>\n<tr>\n<td>aisStatus-&gt;lastTested</td>\n<td>DateTime</td>\n<td>Last time when AIS connection was tested</td>\n</tr>\n<tr>\n<td>aisStatus-&gt;lastSuccessful</td>\n<td>DateTime</td>\n<td>Last time when AIS connection was successful</td>\n</tr>\n<tr>\n<td>pisStatus</td>\n<td>object</td>\n<td>Status of Payment information services consent</td>\n</tr>\n<tr>\n<td>pisStatus-&gt;status</td>\n<td>string</td>\n<td>status {Up, Down}</td>\n</tr>\n<tr>\n<td>pisStatus-&gt;lastTested</td>\n<td>DateTime</td>\n<td>Last time when PIS connection was tested</td>\n</tr>\n<tr>\n<td>pisStatus-&gt;lastSuccessful</td>\n<td>DateTime</td>\n<td>Last time when PIS connection was successful</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Query Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>{Account, Payment}</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"85e4af31-0a92-4e73-9a75-42d014d2d481","id":"85e4af31-0a92-4e73-9a75-42d014d2d481","name":"Consents","type":"folder"}},"urlObject":{"path":["banking","v2","banks"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":null}],"variable":[]}},"response":[{"id":"a9e0d7e2-708f-42ea-ae15-72cf6a913cce","name":"Retrieve Banks","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}","type":"text"},{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"{{base_url}}/banking/v2/banks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"887445"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Oct 2020 09:32:06 GMT"},{"key":"x-amzn-RequestId","value":"80baf2f9-4026-4edd-9957-f57e30659bbf"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VEFbYE4DDoEF6jA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f97e915-19ff5195589c2c4756ad1b60"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 fe4c2207fc59dd7aa34d5b9c9e7bef06.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"ZeYjYoZns_fsu0giIcfqD5yc3VMFReT5N62VNgyPeU1IUYUSSa2tFQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n        \"id\": 31,\n        \"name\": \"Monzo\",\n        \"logo\": \"bank logo\",\n        \"pnglogo\": \"https://bank-logos.tomatopay.co.uk/icon_Monzo.png\",\n        \"rdfName\": \"MONZO\",\n        \"aisStatus\": {\n            \"status\": \"Up\",\n            \"lastTested\": \"2021-04-12T08:39:15.590Z\",\n            \"lastSuccessful\": \"2021-04-12T08:39:15.590Z\"\n        },\n        \"pisStatus\": {\n            \"status\": \"Up\",\n            \"lastTested\": \"2021-04-12T09:06:10.868Z\",\n            \"lastSuccessful\": \"2021-04-12T09:06:13.983Z\"\n        }\n    },\n    {\n        \"id\": 7,\n        \"name\": \"Natwest\",\n        \"logo\": \"bank logo\",\n        \"pnglogo\": \"https://bank-logos.tomatopay.co.uk/icon_Natwest.png\",\n        \"rdfName\": \"Natwest\",\n        \"aisStatus\": {\n            \"status\": \"Up\",\n            \"lastTested\": \"2021-04-12T08:39:15.590Z\",\n            \"lastSuccessful\": \"2021-04-12T08:39:15.590Z\"\n        },\n        \"pisStatus\": {\n            \"status\": \"Up\",\n            \"lastTested\": \"2021-04-12T09:06:10.868Z\",\n            \"lastSuccessful\": \"2021-04-12T09:06:13.983Z\"\n        }\n    }\n],\n  \"links\": {}\n}\n"}],"_postman_id":"e09cc91a-1026-49a7-8447-83719f8d7865"},{"name":"Create Bank Consent","id":"9b156e2f-aba6-40d9-8677-30a0ec5abc36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"redirect\": \"redirect_URL\",\n    \"permissions\": \"READALLBANKDATA\",\n    \"bankId\": \"6\"\n}"},"url":"{{base_url}}/banking/v2/consents","description":"<p>Before the user can sign in, a bank consent needs to be created in order to get the consent id and the authorisation date. By default, the consent lasts for 90 days as per Open Banking regulations. After 90 days, consent will have to be requested again.</p>\n<p>By default, a bank consent will be created to request all bank data from the user. If you want to request specific data, you can specify that in permissions.</p>\n<p>Calling this endpoint will return a signInUrl for the user's bank, and a unique consentId that must be used in the \"Put bank consent\" request.</p>\n<p>On successful authentication, a code, id_token, and state will be returned along with the bankId.</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>redirect</td>\n<td>string (link)</td>\n<td>URL to redirect to after the bank account is added</td>\n</tr>\n<tr>\n<td>permissions</td>\n<td>string</td>\n<td>{READALLBANKDATA (download all bank data), READACCOUNTSDETAIL (download account details only)}</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>Temporary code to be exchanged for access token with the bank</td>\n</tr>\n<tr>\n<td>id_token</td>\n<td>string</td>\n<td>Base64 encoded JSON for verifying state and token’s validity</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>Base64 encoded JSON containing information about the original request to persist the state throughout the user journey</td>\n</tr>\n<tr>\n<td>state-&gt;nonce</td>\n<td>string</td>\n<td>String value used to associate a client session with an ID Token, and to mitigate replay attacks (for internal use)</td>\n</tr>\n<tr>\n<td>state-&gt;reRed</td>\n<td>string</td>\n<td>Redirect URL</td>\n</tr>\n<tr>\n<td>state-&gt;accReq</td>\n<td>string</td>\n<td>tomato pay consentId</td>\n</tr>\n<tr>\n<td>state-&gt;bId</td>\n<td>integer</td>\n<td>bankId (Unique identifier for the bank)</td>\n</tr>\n<tr>\n<td>state-&gt;consentId</td>\n<td>string</td>\n<td>bank consentId</td>\n</tr>\n</tbody>\n</table>\n</div><p>If a permission is not provided, then READALLBANKDATA permission will be requested by default.</p>\n<h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Missing redirect</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid redirect”}</td>\n</tr>\n<tr>\n<td>Invalid redirect</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid redirect”}</td>\n</tr>\n<tr>\n<td>Invalid bankId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Bank error</td>\n<td>502 Bad Gateway</td>\n<td>{“error”: “Bank error”}</td>\n</tr>\n<tr>\n<td>Server error</td>\n<td>500 Internal server error</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"85e4af31-0a92-4e73-9a75-42d014d2d481","id":"85e4af31-0a92-4e73-9a75-42d014d2d481","name":"Consents","type":"folder"}},"urlObject":{"path":["banking","v2","consents"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"671a4115-f113-47c4-a06f-f92c68d110a0","name":"Create Bank Consent","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"redirect\": \"redirect URL\",\n    \"permissions\": \"ReadAllBankData\",\n    \"bankId\": \"6\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/banking/v2/consents"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2129"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 18:06:41 GMT"},{"key":"x-amzn-RequestId","value":"f8ce9c06-9814-4aba-9c07-308b5bf4f4ef"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIjvlHo8DoEF1wQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f99b330-24d576b843005fa535190bc5"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8c4a64cf3c62b5095bb752f800deb115.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"lyxE3mxR25ouTRJIQpNNbcclhQHG-0UvawWjr1hXeXDqa8E6Tr8ETA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"signInUrl\": \"Bank's signInUrl\",\n    \"consentId\": \"ConsentID123\",\n    \"bankId\": 6,\n    \"permissions\": \"ReadAllBankData\"\n}"}],"_postman_id":"9b156e2f-aba6-40d9-8677-30a0ec5abc36"},{"name":"Retrieve Bank Consents","event":[{"listen":"test","script":{"id":"eec73eef-854f-443c-92ea-ae55cdfce55a","exec":[""],"type":"text/javascript"}}],"id":"f9e0c6cf-e0e1-44c8-9420-b9e52b9dbcec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"X-Api-Key","value":"{{X-Api-Key}}","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}","type":"text"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"url":"{{base_url}}/banking/v2/consents","description":"<p>Bank consents can be retrieved by filtering by bankId. This filter can be used in combination with companyId to search your application users' consents.</p>\n<p>The consent response will include the date of authorisation and the status.</p>\n<h2> Query parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>companyId</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n<tr>\n<td>permissions</td>\n<td>string</td>\n<td>{READALLBANKDATA (download all bank data), READACCOUNTSDETAIL (download account details only)}</td>\n</tr>\n<tr>\n<td>expiryDate</td>\n<td>datetime</td>\n<td>Date when the consent expires</td>\n</tr>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique consent id returned by the bank</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique id for the bank</td>\n</tr>\n<tr>\n<td>authorisedDate</td>\n<td>datetime</td>\n<td>Date when authorisation was provided by the user</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Status of consent {Authorised, AwaitingAuthorisation, Rejected}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid bankId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"85e4af31-0a92-4e73-9a75-42d014d2d481","id":"85e4af31-0a92-4e73-9a75-42d014d2d481","name":"Consents","type":"folder"}},"urlObject":{"path":["banking","v2","consents"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""}],"variable":[]}},"response":[{"id":"3bc59e59-79be-4563-a37a-96ea48c92f90","name":"Retrieve Bank Consents","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"X-Api-Key","value":"{{X-Api-Key}}","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}","type":"text"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"url":{"raw":"{{base_url}}/banking/v2/consents","host":["{{base_url}}"],"path":["banking","v2","consents"],"query":[{"key":"pageId","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1804"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 18:39:45 GMT"},{"key":"x-amzn-RequestId","value":"e80dfa0b-f398-48f9-ab8e-a1424d4206bf"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIolpH11DoEF8RQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f99baf0-09f8b1022eb608ec2c69a4c5"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0bf3f0b7038d55ea4f178432aa6ddc53.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"smjEnHl4Z3sXOOyshaVzDlP0YZbHB8EKAAFfG4YqZSBYO3_btciieQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"companyId\": \"CompanyID1234\",\n            \"permissions\": \"READALLBANKDATA\",\n            \"consentId\": \"ConsentID12\",\n            \"bankId\": 6,\n            \"status\": \"AwaitingAuthorisation\"\n        },\n        {\n            \"companyId\": \"CompanyID5678\",\n            \"expiryDate\": \"2021-01-06T17:28:14.759Z\",\n            \"permissions\": \"READACCOUNTSDETAIL\",\n            \"consentId\": \"ConsentID34\",\n            \"bankId\": 6,\n            \"authorisedDate\": \"2020-10-08T17:28:14.759Z\",\n            \"status\": \"Authorised\"\n        },\n        {\n            \"companyId\": \"CompanyID9878\",\n            \"permissions\": \"READALLBANKDATA\",\n            \"consentId\": \"ConsentID98\",\n            \"bankId\": 6,\n            \"status\": \"Rejected\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"f9e0c6cf-e0e1-44c8-9420-b9e52b9dbcec"},{"name":"Retrieve Bank Consent (by id)","event":[{"listen":"test","script":{"id":"af8db399-562c-40fa-8a95-ba6f23dad0e2","exec":[""],"type":"text/javascript"}}],"id":"9906a74a-e19d-4a3d-9d0a-a0fcba433f8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"X-Api-Key","value":"{{X-Api-Key}}","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}","type":"text"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"url":"{{base_url}}/banking/v2/consents/:consentId","description":"<p>Bank consents can be retrieved by filtering by bankId. This filter can be used in combination with companyId to search your application users' consents.</p>\n<p>The consent response will include the date of authorisation and the status.</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>companyId</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n<tr>\n<td>permissions</td>\n<td>string</td>\n<td>{READALLBANKDATA (download all bank data), READACCOUNTSDETAIL (download account details only)}</td>\n</tr>\n<tr>\n<td>expiryDate</td>\n<td>datetime</td>\n<td>Date when the consent expires</td>\n</tr>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique consent id returned by the bank</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique id for the bank</td>\n</tr>\n<tr>\n<td>authorisedDate</td>\n<td>datetime</td>\n<td>Date when authorisation was provided by the user</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Status of consent {Authorised, AwaitingAuthorisation, Rejected}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid consentId</td>\n<td>404 Not found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"85e4af31-0a92-4e73-9a75-42d014d2d481","id":"85e4af31-0a92-4e73-9a75-42d014d2d481","name":"Consents","type":"folder"}},"urlObject":{"path":["banking","v2","consents",":consentId"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""}],"variable":[{"type":"any","value":"","key":"consentId"}]}},"response":[{"id":"9cc92f3a-1cbf-4c9b-98ce-ebeaf0fcc94d","name":"Retrieve Bank Consent (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"X-Api-Key","value":"{{X-Api-Key}}","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}","type":"text"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"url":{"raw":"{{base_url}}/banking/v2/consents/:consentId","host":["{{base_url}}"],"path":["banking","v2","consents",":consentId"],"variable":[{"key":"consentId","value":"ConsentID34"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1804"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 18:39:45 GMT"},{"key":"x-amzn-RequestId","value":"e80dfa0b-f398-48f9-ab8e-a1424d4206bf"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIolpH11DoEF8RQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f99baf0-09f8b1022eb608ec2c69a4c5"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0bf3f0b7038d55ea4f178432aa6ddc53.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"smjEnHl4Z3sXOOyshaVzDlP0YZbHB8EKAAFfG4YqZSBYO3_btciieQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"companyId\": \"CompanyID5678\",\n    \"expiryDate\": \"2021-01-06T17:28:14.759Z\",\n    \"permissions\": \"READACCOUNTSDETAIL\",\n    \"consentId\": \"ConsentID34\",\n    \"bankId\": 6,\n    \"authorisedDate\": \"2020-10-08T17:28:14.759Z\",\n    \"status\": \"Authorised\"\n}"}],"_postman_id":"9906a74a-e19d-4a3d-9d0a-a0fcba433f8b"},{"name":"Put Bank Consent (by id)","id":"d7610153-0fea-43ba-a21c-7c8ee1e3ffa7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"bankId\": \"6\",\n    \"code\": \"code\",\n    \"id_token\": \"id_token\",\n    \"state\": \"state\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/banking/v2/consents/:consentId","description":"<p>Before connecting to the bank, authentication needs to be created in order to retrieve the sign in URL (signinUrl) for the bank. Calling this endpoint adds a bank account for companyId and bankId and redirects to the URL specified.</p>\n<p>Now, your application will need to redirect a user to the signinUrl location for them to sign in through their bank account.</p>\n<p>After the user successfully signs in, they will be redirected back to your redirect field in the initial POST request body, alongside query params in the url including code, id_token, and state.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique consent returned from the bank</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>Temporary code to be exchanged for access token with the bank</td>\n</tr>\n<tr>\n<td>id_token</td>\n<td>string</td>\n<td>Base64 encoded JSON for verifying state and token’s validity</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>Base64 encoded JSON containing information about the original request to persist the state throughout the user journey</td>\n</tr>\n<tr>\n<td>state-&gt;nonce</td>\n<td>string</td>\n<td>String value used to associate a client session with an ID Token, and to mitigate replay attacks (for internal use)</td>\n</tr>\n<tr>\n<td>state-&gt;reRed</td>\n<td>string</td>\n<td>Redirect URL</td>\n</tr>\n<tr>\n<td>state-&gt;accReq</td>\n<td>string</td>\n<td>tomato pay consentId</td>\n</tr>\n<tr>\n<td>state-&gt;bId</td>\n<td>integer</td>\n<td>bankId (Unique identifier for the bank)</td>\n</tr>\n<tr>\n<td>state-&gt;consentId</td>\n<td>string</td>\n<td>bank consentId</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n204 No content\n\n<h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid bankId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid consentId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>No code</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid code”}</td>\n</tr>\n<tr>\n<td>No state</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid state}</td>\n</tr>\n<tr>\n<td>No id_token</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid id_token”}</td>\n</tr>\n<tr>\n<td>Invalid state</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid state”}</td>\n</tr>\n<tr>\n<td>consentId is not in AwaitingAuthorisation status</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid Status”}</td>\n</tr>\n<tr>\n<td>Invalid id_token</td>\n<td>400 Bad Request</td>\n<td></td>\n</tr>\n<tr>\n<td>Bank errors</td>\n<td>502 Bad Gateway</td>\n<td>{“error”: “Bank error”}</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"85e4af31-0a92-4e73-9a75-42d014d2d481","id":"85e4af31-0a92-4e73-9a75-42d014d2d481","name":"Consents","type":"folder"}},"urlObject":{"path":["banking","v2","consents",":consentId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"459e9267-f75a-4513-b2a5-b6c3252afa5a","description":{"content":"<p>Unique identifier for consent</p>\n","type":"text/plain"},"type":"string","value":"","key":"consentId"}]}},"response":[{"id":"eb5423bd-9faa-4712-8867-26ea4b2eaea1","name":"Put Bank Consent","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"bankId\": \"6\",\n    \"code\": \"code\",\n    \"id_token\": \"id_token\",\n    \"state\": \"state\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/banking/v2/consents/:consentId","host":["{{base_url}}"],"path":["banking","v2","consents",":consentId"],"variable":[{"key":"consentId","value":"consentId1234","description":"Unique identifier for the bank consent"}]}},"status":"No content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"53"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 18:32:24 GMT"},{"key":"x-amzn-RequestId","value":"cb44d531-a070-4749-bf1a-077c1fc18c3d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIngxFJXDoEFdtw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f99b938-40343cb5672a6a6773397f79"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 e46d5e94093ff4a4a8b6b4e0d2227693.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"nQf69NfUE2HfNVrzKUeLowNzfpKw1IBumAnpIxDqEc2LaICRpfSGhA=="}],"cookie":[],"responseTime":null,"body":""}],"variable":[{"id":"459e9267-f75a-4513-b2a5-b6c3252afa5a","key":"consentId","value":"","type":"string","description":"Unique identifier for consent"}],"_postman_id":"d7610153-0fea-43ba-a21c-7c8ee1e3ffa7"},{"name":"Delete Bank Consent (by id)","id":"114be4ba-78f0-4ea2-802d-8c7bafd111c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/consents/:consentId","description":"<p>Delete consent to a bank account</p>\n<p>Deleting a user’s consent will also delete the tokens created through the user’s authorisation. To execute further requests requiring consent, you will need to request authorisation again.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique consent returned from the bank</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n202 Accepted\n\n<h2> Error messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid consentId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"85e4af31-0a92-4e73-9a75-42d014d2d481","id":"85e4af31-0a92-4e73-9a75-42d014d2d481","name":"Consents","type":"folder"}},"urlObject":{"path":["banking","v2","consents",":consentId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"b7c73e4e-2999-4bba-a8cf-0ff3b59ce6da","description":{"content":"<p>Unique identifier for consent</p>\n","type":"text/plain"},"type":"string","value":"","key":"consentId"}]}},"response":[{"id":"c615e904-a4a6-4121-8d1b-742ea254538d","name":"Delete Bank Consent (by id)","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/consents/:consentId","host":["{{base_url}}"],"path":["banking","v2","consents",":consentId"],"variable":[{"key":"consentId","value":"consentId678","description":"Unique identifier for the bank consent"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 28 Oct 2020 18:55:07 GMT"},{"key":"x-amzn-RequestId","value":"6640b848-9ed0-450c-8a6b-91ee274d7439"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VIq1uGfVjoEFUaw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f99be8a-6e7df06805e3d18c7c5a7320"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 3f2df5c7fd7d1f93fcc5a6422a7204f0.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"mUx5ehxXzSyQFuscOjGlmPMAg8NlgkqQj6vOtFZlnIfgVU4CRXWdWA=="}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"114be4ba-78f0-4ea2-802d-8c7bafd111c3"}],"id":"85e4af31-0a92-4e73-9a75-42d014d2d481","description":"<p>Before the user can sign in, a bank consent needs to be created. Creating a bank consent will generate a sign-in URL so that the user can authenticate and provide the consent. By default, the consent lasts for 90 days as per Open Banking regulations. After 90 days, consent will have to be requested again.</p>\n<p>By default, a bank consent will be created to request all bank data from the user. If you want to request specific data, you can specify that in permissions.</p>\n<p>Your application will need to redirect a user to the signinUrl location for them to sign in on through their bank account.</p>\n<p>After the user successfully signs in, you will be redirected back to your redirect URL.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"1a422d6c-ce03-4cad-aaba-76bab4072682","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c951dca5-c20f-4989-b2b8-b09634400529","type":"text/javascript","exec":[""]}}],"_postman_id":"85e4af31-0a92-4e73-9a75-42d014d2d481"},{"name":"Bank Data","item":[{"name":"Retrieve Bank Accounts","event":[{"listen":"test","script":{"id":"c6b05c4e-334e-44d8-9d44-77314e723882","exec":[""],"type":"text/javascript"}}],"id":"2758297c-b296-4103-ac38-b1b1b7bdd03c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/accounts","description":"<p>This endpoint can be used to retrieve bank accounts for a business (using the bank id). The endpoint will return all the banks that a business has connected.</p>\n<p>Bank Accounts can be filtered by providing a bankId</p>\n<p><em>April 2021: Updated this endpoint and added consentId to the response</em></p>\n<h2> Query Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the account</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique identifier for the consent</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>nickname</td>\n<td>string</td>\n<td>Nickname</td>\n</tr>\n<tr>\n<td>account</td>\n<td>JSON object</td>\n<td>Account information</td>\n</tr>\n<tr>\n<td>account -&gt; schemename</td>\n<td>string</td>\n<td>IBAN or Account and sort code</td>\n</tr>\n<tr>\n<td>account -&gt; identification</td>\n<td>string</td>\n<td>Unique id per bank account</td>\n</tr>\n<tr>\n<td>account -&gt; name</td>\n<td>string</td>\n<td>Account name</td>\n</tr>\n<tr>\n<td>account -&gt; secondaryIdentification</td>\n<td>string</td>\n<td>Any optional extra information about account</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {MANUALIMPORT, OPENBANKING}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td>{ \"error\": \"Missing/Invalid pageId” }</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f9aae903-627f-4406-bb12-29d6794651e7","id":"f9aae903-627f-4406-bb12-29d6794651e7","name":"Bank Data","type":"folder"}},"urlObject":{"path":["banking","v2","accounts"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank</p>\n","type":"text/plain"},"key":"bankId","value":""}],"variable":[]}},"response":[{"id":"c597dce9-0585-455c-ae80-afc9161cf104","name":"Retrieve Bank Accounts","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/accounts","host":["{{base_url}}"],"path":["banking","v2","accounts"],"query":[{"key":"pageId","value":"","description":"Page offset of results","disabled":true},{"key":"bankId","value":"","description":"Unique identifier for the bank","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"606"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 29 Oct 2020 00:14:24 GMT"},{"key":"x-amzn-RequestId","value":"b9b87b12-b8c5-4a1e-b652-79aaee2885af"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VJZm2EV0DoEFkMA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9a095e-7a1c8dd132146d0d43e9716f"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 10131483569b12d46be11abd6f162905.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"0vjsPCr9h1_6dIpmmIggpyGSEcvIn8vG5Ffns-rGlwv61-7FWqwRBw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"accountId1234\",\n            \"consentId\": \"consentId5324\",\n            \"bankId\": 6,\n            \"currency\": \"GBP\",\n            \"nickname\": \"Business Account\",\n            \"account\": [\n                {\n                    \"schemeName\": \"IBAN\",\n                    \"identification\": \"GBBANKIDEN1234\",\n                    \"name\": \"Debit Account\",\n                    \"secondaryIdentification\": \"Merrchant\"\n                }\n            ],\n            \"externalId\": \"extenalid123\",\n            \"source\": \"MANUALIMPORT\"\n        },\n        {\n            \"id\": \"accountId5678\",\n            \"consentId\": \"consentId1324\",\n            \"currency\": \"GBP\",\n            \"nickname\": \"Debit Account - NatWest - Demo\",\n            \"account\": [\n                {\n                    \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n                    \"identification\": \"5000004001234\",\n                    \"name\": \"Debit Account - NatWest - Demo\",\n                    \"secondaryIdentification\": \"\"\n                }\n            ],\n            \"externalId\": \"\",\n            \"source\": \"OPENBANKING\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"2758297c-b296-4103-ac38-b1b1b7bdd03c"},{"name":"Retrieve Bank Balances","event":[{"listen":"test","script":{"id":"2d26f1a0-588a-42fa-ba24-7ccfae29e21b","exec":[""],"type":"text/javascript"}}],"id":"c6232c86-f254-4e48-9df9-543a4bd8d83a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/balances","description":"<p>Cash balances are returned for all the bank accounts that have been connected to the company. </p>\n<p>Balances can be queried by bankId and accountId</p>\n<h2> Query Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n<tr>\n<td>from</td>\n<td>dateTime</td>\n<td>Returns balances posted on or after from date</td>\n</tr>\n<tr>\n<td>to</td>\n<td>dateTime</td>\n<td>Returns balances posted on or before \"to\" date</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Balance status {CLOSINGAVAILABLE, CLOSINGBOOKED, EXPECTED, FORWARDAVAILABLE, INFORMATION, INTERIMAVAILABLE,  NTERIMBOOKED, OPENINGAVAILABLE, OPENINGBOOKED, PREVIOUSLYCLOSEDBOOKED}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Balance Id</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the account</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>date</td>\n<td>datetime</td>\n<td>Balance date</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Balance amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Balance status {CLOSINGAVAILABLE, CLOSINGBOOKED, EXPECTED, FORWARDAVAILABLE, INFORMATION, INTERIMAVAILABLE,  NTERIMBOOKED, OPENINGAVAILABLE, OPENINGBOOKED, PREVIOUSLYCLOSEDBOOKED}</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {MANUALIMPORT, OPENBANKING}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid accountId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f9aae903-627f-4406-bb12-29d6794651e7","id":"f9aae903-627f-4406-bb12-29d6794651e7","name":"Bank Data","type":"folder"}},"urlObject":{"path":["banking","v2","balances"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""},{"disabled":true,"description":{"content":"<p>Returns balances posted on or after \"from\" date</p>\n","type":"text/plain"},"key":"from","value":""},{"disabled":true,"description":{"content":"<p>Returns balances posted on or before \"to\" date</p>\n","type":"text/plain"},"key":"to","value":""},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank</p>\n","type":"text/plain"},"key":"bankId","value":""},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank account</p>\n","type":"text/plain"},"key":"accountId","value":""},{"disabled":true,"description":{"content":"<p>Status of the balance</p>\n","type":"text/plain"},"key":"status","value":""}],"variable":[]}},"response":[{"id":"1985dc51-05b0-4897-b200-03ff7ce12426","name":"Retrieve Bank Balances","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}","type":"text"},{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"url":{"raw":"{{base_url}}/banking/v2/balances","host":["{{base_url}}"],"path":["banking","v2","balances"],"query":[{"key":"pageId","value":"","description":"Page offset of results","disabled":true},{"key":"from","value":"","description":"Returns balances posted on or after \"from\" date","disabled":true},{"key":"to","value":"","description":"Returns balances posted on or before \"to\" date","disabled":true},{"key":"bankId","value":"","description":"Unique identifier for the bank","disabled":true},{"key":"accountId","value":"","description":"Unique identifier for the bank account","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"83568"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 29 Oct 2020 00:45:31 GMT"},{"key":"x-amzn-RequestId","value":"b0489a8e-34ce-4e30-acc0-8ab1ecb3c9d0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VJeKcHjnDoEFwyw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9a10a9-19c6161555cee499335e8b3f"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 9503482155e233e99173b53da4a996ff.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"RMLDXK4qPCpAjTFSEiiGVf-j8cWCrUQ0-FNIIHITcg6OZaMoIWDnUQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"balanceId1234\",\n            \"bankId\": 6,\n            \"accountId\": \"accountId1357\",\n            \"date\": \"2020-10-05T00:00Z\",\n            \"amount\": \"11477.35\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\",\n            \"status\": \"INTERIMBOOKED\",\n            \"externalId\": \"\",\n            \"source\": \"OPENBANKING\"\n        },\n        {\n            \"id\": \"balanceId3456\",\n            \"bankId\": 7,\n            \"accountId\": \"accountId3579\",\n            \"date\": \"2020-10-04T00:00Z\",\n            \"amount\": \"15647.35\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\",\n            \"status\": \"CLOSINGBOOKED\",\n            \"externalId\": \"\",\n            \"source\": \"OPENBANKING\"\n        },\n        {\n            \"id\": \"balanceId9876\",\n            \"bankId\": 809,\n            \"accountId\": \"accountId0087\",\n            \"date\": \"2020-10-03T00:00Z\",\n            \"amount\": \"1477.35\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\",\n            \"status\": \"CLOSINGBOOKED\",\n            \"externalId\": \"\",\n            \"source\": \"MANUALIMPORT\"\n        }\n    ],\n    \"links\": {}\n}\n        "}],"_postman_id":"c6232c86-f254-4e48-9df9-543a4bd8d83a"},{"name":"Retrieve Bank Transactions","event":[{"listen":"test","script":{"id":"c648a1de-2f34-40a4-9c0b-e830d400a52f","exec":[""],"type":"text/javascript"}}],"id":"ed354431-80b0-4574-b3fc-b42dd87fbc78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/transactions","description":"<p>All bank transactions are returned across all connected user accounts. If dates are specified, then only transactions for specific dates are returned.</p>\n<p>Bank transactions can be queried by bankId and accountId.</p>\n<h2> Query Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n<tr>\n<td>from</td>\n<td>dateTime</td>\n<td>Returns transactions posted on or after \"from\" date</td>\n</tr>\n<tr>\n<td>to</td>\n<td>dateTime</td>\n<td>Returns transactions posted on or before \"to\" date</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Status of the transaction { PENDING, CLOSINGBOOKED }</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the account</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>bookingDate</td>\n<td>datetime</td>\n<td>Booking date for the transaction</td>\n</tr>\n<tr>\n<td>valueDate</td>\n<td>datetime</td>\n<td>Value date for the transaction</td>\n</tr>\n<tr>\n<td>transactionCode</td>\n<td>string</td>\n<td>Specifies the transaction family within a domain</td>\n</tr>\n<tr>\n<td>transactionSubCode</td>\n<td>string</td>\n<td>Sub code of the transaction</td>\n</tr>\n<tr>\n<td>proprietaryCode</td>\n<td>string</td>\n<td>Proprietary bank transaction code to identify the underlying transaction</td>\n</tr>\n<tr>\n<td>proprietarySubCode</td>\n<td>string</td>\n<td>Proprietary sub code of the transaction</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Description provided in the transaction</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Transaction currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Transaction amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Transaction status {BOOKED,PENDING}</td>\n</tr>\n<tr>\n<td>merchant</td>\n<td>JSON Object</td>\n<td>Details of the merchant</td>\n</tr>\n<tr>\n<td>merchant-&gt;id</td>\n<td>string</td>\n<td>Unique identifier for the merchant</td>\n</tr>\n<tr>\n<td>merchant-&gt;name</td>\n<td>string</td>\n<td>Name of the merchant</td>\n</tr>\n<tr>\n<td>merchant-&gt;category</td>\n<td>string</td>\n<td>Business category that the merchant belongs to</td>\n</tr>\n<tr>\n<td>merchant-&gt;categoryCode</td>\n<td>integer</td>\n<td>Category Code</td>\n</tr>\n<tr>\n<td>merchant-&gt;addressLine</td>\n<td>string</td>\n<td>Address of the merchant (if available)</td>\n</tr>\n<tr>\n<td>merchant-&gt;source</td>\n<td>string</td>\n<td>Source for how the merchant was identified {MODEL, USER, PROVIDER}</td>\n</tr>\n<tr>\n<td>category</td>\n<td>JSON Object</td>\n<td>Details of the transaction category</td>\n</tr>\n<tr>\n<td>category-&gt;id</td>\n<td>integer</td>\n<td>Unique identifier for the category</td>\n</tr>\n<tr>\n<td>category-&gt;name</td>\n<td>string</td>\n<td>Name of the category</td>\n</tr>\n<tr>\n<td>category-&gt;source</td>\n<td>string</td>\n<td>Source for how the category was identified {MERCHANT, MODEL, USER, PROVIDER}</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {MANUALIMPORT, OPENBANKING}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid accountId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td>{ \"Message\": \"Missing/Invalid pageId” }</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f9aae903-627f-4406-bb12-29d6794651e7","id":"f9aae903-627f-4406-bb12-29d6794651e7","name":"Bank Data","type":"folder"}},"urlObject":{"path":["banking","v2","transactions"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""},{"disabled":true,"description":{"content":"<p>Returns transactions posted on or after \"from\" date</p>\n","type":"text/plain"},"key":"from","value":""},{"disabled":true,"description":{"content":"<p>Returns transactions posted on or before \"to\" date</p>\n","type":"text/plain"},"key":"to","value":""},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank</p>\n","type":"text/plain"},"key":"bankId","value":""},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank account</p>\n","type":"text/plain"},"key":"accountId","value":""},{"disabled":true,"description":{"content":"<p>Status of the transaction (PENDING, CLOSINGBOOKED)</p>\n","type":"text/plain"},"key":"status","value":""}],"variable":[]}},"response":[{"id":"786d45e6-a83a-40cf-9282-ca7afa750481","name":"Retrieve Bank Transactions","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/transactions","host":["{{base_url}}"],"path":["banking","v2","transactions"],"query":[{"key":"pageId","value":"","description":"Page offset of results","disabled":true},{"key":"from","value":"","description":"Returns balances posted on or after \"from\" date","disabled":true},{"key":"to","value":"","description":"Returns balances posted on or before \"to\" date","disabled":true},{"key":"bankId","value":"","description":"Unique identifier for the bank","disabled":true},{"key":"accountId","value":"","description":"Unique identifier for the bank account","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"172855"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Oct 2020 11:53:08 GMT"},{"key":"x-amzn-RequestId","value":"bdc3fc3d-0c5f-41ff-8f41-392a6afce96f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VEaFnFjXjoEFR0Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f980a23-7ac299e75db30fc100dccb94"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 5dcf6621f285f97fa4781de4d191d289.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"9mBG3OBRKalQh4xhQllaQJmOoxLuN7EYMrF8J5Q90sxmfQEYoC_q5Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"transactionId1357\",\n            \"bankId\": 6,\n            \"accountId\": \"accountId5555\",\n            \"bookingDate\": \"2020-10-16T00:00Z\",\n            \"valueDate\": \"2020-10-16T00:00Z\",\n            \"reference\": \"\",\n            \"transactionCode\": \"\",\n            \"transactionSubCode\": \"\",\n            \"proprietaryCode\": \"\",\n            \"proprietarySubCode\": \"\",\n            \"description\": \"Dividends October\",\n            \"amount\": \"2000.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\",\n            \"status\": \"BOOKED\",\n            \"merchant\": {\n                \"id\": \"merchantId579\",\n                \"name\": \"Dividends\",\n                \"categoryCode\": \"\",\n                \"addressLine\": \"\",\n                \"source\": \"BANK\"\n            },\n            \"category\": {\n                \"id\": \"categoryID9876\",\n                \"name\": \"Dividends\",\n                \"source\": \"USER\"\n            },\n            \"externalId\": \"\",\n            \"source\": \"MANUALIMPORT\"\n        },\n        {\n            \"id\": \"transactionId1357\",\n            \"bankId\": 7,\n            \"accountId\": \"accountId1234\",\n            \"bookingDate\": \"2020-10-16T00:00Z\",\n            \"valueDate\": \"2020-10-16T00:00Z\",\n            \"reference\": \"\",\n            \"transactionCode\": \"\",\n            \"transactionSubCode\": \"\",\n            \"proprietaryCode\": \"\",\n            \"proprietarySubCode\": \"\",\n            \"description\": \"HMRC\",\n            \"amount\": \"6200.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\",\n            \"status\": \"BOOKED\",\n            \"merchant\": {\n                \"id\": \"merchantId579\",\n                \"name\": \"HMRC\",\n                \"categoryCode\": \"\",\n                \"addressLine\": \"\",\n                \"source\": \"MODEL\"\n            },\n            \"category\": {\n                \"id\": \"categoryID9876\",\n                \"name\": \"Tax\",\n                \"source\": \"MODEL\"\n            },\n            \"externalId\": \"\",\n            \"source\": \"OPENBANKING\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"ed354431-80b0-4574-b3fc-b42dd87fbc78"},{"name":"Retrieve Parties","event":[{"listen":"test","script":{"id":"9932664a-c39c-4c9f-a05c-507a4d1adf75","exec":[""],"type":"text/javascript"}}],"id":"6bce3b1e-f502-47f7-954b-d9bc78663a64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/parties","description":"<p>This endpoint can be used to retrieve party information.</p>\n<h2> Query Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>partyType</td>\n<td>string</td>\n<td>{Joint, Sole, Delegate}</td>\n</tr>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the party</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the party</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>Email address of the party</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>string</td>\n<td>Phone number of the party</td>\n</tr>\n<tr>\n<td>address</td>\n<td>object</td>\n<td>Address of the party</td>\n</tr>\n<tr>\n<td>address-&gt;addressType</td>\n<td>string</td>\n<td>{Business, Correspondence, Delivery to, Mail to, PO Box, Postal, Residential, Statement}</td>\n</tr>\n<tr>\n<td>address-&gt;address</td>\n<td>string</td>\n<td>Address of the party</td>\n</tr>\n<tr>\n<td>partyType</td>\n<td>string</td>\n<td>{Joint, Sole, Delegate}</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {OPENBANKING}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td>{ \"error\": \"Missing/Invalid pageId” }</td>\n</tr>\n<tr>\n<td>Invalid partyType</td>\n<td>400 Bad Request</td>\n<td>{ \"error\": \"Missing/Invalid partyType” }</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f9aae903-627f-4406-bb12-29d6794651e7","id":"f9aae903-627f-4406-bb12-29d6794651e7","name":"Bank Data","type":"folder"}},"urlObject":{"path":["banking","v2","parties"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank</p>\n","type":"text/plain"},"key":"bankId","value":""},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank acount</p>\n","type":"text/plain"},"key":"accountId","value":null},{"disabled":true,"description":{"content":"<p>Party type {Joint, Sole, Delegate}</p>\n","type":"text/plain"},"key":"partyType","value":null}],"variable":[]}},"response":[{"id":"cca48635-958d-43d0-8f98-e621b11178eb","name":"Retrieve Parties","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/parties","host":["{{base_url}}"],"path":["banking","v2","parties"],"query":[{"key":"pageId","value":"","description":"Page offset of results","disabled":true},{"key":"bankId","value":"","description":"Unique identifier for the bank","disabled":true},{"key":"accountId","value":null,"description":"Unique identifier for the bank account","type":"text","disabled":true},{"key":"partyType","value":null,"description":"Party type {Joint, Sole, Delegate}","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"606"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 29 Oct 2020 00:14:24 GMT"},{"key":"x-amzn-RequestId","value":"b9b87b12-b8c5-4a1e-b652-79aaee2885af"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VJZm2EV0DoEFkMA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9a095e-7a1c8dd132146d0d43e9716f"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 10131483569b12d46be11abd6f162905.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"0vjsPCr9h1_6dIpmmIggpyGSEcvIn8vG5Ffns-rGlwv61-7FWqwRBw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"53f8b527-bb0c-4925-a2b1-8bf6356144ab\",\n            \"bankId\": 23,\n            \"accountId\": \"dec1b653-ba2a-41f0-8915-8a9bb6804d70\",\n            \"name\": \"JULIA RESEARCH LTD\",\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"partyType\": \"\",\n            \"address\": [],\n            \"externalId\": \"7t9xg8rmekakd68o01c97lvcjzmf06nwcf4l\",\n            \"source\": \"OPENBANKING\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"6bce3b1e-f502-47f7-954b-d9bc78663a64"},{"name":"Retrieve Parties (by id)","event":[{"listen":"test","script":{"id":"79e92bda-62cb-41d4-90e6-38ecc488d0cd","exec":[""],"type":"text/javascript"}}],"id":"dc5ab2c1-09e7-4573-992d-0aa039a02438","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/parties/:partyId","description":"<p>This endpoint can be used to retrieve party information by id</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the party</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the party</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>Email address of the party</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>string</td>\n<td>Phone number of the party</td>\n</tr>\n<tr>\n<td>address</td>\n<td>object</td>\n<td>Address of the party</td>\n</tr>\n<tr>\n<td>address-&gt;addressType</td>\n<td>string</td>\n<td>{Business, Correspondence, Delivery to, Mail to, PO Box, Postal, Residential, Statement}</td>\n</tr>\n<tr>\n<td>address-&gt;address</td>\n<td>string</td>\n<td>Address of the party</td>\n</tr>\n<tr>\n<td>partyType</td>\n<td>string</td>\n<td>{Joint, Sole, Delegate}</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {OPENBANKING}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partyId</td>\n<td>404 Not found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f9aae903-627f-4406-bb12-29d6794651e7","id":"f9aae903-627f-4406-bb12-29d6794651e7","name":"Bank Data","type":"folder"}},"urlObject":{"path":["banking","v2","parties",":partyId"],"host":["{{base_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"partyId"}]}},"response":[{"id":"cfe9473e-87c3-4a34-966f-95ca7df2b41d","name":"Retrieve Parties (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/parties/:partyId","host":["{{base_url}}"],"path":["banking","v2","parties",":partyId"],"variable":[{"key":"partyId","value":"53f8b527-bb0c-4925-a2b1-8bf6356144ab","description":"Unique ID for the party"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"606"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 29 Oct 2020 00:14:24 GMT"},{"key":"x-amzn-RequestId","value":"b9b87b12-b8c5-4a1e-b652-79aaee2885af"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VJZm2EV0DoEFkMA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9a095e-7a1c8dd132146d0d43e9716f"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 10131483569b12d46be11abd6f162905.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"0vjsPCr9h1_6dIpmmIggpyGSEcvIn8vG5Ffns-rGlwv61-7FWqwRBw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"53f8b527-bb0c-4925-a2b1-8bf6356144ab\",\n            \"bankId\": 23,\n            \"accountId\": \"dec1b653-ba2a-41f0-8915-8a9bb6804d70\",\n            \"name\": \"JULIA RESEARCH LTD\",\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"partyType\": \"\",\n            \"address\": [],\n            \"externalId\": \"7t9xg8rmekakd68o01c97lvcjzmf06nwcf4l\",\n            \"source\": \"OPENBANKING\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"dc5ab2c1-09e7-4573-992d-0aa039a02438"},{"name":"Retrieve Bank Account (by id)","id":"b6556b0e-9cdb-4199-b372-589715f535a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/accounts/:accountId","description":"<p>This endpoint can be used to retrieve a particular bank account using an account id.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the account</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the account</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique identifier for the consent</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>nickname</td>\n<td>string</td>\n<td>Nickname</td>\n</tr>\n<tr>\n<td>account</td>\n<td>JSON object</td>\n<td>Account information</td>\n</tr>\n<tr>\n<td>account -&gt; schemename</td>\n<td>string</td>\n<td>IBAN or Account and sort code</td>\n</tr>\n<tr>\n<td>account -&gt; identification</td>\n<td>string</td>\n<td>Unique id per bank account</td>\n</tr>\n<tr>\n<td>account -&gt; name</td>\n<td>string</td>\n<td>Account name</td>\n</tr>\n<tr>\n<td>account -&gt; secondaryIdentification</td>\n<td>string</td>\n<td>Any optional extra information about account</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {MANUALIMPORT, OPENBANKING}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid accountId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f9aae903-627f-4406-bb12-29d6794651e7","id":"f9aae903-627f-4406-bb12-29d6794651e7","name":"Bank Data","type":"folder"}},"urlObject":{"path":["banking","v2","accounts",":accountId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"6df5c420-d355-47fc-8470-b3e851c57a45","description":{"content":"<p>Unique identifier for the bank account</p>\n","type":"text/plain"},"type":"string","value":"","key":"accountId"}]}},"response":[{"id":"ce255dd3-b8fe-46b9-8e44-eb83d5be168c","name":"Retrieve Bank Account (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/accounts/:accountId","host":["{{base_url}}"],"path":["banking","v2","accounts",":accountId"],"query":[{"key":"bankId","value":"","type":"text","disabled":true}],"variable":[{"key":"accountId","value":"accountId1234","description":"Unique identifier for the bank account"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"307"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 29 Oct 2020 00:37:38 GMT"},{"key":"x-amzn-RequestId","value":"3f7c8442-987c-49e2-b285-6d0f1cccbb6e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VJdA6HN4joEFrzg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9a0ed2-3228b0f67f6f6ee90bba6e20"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 f2ffdecd9dcbc7aeebcaf05ebb6a0967.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"rwAfF5SqgZH8B-fsCuxEKCHlhBdTmhxa1rpOLm4THqqarR3Zsnzzlw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"accountId1234\",\n    \"bankId\": 6,\n    \"consentId\": \"consentId1324\",\n    \"currency\": \"GBP\",\n    \"nickname\": \"Debit Account - NatWest - Demo\",\n    \"account\": [\n        {\n            \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n            \"identification\": \"5000004001234\",\n            \"name\": \"Debit Account - NatWest - Demo\",\n            \"secondaryIdentification\": \"\"\n        }\n    ],\n    \"externalId\": \"\",\n    \"source\": \"OPENBANKING\"\n}"}],"variable":[{"id":"6df5c420-d355-47fc-8470-b3e851c57a45","key":"accountId","value":"","type":"string","description":"Unique identifier for the bank account"}],"_postman_id":"b6556b0e-9cdb-4199-b372-589715f535a2"},{"name":"Retrieve Bank Balance (by id)","event":[{"listen":"test","script":{"id":"71efa3dc-357d-4d7b-b898-bd78ad69e321","exec":[""],"type":"text/javascript"}}],"id":"4769e60c-9524-4289-a519-9e4191459b83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/balances/:balanceId","description":"<p>This endpoint can be used to retrieve a particular bank balance by providing a balance id.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>balanceId</td>\n<td>string</td>\n<td>Unique identifier for balance</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Balance Id</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the account</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>date</td>\n<td>datetime</td>\n<td>Balance date</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Balance amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Balance status {CLOSINGAVAILABLE, CLOSINGBOOKED, EXPECTED, FORWARDAVAILABLE, INFORMATION, INTERIMAVAILABLE, INTERIMBOOKED, OPENINGAVAILABLE, OPENINGBOOKED, PREVIOUSLYCLOSEDBOOKED}</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {MANUALIMPORT, OPENBANKING}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid balanceId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f9aae903-627f-4406-bb12-29d6794651e7","id":"f9aae903-627f-4406-bb12-29d6794651e7","name":"Bank Data","type":"folder"}},"urlObject":{"path":["banking","v2","balances",":balanceId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"4b7fccf4-b72d-49bf-a3f5-e2386de63c8b","description":{"content":"<p>Unique identifier for the bank balance</p>\n","type":"text/plain"},"type":"string","value":"","key":"balanceId"}]}},"response":[{"id":"7e2109e9-cb99-4672-8b47-cad3ea149167","name":"Retrieve Bank Balance (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/balances/:balanceId","host":["{{base_url}}"],"path":["banking","v2","balances",":balanceId"],"variable":[{"key":"balanceId","value":"balanceId3456","description":"Unique identifier for the balance"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"166"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 29 Oct 2020 01:13:18 GMT"},{"key":"x-amzn-RequestId","value":"6f6598cf-dc1b-44c2-b9b5-938804184b19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VJiPFF2sDoEFfSA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9a172d-552b2cd933a958f74cd33c54"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 18c469438a584a68404b09c7cb7860cf.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"9Vacf_7Ez_4SEysejtSKjs7vc2-4xHeuaW_hwNK0mPLthAH6JZ16mg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"balanceId3456\",\n    \"bankId\": 7,\n    \"accountId\": \"accountId3579\",\n    \"date\": \"2020-10-04T00:00Z\",\n    \"amount\": \"15647.35\",\n    \"currency\": \"GBP\",\n    \"type\": \"CREDIT\",\n    \"status\": \"CLOSINGBOOKED\",\n    \"externalId\": \"\",\n    \"source\": \"OPENBANKING\"\n}"}],"variable":[{"id":"4b7fccf4-b72d-49bf-a3f5-e2386de63c8b","key":"balanceId","value":"","type":"string","description":"Unique identifier for the bank balance"}],"_postman_id":"4769e60c-9524-4289-a519-9e4191459b83"},{"name":"Retrieve Bank Transaction (by id)","event":[{"listen":"test","script":{"id":"5bb0f86a-8914-4cc7-88ed-359410daf24d","exec":[""],"type":"text/javascript"}}],"id":"3aec561f-c713-4eb8-bd36-5b62edef9278","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/transactions/:transactionId","description":"<p>This endpoint can be used to retrieve a particular bank transaction using a transaction id.</p>\n<p>All bank transactions are returned for all the accounts that the user has connected. If dates are specified, then only transactions for specific dates are downloaded. </p>\n<p>Bank transactions can be queried by bankId and accountId.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>transactionId</td>\n<td>string</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the account</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>bookingDate</td>\n<td>datetime</td>\n<td>Booking date for the transaction</td>\n</tr>\n<tr>\n<td>valueDate</td>\n<td>datetime</td>\n<td>Value date for the transaction</td>\n</tr>\n<tr>\n<td>transactionCode</td>\n<td>string</td>\n<td>Specifies the transaction family within a domain</td>\n</tr>\n<tr>\n<td>transactionSubCode</td>\n<td>string</td>\n<td>Sub code of the transaction</td>\n</tr>\n<tr>\n<td>proprietaryCode</td>\n<td>string</td>\n<td>Proprietary bank transaction code to identify the underlying transaction</td>\n</tr>\n<tr>\n<td>proprietarySubCode</td>\n<td>string</td>\n<td>Proprietary sub code of the transaction</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Description provided in the transaction</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Transaction currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Transaction amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Transaction status {BOOKED,PENDING}</td>\n</tr>\n<tr>\n<td>merchant</td>\n<td>JSON Object</td>\n<td>Details of the merchant</td>\n</tr>\n<tr>\n<td>merchant-&gt;id</td>\n<td>string</td>\n<td>Unique identifier for the merchant</td>\n</tr>\n<tr>\n<td>merchant-&gt;name</td>\n<td>string</td>\n<td>Name of the merchant</td>\n</tr>\n<tr>\n<td>merchant-&gt;category</td>\n<td>string</td>\n<td>Business category that the merchant belongs to</td>\n</tr>\n<tr>\n<td>merchant-&gt;categoryCode</td>\n<td>integer</td>\n<td>Category Code</td>\n</tr>\n<tr>\n<td>merchant-&gt;addressLine</td>\n<td>string</td>\n<td>Address of the merchant (if available)</td>\n</tr>\n<tr>\n<td>merchant-&gt;source</td>\n<td>string</td>\n<td>Source for how the merchant was identified {MODEL, USER, PROVIDER}</td>\n</tr>\n<tr>\n<td>category</td>\n<td>JSON Object</td>\n<td>Details of the transaction category</td>\n</tr>\n<tr>\n<td>category-&gt;id</td>\n<td>integer</td>\n<td>Unique identifier for the category</td>\n</tr>\n<tr>\n<td>category-&gt;name</td>\n<td>string</td>\n<td>Name of the category</td>\n</tr>\n<tr>\n<td>category-&gt;source</td>\n<td>string</td>\n<td>Source for how the category was identified {MERCHANT, MODEL, USER, PROVIDER}</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {MANUALIMPORT, OPENBANKING}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid transactionId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f9aae903-627f-4406-bb12-29d6794651e7","id":"f9aae903-627f-4406-bb12-29d6794651e7","name":"Bank Data","type":"folder"}},"urlObject":{"path":["banking","v2","transactions",":transactionId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"0e8b80d2-fed0-4f3b-92cb-1eb65410158d","description":{"content":"<p>Unique identifier for the bank transaction</p>\n","type":"text/plain"},"type":"string","value":"","key":"transactionId"}]}},"response":[{"id":"4d63822e-f6ee-4448-b91c-74587d00ac18","name":"Retrieve Bank Transaction (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/transactions/:transactionId","host":["{{base_url}}"],"path":["banking","v2","transactions",":transactionId"],"variable":[{"key":"transactionId","value":"transactionId1357","description":"Unique identifier for the transaction"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"transactionId1357\",\n    \"bankId\": 7,\n    \"accountId\": \"accountId1234\",\n    \"bookingDate\": \"2020-10-16T00:00Z\",\n    \"valueDate\": \"2020-10-16T00:00Z\",\n    \"reference\": \"\",\n    \"transactionCode\": \"\",\n    \"transactionSubCode\": \"\",\n    \"proprietaryCode\": \"\",\n    \"proprietarySubCode\": \"\",\n    \"description\": \"HMRC\",\n    \"amount\": \"6200.00\",\n    \"currency\": \"GBP\",\n    \"type\": \"CREDIT\",\n    \"status\": \"BOOKED\",\n    \"merchant\": {\n        \"id\": \"merchantId579\",\n        \"name\": \"HMRC\",\n        \"categoryCode\": \"\",\n        \"addressLine\": \"\",\n        \"source\": \"MODEL\"\n    },\n    \"category\": {\n        \"id\": \"categoryID9876\",\n        \"name\": \"Tax\",\n        \"source\": \"MODEL\"\n    },\n    \"externalId\": \"\",\n    \"source\": \"OPENBANKING\"\n}"}],"variable":[{"id":"0e8b80d2-fed0-4f3b-92cb-1eb65410158d","key":"transactionId","value":"","type":"string","description":"Unique identifier for the bank transaction"}],"_postman_id":"3aec561f-c713-4eb8-bd36-5b62edef9278"}],"id":"f9aae903-627f-4406-bb12-29d6794651e7","description":"<p>In order to access your user's bank data, you are required to obtain their consent to share this information. When the user authorises the request to share their bank data, then the following data can be retrieved from their banks:</p>\n<ol>\n<li> Bank accounts </li>\n<li> Bank balances  </li>\n<li> Bank transactions </li>\n<li> Party information </li>\n</ol>\n\n<p>In future versions, you will also be able to extract the following data:</p>\n<ol>\n<li> Account holder information </li>\n<li> Direct debits </li>\n<li> Standing orders </li>\n<li> Scheduled payments </li>\n<li> Account statements </li>\n</ol>","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"01625eec-d9c0-40fa-af35-284a169bfa3c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"45fd2bd7-9ec0-4821-ad9a-cb05d3d098b7","type":"text/javascript","exec":[""]}}],"_postman_id":"f9aae903-627f-4406-bb12-29d6794651e7"},{"name":"Categorisation and Merchants","item":[{"name":"Retrieve Categories","id":"0962da3a-1647-4327-8ab5-d8688606789e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":"{{base_url}}/banking/v2/categories","description":"<p>The ‘Get categories’ endpoint returns the list of categories that tomato pay currently supports. Category id and the category name are returned in the response.</p>\n<h2> Query Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the category</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the category</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"12791b0d-864b-4bc6-aec3-095b83888ccd","id":"12791b0d-864b-4bc6-aec3-095b83888ccd","name":"Categorisation and Merchants","type":"folder"}},"urlObject":{"path":["banking","v2","categories"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""}],"variable":[]}},"response":[{"id":"af296ec4-daca-4f70-946c-124670a4a8af","name":"Retrieve Categories","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}","type":"text"},{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":{"raw":"{{base_url}}/banking/v2/categories","host":["{{base_url}}"],"path":["banking","v2","categories"],"query":[{"key":"pageId","value":null,"description":"Page offset of results","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1129"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 26 Oct 2020 18:25:46 GMT"},{"key":"x-amzn-RequestId","value":"e797f9b5-5c71-4c09-927d-2b9d0470de42"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VCAqXEu4joEFawA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9714a8-4e39e4ac3713fe963d8110c8"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8eab33758f7a9d7a7d13481eabebea69.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"lDg0Bjjvq0A3mgptYT__xQcediyRQ1YWmpqzwtRqMZ0yHY5LvJCINQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"categoryId1234\",\n            \"name\": \"Rent and Office\"\n        },\n        {\n            \"id\": \"categoryId2345\",\n            \"name\": \"Other Income\"\n        },\n        {\n            \"id\": \"categoryId3456\",\n            \"name\": \"Entertainment\"\n        },\n        {\n            \"id\": \"categoryId4321\",\n            \"name\": \"Travel and Subsistence\"\n        },\n        {\n            \"id\": \"categoryId1357\",\n            \"name\": \"Tax\"\n        },\n        {\n            \"id\": \"categoryId2468\",\n            \"name\": \"Payroll\"\n        },\n        {\n            \"id\": \"categoryId1122\",\n            \"name\": \"Technology\"\n        },\n        {\n            \"id\": \"categoryId2244\",\n            \"name\": \"Funding and Interest\"\n        },\n        {\n            \"id\": \"categoryId5678\",\n            \"name\": \"Miscellaneous\"\n        },\n        {\n            \"id\": \"categoryId3355\",\n            \"name\": \"Marketing\"\n        },\n        {\n            \"id\": \"categoryId7788\",\n            \"name\": \"Bank Charges and Repayments\"\n        },\n        {\n            \"id\": \"categoryId7890\",\n            \"name\": \"Professional Services\"\n        },\n        {\n            \"id\": \"categoryId0123\",\n            \"name\": \"Dividends\"\n        },\n        {\n            \"id\": \"categoryId6543\",\n            \"name\": \"Transfers\"\n        },\n        {\n            \"id\": \"categoryId1010\",\n            \"name\": \"Other Expenses\"\n        },\n        {\n            \"id\": \"categoryId8989\",\n            \"name\": \"Sales\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"0962da3a-1647-4327-8ab5-d8688606789e"},{"name":"Retrieve Category (by id)","id":"308b56f3-407d-44b3-bd3b-6ac39881e4ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":"{{base_url}}/banking/v2/categories/:categoryId","description":"<p>Retrieve Category by id</p>\n<p>The ‘Get categories by id’ endpoint returns the category linked to the corresponding category id that has been passed as a param.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>categoryId</td>\n<td>string</td>\n<td>Unique identifier for the category</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the category</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the category</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid categoryId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"12791b0d-864b-4bc6-aec3-095b83888ccd","id":"12791b0d-864b-4bc6-aec3-095b83888ccd","name":"Categorisation and Merchants","type":"folder"}},"urlObject":{"path":["banking","v2","categories",":categoryId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"2f4d975a-6d4b-470e-a0fc-547030d4f023","description":{"content":"<p>Unique identifier for the category</p>\n","type":"text/plain"},"type":"string","value":"","key":"categoryId"}]}},"response":[{"id":"25a33131-a89c-46d8-972a-eaaa61066659","name":"Retrieve Category (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":{"raw":"{{base_url}}/banking/v2/categories/:categoryId","host":["{{base_url}}"],"path":["banking","v2","categories",":categoryId"],"variable":[{"key":"categoryId","value":"categoryId1234","description":"Unique identifier for the category"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"58"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 26 Oct 2020 15:05:37 GMT"},{"key":"x-amzn-RequestId","value":"ea5f6235-947a-4019-8f92-61a631c13346"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VBjWMGkWjoEFRyQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f96e5c1-7d31b54b27895c5232fb4f93"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 31cf11cd322ac54e38d4a43fe3a12f04.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"4piZ2z5lFKDrDGEbe9BpQtrJ-Lu9MtyucXGB4U9EQhLgCZ_voxff7g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"categoryId1234\",\n    \"name\": \"Tax\"\n}"}],"variable":[{"id":"2f4d975a-6d4b-470e-a0fc-547030d4f023","key":"categoryId","value":"","type":"string","description":"Unique identifier for the category"}],"_postman_id":"308b56f3-407d-44b3-bd3b-6ac39881e4ee"},{"name":"Retrieve Merchants","id":"3f35677c-2ac8-49c5-b427-5b6271d72c38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":"{{base_url}}/banking/v2/merchants","description":"<p>The ‘Get Merchants’ endpoint returns the list of merchants that are currently categorised by tomato pay. Merchant id and the merchant name are returned in the response.</p>\n<h2> Query Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the merchant</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the merchant</td>\n</tr>\n<tr>\n<td>categoryCode</td>\n<td>string</td>\n<td>Code for the category</td>\n</tr>\n<tr>\n<td>addressLine</td>\n<td>string</td>\n<td>Merchant address (if available)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"12791b0d-864b-4bc6-aec3-095b83888ccd","id":"12791b0d-864b-4bc6-aec3-095b83888ccd","name":"Categorisation and Merchants","type":"folder"}},"urlObject":{"path":["banking","v2","merchants"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset for results</p>\n","type":"text/plain"},"key":"pageId","value":""}],"variable":[]}},"response":[{"id":"0f69b638-8fb9-4b13-8917-42e259188430","name":"Retrieve Merchants","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":{"raw":"{{base_url}}/banking/v2/merchants","host":["{{base_url}}"],"path":["banking","v2","merchants"],"query":[{"key":"pageId","value":null,"description":"Page offset for results","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"23404"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 29 Oct 2020 17:08:38 GMT"},{"key":"x-amzn-RequestId","value":"2b8fb843-1139-40c5-8515-3885a0d63cce"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VLuLRGgGDoEFr6g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9af714-61ffb37d29de8ce140ad8e84"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 006e53d1925d4d044125ff497c18b3b4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"q4ElQSAgRtZ4mM1Oycs5r5aClESwzNYoxuLCmozRvvK1k0jgKqEtCw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"categoryId1234\",\n            \"name\": \"Vitalityhealth\",\n            \"categoryCode\": \"\",\n            \"addressLine\": \"\"\n        },\n        {\n            \"id\": \"categoryId2345\",\n            \"name\": \"Google\",\n            \"categoryCode\": \"\",\n            \"addressLine\": \"\"\n        },\n        {\n            \"id\": \"categoryId3456\",\n            \"name\": \"Uber\",\n            \"categoryCode\": \"\",\n            \"addressLine\": \"\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"3f35677c-2ac8-49c5-b427-5b6271d72c38"},{"name":"Retrieve Merchant (by id)","id":"f2514e2a-c804-4f97-8852-ee63de004d82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":"{{base_url}}/banking/v2/merchants/:merchantId","description":"<p>The ‘Get Merchant by id’ endpoint returns the merchant linked to the corresponding merchant id that has been passed as a param.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>merchantId</td>\n<td>string</td>\n<td>Unique identifier for the merchant</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attrributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the merchant</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the merchant</td>\n</tr>\n<tr>\n<td>categoryCode</td>\n<td>string</td>\n<td>Code for the category</td>\n</tr>\n<tr>\n<td>addressLine</td>\n<td>string</td>\n<td>Merchant address (if available)</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid merchantId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"12791b0d-864b-4bc6-aec3-095b83888ccd","id":"12791b0d-864b-4bc6-aec3-095b83888ccd","name":"Categorisation and Merchants","type":"folder"}},"urlObject":{"path":["banking","v2","merchants",":merchantId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"fc31b42c-33d0-40a5-b2d2-037aca604e73","description":{"content":"<p>Unique identifier for the merchant</p>\n","type":"text/plain"},"type":"string","value":"","key":"merchantId"}]}},"response":[{"id":"781ead40-c4d1-4062-8457-06045e9ef824","name":"Retrieve Merchant (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":{"raw":"{{base_url}}/banking/v2/merchants/:merchantId","host":["{{base_url}}"],"path":["banking","v2","merchants",":merchantId"],"variable":[{"key":"merchantId","value":"merchantId1234","description":"Unique identifier for the merchant"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"104"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 26 Oct 2020 15:20:10 GMT"},{"key":"x-amzn-RequestId","value":"e69e39c6-221e-4a68-a818-2742120a30fb"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VBleoFykDoEFbuA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f96e92a-041f1f426d6ccbdf384f387f"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 9503482155e233e99173b53da4a996ff.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"IJ9orgtQBu0_DhO3vaQywi493PcQWiTmLUVqCtY3Cs3cFgqlvx7jBQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"merchantId1234\",\n    \"name\": \"Google\",\n    \"categoryCode\": \"\",\n    \"addressLine\": \"\"\n}"}],"variable":[{"id":"fc31b42c-33d0-40a5-b2d2-037aca604e73","key":"merchantId","value":"","type":"string","description":"Unique identifier for the merchant"}],"_postman_id":"f2514e2a-c804-4f97-8852-ee63de004d82"},{"name":"Update Category","event":[{"listen":"test","script":{"id":"cdfd6acf-bcde-423b-8d74-970c66e71235","exec":[""],"type":"text/javascript"}}],"id":"98300499-2560-47d2-8339-a80afad2b865","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"category Id\",\n    \"updateType\": \"ALL\"\n}"},"url":"{{base_url}}/banking/v2/transactions/:transactionId/category","description":"<p>The ‘Update category’ endpoint can be used to update the category in a particular transaction.</p>\n<p>If the user re-categorises a transaction to a different category, they can do so by using this endpoint.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>transactionId</td>\n<td>string</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the new category</td>\n</tr>\n<tr>\n<td>updateType</td>\n<td>string</td>\n<td>updateType {\"ONE\" will only recategorise a particular transaction, \"ALL\" will change all recategorise all similar transactions including past and future transactions}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n204 No content\n\n<h2> Error messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid transactionId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Missing/Invalid categoryId</td>\n<td>400 Bad Request</td>\n<td>{ \"error\": \"Missing/invalid categoryId }</td>\n</tr>\n<tr>\n<td>Missing/Invalid updateType</td>\n<td>400 Bad Request</td>\n<td>{ \"error\": \"Missing/invalid updateType }</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"12791b0d-864b-4bc6-aec3-095b83888ccd","id":"12791b0d-864b-4bc6-aec3-095b83888ccd","name":"Categorisation and Merchants","type":"folder"}},"urlObject":{"path":["banking","v2","transactions",":transactionId","category"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"dfa0be94-1f4e-4446-93f9-11fb937f538e","description":{"content":"<p>Unique identifier for the transaction</p>\n","type":"text/plain"},"type":"string","value":"","key":"transactionId"}]}},"response":[{"id":"9c2752c1-788e-4fd8-af30-ef425108ee42","name":"Update Category","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"categoryId1234\",\n    \"updateType\": \"ALL\"\n}"},"url":{"raw":"{{base_url}}/banking/v2/transactions/:transactionId/category","host":["{{base_url}}"],"path":["banking","v2","transactions",":transactionId","category"],"variable":[{"key":"transactionId","value":"transacttionId2345","description":"Unique identifier for the transaction"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 29 Oct 2020 17:29:08 GMT"},{"key":"x-amzn-RequestId","value":"07459487-5ece-4d59-9275-69d0946e7996"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VLxLnHLeDoEFe0g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9afbe3-35a6290c7b668a214d9e5542"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8eab33758f7a9d7a7d13481eabebea69.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"UX8jQJDSNARceVmlnWkiWIgKj83O0-gpnkpukDn3ga6El6doz6vE6Q=="}],"cookie":[],"responseTime":null,"body":""}],"variable":[{"id":"dfa0be94-1f4e-4446-93f9-11fb937f538e","key":"transactionId","value":"","type":"string","description":"Unique identifier for the transaction"}],"_postman_id":"98300499-2560-47d2-8339-a80afad2b865"},{"name":"Update Merchant","event":[{"listen":"test","script":{"id":"2170baaa-8307-4df7-ab6c-0acfee395ec7","exec":[""],"type":"text/javascript"}}],"id":"f75aa57d-a482-4f2a-96d0-63b7cc520b32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"64b7f5de-d178-4b23-a3a3-4c0783090d91\",\n    \"updateType\": \"ALL\"\n}"},"url":"{{base_url}}/banking/v2/transactions/:transactionId/merchant","description":"<p>The ‘Update category’ endpoint can be used to update the merchant in a particular transaction.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>transactionId</td>\n<td>string</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the merchant</td>\n</tr>\n<tr>\n<td>updateType</td>\n<td>string</td>\n<td>updateType {\"ONE\" will only recategorise a particular transaction, \"ALL\" will change all recategorise all similar transactions including past and future transactions}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n204 No content\n\n<h2> Error messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid transactionId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Missing/Invalid updateType</td>\n<td>400 Bad Request</td>\n<td>{ \"error\": \"Missing/invalid updateType }</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"12791b0d-864b-4bc6-aec3-095b83888ccd","id":"12791b0d-864b-4bc6-aec3-095b83888ccd","name":"Categorisation and Merchants","type":"folder"}},"urlObject":{"path":["banking","v2","transactions",":transactionId","merchant"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"e0b9feac-7412-4045-bf6f-32c3b68979a6","description":{"content":"<p>Unique identifier for the bank transaction</p>\n","type":"text/plain"},"type":"string","value":"","key":"transactionId"}]}},"response":[{"id":"6474d325-b46e-49f8-a4ba-f61361936c46","name":"Update Merchant","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"merchantId1234\",\n    \"updateType\": \"ALL\"\n}"},"url":{"raw":"{{base_url}}/banking/v2/transactions/:transactionId/merchant","host":["{{base_url}}"],"path":["banking","v2","transactions",":transactionId","merchant"],"variable":[{"key":"transactionId","value":"transactionId1234","description":"Unique identifier for the transaction"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 29 Oct 2020 17:47:13 GMT"},{"key":"x-amzn-RequestId","value":"cd77fb9d-9fcf-4a98-8260-5964d05c10d4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VLz1NEF4DoEFygg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9b0021-2dd8e3e1535113d31df0c4ce"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 c5b4348a0bb5daaef6e0b0e13b317635.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"T4f3Gns0WUsIZMq9mFG72Cqr22UzuOzPvhb9ZoYojV4jud9s1m0-ew=="}],"cookie":[],"responseTime":null,"body":""}],"variable":[{"id":"e0b9feac-7412-4045-bf6f-32c3b68979a6","key":"transactionId","value":"","type":"string","description":"Unique identifier for the bank transaction"}],"_postman_id":"f75aa57d-a482-4f2a-96d0-63b7cc520b32"}],"id":"12791b0d-864b-4bc6-aec3-095b83888ccd","description":"<p>tomato pay’s proprietary ‘Categorisation and Merchants’ solution uses machine learning to auto-categorise transactions in business categories and to identify merchants in transactions.</p>\n<p>Categories and Merchants can also be updated using \"Update\" endpoints.</p>\n<p>Transactions are auto-categorised into one of the following categories:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Category</th>\n<th>Type</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Dividends</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Tax</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Travel and Subsistence</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Rent and Office</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Marketing</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Professional Services</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Bank charges and repayments</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Entertainment</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Payroll</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Other Expenses</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Technology</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Miscellaneous</td>\n<td>Expense</td>\n</tr>\n<tr>\n<td>Sales</td>\n<td>Income</td>\n</tr>\n<tr>\n<td>Dividends</td>\n<td>Income</td>\n</tr>\n<tr>\n<td>Transfers</td>\n<td>Income</td>\n</tr>\n<tr>\n<td>Other Income</td>\n<td>Income</td>\n</tr>\n<tr>\n<td>Funding and Interest</td>\n<td>Income</td>\n</tr>\n<tr>\n<td>Miscellaneous</td>\n<td>Income</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"d7e1aa55-fab3-4fbf-a9fb-c284a32e8c6f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a276c48e-825c-4c48-96be-ea35f9c717a3","type":"text/javascript","exec":[""]}}],"_postman_id":"12791b0d-864b-4bc6-aec3-095b83888ccd"},{"name":"Manually Import Bank Data","item":[{"name":"Add Bank Accounts","id":"e8fb66f4-7086-4b90-acbf-2982083b5ea5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"values\": [  \n        {\n           \"bankId\": 6,\n           \"currency\": \"GBP\",\n           \"nickname\": \"Business Account\",\n            \"account\": \n            [{\n               \"schemeName\": \"IBAN\",\n               \"identification\": \"GB84BANKIDENTIFICATION\",\n               \"secondaryIdentification\": \"POS\",\n               \"name\": \"Debit Account\"\n            }],\n           \"externalId\": \"BANK_NAME_ID\"\n    }\n ]\n}"},"url":"{{base_url}}/banking/v2/accounts","description":"<p>This endpoint can be used to manually import bank accounts and link them to a company.</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>nickname</td>\n<td>string</td>\n<td>Nickname</td>\n</tr>\n<tr>\n<td>account</td>\n<td>JSON object</td>\n<td>Account information</td>\n</tr>\n<tr>\n<td>account -&gt; schemename</td>\n<td>string</td>\n<td>IBAN or Account and sort code</td>\n</tr>\n<tr>\n<td>account -&gt; identification</td>\n<td>string</td>\n<td>Unique id per bank account</td>\n</tr>\n<tr>\n<td>account -&gt; name</td>\n<td>string</td>\n<td>Account name</td>\n</tr>\n<tr>\n<td>account -&gt; secondaryIdentification</td>\n<td>string</td>\n<td>Any optional extra information about account</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>No request body</td>\n<td>400 Bad Request</td>\n<td>{ \"error\": \"Missing/invalid JSON” }</td>\n</tr>\n<tr>\n<td>Missing/invalid currency</td>\n<td>403 Forbidden</td>\n<td>{ \"error\": \"Missing/invalid currency” }</td>\n</tr>\n<tr>\n<td>Missing/Invalid bankId</td>\n<td>404 Not Found</td>\n<td>{ \"error\": \"Missing/invalid bankId” }</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["banking","v2","accounts"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"9e4bf844-f7dc-4f19-bb13-5f7618484be5","name":"Add Bank Accounts","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}","type":"text"},{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n           \"bankId\": 6,\n           \"currency\": \"GBP\",\n           \"nickname\": \"Business Account\",\n            \"account\": \n            [{\n               \"schemeName\": \"IBAN\",\n               \"identification\": \"GB84BANKIDENTIFICATION\",\n               \"secondaryIdentification\": \"POS\",\n               \"name\": \"Debit Account\"\n            }],\n           \"externalId\": \"BANK_NAME_ID\"\n    }\n ]"},"url":"{{base_url}}/banking/v2/accounts"},"status":"Multi-Status (WebDAV) (RFC 4918)","code":207,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"80"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 26 Oct 2020 18:56:26 GMT"},{"key":"x-amzn-RequestId","value":"041676be-9bdb-4481-8b96-8fdeaa22bef9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VCFKDFQzjoEFr-A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f971bd9-4a2963272d626ac737a1f458"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 abe5b733b9c99f8f88ee8cb18db1d93f.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"BVQa8htmwIghnM_XcxlVXPb4k4cDZchdTTTZv7kS0dHos4LlMe_bBQ=="}],"cookie":[],"responseTime":null,"body":"{\n   \"results\": [\n        {\n            \"id\": \"accountId123\",\n            \"message\": \"Created\",\n            \"status\": 201\n        }\n    ]\n}"}],"_postman_id":"e8fb66f4-7086-4b90-acbf-2982083b5ea5"},{"name":"Add Bank Balances","event":[{"listen":"test","script":{"id":"7d18a09c-fb89-4297-a550-e99770c3be6d","exec":[""],"type":"text/javascript"}}],"id":"9bcd89fa-0c90-44f4-9428-6dfdb6689cb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"values\": [\n                {\n                    \"bankId\": 6,\n                    \"accountId\": \"accountId1234\",\n                    \"date\": \"2020-08-31\",   \n                    \"amount\": \"100.00\",    \n                    \"currency\": \"GBP\",  \n                    \"type\": \"DEBIT\",  \n                    \"status\": \"INTERIMAVAILABLE\"\n                \n                }\n    ]\n}"},"url":"{{base_url}}/banking/v2/balances","description":"<p>The 'Add bank balances' endpoint can be used to add balances to accounts that were added using the ‘Add bank accounts’ endpoint.</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the account</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>date</td>\n<td>datetime</td>\n<td>Balance data</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Balance amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Balance status {CLOSINGAVAILABLE, CLOSINGBOOKED, EXPECTED, FORWARDAVAILABLE, INFORMATION, INTERIMAVAILABLE, INTERIMBOOKED, OPENINGAVAILABLE, OPENINGBOOKED, PREVIOUSLYCLOSEDBOOKED}</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Missing/Invalid bankId</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid bankId\"}</td>\n</tr>\n<tr>\n<td>Missing/Invalid accountId</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid accountId\"}</td>\n</tr>\n<tr>\n<td>Missing/Invalid currency</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid currency\"}</td>\n</tr>\n<tr>\n<td>Missing/Invalid amount</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid amount\"}</td>\n</tr>\n<tr>\n<td>Missing/Invalid status</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid status\"}</td>\n</tr>\n<tr>\n<td>Missing/Invalid type (DEBIT/CREDIT)</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid type\"}</td>\n</tr>\n<tr>\n<td>Missing/Invalid date (ISO 8601 format)</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid bookingDate\"}</td>\n</tr>\n<tr>\n<td>Adding more than 500 balances</td>\n<td>413 Payload too large</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["banking","v2","balances"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"cb04d6fc-e60b-4a16-9407-38898705ee54","name":"Add Bank Balances","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"[\n{\n    \"bankId\": 6,\n    \"accountId\": \"accountId1234\",\n    \"date\": \"2020-08-31\",   \n    \"amount\": \"100.00\",    \n    \"currency\": \"GBP\",  \n    \"type\": \"DEBIT\",  \n    \"status\": \"INTERIMAVAILABLE\"\n}\n]"},"url":"{{base_url}}/banking/v2/balances"},"status":"Multi-Status (WebDAV) (RFC 4918)","code":207,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"80"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 26 Oct 2020 18:59:51 GMT"},{"key":"x-amzn-RequestId","value":"1f586910-ef59-46cf-a3b3-4304368af4fb"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VCFqKG8UjoEFziA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f971ca7-78126dbb13b7f1df0534f4c2"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 abe5b733b9c99f8f88ee8cb18db1d93f.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"HzuurkRKyi1J3O3LmdXTQxK7KXDtMevS-VVA3_7UiK6rh5VTE977Zw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"balanceId1234\",\n            \"message\": \"Created\",\n            \"status\": 201\n        }\n    ]\n}"}],"_postman_id":"9bcd89fa-0c90-44f4-9428-6dfdb6689cb1"},{"name":"Add Bank Transactions","id":"560bdfb4-5a7e-4968-aee9-4a882c2b0ad9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n\"values\": [\n    {\n      \"bankId\": 6,\n      \"accountId\": \"accountId1234\",\n      \"bookingDate\": \"2020-09-01\",\n      \"valueDate\": \"2020-09-01\",\n      \"amount\": 1400,\n      \"currency\": \"GBP\",\n      \"type\": \"DEBIT\",\n      \"status\": \"BOOKED\",\n      \"merchant\": {\n        \"name\": \"Big suppliers Ltd.\",\n        \"categoryCode\": \"12345\",\n        \"addressLine\": \"12345\"\n\n}\n  },\n      {\n        \"bankId\": 7,\n        \"accountId\": \"accountId3456\",\n        \"bookingDate\": \"2020-01-01\",\n        \"valueDate\": \"2020-01-01\",\n        \"amount\": 100.50,\n        \"currency\": \"GBP\",\n        \"type\": \"CREDIT\",\n        \"status\": \"BOOKED\",\n        \"merchant\": {\n            \"name\": \"Invoice - Customer 102\",\n            \"categoryCode\": \"\",\n            \"addressLine\": \"2345\"\n            }\n        }\n    ]\n}"},"url":"{{base_url}}/banking/v2/transactions","description":"<p>The ‘Add bank transactions’ endpoint can be used to add transactions to accounts that are added using the ‘Add bank accounts’ endpoint.</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the account</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>bookingDate</td>\n<td>datetime</td>\n<td>Booking date for the transaction</td>\n</tr>\n<tr>\n<td>valueDate</td>\n<td>datetime</td>\n<td>Value date for the transaction</td>\n</tr>\n<tr>\n<td>transactionCode</td>\n<td>string</td>\n<td>Specifies the transaction family within a domain</td>\n</tr>\n<tr>\n<td>transactionSubCode</td>\n<td>string</td>\n<td>Sub code of the transaction</td>\n</tr>\n<tr>\n<td>proprietaryCode</td>\n<td>string</td>\n<td>Proprietary bank transaction code to identify the underlying transaction</td>\n</tr>\n<tr>\n<td>proprietarySubCode</td>\n<td>string</td>\n<td>Proprietary sub code of the transaction</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Description provided in the transaction</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Transaction currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Transaction amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Transaction status {BOOKED,PENDING}</td>\n</tr>\n<tr>\n<td>merchant-&gt;name</td>\n<td>string</td>\n<td>Name of the merchant</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>An Id linked to an external source</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Missing/Invalid bankId</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid bankId\"}</td>\n</tr>\n<tr>\n<td>Missing/Invalid accountId</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid accountId\"}</td>\n</tr>\n<tr>\n<td>Invalid currency</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid currency\"}</td>\n</tr>\n<tr>\n<td>Invalid amount</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid amount\"}</td>\n</tr>\n<tr>\n<td>Invalid status</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid status\"}</td>\n</tr>\n<tr>\n<td>Invalid type (DEBIT/CREDIT)</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid type\"}</td>\n</tr>\n<tr>\n<td>Invalid bookingDate (ISO 8601 format)</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid bookingDate\"}</td>\n</tr>\n<tr>\n<td>Invalid valueDate (ISO 8601 format)</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid valueDate\"}</td>\n</tr>\n<tr>\n<td>Adding more than 500 transactions</td>\n<td>413 Payload too large</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["banking","v2","transactions"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"613e74f3-2026-4f77-b39f-c8a8d93f8882","name":"Add Bank Transactions","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"[\n    {\n      \"bankId\": 6,\n      \"accountId\": \"accountId1234\",\n      \"bookingDate\": \"2020-09-01\",\n      \"valueDate\": \"2020-09-01\",\n      \"amount\": 1400,\n      \"currency\": \"GBP\",\n      \"type\": \"DEBIT\",\n      \"status\": \"BOOKED\",\n      \"merchant\": {\n        \"name\": \"Big suppliers Ltd.\",\n        \"categoryCode\": \"12345\",\n        \"addressLine\": \"12345\"\n\n    }\n  },\n      {\n      \"bankId\": 7,\n      \"accountId\": \"accountId3456\",\n      \"bookingDate\": \"2020-01-01\",\n      \"valueDate\": \"2020-01-01\",\n      \"amount\": 100.50,\n      \"currency\": \"GBP\",\n      \"type\": \"CREDIT\",\n      \"status\": \"BOOKED\",\n      \"merchant\": {\n        \"name\": \"Invoice - Customer 102\",\n        \"categoryCode\": \"\",\n        \"addressLine\": \"2345\"\n}\n    }\n]"},"url":"{{base_url}}/banking/v2/transactions"},"status":"Multi-Status (WebDAV) (RFC 4918)","code":207,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"159"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 29 Oct 2020 18:54:10 GMT"},{"key":"x-amzn-RequestId","value":"3afab2cf-98ad-40e6-b3d9-2e4837b2ab6c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VL9ozEjJjoEFnHg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9b0fd1-21133742679e81073954a0e8"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 fe71c2e88a632c65075c957a7abe5788.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"4FgHsCYjoTmR7vYhyuyGohFz5bUj6WPtEbao2i_jIj86ZDLiHi0iZg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"transactionId1234\",\n            \"message\": \"Created\",\n            \"status\": 201\n        },\n        {\n            \"id\": \"transactionId3456\",\n            \"message\": \"Created\",\n            \"status\": 201\n        }\n    ]\n}"}],"_postman_id":"560bdfb4-5a7e-4968-aee9-4a882c2b0ad9"},{"name":"Delete Bank Account (by id)","id":"d9cf07e1-1ca1-4817-b97f-1ab74b805d37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/accounts/:accountId","description":"<p>The ‘Delete bank account’ endpoint can be used to delete an account that was manually imported.</p>\n<p>It will also delete the transactions and balances linked to that bank account.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n202 Accepted\n\n<h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid accountId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["banking","v2","accounts",":accountId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"685b8fc3-1789-4ce3-9077-5df174bd8260","description":{"content":"<p>Unique identifier for the bank account</p>\n","type":"text/plain"},"type":"string","value":"","key":"accountId"}]}},"response":[{"id":"a4aae826-b497-4482-8d42-345904cc7149","name":"Delete Bank Account (by id)","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/accounts/:accountId","host":["{{base_url}}"],"path":["banking","v2","accounts",":accountId"],"variable":[{"key":"accountId","value":"accountId1234","description":"Unique identifier for the bank account"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 26 Oct 2020 19:25:09 GMT"},{"key":"x-amzn-RequestId","value":"28416e45-797d-49f3-806a-1da578985c86"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VCJXYGHHjoEFc1w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f972295-3eb3f4f62c7d1da65d83ca5a"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8cedfb7a16a346fb0119eb355ecdaf4c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"T4PGyp53Nt_J4JNlBzEsyqMPGzGN-Y-2-feOTFT6qMS7Rf5Leq0vGQ=="}],"cookie":[],"responseTime":null,"body":""}],"variable":[{"id":"685b8fc3-1789-4ce3-9077-5df174bd8260","key":"accountId","value":"","type":"string","description":"Unique identifier for the bank account"}],"_postman_id":"d9cf07e1-1ca1-4817-b97f-1ab74b805d37"},{"name":"Delete Bank Balance (by id)","event":[{"listen":"test","script":{"id":"cead4786-fc5a-413f-9161-709f844c24e8","exec":[""],"type":"text/javascript"}}],"id":"44085402-8423-408a-b958-db83b1902862","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/balances/:balanceId","description":"<p>The ‘Delete bank balance’ endpoint can be used to delete a balance for an account that was manually imported.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>balanceId</td>\n<td>string</td>\n<td>Unique identifier for balance</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n202 Accepted\n\n<h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid balanceId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["banking","v2","balances",":balanceId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"92be9e25-078e-4da3-b029-488f407df088","description":{"content":"<p>Unique identifier for the bank balance</p>\n","type":"text/plain"},"type":"string","value":"","key":"balanceId"}]}},"response":[{"id":"c53839c4-a42c-45a3-8c57-682ca04930ff","name":"Delete Bank Balance (by id)","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/balances/:balanceId","host":["{{base_url}}"],"path":["banking","v2","balances",":balanceId"],"variable":[{"key":"balanceId","value":"balanceId1234","description":"Unique identifier for the bank balance"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 26 Oct 2020 19:24:40 GMT"},{"key":"x-amzn-RequestId","value":"3306b2c4-17bd-4e41-9039-e4a856b44890"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VCJSzEvnjoEFsOg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f972278-7c976f7b2fc77677289c9d24"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8cedfb7a16a346fb0119eb355ecdaf4c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"tM4h9_padc_5KrG3zwXa0Dvx6q327jP36AewxmV-G-OGS9WZJm8Guw=="}],"cookie":[],"responseTime":null,"body":""}],"variable":[{"id":"92be9e25-078e-4da3-b029-488f407df088","key":"balanceId","value":"","type":"string","description":"Unique identifier for the bank balance"}],"_postman_id":"44085402-8423-408a-b958-db83b1902862"},{"name":"Delete Bank Transaction (by id)","event":[{"listen":"test","script":{"id":"f2927d7f-4548-43cc-976c-283ef6fc15d8","exec":[""],"type":"text/javascript"}}],"id":"7b5ba083-52c2-4ce7-999e-b9931f829ae6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/transactions/:transactionId","description":"<p>Delete Bank Transaction endpoint can be used to delete transactions for an account that was manually imported.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>transactionId</td>\n<td>integer</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n202 Accepted\n\n<h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid transactionId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["banking","v2","transactions",":transactionId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"06f1b4c4-5608-4fdb-bc51-b1ca83fe9cf1","description":{"content":"<p>Unique identifier for the bank transaction</p>\n","type":"text/plain"},"type":"string","value":"","key":"transactionId"}]}},"response":[{"id":"c74d47e4-f9a6-45a1-b3b3-a6764fb9acf5","name":"Delete Bank Transaction (by id)","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{Authorization}}"},{"key":"X-Api-Key","type":"text","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","type":"text","value":"{{X-Partner-Id}}"},{"key":"X-Company-Id","type":"text","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/transactions/:transactions","host":["{{base_url}}"],"path":["banking","v2","transactions",":transactions"],"variable":[{"key":"transactions","value":"transactionId1234","description":"Unique identifier for the bank balance"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 26 Oct 2020 19:23:39 GMT"},{"key":"x-amzn-RequestId","value":"ed36d92e-d12b-4743-a0da-1de5de596e02"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VCJJOFavjoEF7Vw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f97223a-113174733c867ed3206e6b3b"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8cedfb7a16a346fb0119eb355ecdaf4c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"2KMJvDi3WQ1RrxJ3wJhOllNVx5_0MDcZMIejp-cpngdRV7eiXDZW0g=="}],"cookie":[],"responseTime":null,"body":""}],"variable":[{"id":"06f1b4c4-5608-4fdb-bc51-b1ca83fe9cf1","key":"transactionId","value":"","type":"string","description":"Unique identifier for the bank transaction"}],"_postman_id":"7b5ba083-52c2-4ce7-999e-b9931f829ae6"}],"id":"b33ef372-37b5-429e-aa96-4645ff216ebe","description":"<p>Financial institutions can use their own data. This data may be richer than what is available with Open Banking through its manual data import functionality.</p>\n<p>Manually importing data is useful if the financial institution wishes to use another aggregator for retrieving Open Banking data, or if they aren't using Open Banking at all. They can still add accounts and leverage other tomato pay key features such as categorisation and forecasting.</p>\n","event":[{"listen":"prerequest","script":{"id":"5ada543f-98a5-406a-816e-629c2532dd72","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0eabc7fc-4de1-409b-aba4-7c83220c0908","type":"text/javascript","exec":[""]}}],"_postman_id":"b33ef372-37b5-429e-aa96-4645ff216ebe"}],"id":"dc3900f5-721d-473c-bc67-20df026f09e2","description":"<h1> Overview </h1>\nThe tomato pay Bank Data API allows partners to securely access their customers’ banking data. This is downloaded through the Open Banking APIs.\n\n\n<p><a href=\"https://cdn2.hubspot.net/hubfs/4259112/videos/aggregation_11.mp4\">How it works</a></p>\n<h2> Banking Data API Quick start </h2>\nTo quickly test out tomato pay Banking API:\n<ol>\n<li> Obtained an authorisation token using the Authorisation API. </li>\n<li> Use the Company API to create a company which you’re going to link the data to. </li>\n</ol>\nNext, you will need to:\n<ol>\n<li> Call the ‘Create bank auth’ with the redirect link, and get the sign-in URL. </li>\n<li> Create a bank consent to register user’s pending consent. </li>\n(User signs in and approves pending consent)\n<li> Once the user signs in and approves the pending consent, retrieve the desired bank accounts. </li>\n<li> Retrieve the accounts’ balance(s). </li>\n<li> Retrieve the accounts’ transactions. </li>\n<br />\nBank Data API includes endpoints for:\n<ol>\n<li> Consents: Create, update, retrieve and manage Open Banking consents. </li>\n<li> Bank Data (open banking): Retrieve accounts, balances and transactions. </li>\n<li> Categorisation and merchants: tomato pay's proprietary engine auto-categorises transactions and identifies merchants in transactions when they are not provided by the bank. </li>\n<li> Manually import bank data: Import transactions and use tomato pay data intelligence APIs (Categorisation and Merchants and Forecasting).\n</li></ol></ol>","event":[{"listen":"prerequest","script":{"id":"93711695-8658-4230-9da7-3b08d5e4f127","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9325ccaa-2b12-4fad-bfd4-eb92adef4d5e","type":"text/javascript","exec":[""]}}],"_postman_id":"dc3900f5-721d-473c-bc67-20df026f09e2"},{"name":"Payments API","item":[{"name":"Inbound payments","item":[{"name":"Create Payment Request","id":"f90ab3a7-207a-4e91-9050-964ed4fb5c64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"creditor\": {\n        \"accountId\":\"6f440597-5af7-45f9-bf0d-0abbea113abd\"\n    },\n    \"currency\": \"GBP\",\n    \"amount\": \"0.01\",\n    \"reference\": \"test reference\",\n    \"paymentType\": \"DOMESTIC\",\n    \"usage\": \"SINGLE\",\n    \"status\": \"ACTIVE\",\n    \"isProtected\": false,\n    \"purpose\": \"OTHERS\"\n}"},"url":"{{base_url}}/banking/v2/pay/payment-request","description":"<p>The 'Create Payment Request' endpoint can be used to create request to pay link which will be powered by <strong>tomato pay</strong> web payment journey with pre-filled creditor and payment details.</p>\n<p>On clicking the web app, the user can make a payment by selecting their bank.</p>\n<h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>creditor</td>\n<td>JSON object</td>\n<td>Creditor information</td>\n</tr>\n<tr>\n<td>creditor -&gt; accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account (this is provided by Retrieve Bank Accounts endpoint)</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>paymentType</td>\n<td>string</td>\n<td>Payment type {DOMESTIC}</td>\n</tr>\n<tr>\n<td>usage</td>\n<td>string</td>\n<td>{SINGLE/MULTI}  <br />Configure the request to take either single or multiple payments</td>\n</tr>\n<tr>\n<td>isProtected</td>\n<td>boolean</td>\n<td>If set to true, retrieve endpoints will mask bank account details.</td>\n</tr>\n<tr>\n<td>purpose</td>\n<td>string</td>\n<td>{INVOICE, INSTANT_PAYMENTS, ECOMM, OTHERS}  <br />Purpose for which the payment is being taken</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Error Messages</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>No request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid json”}</td>\n</tr>\n<tr>\n<td>No currency in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/invalid currency\"}</td>\n</tr>\n<tr>\n<td>No amount in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/invalid amount\"}</td>\n</tr>\n<tr>\n<td>Reference greater than 35 characters in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"The reference field has a maximum of 18 chars\"}</td>\n</tr>\n<tr>\n<td>Invalid type</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid type. Must be DOMESTIC</td>\n</tr>\n<tr>\n<td>No creditor in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"One of the following is mandatory: [creditor, creditorAccountId]\"}</td>\n</tr>\n<tr>\n<td>Server error</td>\n<td>500 Internal server error</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","payment-request"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"9dc4e462-ef2e-4d51-95ca-5fd76d81478a","name":"Create Payment Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"creditor\": {\n        \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n        \"identification\": \"00-11-22\",\n        \"name\": \"Account name\",\n        \"secondaryIdentification\": \"\"\n    },\n    \"reference\": \"Reference\",\n    \"amount\": \"10.00\",\n    \"currency\": \"GBP\",\n    \"type\": \"DOMESTIC\"\n}"},"url":"{{base_url}}/banking/v2/pay/domestic/link"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"4b5b0eef-f17f-4760-afc9-1371f5b951c6\",\n    \"partnerId\": \"6ae1c843-e97d-437c-81d8-6106e91c985f\",\n    \"companyId\": \"2667fd3b-49e9-4a84-b77a-b013deada508\",\n    \"paymentType\": \"DOMESTIC\",\n    \"creditor\": {\n        \"accountId\": \"6f440597-5af7-45f9-bf0d-0abbea113abd\",\n        \"bankId\": 50,\n        \"name\": \"Julia Research Ltd\",\n        \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n        \"identification\": \"60837109152388\",\n        \"accountType\": \"BUSINESS\"\n    },\n    \"amount\": \"0.01\",\n    \"currency\": \"GBP\",\n    \"reference\": \"test reference\",\n    \"creationDate\": \"2022-01-20T15:49:28.789Z\",\n    \"updatedDate\": \"\",\n    \"dynamicAmountUrl\": \"dynamicAmountUrl\",\n    \"usage\": \"SINGLE\",\n    \"status\": \"ACTIVE\",\n    \"isProtected\": false,\n    \"purpose\": \"OTHERS\",\n    \"paymentLink\": \"https://pay.tomatopay.co.uk/request?l=eyJsaW5rSWQiOiJmMjJlZDMzYS1iNWUzLTRiZTUtYTgyYS1iNDMwYWY2OTliYzUiLCJwYXJ0bmVySWQiOiI2YWUxYzg0My1lOTdkLTQzN2MtODFkOC02MTA2ZTkxYzk4NWYifQ==\"\n}"}],"_postman_id":"f90ab3a7-207a-4e91-9050-964ed4fb5c64"},{"name":"Retrieve Payment Request by id","id":"431e80b8-1a8f-410f-8b95-fa311a69926d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/banking/v2/pay/payment-request/:paymentrequestid","description":"<p>The 'Retrieve payment request by id' endpoint can be used to look a specific payment request.</p>\n<h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>creditor</td>\n<td>JSON object</td>\n<td>Creditor information</td>\n</tr>\n<tr>\n<td>creditor -&gt; accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account (this is provided by Retrieve Bank Accounts endpoint)</td>\n</tr>\n<tr>\n<td>creditor -&gt; bankId</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>creditor -&gt; name</td>\n<td>string</td>\n<td>Name on the bank account</td>\n</tr>\n<tr>\n<td>creditor -&gt; schemeName</td>\n<td>string</td>\n<td>IBAN or Account and sort code</td>\n</tr>\n<tr>\n<td>creditor -&gt; identification</td>\n<td>string</td>\n<td>Unique id per bank account</td>\n</tr>\n<tr>\n<td>creditor -&gt; accountType</td>\n<td>string</td>\n<td>Type of bank account e.g. BUSINESS, PERSONAL</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>paymentType</td>\n<td>string</td>\n<td>Payment type {DOMESTIC}</td>\n</tr>\n<tr>\n<td>usage</td>\n<td>string</td>\n<td>{SINGLE/MULTI}  <br />Configure the request to take either single or multiple payments</td>\n</tr>\n<tr>\n<td>isProtected</td>\n<td>boolean</td>\n<td>If set to true, retrieve endpoints will mask bank account details.</td>\n</tr>\n<tr>\n<td>purpose</td>\n<td>string</td>\n<td>{INVOICE, INSTANT_PAYMENTS, ECOMM, OTHERS}  <br />Purpose for which the payment is being taken</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>{ACTIVE, IN_ACTIVE}</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>string</td>\n<td>Date and Time when the request was created</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","payment-request",":paymentrequestid"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"c77cfe2f-0b3e-407d-99cd-6bcab9e562a9","type":"any","value":null,"key":"paymentrequestid"}]}},"response":[{"id":"a8185680-6ffb-414d-87ed-bd2a551bc9c3","name":"Retrieve Payment Request by id","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"url":"{{base_url}}/banking/v2/pay/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"358"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Oct 2020 10:04:57 GMT"},{"key":"x-amzn-RequestId","value":"50c44bb9-a245-43f9-946b-79ec9353327c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VEKPZGCrDoEF9ZA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f97f0c8-14db3d063cfe7bb17bc0b319"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0bf3f0b7038d55ea4f178432aa6ddc53.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"JP6v6mhVbk5W26hAalxYmrZYW1qddo3F_BsfiBIXdemVQf1h5GukiQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"4b5b0eef-f17f-4760-afc9-1371f5b951c6\",\n    \"partnerId\": \"6ae1c843-e97d-437c-81d8-6106e91c985f\",\n    \"companyId\": \"2667fd3b-49e9-4a84-b77a-b013deada508\",\n    \"paymentType\": \"DOMESTIC\",\n    \"creditor\": {\n        \"accountId\": \"6f440597-5af7-45f9-bf0d-0abbea113abd\",\n        \"bankId\": 50,\n        \"name\": \"Julia Research Ltd\",\n        \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n        \"identification\": \"60837109152388\",\n        \"accountType\": \"BUSINESS\"\n    },\n    \"amount\": \"0.01\",\n    \"currency\": \"GBP\",\n    \"reference\": \"test reference\",\n    \"creationDate\": \"2022-01-20T15:49:28.789Z\",\n    \"updatedDate\": \"\",\n    \"dynamicAmountUrl\": \"dynamicAmountUrl\",\n    \"usage\": \"SINGLE\",\n    \"status\": \"ACTIVE\",\n    \"isProtected\": false,\n    \"purpose\": \"OTHERS\",\n    \"paymentLink\": \"https://pay.tomatopay.co.uk/request?l=eyJsaW5rSWQiOiJmMjJlZDMzYS1iNWUzLTRiZTUtYTgyYS1iNDMwYWY2OTliYzUiLCJwYXJ0bmVySWQiOiI2YWUxYzg0My1lOTdkLTQzN2MtODFkOC02MTA2ZTkxYzk4NWYifQ==\"\n}"}],"_postman_id":"431e80b8-1a8f-410f-8b95-fa311a69926d"},{"name":"Retrieve Payment Requests","id":"49f61880-76a1-4c8d-a1d0-577be52a40f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/banking/v2/pay/payment-request?status&purpose","description":"<p>The 'Retrieve payment requests' endpoint can be used to retrieve particular set of payment request using status and purpose.</p>\n<h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>creditor</td>\n<td>JSON object</td>\n<td>Creditor information</td>\n</tr>\n<tr>\n<td>creditor -&gt; accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account (this is provided by Retrieve Bank Accounts endpoint)</td>\n</tr>\n<tr>\n<td>creditor -&gt; bankId</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>creditor -&gt; name</td>\n<td>string</td>\n<td>Name on the bank account</td>\n</tr>\n<tr>\n<td>creditor -&gt; schemeName</td>\n<td>string</td>\n<td>IBAN or Account and sort code</td>\n</tr>\n<tr>\n<td>creditor -&gt; identification</td>\n<td>string</td>\n<td>Unique id per bank account</td>\n</tr>\n<tr>\n<td>creditor -&gt; accountType</td>\n<td>string</td>\n<td>Type of bank account e.g. BUSINESS, PERSONAL</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>paymentType</td>\n<td>string</td>\n<td>Payment type {DOMESTIC}</td>\n</tr>\n<tr>\n<td>usage</td>\n<td>string</td>\n<td>{SINGLE/MULTI}  <br />Configure the request to take either single or multiple payments</td>\n</tr>\n<tr>\n<td>isProtected</td>\n<td>boolean</td>\n<td>If set to true, retrieve endpoints will mask bank account details.</td>\n</tr>\n<tr>\n<td>purpose</td>\n<td>string</td>\n<td>{INVOICE, INSTANT_PAYMENTS, ECOMM, OTHERS}  <br />Purpose for which the payment is being taken</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>{ACTIVE, IN_ACTIVE}</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>string</td>\n<td>Date and Time when the request was created</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","payment-request"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>{ACTIVE, IN_ACTIVE}</p>\n","type":"text/plain"},"key":"status","value":null},{"description":{"content":"<p>{INVOICE, INSTANT_PAYMENTS, ECOMM, OTHERS}</p>\n","type":"text/plain"},"key":"purpose","value":null}],"variable":[]}},"response":[{"id":"cab2e0de-38d1-4ca7-87a2-264006212fcb","name":"Retrieve Payment Requests","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"url":"{{base_url}}/banking/v2/pay/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"358"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Oct 2020 10:04:57 GMT"},{"key":"x-amzn-RequestId","value":"50c44bb9-a245-43f9-946b-79ec9353327c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VEKPZGCrDoEF9ZA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f97f0c8-14db3d063cfe7bb17bc0b319"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0bf3f0b7038d55ea4f178432aa6ddc53.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"JP6v6mhVbk5W26hAalxYmrZYW1qddo3F_BsfiBIXdemVQf1h5GukiQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n    {\n        \"id\": \"4b5b0eef-f17f-4760-afc9-1371f5b951c6\",\n        \"partnerId\": \"6ae1c843-e97d-437c-81d8-6106e91c985f\",\n        \"companyId\": \"2667fd3b-49e9-4a84-b77a-b013deada508\",\n        \"paymentType\": \"DOMESTIC\",\n        \"creditor\": {\n            \"accountId\": \"6f440597-5af7-45f9-bf0d-0abbea113abd\",\n            \"bankId\": 50,\n            \"name\": \"Julia Research Ltd\",\n            \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n            \"identification\": \"60837109152388\",\n            \"accountType\": \"BUSINESS\"\n        },\n        \"amount\": \"0.01\",\n        \"currency\": \"GBP\",\n        \"reference\": \"test reference\",\n        \"creationDate\": \"2022-01-20T15:49:28.789Z\",\n        \"updatedDate\": \"\",\n        \"dynamicAmountUrl\": \"dynamicAmountUrl\",\n        \"usage\": \"SINGLE\",\n        \"status\": \"ACTIVE\",\n        \"isProtected\": false,\n        \"purpose\": \"OTHERS\",\n        \"paymentLink\": \"https://pay.tomatopay.co.uk/request?l=eyJsaW5rSWQiOiJmMjJlZDMzYS1iNWUzLTRiZTUtYTgyYS1iNDMwYWY2OTliYzUiLCJwYXJ0bmVySWQiOiI2YWUxYzg0My1lOTdkLTQzN2MtODFkOC02MTA2ZTkxYzk4NWYifQ==\"\n    }\n],\n\"links\": {}\n}\n"}],"_postman_id":"49f61880-76a1-4c8d-a1d0-577be52a40f4"}],"id":"124aee6f-3cc7-4092-9748-99300588d47e","_postman_id":"124aee6f-3cc7-4092-9748-99300588d47e","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}}},{"name":"Outbound payments","item":[{"name":"Create Payment Consent","id":"37d4dda2-1b6e-415b-8dd5-1fa14836821c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"bankId\": \"6\",\n    \"redirect\": \"redirect_url\",\n    \"creditor\": {\n        \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n        \"identification\": \"Identification\",\n        \"name\": \"Account name\"\n    },\n    \"reference\": \"Reference\",\n    \"amount\": \"1.00\",\n    \"currency\": \"GBP\",\n    \"type\": \"DOMESTIC\"\n}"},"url":"{{base_url}}/banking/v2/pay/domestic/consents","description":"<p>Create Payment Consent</p>\n<p>Before initiating a payment, a payment request must be created and presented to the user for their consent.</p>\n<p>Payment request must include the bank details of the payee and the details of the payment (amount, currency and payment type).</p>\n<p>Calling this endpoint will generate a payment link (authUrl) that can be sent to the payer. The payer will have to authorise the payment by authenticating with their bank before it can be completed.</p>\n<p>On successful authentication, a code, id_token, and state will be returned along with the bankId.</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>redirect</td>\n<td>string (link)</td>\n<td>URL to redirect to after the bank account is added</td>\n</tr>\n<tr>\n<td>creditor</td>\n<td>JSON object</td>\n<td>Creditor information</td>\n</tr>\n<tr>\n<td>creditor -&gt; schemeName</td>\n<td>string</td>\n<td>IBAN or Account and sort code</td>\n</tr>\n<tr>\n<td>creditor -&gt; identification</td>\n<td>string</td>\n<td>Creditor's account details</td>\n</tr>\n<tr>\n<td>creditor -&gt; name</td>\n<td>string</td>\n<td>Creditor name</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Payment type {DOMESTIC}</td>\n</tr>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>Temporary code to be exchanged for access token with the bank</td>\n</tr>\n<tr>\n<td>id_token</td>\n<td>string</td>\n<td>Base64 encoded JSON for verifying state and token’s validity</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>Base64 encoded JSON containing information about the original request to persist the state throughout the user journey</td>\n</tr>\n<tr>\n<td>state-&gt;nonce</td>\n<td>string</td>\n<td>String value used to associate a client session with an ID Token, and to mitigate replay attacks (for internal use)</td>\n</tr>\n<tr>\n<td>state-&gt;reRed</td>\n<td>string</td>\n<td>Redirect URL</td>\n</tr>\n<tr>\n<td>state-&gt;accReq</td>\n<td>string</td>\n<td>tomato pay consentId</td>\n</tr>\n<tr>\n<td>state-&gt;bId</td>\n<td>integer</td>\n<td>bankId (Unique identifier for the bank)</td>\n</tr>\n<tr>\n<td>state-&gt;consentId</td>\n<td>string</td>\n<td>bank consentId</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Response </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>signInUrl</td>\n<td>string</td>\n<td>Sign in URL for the requested bank</td>\n</tr>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique ID for the consent</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid bankId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>No request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid redirect”}</td>\n</tr>\n<tr>\n<td>Missing/Invalid redirect</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid redirect”}</td>\n</tr>\n<tr>\n<td>No currency in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/invalid currency\"}</td>\n</tr>\n<tr>\n<td>No amount in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/invalid amount\"}</td>\n</tr>\n<tr>\n<td>Reference greater than 35 characters in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"The reference field has a maximum of 35 chars\"}</td>\n</tr>\n<tr>\n<td>Invalid type</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid type. Must be DOMESTIC</td>\n</tr>\n<tr>\n<td>No creditor in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid creditor.name\"}</td>\n</tr>\n<tr>\n<td>Invalid schemeName in request body</td>\n<td>400 Bad Request</td>\n<td>\"error\": \"Missing/Invalid creditor.schemeName\"</td>\n</tr>\n<tr>\n<td>Invalid identification in request body</td>\n<td>400 Bad Request</td>\n<td>\"error\": \"Missing/Invalid creditor.identification\"</td>\n</tr>\n<tr>\n<td>Bank error</td>\n<td>502 Bad Gateway</td>\n<td>{error: “Bank error”}</td>\n</tr>\n<tr>\n<td>Server error</td>\n<td>500 Internal server error</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","domestic","consents"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"fbd40ef8-9376-450a-b57f-fe4fdf3cc1c9","name":"Create Payment Consent","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"bankId\": \"6\",\n    \"redirect\": \"redirect_url\",\n    \"creditor\": {\n        \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n        \"identification\": \"Identification\",\n        \"name\": \"Account name\"\n    },\n    \"reference\": \"Reference\",\n    \"amount\": \"1.00\",\n    \"currency\": \"GBP\",\n    \"type\": \"DOMESTIC\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/banking/v2/pay/domestic/consents"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Oct 2020 10:28:48 GMT"},{"key":"x-amzn-RequestId","value":"1aef3cc5-12ad-4f0b-9b9d-40432c8adc5e"},{"key":"x-amzn-ErrorType","value":"BadRequestException"},{"key":"x-amz-apigw-id","value":"VENvDHigjoEFy3Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f97f660-7ffc959370263d1c378ba4c4"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 7fba62cc8c04153ed4b922245ff30684.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"PhWw0glzC2bWU5Vu9jUkcDUfDuQf6Ug3j7jnDE_7hxvHJ7LT4P12Zw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"signInUrl\": \"www.bankauthURL\",\n    \"consentId\": \"consentId1234\",\n    \"status\": \"AWAITINGAUTHORISATION\",\n    \"bankId\": 6\n}"}],"_postman_id":"37d4dda2-1b6e-415b-8dd5-1fa14836821c"},{"name":"Authorise Payment","event":[{"listen":"test","script":{"id":"ed3b5763-801c-49bb-9415-80bcdf2cbcca","exec":["//setting authentication environment variable","var jsonData = pm.response.json();","var paymentId = jsonData.paymentId;","postman.setEnvironmentVariable(\"paymentId\", paymentId);"],"type":"text/javascript"}}],"id":"6615dfcf-7755-46a8-a909-0c85560c3c01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"bankId\": \"6\",\n   \"code\":\"code\",\n    \"id_token\":\"id token\",\n    \"state\":\"state\"\n}\n\n"},"url":"{{base_url}}/banking/v2/pay/domestic/consents/:consentId","description":"<p>Authorise Payment</p>\n<p>Before the payment can be initiated, the payment request needs to be approved.</p>\n<p>Before calling this endpoint, authentication needs to be created in order to retrieve the authentication URL (authUrl) for the bank.</p>\n<p>Now, your application will need to redirect a user to the authUrl location for them to sign in through their bank account.</p>\n<p>The payment request will be completed once the user successfully signs in. You will be redirected back to your redirect field in the initial POST request body.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique identifier for the consent</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Request </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>Temporary code to be exchanged for access token with the bank</td>\n</tr>\n<tr>\n<td>id_token</td>\n<td>string</td>\n<td>Base64 encoded JSON for verifying state and token’s validity</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>Base64 encoded JSON containing information about the original request to persist the state throughout the user journey</td>\n</tr>\n<tr>\n<td>state-&gt;nonce</td>\n<td>string</td>\n<td>String value used to associate a client session with an ID Token, and to mitigate replay attacks (for internal use)</td>\n</tr>\n<tr>\n<td>state-&gt;reRed</td>\n<td>string</td>\n<td>Redirect URL</td>\n</tr>\n<tr>\n<td>state-&gt;accReq</td>\n<td>string</td>\n<td>tomato pay consentId</td>\n</tr>\n<tr>\n<td>state-&gt;bId</td>\n<td>integer</td>\n<td>bankId (Unique identifier for the bank)</td>\n</tr>\n<tr>\n<td>state-&gt;consentId</td>\n<td>string</td>\n<td>bank consentId</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the payment</td>\n</tr>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique identifier for the consent</td>\n</tr>\n<tr>\n<td>companyId</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n<tr>\n<td>creditor</td>\n<td>JSON object</td>\n<td>Creditor information</td>\n</tr>\n<tr>\n<td>creditor -&gt; schemename</td>\n<td>string</td>\n<td>IBAN or Account and sort code</td>\n</tr>\n<tr>\n<td>creditor -&gt; identification</td>\n<td>string</td>\n<td>Creditor's account details</td>\n</tr>\n<tr>\n<td>creditor -&gt; name</td>\n<td>string</td>\n<td>Creditor name</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Payment type {DOMESTIC}</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>datetime</td>\n<td>Date and time of the transaction</td>\n</tr>\n<tr>\n<td>remittanceInfo</td>\n<td>string</td>\n<td>Partner Id is sent as remittance information in order to reconcile the payment with AIS transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid bankId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>No code</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid bank code”}</td>\n</tr>\n<tr>\n<td>No state</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid state}</td>\n</tr>\n<tr>\n<td>No id_token</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid id_token”}</td>\n</tr>\n<tr>\n<td>Invalid state</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid state”}</td>\n</tr>\n<tr>\n<td>Invalid id_token</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Open ID token verification failed”}</td>\n</tr>\n<tr>\n<td>Bank errors</td>\n<td>502 Bad Gateway</td>\n<td>{“error”: “Bank error”}</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","domestic","consents",":consentId"],"host":["{{base_url}}"],"query":[],"variable":[{"description":{"content":"<p>Unique identifier for the consent</p>\n","type":"text/plain"},"type":"any","value":"{{consentId}}","key":"consentId"}]}},"response":[{"id":"8a52da54-fdae-48a2-ba00-7130a6050783","name":"Authorise Payment","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"bankId\": 6,\n    \"code\": \"code\",\n    \"id_token\": \"id token\",\n    \"state\": \"state\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/banking/v2/pay/domestic/consents/:consentId","host":["{{base_url}}"],"path":["banking","v2","pay","domestic","consents",":consentId"],"variable":[{"key":"consentId","value":"consentId3456"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"358"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Oct 2020 10:02:59 GMT"},{"key":"x-amzn-RequestId","value":"86c98315-9b11-4fb9-b5ab-2eef120b49ec"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VEJ4_F1KDoEFkmw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f97f039-257c30cc7efccb8c6e053d2f"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0bf3f0b7038d55ea4f178432aa6ddc53.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"1245Qhsp4PLfuukbmAzz7h1bfB8uxTKKhD3drba-5o8NVUxrnMVkgQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"paymentId1234\",\n    \"consentId\": \"consentId3456\",\n    \"bankId\": 6,\n    \"companyId\": \"companyId1234\",\n    \"type\": \"DOMESTIC\",\n    \"status\": \"PENDING\",\n    \"amount\": \"25.00\",\n    \"currency\": \"GBP\",\n    \"reference\": \"reference\",\n    \"creditor\": {\n        \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n        \"identification\": \"11223301234567\",\n        \"name\": \"Creditor name\"\n    },\n    \"creationDate\": \"2020-10-27T10:02:37Z\",\n    \"remittanceInfo\": \"partnerId1243\"\n}"}],"_postman_id":"6615dfcf-7755-46a8-a909-0c85560c3c01"},{"name":"Retrieve Payment Consents","id":"080a2e69-7c21-42e5-b051-7660c63fad08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/banking/v2/pay/domestic/consents","description":"<p>Payment consents can be retrieved by providing a bankId.</p>\n<p>The consent response will include payment details (amount, currency, payment type), consent Id, date and status.</p>\n<h2> Query parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique consent id returned by the bank</td>\n</tr>\n<tr>\n<td>companyId</td>\n<td>string</td>\n<td>Unique id for the company</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique id for the bank</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>datetime</td>\n<td>Date when the consent was created</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Status of consent {Authorised, AwaitingAuthorisation, Rejected}</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Payment type {DOMESTIC}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid bankId</td>\n<td>Empty response body</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","domestic","consents"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""}],"variable":[]}},"response":[{"id":"b11cd3ec-2570-4748-a9fa-e6b91506f72b","name":"Retrieve Payment Consents","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":{"raw":"{{base_url}}/banking/v2/pay/domestic/consents/","host":["{{base_url}}"],"path":["banking","v2","pay","domestic","consents",""],"query":[{"key":"pageId","value":null,"description":"Page offset of results","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"8719"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Oct 2020 10:32:55 GMT"},{"key":"x-amzn-RequestId","value":"988399f8-b0ff-4faf-874b-f0ae8a075509"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VEOVkGPPDoEFhSg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f97f756-6750edad1abd1c1d3192a57a"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7fba62cc8c04153ed4b922245ff30684.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"zCC3VtRyryRHDRBV0PHT5XPxVvNIAfdGplXNZWo-MLyjQX9nzuGpYw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"consentId1234\",\n            \"companyId\": \"companyId1234\",\n            \"amount\": \"20.00\",\n            \"currency\":  \"GBP\",\n            \"type\": \"DOMESTIC\",\n            \"bankId\": 6,\n            \"creationDate\": \"2020-07-30T15:10:38.002Z\",\n            \"status\": \"AWAITINGAUTHORISATION\"\n        },\n        {\n            \"id\": \"consentId1345\",\n            \"companyId\": \"companyId1234\",\n            \"amount\": \"10000.00\",\n            \"currency\":  \"GBP\",\n            \"type\": \"DOMESTIC\",\n            \"bankId\": 6,\n            \"creationDate\": \"2020-10-20T09:11:14.164Z\",\n            \"status\": \"AUTHORISED\"\n        },\n        {\n            \"id\": \"consentId345\",\n            \"companyId\": \"companyId1234\",\n            \"amount\": \"100.00\",\n            \"currency\":  \"GBP\",\n            \"type\": \"DOMESTIC\",\n            \"bankId\": 6,\n            \"creationDate\": \"2020-07-28T22:05:15.102Z\",\n            \"status\": \"REJECTED\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"080a2e69-7c21-42e5-b051-7660c63fad08"},{"name":"Retrieve Payment Consent (by id)","id":"ae362f3b-3edb-42e1-97bb-e646c72607d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/banking/v2/pay/domestic/consents/:consentId","description":"<p>Payment consents can be retrieved by providing a bankId.</p>\n<p>The consent response will include payment details (amount, currency, payment type), consent Id, date and status.</p>\n<h2> Path parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique identifier for the consent</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique consent id returned by the bank</td>\n</tr>\n<tr>\n<td>companyId</td>\n<td>string</td>\n<td>Unique id for the company</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique id for the bank</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>datetime</td>\n<td>Date when the consent was created</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Status of consent {Authorised, AwaitingAuthorisation, Rejected}</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Payment type {DOMESTIC}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid consentId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","domestic","consents",":consentId"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""}],"variable":[{"type":"any","value":null,"key":"consentId"}]}},"response":[{"id":"60c2cca5-729d-4b13-936d-92556b3ebcb2","name":"Retrieve Payment Consent (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":{"raw":"{{base_url}}/banking/v2/pay/domestic/consents/:consentId","host":["{{base_url}}"],"path":["banking","v2","pay","domestic","consents",":consentId"],"query":[{"key":"pageId","value":null,"description":"Page offset of results","type":"text","disabled":true}],"variable":[{"key":"consentId","value":"consentId1234"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"8719"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Oct 2020 10:32:55 GMT"},{"key":"x-amzn-RequestId","value":"988399f8-b0ff-4faf-874b-f0ae8a075509"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VEOVkGPPDoEFhSg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f97f756-6750edad1abd1c1d3192a57a"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7fba62cc8c04153ed4b922245ff30684.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"zCC3VtRyryRHDRBV0PHT5XPxVvNIAfdGplXNZWo-MLyjQX9nzuGpYw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"consentId1234\",\n    \"companyId\": \"companyId1234\",\n    \"amount\": \"20.00\",\n    \"currency\": \"GBP\",\n    \"type\": \"DOMESTIC\",\n    \"bankId\": 6,\n    \"creationDate\": \"2020-07-30T15:10:38.002Z\",\n    \"status\": \"AWAITINGAUTHORISATION\"\n}"}],"_postman_id":"ae362f3b-3edb-42e1-97bb-e646c72607d8"}],"id":"c5af211d-a1f8-462a-b396-262ec6ad5379","_postman_id":"c5af211d-a1f8-462a-b396-262ec6ad5379","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}}},{"name":"Subscription API","item":[{"name":"Subscription Request","item":[{"name":"Subscription Request","id":"bf8c0b6c-40d1-42a0-b8b9-59ec0dab18a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{X-Company-Id}}"}],"body":{"mode":"raw","raw":"{\n    \"requestorBankAccountId\": \"807802ac-6699-4583-bf3b-c74dffcc2dd1\",\n    \"products\": \"SMART_INVOICE\",\n    \"frequency\": \"MONTHLY\",\n    \"numberOfPayments\": 50,\n    \"trialDuration\": 45,\n    \"amount\": \"9.95\",\n    \"currency\": \"GBP\",\n    \"resourceBaseurl\": \"\"\n}"},"url":"{{base_url}}/banking/v2/pay/domestic/subscription/subscription-request","description":"<p>The 'Create Subscription Request' endpoint can be used to create request which contains the details the subscription plan such as the Payee Bank Account,Trial duration ,amount and products.</p>\n<h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>requestorBankAccountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account (this is provided by Retrieve Bank Accounts endpoint)</td>\n</tr>\n<tr>\n<td>products</td>\n<td>string</td>\n<td>Comma separated list of products that can be subscribed</td>\n</tr>\n<tr>\n<td>frequency</td>\n<td>string</td>\n<td>Payment frequency MONTHLY/QUARTERLY/SEMIANNUAL/ANNUAL/DAILY</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Subscription amount</td>\n</tr>\n<tr>\n<td>numberOfPayments</td>\n<td>integer</td>\n<td>the total number of payments to be made.</td>\n</tr>\n<tr>\n<td>trialDuration</td>\n<td>integer</td>\n<td>trail duration in days</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>currency</td>\n</tr>\n<tr>\n<td>resourceBaseurl</td>\n<td>string</td>\n<td>url to get the static content details like description , offer details</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Error Messages</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>No request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid json”}</td>\n</tr>\n<tr>\n<td>No currency in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/invalid currency\"}</td>\n</tr>\n<tr>\n<td>No amount in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/invalid amount\"}</td>\n</tr>\n<tr>\n<td>No products in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid product}</td>\n</tr>\n<tr>\n<td>No requestorBankAccountId in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid requestorBankAccountId}</td>\n</tr>\n<tr>\n<td>No trialDuration</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid trialDuration\"}</td>\n</tr>\n<tr>\n<td>Server error</td>\n<td>500 Internal server error</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","domestic","subscription","subscription-request"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"8c20dde2-30d0-4f55-aeb8-3a79eeb2f231","name":"Subscription Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"requestorBankAccountId\": \"807802ac-6699-4583-bf3b-c74dffcc2dd1\",\n    \"products\": \"SMART_INVOICE\",\n    \"frequency\": \"MONTHLY\",\n    \"numberOfPayments\": 50,\n    \"trialDuration\": 45,\n    \"amount\": \"9.95\",\n    \"currency\": \"GBP\",\n    \"resourceBaseurl\": \"\"\n}"},"url":"{{base_url}}/banking/v2/pay/domestic/subscription/subscription-request"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1762"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 24 Jan 2022 10:20:21 GMT"},{"key":"x-amzn-RequestId","value":"fdcdea22-d574-4a42-978a-d52eb70c9233"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"x-amz-apigw-id","value":"MciHZFK6DoEFT9g="},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"X-Amzn-Trace-Id","value":"Root=1-61ee7d62-2152a23c673c82a56f234ff8"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 87df42a5b068c9b504dcaa62529e2dfa.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR61-C1"},{"key":"X-Amz-Cf-Id","value":"Jpr4TlZwfHA1mnL3IgF977sUsMl2-g_lcspC32HSsp9y0Dw51voJuw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"31dc2397-2e87-4c50-b037-ef3937a86bc0\",\n    \"requestorBankAccount\": {\n        \"accountId\": \"accountId1234\",\n        \"bankId\": 20,\n        \"name\": \"Creditor account name\",\n        \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n        \"identification\": \"5000004001234\",\n        \"secondaryAccountIdentification\": \"\",\n        \"accountType\": \"BUSINESS\"\n    },\n    \"products\": \"SMART_INVOICE\",\n    \"frequency\": \"MONTHLY\",\n    \"numberOfPayments\": 50,\n    \"trialDuration\": 45,\n    \"amount\": \"9.95\",\n    \"currency\": \"GBP\",\n    \"resourceBaseurl\": \"\",\n    \"creationDate\": \"2022-02-23T17:42:02.454Z\",\n    \"updatedDate\": \"\",\n    \"status\": \"ACTIVE\",\n    \"requestorCompanyId\": \"37084fac-a47c-498f-8bf7-96b50a35c8bc\"\n}"}],"_postman_id":"bf8c0b6c-40d1-42a0-b8b9-59ec0dab18a0"},{"name":"Retrieve Subscription Requests","id":"c351c3bd-2f1b-432d-9629-a48b9a8aa505","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/pay/subscription/subscription-requests?pageId=&products=","description":"<p>This endpoint can be used to retrieve subscription requests for a company.</p>\n<h2>Query Parameters</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>products</td>\n<td>string</td>\n<td>comma separated product list</td>\n</tr>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscriptionRequestId</td>\n<td>string</td>\n<td>Unique identifier for subscription request</td>\n</tr>\n<tr>\n<td>products</td>\n<td>string</td>\n<td>Comma separated list of products that can be subscribed</td>\n</tr>\n<tr>\n<td>frequency</td>\n<td>string</td>\n<td>Payment frequency MONTHLY/QUARTERLY/SEMIANNUAL/ANNUAL/DAILY</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Subscription amount</td>\n</tr>\n<tr>\n<td>numberOfPayments</td>\n<td>integer</td>\n<td>the total number of payments to be made.</td>\n</tr>\n<tr>\n<td>trialDuration</td>\n<td>integer</td>\n<td>trail duration in days</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>currency</td>\n</tr>\n<tr>\n<td>requestorBankAccount</td>\n<td>string</td>\n<td>Payee Bank Account details</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Error Messages</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td>{ \"error\": \"Missing/Invalid pageId” }</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","subscription","subscription-requests"],"host":["{{base_url}}"],"query":[{"key":"pageId","value":""},{"key":"products","value":""}],"variable":[]}},"response":[{"id":"17cccba7-238b-422e-86c4-3df7deb0ded8","name":"Retrieve Subscription Requests","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/banking/v2/pay/subscription/subscription-requests","host":["{{base_url}}"],"path":["banking","v2","pay","subscription","subscription-requests"],"query":[{"key":"pageId","value":"aced0005737200116a6176612e7574696c2e486173684d61700507dac1c31660d103000246000a6c6f6164466163746f724900097468726573686f6c6478703f4000000000000c77080000001000000001740009636f6d70616e79496473720036636f6d2e616d617a6f6e6177732e73657276696365732e64796e616d6f646276322e6d6f64656c2e41747472696275746556616c75655ea8b5fd215562c402000a4c0001627400154c6a6176612f6e696f2f427974654275666665723b4c0004624f4f4c7400134c6a6176612f6c616e672f426f6f6c65616e3b4c000262537400104c6a6176612f7574696c2f4c6973743b4c00016c71007e00064c00016d74000f4c6a6176612f7574696c2f4d61703b4c00016e7400124c6a6176612f6c616e672f537472696e673b4c00026e5371007e00064c00096e554c4c56616c756571007e00054c00017371007e00084c0002735371007e00067870707070707070707074002465333533336236342d653632352d343733312d613638382d6439313730633335356236317078","disabled":true},{"key":"products","value":"SMART_INVOIC","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"573"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 24 Jan 2022 10:00:38 GMT"},{"key":"x-amzn-RequestId","value":"1ad43690-fd97-40dd-8559-569067edf7bb"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"x-amz-apigw-id","value":"McfOQH4kDoEFn7Q="},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"X-Amzn-Trace-Id","value":"Root=1-61ee78c1-583f1bae5f28402b1ca50b5b"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 1e9d4474768cac13d02c7902d1cf85de.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR61-C1"},{"key":"X-Amz-Cf-Id","value":"Rp6X6rMBTgZ09mhpo_e3CIh_SnzVEvQuKofRWueiaDl3SInNF61G5A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"subscriptionRequestId\": \"65e3c92c-4d99-58e8-9d1b-0e4da9843021\",\n            \"requestorCompanyId\": \"01dfc92c-01cc-4442-93fd-878f516f46c7\",\n            \"products\": \"SMART_INVOICE\",\n            \"frequency\": \"MONTHLY\",\n            \"numberOfPayments\": 50,\n            \"trialDuration\": 45,\n            \"requestorBankAccount\": {\n                \"accountId\": \"accountId1234\",\n                \"bankId\": 7,\n                \"name\": \"Debit Account\",\n                \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n                \"identification\": \"5000004001234\",\n                \"accountType\": \"BUSINESS\"\n            },\n            \"amount\": \"9.99\",\n            \"currency\": \"GBP\",\n            \"status\": \"\",\n            \"creationDate\": \"2022-01-20T20:29:03.199Z\",\n            \"updatedDate\": \"\",\n            \"resourceBaseurl\": \"\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"c351c3bd-2f1b-432d-9629-a48b9a8aa505"},{"name":"Retrieve Subscription Request By Id","id":"e9c607f7-4d99-4328-a877-628b8db2cb0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":"{{base_url}}/banking/v2/pay/subscription/subscription-requests/:subscriptionRequestId","description":"<p>This endpoint can be used to retrieve a particular subscription request .</p>\n<h2>Path variables</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscriptionRequestId</td>\n<td>string</td>\n<td>Unique identifier for the subscription request.</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscriptionRequestId</td>\n<td>string</td>\n<td>Unique identifier for subscription request</td>\n</tr>\n<tr>\n<td>products</td>\n<td>string</td>\n<td>Comma-separated list of products that can be subscribed</td>\n</tr>\n<tr>\n<td>frequency</td>\n<td>string</td>\n<td>Payment Frequency MONTHLY/QUARTERLY/SEMIANNUAL/ANNUAL/DAILY</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Subscription amount</td>\n</tr>\n<tr>\n<td>numberOfPayments</td>\n<td>integer</td>\n<td>the total number of payments to be made.</td>\n</tr>\n<tr>\n<td>trialDuration</td>\n<td>integer</td>\n<td>trail duration in days</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>currency</td>\n</tr>\n<tr>\n<td>requestorBankAccount</td>\n<td>string</td>\n<td>Payee Bank Account details</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Error Messages</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid subscriptionRequestId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","subscription","subscription-requests",":subscriptionRequestId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"72ff1f8b-d216-4d9d-867a-127fb9b85bff","type":"any","value":null,"key":"subscriptionRequestId"}]}},"response":[{"id":"22ddfdd0-e888-4543-8577-8ade88dfda90","name":"Retrieve Subscription Requests By Id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"07449d2e-af5c-49e0-8d3d-7c455a65adbd"}],"url":{"raw":"{{base_url}}/banking/v2/pay/subscription/subscription-requests/:subscriptionId","host":["{{base_url}}"],"path":["banking","v2","pay","subscription","subscription-requests",":subscriptionId"],"variable":[{"key":"subscriptionId","value":"76e3c92c-3d99-48e8-8d1b-0e4da9843022"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"subscriptionRequestId\": \"76e3c92c-3d99-48e8-8d1b-0e4da9843022\",\n    \"requestorCompanyId\": \"07449d2e-af5c-49e0-8d3d-7c455a65adbd\",\n    \"products\": \"SMART_INVOICE\",\n    \"frequency\": \"MONTHLY\",\n    \"numberOfPayments\": 50,\n    \"trialDuration\": 45,\n    \"requestorBankAccount\": {\n        \"accountId\": \"accountId1234\",\n        \"bankId\": 7,\n        \"name\": \"Debit Account\",\n        \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n        \"identification\": \"5000004001234\",\n        \"accountType\": \"BUSINESS\"\n    },\n    \"amount\": \"9.95\",\n    \"currency\": \"GBP\",\n    \"status\": \"\",\n    \"creationDate\": \"2022-01-18T10:29:03.199Z\",\n    \"updatedDate\": \"\",\n    \"resourceBaseurl\": \"\"\n}"}],"_postman_id":"e9c607f7-4d99-4328-a877-628b8db2cb0c"}],"id":"77450569-4094-4b11-ae47-f6a9f976aeeb","description":"<p>Subscription Request is the domain object which contains the details of Payee Bank Account , amount, frequency ,trial duration and products which can be subscribed.</p>\n","_postman_id":"77450569-4094-4b11-ae47-f6a9f976aeeb","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}}},{"name":"Subscription Consent","item":[{"name":"Subscription Consent","id":"2b2719dc-e294-4452-9071-d29b7dbdc4b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{payerCompanyId}}"}],"body":{"mode":"raw","raw":"{\n    \"bankId\": \"52\",\n    \"redirect\" : \"http://localhost:3000\",\n    \"subscriptionRequestId\": \"655dbfad-aeda-4370-9401-2b63651caea0\",\n    \"clientCallbackUrl\": \"app-deep-link\"\n\n}"},"url":"{{base_url}}/banking/v2/pay/domestic/subscription/subscriptionConsent","description":"<p>Create Subscription Consent</p>\n<p>Before initiating a standing order payment, a subscription request must be created and presented to the user for their consent.</p>\n<p>Payment request must include the bank details of the payee and the details of the payment (amount, currency and payment type).</p>\n<p>Calling this endpoint will generate a bank sigin url that can be sent to the payer. The payer will have to authorise the payment by authenticating with their bank before it can be completed.</p>\n<p>On successful authentication, a code, id_token, and state will be returned along with the bankId.</p>\n<h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>redirect</td>\n<td>string (link)</td>\n<td>URL to redirect to after the bank account is authorised</td>\n</tr>\n<tr>\n<td>subscriptionRequestId</td>\n<td>string</td>\n<td>Subscription Request Id</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Response</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>signInUrl</td>\n<td>string</td>\n<td>Sign in URL for the requested bank</td>\n</tr>\n<tr>\n<td>subscriptionConsentId</td>\n<td>string</td>\n<td>Unique ID for the subscription consent</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Error Messages</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid bankId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>No request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid redirect”}</td>\n</tr>\n<tr>\n<td>Missing/Invalid redirect</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/Invalid redirect”}</td>\n</tr>\n<tr>\n<td>No subscriptionRequestId in the request body</td>\n<td>400 Bad Request</td>\n<td>{\"error\": \"Missing/invalid subscriptionRequestId\"}</td>\n</tr>\n<tr>\n<td>Invalid SubscriptionRequestId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Server error</td>\n<td>500 Internal server error</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","domestic","subscription","subscriptionConsent"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"1c1f8b82-9a9f-4544-8471-5fc99e106d12","name":"Subscription Consent","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{payerCompanyId}}"}],"body":{"mode":"raw","raw":"{\n    \"bankId\": 20,\n    \"redirect\" : \"http://localhost:3000\",\n    \"subscriptionRequestId\": \"65e3c92c-4d99-58e8-9d1b-0e4da9843021\"\n\n}"},"url":"{{base_url}}/banking/v2/pay/domestic/subscription/subscriptionConsent"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1762"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 24 Jan 2022 10:20:21 GMT"},{"key":"x-amzn-RequestId","value":"fdcdea22-d574-4a42-978a-d52eb70c9233"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"x-amz-apigw-id","value":"MciHZFK6DoEFT9g="},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"X-Amzn-Trace-Id","value":"Root=1-61ee7d62-2152a23c673c82a56f234ff8"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 87df42a5b068c9b504dcaa62529e2dfa.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR61-C1"},{"key":"X-Amz-Cf-Id","value":"Jpr4TlZwfHA1mnL3IgF977sUsMl2-g_lcspC32HSsp9y0Dw51voJuw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"bankId\": 20,\n    \"signInUrl\": \"Bank's signInUrl\",\n    \"subscriptionConsentId\": \"b64a7854-0ac7-4afe-8c1d-d999adcb4869\",\n    \"status\": \"AWAITINGAUTHORISATION\"\n}"}],"_postman_id":"2b2719dc-e294-4452-9071-d29b7dbdc4b8"},{"name":"Retrieve Subscription Consents","id":"37454d66-e39d-41ff-b773-1945da615672","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{payerCompanyId}}"}],"url":"{{base_url}}/banking/v2/pay/subscription/subscriptionConsents?subscriptionRequestId={{subscriptionRequestId}}&status","description":"<p>Subscription consents can be retrieved by providing the payer company.</p>\n<p>The consent response will include subscription consent details (amount, currency, payment type), consent Id, payment start Date and status.</p>\n<h2>Query parameters</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscription RequestId</td>\n<td>string</td>\n<td>Unique id for the subscription Request</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>status of the subscription consent(AUTHORISED/AWAITINGAUTHORISATION/CONSUMED/REJECTED)</td>\n</tr>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscriptionConsentId</td>\n<td>string</td>\n<td>Unique consent id</td>\n</tr>\n<tr>\n<td>payerCompanyId</td>\n<td>string</td>\n<td>Unique id for the company</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique id for the bank</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>datetime</td>\n<td>Date when the consent was created</td>\n</tr>\n<tr>\n<td>subscriptionRequestId</td>\n<td>string</td>\n<td>Unique id for the subscription Request</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Status of consent {Authorised, AwaitingAuthorisation, Rejected}</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>idempotencyKey</td>\n<td>string</td>\n<td>unique identifier for consent from the bank</td>\n</tr>\n<tr>\n<td>authorisedDate</td>\n<td>string</td>\n<td>Date when the consent was authorised</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>external identifier for consent</td>\n</tr>\n<tr>\n<td>paymentStartDate</td>\n<td>string</td>\n<td>payment start date for the standing order</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>string</td>\n<td>Consent Creation Date</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Payment type {DOMESTIC}</td>\n</tr>\n<tr>\n<td>updatedDate</td>\n<td>string</td>\n<td>Consent updated Date</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Error Messages</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid CompanyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid SubscrionRequestId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","subscription","subscriptionConsents"],"host":["{{base_url}}"],"query":[{"disabled":true,"key":"bankId","value":"20"},{"disabled":true,"key":"pageId","value":"as"},{"key":"subscriptionRequestId","value":"{{subscriptionRequestId}}"},{"key":"status","value":""}],"variable":[]}},"response":[{"id":"c4dae81e-cd3c-44c5-b8cc-f552eea75d28","name":"Retrieve Subscription Consents","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"687400cc-bae5-4e20-a052-7e73f8fb7018"}],"url":{"raw":"{{base_url}}/banking/v2/pay/subscription/subscriptionConsents?subscriptionRequestId=65e3c92c-4d99-58e8-9d1b-0e4da9843021","host":["{{base_url}}"],"path":["banking","v2","pay","subscription","subscriptionConsents"],"query":[{"key":"subscriptionRequestId","value":"65e3c92c-4d99-58e8-9d1b-0e4da9843021"},{"key":"bankId","value":"20","disabled":true},{"key":"pageId","value":"as","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1191"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 24 Jan 2022 10:18:36 GMT"},{"key":"x-amzn-RequestId","value":"2e3c6dcd-4564-470c-930a-be3997ee476a"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"x-amz-apigw-id","value":"Mch3XEPKjoEFnEQ="},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"X-Amzn-Trace-Id","value":"Root=1-61ee7cfb-6fc846c0192c2b6e500fda60"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 87df42a5b068c9b504dcaa62529e2dfa.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR61-C1"},{"key":"X-Amz-Cf-Id","value":"GcL6xJ1hqofQXnDcOYMkDZvnvD2b7N6bzSL_NZWBgynJ2WExqz8m0w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"subscriptionConsentId\": \"cd5069f1-74a8-43d0-859d-e0b05eb43dbb\",\n            \"payerCompanyId\": \"687400cc-bae5-4e20-a052-7e73f8fb7018\",\n            \"partnerId\": \"6ae1c843-e97d-437c-81d8-6106e91c985f\",\n            \"subscriptionRequestId\": \"65e3c92c-4d99-58e8-9d1b-0e4da9843021\",\n            \"amount\": \"9.99\",\n            \"currency\": \"GBP\",\n            \"bankId\": 31,\n            \"reference\": \"tps-m\",\n            \"idempotencyKey\": \"unique_key\",\n            \"authorisedDate\": \"\",\n            \"externalId\": \"external_id\",\n            \"tokenId\": \"\",\n            \"paymentStartDate\": \"2022-01-22T20:52:53.288Z\",\n            \"clientCallbackUrl\": \"\",\n            \"status\": \"AWAITINGAUTHORISATION\",\n            \"creationDate\": \"2022-01-20T20:52:54.664Z\",\n            \"updatedDate\": \"\"\n        },\n        {\n            \"subscriptionConsentId\": \"38b42296-a17f-4de2-a8eb-76e44a25d25d\",\n            \"payerCompanyId\": \"687400cc-bae5-4e20-a052-7e73f8fb7018\",\n            \"partnerId\": \"6ae1c843-e97d-437c-81d8-6106e91c985f\",\n            \"subscriptionRequestId\": \"65e3c92c-4d99-58e8-9d1b-0e4da9843021\",\n            \"amount\": \"9.99\",\n            \"currency\": \"GBP\",\n            \"bankId\": 31,\n            \"reference\": \"tps-3f\",\n            \"idempotencyKey\": \"38b42296a17f4de2a\",\n            \"authorisedDate\": \"\",\n            \"externalId\": \"external_id2\",\n            \"tokenId\": \"\",\n            \"paymentStartDate\": \"2022-01-26T10:17:38.405Z\",\n            \"clientCallbackUrl\": \"\",\n            \"status\": \"AWAITINGAUTHORISATION\",\n            \"creationDate\": \"2022-01-24T10:17:39.567Z\",\n            \"updatedDate\": \"\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"37454d66-e39d-41ff-b773-1945da615672"},{"name":"Retrieve Subscription Consent By Id","id":"47c96ed5-982d-487c-a64c-8b2b0f30fee5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{payerCompanyId}}"}],"url":"{{base_url}}/banking/v2/pay/subscription/subscriptionConsents/:SubscriptionConsentId","description":"<p>This endpoint can be used to retrieve a particular subscription consent.</p>\n<p>The consent response will include subscription consent details (amount, currency, payment type), consent Id, payment start Date and status.</p>\n<h2>Path variables</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscriptionConsentId</td>\n<td>string</td>\n<td>Unique identifier for the subscription consent.</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscriptionConsentId</td>\n<td>string</td>\n<td>Unique consent id</td>\n</tr>\n<tr>\n<td>payerCompanyId</td>\n<td>string</td>\n<td>Unique id for the company</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique id for the bank</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>datetime</td>\n<td>Date when the consent was created</td>\n</tr>\n<tr>\n<td>subscriptionRequestId</td>\n<td>string</td>\n<td>Unique id for the subscription Request</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Status of consent {Authorised, AwaitingAuthorisation, Rejected}</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>idempotencyKey</td>\n<td>string</td>\n<td>unique identifier for consent from the bank</td>\n</tr>\n<tr>\n<td>authorisedDate</td>\n<td>string</td>\n<td>Date when the consent was authorised</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>external identifier for consent</td>\n</tr>\n<tr>\n<td>paymentStartDate</td>\n<td>string</td>\n<td>payment start date for the standing order</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>string</td>\n<td>Consent Creation Date</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Payment type {DOMESTIC}</td>\n</tr>\n<tr>\n<td>updatedDate</td>\n<td>string</td>\n<td>Consent updated Date</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Error Messages</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid subscriptionConsentId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","subscription","subscriptionConsents",":SubscriptionConsentId"],"host":["{{base_url}}"],"query":[{"disabled":true,"key":"externalId","value":""}],"variable":[{"id":"0d6fbc0c-3072-42dc-84ef-cea29ba124f9","type":"any","value":"{{subscriptionConsentId}}","key":"SubscriptionConsentId"}]}},"response":[{"id":"c2f066cb-a74e-4fce-89d1-ddd75dd42530","name":"Retrieve Subscription Consent By Id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"687400cc-bae5-4e20-a052-7e73f8fb7018a"}],"url":{"raw":"{{base_url}}/banking/v2/pay/subscription/subscriptionConsents/:SubscriptionConsentId","host":["{{base_url}}"],"path":["banking","v2","pay","subscription","subscriptionConsents",":SubscriptionConsentId"],"query":[{"key":"externalId","value":"","disabled":true}],"variable":[{"key":"SubscriptionConsentId","value":"72aee07c-df69-41f5-a457-9d5b35285b7f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"628"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 24 Jan 2022 10:19:27 GMT"},{"key":"x-amzn-RequestId","value":"b0862377-6b84-40f7-bc5a-237711eddeff"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"x-amz-apigw-id","value":"Mch_XHk4DoEFYJQ="},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"X-Amzn-Trace-Id","value":"Root=1-61ee7d2e-3d34d0ea0052991f45d8d6b6"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 87df42a5b068c9b504dcaa62529e2dfa.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR61-C1"},{"key":"X-Amz-Cf-Id","value":"Ig-KnBc2SFm2P5d6j58YUCdb4tCkgLNxlrwlbtXEZsAQiW888wMqBw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"subscriptionConsentId\": \"72aee07c-df69-41f5-a457-9d5b35285b7f\",\n    \"payerCompanyId\": \"687400cc-bae5-4e20-a052-7e73f8fb7018\",\n    \"partnerId\": \"6ae1c843-e97d-437c-81d8-6106e91c985f\",\n    \"subscriptionRequestId\": \"76e3c92c-3d99-48e8-8d1b-0e4da9843022\",\n    \"amount\": \"9.99\",\n    \"currency\": \"GBP\",\n    \"bankId\": 31,\n    \"reference\": \"tps-g\",\n    \"idempotencyKey\": \"unique_key\",\n    \"authorisedDate\": \"2022-01-19T19:22:11.002Z\",\n    \"externalId\": \"external_id\",\n    \"tokenId\": \"0aa13835-df4c-45c3-bdad-aea8b3ccf15f\",\n    \"paymentStartDate\": \"2022-01-20T19:20:12.187Z\",\n    \"clientCallbackUrl\": \"\",\n    \"status\": \"AUTHORISED\",\n    \"creationDate\": \"2022-01-19T19:20:13.725Z\",\n    \"updatedDate\": \"\"\n}"}],"_postman_id":"47c96ed5-982d-487c-a64c-8b2b0f30fee5"}],"id":"fa368c8d-cfb2-4fda-a866-d8a562929131","_postman_id":"fa368c8d-cfb2-4fda-a866-d8a562929131","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}}},{"name":"Subscription","item":[{"name":"Create Subscription","id":"ecac8fa4-c886-4f2a-bcff-5fd21bbd601a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\"OBSubscription\":{\n    \"subscriptionConsentId\": \"5daade1c-0658-487d-89c4-cbc14a28ccfc\",\n    \"state\": \"state\",\n    \"bankId\": 31\n }\n}"},"url":"{{base_url}}/banking/v2/pay/domestic/subscription","description":"<p>Authorise Subscription Payment</p>\n<p>Before the subscription payment can be initiated, the payment request needs to be approved.</p>\n<p>Before calling this endpoint, subscription consent needs to be created in order to retrieve the authentication URL (sign-in url) for the bank.</p>\n<p>Now, your application will need to redirect a user to the sign-in url location for them to sign in through their bank account.</p>\n<p>The payment request will be completed once the user successfully signs in. You will be redirected back to your redirect field in the initial POST request body.</p>\n<h2>Request</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscriptionConsentId</td>\n<td>string</td>\n<td>unique identifier for the subscription consent</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>Base64 encoded JSON containing information about the original request to persist the state throughout the user journey</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Id</td>\n<td>string</td>\n<td>Unique identifier for the subscription</td>\n</tr>\n<tr>\n<td>subscriptionConsentId</td>\n<td>string</td>\n<td>Unique identifier for the consent</td>\n</tr>\n<tr>\n<td>payerCompanyId</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>subscriptionRequestId</td>\n<td>string</td>\n<td>Unique identifier for the subscription Request</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>string</td>\n<td>Date and time of the transaction</td>\n</tr>\n<tr>\n<td>subscriptionStatus</td>\n<td>string</td>\n<td>Status of the Subscription</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>products</td>\n<td>string</td>\n<td>comma-separated list of subscribed products</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Error Messages</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid bankId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid consentId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>No state</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid state}</td>\n</tr>\n<tr>\n<td>Invalid state</td>\n<td>400 Bad Request</td>\n<td>{“error”: “Missing/Invalid state”}</td>\n</tr>\n<tr>\n<td>Bank errors</td>\n<td>502 Bad Gateway</td>\n<td>{“error”: “Bank error”}</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","domestic","subscription"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"94b9ae63-84cc-447a-a3f9-88501c966ded","name":"Create OB Subscription","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"687400cc-bae5-4e20-a052-7e73f8fb7018"}],"body":{"mode":"raw","raw":"{ \n    \"OBSubscription\":{\n    \"subscriptionConsentId\": \"b64a7854-0ac7-4afe-8c1d-d999adcb4869\",\n    \"state\": \"state\",\n    \"bankId\": 20\n}\n}"},"url":"{{base_url}}/banking/v2/pay/domestic/subscription"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"522"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 24 Jan 2022 18:13:53 GMT"},{"key":"x-amzn-RequestId","value":"b422bf12-c200-46f0-9d0c-119a0f1a92a3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"x-amz-apigw-id","value":"MdnfCH_MDoEFdRA="},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"X-Amzn-Trace-Id","value":"Root=1-61eeec60-3f0998866c20d73013f9df6a"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 fc1b267cd678abf6b6d41947e148c0e0.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR61-C1"},{"key":"X-Amz-Cf-Id","value":"KS_UrTxJfm5U1BWFoenhVRO0feWYYWufLjBNGoaR9j1HZMt5tYo5XA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"subscriptionId\": \"3b6dc2ea-77da-456d-8bb5-92bfd477e5c8\",\n    \"subscriptionConsentId\": \"b64a7854-0ac7-4afe-8c1d-d999adcb4869\",\n    \"payerCompanyId\": \"687400cc-bae5-4e20-a052-7e73f8fb7018\",\n    \"partnerId\": \"6ae1c843-e97d-437c-81d8-6106e91c985f\",\n    \"subscriptionRequestId\": \"65e3c92c-4d99-58e8-9d1b-0e4da9843021\",\n    \"bankId\": 20,\n    \"externalId\": \"3b6dc2ea-77da-456d-8bb5-92bfd477e5c8\",\n    \"creationDate\": \"2022-01-24T18:13:52.946Z\",\n    \"updatedDate\": \"\",\n    \"amount\": \"9.95\",\n    \"currency\": \"GBP\",\n    \"reference\": \"tps-6y\",\n    \"subscriptionStatus\": \"ACTIVE\",\n    \"cancellationReason\": \"\",\n    \"isoStatus\": \"INITIATIONCOMPLETED\",\n    \"products\": \"SMART_INVOICE\",\n    \"source\": \"OPENBANKING\",\n    \"paymentStartDate\": \"2022-02-17T15:47:22.361Z\"\n \n}\n"},{"id":"61736e50-6d4f-4cbd-bd52-623b46cd0621","name":"Create Manual Subscription","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n\"manualSubscription\":{\n\"subscriptionRequestId\": \"94d1cbc3-f7be-4aa6-a0cd-80435e67562e\",\n\"payerEmail\":\"payeremail\"\n}\n}\n"},"url":"{{base_url}}/banking/v2/pay/domestic/subscription"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":" {\n    \"id\": \"6c3751c9-c28a-44b5-b38a-71299886fe6f\",\n    \"subscriptionConsentId\": \"907be5fa-8555-47e9-88b4-f003df73c0f7\",\n    \"payerCompanyId\": \"cecccb4b-2f98-4a8d-adad-c6f1f9768289\",\n    \"payerEmail\": \"payeremail\",\n    \"partnerId\": \"partner_id\",\n    \"subscriptionRequestId\": \"94d1cbc3-f7be-4aa6-a0cd-80435e67562e\",\n    \"bankId\": 0,\n    \"externalId\": \"\",\n    \"creationDate\": \"2022-02-16T15:47:22.565Z\",\n    \"updatedDate\": \"\",\n    \"amount\": \"9.95\",\n    \"currency\": \"GBP\",\n    \"reference\": \"tps-3n\",\n    \"subscriptionStatus\": \"PENDING\",\n//PENDING,ACTIVE,CANCELLED,OVERDUE,REJECTED,CANCELLATION_PENDING\n    \"cancellationReason\": \"\",\n    \"isoStatus\": \"\",\n    //INITIATIONCOMPLETED,INITIATIONFAILED,INITIATIONPENDING,CANCELLED \n   \"products\": \"SMART_INVOICE\",\n   \"source\": \"MANUAL\",\n   \"paymentStartDate\": \"2022-02-17T15:47:22.361Z\"\n}\n"}],"_postman_id":"ecac8fa4-c886-4f2a-bcff-5fd21bbd601a"},{"name":"Update Subscription","id":"0c5318b9-aac2-4e49-acfa-f05feaa7ff4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{payerComId}}"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"CANCELLED\"\n}"},"url":"{{base_url}}/banking/v2//pay/domestic/subscription/:subscriptionId","description":"<p>Create Company</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","","pay","domestic","subscription",":subscriptionId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"1b09189a-2cee-4f89-bb82-77121387472f","type":"any","value":null,"key":"subscriptionId"}]}},"response":[{"id":"41e81efb-fb29-4642-918f-c9f3ce4edf1f","name":"Update Subscription","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"687400cc-bae5-4e20-a052-7e73f8fb7018"}],"body":{"mode":"raw","raw":"{\n          \"status\": \"CANCELLATION_PENDING\",\n//PENDING,ACTIVE,CANCELLED,OVERDUE,REJECTED,CANCELLATION_PENDING\n   \n}\n"},"url":{"raw":"{{base_url}}/banking/v2//pay/domestic/subscription/:subscriptionId","host":["{{base_url}}"],"path":["banking","v2","","pay","domestic","subscription",":subscriptionId"],"variable":[{"key":"subscriptionId","value":null}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"522"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 24 Jan 2022 18:13:53 GMT"},{"key":"x-amzn-RequestId","value":"b422bf12-c200-46f0-9d0c-119a0f1a92a3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"x-amz-apigw-id","value":"MdnfCH_MDoEFdRA="},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"X-Amzn-Trace-Id","value":"Root=1-61eeec60-3f0998866c20d73013f9df6a"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 fc1b267cd678abf6b6d41947e148c0e0.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR61-C1"},{"key":"X-Amz-Cf-Id","value":"KS_UrTxJfm5U1BWFoenhVRO0feWYYWufLjBNGoaR9j1HZMt5tYo5XA=="}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"0c5318b9-aac2-4e49-acfa-f05feaa7ff4b"},{"name":"Retrieve Subscriptions","id":"fed1806a-688b-48c1-a9e3-f5a9643f6762","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{payerComId}}"}],"url":"{{base_url}}/banking/v2/pay/subscriptions","description":"<p>Subscriptions can be retrieved by providing the payer company.</p>\n<p>The subscription response will include subscription details (amount, currency, payment type), consent Id, payment start Date and status.</p>\n<h2>Query parameters</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscription RequestId</td>\n<td>string</td>\n<td>Unique id for the subscription Request</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>status of the subscription (PENDING,ACTIVE,CANCELLED,OVERDUE,REJECTED,CANCELLATION_PENDING)</td>\n</tr>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscriptionId</td>\n<td></td>\n<td>Unique identifier for the subscription</td>\n</tr>\n<tr>\n<td>subscriptionConsentId</td>\n<td>string</td>\n<td>Unique consent id</td>\n</tr>\n<tr>\n<td>payerCompanyId</td>\n<td>string</td>\n<td>Unique id for the company</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique id for the bank</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>datetime</td>\n<td>Date when the subscription was authorised</td>\n</tr>\n<tr>\n<td>subscriptionRequestId</td>\n<td>string</td>\n<td>Unique id for the subscription Request</td>\n</tr>\n<tr>\n<td>subscriptionStatus</td>\n<td>string</td>\n<td>Status of the subscription {PENDING,ACTIVE,CANCELLED,OVERDUE,REJECTED,CANCELLATION_PENDING}</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>external identifier for subscription payment</td>\n</tr>\n<tr>\n<td>paymentStartDate</td>\n<td>string</td>\n<td>payment start date for the standing order</td>\n</tr>\n<tr>\n<td>products</td>\n<td>string</td>\n<td>comma-separated</td>\n</tr>\n<tr>\n<td>updatedDate</td>\n<td>string</td>\n<td>Consent updated Date</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Error Messages</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid CompanyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid SubscrionRequestId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","subscriptions"],"host":["{{base_url}}"],"query":[{"disabled":true,"key":"subscriptionRequestId","value":"15e3c92c-2d90-38e8-4d1b-1e4da9843014"},{"disabled":true,"key":"bankId","value":"20"},{"disabled":true,"key":"pageId","value":"as"},{"disabled":true,"key":"status","value":"REJECTED"}],"variable":[]}},"response":[{"id":"1afe0f49-c85b-43e8-ac70-0ef2d9744aab","name":"Retrieve Subscriptions","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"687400cc-bae5-4e20-a052-7e73f8fb7018"}],"url":{"raw":"{{base_url}}/banking/v2/pay/subscriptions?subscriptionRequestId=&pageId&status=","host":["{{base_url}}"],"path":["banking","v2","pay","subscriptions"],"query":[{"key":"subscriptionRequestId","value":""},{"key":"bankId","value":"31","disabled":true},{"key":"pageId","value":null},{"key":"status","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"522"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 24 Jan 2022 10:08:42 GMT"},{"key":"x-amzn-RequestId","value":"01fc7292-6e2a-4fab-ab0f-f6dcfd5de395"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"x-amz-apigw-id","value":"McgagGIwDoEF8uQ="},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"X-Amzn-Trace-Id","value":"Root=1-61ee7aa9-2e9773672d3bf9d50c4fd964"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 87df42a5b068c9b504dcaa62529e2dfa.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR61-C1"},{"key":"X-Amz-Cf-Id","value":"evq-yfV51ljN8AscrFwcfHFvn9IlO6lT4W_8c-u74H6BDJzvb2Bkyg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"subscriptionId\": \"3b6dc2ea-77da-456d-8bb5-92bfd477e5c8\",\n            \"subscriptionConsentId\": \"b64a7854-0ac7-4afe-8c1d-d999adcb4869\",\n            \"payerCompanyId\": \"687400cc-bae5-4e20-a052-7e73f8fb7018\",\n            \"partnerId\": \"6ae1c843-e97d-437c-81d8-6106e91c985f\",\n            \"subscriptionRequestId\": \"65e3c92c-4d99-58e8-9d1b-0e4da9843021\",\n            \"bankId\": 20,\n            \"externalId\": \"\",\n            \"creationDate\": \"2022-01-24T18:13:52.946Z\",\n            \"updatedDate\": \"\",\n            \"amount\": \"9.99\",\n            \"currency\": \"GBP\",\n            \"reference\": \"tps-6y\",\n            \"subscriptionStatus\": \"ACTIVE\",\n            \"cancellationReason\": \"\",\n            \"isoStatus\": \"\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"fed1806a-688b-48c1-a9e3-f5a9643f6762"},{"name":"Retrieve Subscription By Id","id":"52a7d1ec-f334-45a4-9e46-0c3b39ba7da8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"687400cc-bae5-4e20-a052-7e73f8fb7018"}],"url":"{{base_url}}/banking/v2/pay/subscriptions/:subscriptionId","description":"<p>This endpoint can be used to retrieve a particular subscription.</p>\n<h2>Path variables</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscriptionId</td>\n<td>string</td>\n<td>Unique identifier for the subscription.</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Attributes</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscriptionId</td>\n<td></td>\n<td>Unique identifier for the subscription</td>\n</tr>\n<tr>\n<td>subscriptionConsentId</td>\n<td>string</td>\n<td>Unique consent id</td>\n</tr>\n<tr>\n<td>payerCompanyId</td>\n<td>string</td>\n<td>Unique id for the company</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique id for the bank</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>datetime</td>\n<td>Date when the subscription was authorised</td>\n</tr>\n<tr>\n<td>subscriptionRequestId</td>\n<td>string</td>\n<td>Unique id for the subscription Request</td>\n</tr>\n<tr>\n<td>subscriptionStatus</td>\n<td>string</td>\n<td>Status of the subscription {PENDING,ACTIVE,CANCELLED,OVERDUE,REJECTED,CANCELLATION_PENDING}</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Payment amount</td>\n</tr>\n<tr>\n<td>externalId</td>\n<td>string</td>\n<td>external identifier for subscription payment</td>\n</tr>\n<tr>\n<td>paymentStartDate</td>\n<td>string</td>\n<td>payment start date for the standing order</td>\n</tr>\n<tr>\n<td>products</td>\n<td>string</td>\n<td>comma-separated</td>\n</tr>\n<tr>\n<td>updatedDate</td>\n<td>string</td>\n<td>Consent updated Date</td>\n</tr>\n</tbody>\n</table>\n</div><h2>Error Messages</h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid subscriptionId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","subscriptions",":subscriptionId"],"host":["{{base_url}}"],"query":[{"disabled":true,"key":"externalId","value":""}],"variable":[{"id":"d51fe9ae-e572-4b52-98d7-3fc9d4a68b77","type":"any","value":"obdomstndorder_0000AFbjpoZ4pUXXlaHPOr","key":"subscriptionId"}]}},"response":[{"id":"193455ba-4621-49b6-863f-321833a2d0e8","name":"Retrieve Subscription By Id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"687400cc-bae5-4e20-a052-7e73f8fb7018"}],"url":{"raw":"{{base_url}}/banking/v2/pay/subscriptions/:subscriptionId","host":["{{base_url}}"],"path":["banking","v2","pay","subscriptions",":subscriptionId"],"query":[{"key":"externalId","value":"","disabled":true}],"variable":[{"key":"subscriptionId","value":"obdomstndorder_0000AFbjpoZ4pUXXlaHPOr"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"497"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 24 Jan 2022 10:14:05 GMT"},{"key":"x-amzn-RequestId","value":"8c0296a4-0dee-4422-b11d-67431c2a2cff"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"x-amz-apigw-id","value":"MchNDFZnjoEFwLg="},{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"X-Amzn-Trace-Id","value":"Root=1-61ee7bec-5aa9bf555ff50d023db8aa0f"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 87df42a5b068c9b504dcaa62529e2dfa.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR61-C1"},{"key":"X-Amz-Cf-Id","value":"1Iv75pMMfU8dCLX32OrM6x-qwCl5O4j-lZO1pnhNbhDuHNG4bplXyA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"subscriptionId\": \"0000AFbjpoZ4pUXXlaHPOr\",\n    \"subscriptionConsentId\": \"72aee07c-df69-41f5-a457-9d5b35285b7f\",\n    \"payerCompanyId\": \"687400cc-bae5-4e20-a052-7e73f8fb7018\",\n    \"partnerId\": \"6ae1c843-e97d-437c-81d8-6106e91c985f\",\n    \"subscriptionRequestId\": \"76e3c92c-3d99-48e8-8d1b-0e4da9843022\",\n    \"bankId\": 31,\n    \"externalId\": \"\",\n    \"creationDate\": \"2022-01-19T19:22:12.142Z\",\n    \"updatedDate\": \"\",\n    \"amount\": \"9.99\",\n    \"currency\": \"GBP\",\n    \"reference\": \"tps-g\",\n    \"subscriptionStatus\": \"ACTIVE\",\n    \"cancellationReason\": \"\",\n    \"isoStatus\": \"\"\n}"}],"_postman_id":"52a7d1ec-f334-45a4-9e46-0c3b39ba7da8"}],"id":"60cb55e9-fad4-41a4-9052-3ce37394a1b6","_postman_id":"60cb55e9-fad4-41a4-9052-3ce37394a1b6","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}}}],"id":"ee06fd1e-35cf-40b5-9d55-69cdf5e13334","description":"<p>Subscription API allows the user to subscribe to a predefined plan. Subscription API is responsible for creating standing orders for the given amount once the trial period ends.</p>\n","_postman_id":"ee06fd1e-35cf-40b5-9d55-69cdf5e13334","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}}},{"name":"Retrieve Payments","id":"d75e5c28-f692-48b1-89b3-4b971904725e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/banking/v2/pay/payments/","description":"<p>The 'Retrieve payment' endpoint can be used to retrieve a particular payment using the bank id and payment id.</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the payment</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>companyId</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique identifier for the consent</td>\n</tr>\n<tr>\n<td>creditor</td>\n<td>JSON object</td>\n<td>Creditor information</td>\n</tr>\n<tr>\n<td>creditor -&gt; schemeName</td>\n<td>string</td>\n<td>IBAN or Account and sort code</td>\n</tr>\n<tr>\n<td>creditor -&gt; identification</td>\n<td>string</td>\n<td>Creditor's account details</td>\n</tr>\n<tr>\n<td>creditor -&gt; name</td>\n<td>string</td>\n<td>Creditor name</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Balance amount</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Payment type {DOMESTICSCHEDULED,DOMESTIC-STANDINGORDER, DOMESTIC-PAYMENT,INTERNATIONAL-SCHEDULED, INTERNATIONAL-STANDINGORDER, INTERNATIONAL-PAYMENT}</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>datetime</td>\n<td>Date and time of the transaction</td>\n</tr>\n<tr>\n<td>remittanceInfo</td>\n<td>string</td>\n<td>Partner Id is sent in order to reconcile payment with AIS transaction</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","payments",""],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"cfaa4696-d5fa-4f33-a52e-d3bd3d41d7bb","name":"Retrieve Payments","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}","type":"text"}],"url":"{{base_url}}/banking/v2/pay/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"358"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Oct 2020 10:04:57 GMT"},{"key":"x-amzn-RequestId","value":"50c44bb9-a245-43f9-946b-79ec9353327c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VEKPZGCrDoEF9ZA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f97f0c8-14db3d063cfe7bb17bc0b319"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0bf3f0b7038d55ea4f178432aa6ddc53.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"JP6v6mhVbk5W26hAalxYmrZYW1qddo3F_BsfiBIXdemVQf1h5GukiQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n    {\n        \"id\": \"paymentId1234\",\n        \"consentId\": \"consentId3456\",\n        \"bankId\": 6,\n        \"companyId\": \"companyId1234\",\n        \"type\": \"DOMESTIC\",\n        \"status\": \"PENDING\",\n        \"amount\": \"25.00\",\n        \"currency\": \"GBP\",\n        \"reference\": \"reference\",\n        \"creditor\": {\n            \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n            \"identification\": \"11223301234567\",\n            \"name\": \"Creditor name\"\n        },\n        \"creationDate\": \"2020-10-27T10:02:37Z\",\n        \"remittanceInfo\": \"partnerId1234\"\n    }\n],\n\"links\": {}\n}\n"}],"_postman_id":"d75e5c28-f692-48b1-89b3-4b971904725e"},{"name":"Retrieve Payment (by id)","id":"f9961515-12f6-4917-91dc-38abe05e64b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/banking/v2/pay/payments/:paymentId","description":"<p>The 'Retrieve payment' endpoint can be used to retrieve a particular payment using the bank id and payment id.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paymentId</td>\n<td>string</td>\n<td>Unique identifier for the payment</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the payment</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>companyId</td>\n<td>string</td>\n<td>Unique identifier for the company</td>\n</tr>\n<tr>\n<td>consentId</td>\n<td>string</td>\n<td>Unique identifier for the consent</td>\n</tr>\n<tr>\n<td>creditor</td>\n<td>JSON object</td>\n<td>Creditor information</td>\n</tr>\n<tr>\n<td>creditor -&gt; schemeName</td>\n<td>string</td>\n<td>IBAN or Account and sort code</td>\n</tr>\n<tr>\n<td>creditor -&gt; identification</td>\n<td>string</td>\n<td>Creditor's account details</td>\n</tr>\n<tr>\n<td>creditor -&gt; name</td>\n<td>string</td>\n<td>Creditor name</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Balance amount</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Transaction reference</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Payment type {DOMESTICSCHEDULED,DOMESTIC-STANDINGORDER, DOMESTIC-PAYMENT,INTERNATIONAL-SCHEDULED, INTERNATIONAL-STANDINGORDER, INTERNATIONAL-PAYMENT}</td>\n</tr>\n<tr>\n<td>creationDate</td>\n<td>datetime</td>\n<td>Date and time of the transaction</td>\n</tr>\n<tr>\n<td>remittanceInfo</td>\n<td>string</td>\n<td>Partner Id is sent in order to reconcile payment with AIS transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid paymentId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","name":"Payments API","type":"folder"}},"urlObject":{"path":["banking","v2","pay","payments",":paymentId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"14f5827e-5d24-4840-9cbe-9a46cef8c930","description":{"content":"<p>Unique identifier for the payment</p>\n","type":"text/plain"},"type":"string","value":"","key":"paymentId"}]}},"response":[{"id":"b63a67e1-9286-4222-b556-0e8041c253fc","name":"Retrieve Payment (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":{"raw":"{{base_url}}/banking/v2/pay/payments/:paymentId","host":["{{base_url}}"],"path":["banking","v2","pay","payments",":paymentId"],"variable":[{"key":"paymentId","value":"paymentId1234","description":"Unique identifier for the payment"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"358"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Oct 2020 10:04:57 GMT"},{"key":"x-amzn-RequestId","value":"50c44bb9-a245-43f9-946b-79ec9353327c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VEKPZGCrDoEF9ZA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f97f0c8-14db3d063cfe7bb17bc0b319"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0bf3f0b7038d55ea4f178432aa6ddc53.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"JP6v6mhVbk5W26hAalxYmrZYW1qddo3F_BsfiBIXdemVQf1h5GukiQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"paymentId1234\",\n    \"consentId\": \"consentId3456\",\n    \"bankId\": 6,\n    \"companyId\": \"companyId1234\",\n    \"type\": \"DOMESTIC\",\n    \"status\": \"PENDING\",\n    \"amount\": \"25.00\",\n    \"currency\": \"GBP\",\n    \"reference\": \"reference\",\n    \"creditor\": {\n        \"schemeName\": \"UK.OBIE.SortCodeAccountNumber\",\n        \"identification\": \"11223301234567\",\n        \"name\": \"Creditor name\"\n    },\n    \"creationDate\": \"2020-10-27T10:02:37Z\",\n    \"remittanceInfo\": \"partnerId1234\"\n}"}],"_postman_id":"f9961515-12f6-4917-91dc-38abe05e64b4"}],"id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875","description":"<p>tomato pay Payments API allows partners to securely initiate payments on their SME customers' behalf. Payments use banks’ rails “Faster payments” and typically take a few seconds. Although it is bank specific, typically a single payment of up to £250,000 can be initiated through PISP.<br />For more information on the limits, please refer to the <a href=\"https://www.fasterpayments.org.uk/transaction-limits\">faster payments website</a></p>\n<p>tomato pay Payments APIs have been divided into 2 broad categories</p>\n<ul>\n<li><strong>Inbound payments</strong> - when merchants need to take payments by embedding a payment link on their eCommerce website, invoices, or simply through social channels</li>\n<li><strong>Outbound payments</strong> - when merchants want to send payments to their suppliers and want to use the convenience of Open banking to initiate payments</li>\n</ul>\n<p>In both situations, the end results of the payment is captured by the Payment Microservice as the payment entity which can be queried through the APIs.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"c77197e9-59bb-4da0-b9ce-57eb6909728a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6524dd36-bcfc-43c5-a24a-7fd6b24dd4ea","type":"text/javascript","exec":[""]}}],"_postman_id":"0ad76a6e-26bd-4766-a5bc-d85df73fd875"},{"name":"Cashflow Forecast API","item":[{"name":"Forecasts","item":[{"name":"Get Forecasts","id":"85935dc6-1546-47ba-b38b-87092a1c89d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-APi-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":"{{base_url}}/forecasting/v2/forecasts","description":"<p>Get all forecasts for the company. Each forecast has an id, timestamp, source and name.</p>\n<h2> Query parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the forecast</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>date</td>\n<td>datetime</td>\n<td>Date when the forecast was generated</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of forecast {MODEL, MANUALIMPORT}</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of Forecast</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid accountId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","forecasts"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank</p>\n","type":"text/plain"},"key":"bankId","value":null},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank account</p>\n","type":"text/plain"},"key":"accountId","value":null}],"variable":[]}},"response":[{"id":"e5eab221-8b5f-4bf3-b336-ce64012dd39a","name":"Get Forecasts","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-APi-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/forecasting/v2/forecasts","host":["{{base_url}}"],"path":["forecasting","v2","forecasts"],"query":[{"key":"pageId","value":"","description":"Page offset of results","disabled":true},{"key":"bankId","value":null,"description":"Unique identifier for the bank","disabled":true},{"key":"accountId","value":null,"description":"Unique identifier for the bank account","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"413"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 01 Mar 2021 10:59:30 GMT"},{"key":"x-amzn-RequestId","value":"bdc09b7e-cab9-4942-a3e8-22b1f8904d1e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"bgRa4Eo7joEFj5Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-603cc912-3a06add604f5f0e12860ab14"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 c40cc7e951805498bef454f55140dc73.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"DEL51-C1"},{"key":"X-Amz-Cf-Id","value":"0QSYuqkcn0oR0sZEoCNQ3tlKmSHxkCkF2Z_L4kfJcCRnYQ_bOWGO-g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"forecastId1234\",\n            \"bankId\": 16,\n            \"accountId\": \"9aed0933-8e38-4571-93dd-8e775c8233e7\",\n            \"name\": \"Forecast-Mar1\",\n            \"date\": \"2021-03-01T09:34:00.284Z\",\n            \"source\": \"MANUALIMPORT\"\n        },\n        {\n            \"id\": \"forecastId3456\",\n            \"bankId\": 16,\n            \"accountId\": \"9aed0933-8e38-4571-93dd-8e775c8233e7\",\n            \"name\": \"model_forecast_21_03_01.09:32\",\n            \"date\": \"2021-03-01T09:32:39.831Z\",\n            \"source\": \"MODEL\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"85935dc6-1546-47ba-b38b-87092a1c89d4"},{"name":"Get Forecast (by id)","id":"0e86f4df-c228-48bc-9cc0-fba39b73b8aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-APi-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":"{{base_url}}/forecasting/v2/forecasts/:forecastId","description":"<p>A specific forecast can be retrieved by providing a forecast id.</p>\n<p>The response will include a timestamp, source and name of the forecast.</p>\n<p>Get all forecasts for the company. Each forecast has an id, timestamp, source and name.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>forecastId</td>\n<td>string</td>\n<td>Unique identifier for the forecast</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the forecast</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>date</td>\n<td>datetime</td>\n<td>Date when the forecast was generated</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of forecast {MODEL, MANUALIMPORT}</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of Forecast</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid forecastId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","forecasts",":forecastId"],"host":["{{base_url}}"],"query":[],"variable":[{"description":{"content":"<p>Unique identifier for the forecast</p>\n","type":"text/plain"},"type":"string","value":"","key":"forecastId"}]}},"response":[{"id":"a8557b31-677e-4f42-93d6-6e6817f0082f","name":"Get Forecast (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-APi-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/forecasting/v2/forecasts/:forecastId","host":["{{base_url}}"],"path":["forecasting","v2","forecasts",":forecastId"],"variable":[{"key":"forecastId","value":"forecastId1234","type":"string","description":"Unique identifier for the forecast"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"189"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 01 Mar 2021 11:06:02 GMT"},{"key":"x-amzn-RequestId","value":"7a62b202-1c90-40ed-9b8f-5b713c1fd7ab"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"bgSX2HKWjoEFpfA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-603cca98-78782fa35cd1a7b032a3019b"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 dcd4d3d277b3e5d294f974c2692b6cf2.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"DEL51-C1"},{"key":"X-Amz-Cf-Id","value":"CTrBCni2ZL_Rynizu4Ju1a6BpQh5qzNDvtnLDygwwzDKCWLfAs4Qzw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"forecastId1234\",\n    \"bankId\": 16,\n    \"accountId\": \"9aed0933-8e38-4571-93dd-8e775c8233e7\",\n    \"name\": \"Forecast-Mar1\",\n    \"date\": \"2021-03-01T09:34:00.284Z\",\n    \"source\": \"MANUALIMPORT\"\n}"}],"_postman_id":"0e86f4df-c228-48bc-9cc0-fba39b73b8aa"}],"id":"5bb6bf28-8ecd-439a-9a1a-23599c2400d6","description":"<p>A new forecast is generated every time new data is imported for that business.</p>\n<p>Each forecast (at the time of data import) has an id,  a timestamp and source. The id can be used to retrieve transactions and balances.</p>\n<p>It is recommended to use the most recent id to get the latest forecasted transactions and balances.</p>\n","event":[{"listen":"prerequest","script":{"id":"d77049b8-5418-460a-9db0-eeb6da89ecc9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0be0908e-5ebb-45f8-98ba-ebbb31675dfa","type":"text/javascript","exec":[""]}}],"_postman_id":"5bb6bf28-8ecd-439a-9a1a-23599c2400d6","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}}},{"name":"Forecasted Transactions","item":[{"name":"Get Forecasted Transactions","event":[{"listen":"test","script":{"id":"4158261c-cda0-499e-acf4-32bcebe06312","exec":["// checking for unique transactionId","pm.test(\"checking for unique balanceId \", function () {","        var jsonData = pm.response.json();","","    var size = jsonData.results.length;","","  for(var i = 0; i < size; i++) {","      var trxIdCheck= jsonData.results[i].id;","    for(var j = i+1; j < size; j++){","          pm.expect(jsonData.results[j].id).not.to.eql(trxIdCheck);","    }","  }","});"],"type":"text/javascript"}}],"id":"33e1543f-08eb-4104-b917-f453c6511874","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Company-Id","value":"{{companyId}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":"{{base_url}}/forecasting/v2/transactions","description":"<p>All forecasted transactions linked to the provided forecast id will be returned.</p>\n<h2> Query Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n<tr>\n<td>from</td>\n<td>dateTime</td>\n<td>Returns forecasted transactions posted on or after \"from\" date</td>\n</tr>\n<tr>\n<td>to</td>\n<td>dateTime</td>\n<td>Returns forecasted transactions posted on or before \"to\" date</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>forecastId</td>\n<td>string</td>\n<td>Unique identifier for the forecast</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>forecastId</td>\n<td>string</td>\n<td>Unique identifier for the forecast</td>\n</tr>\n<tr>\n<td>valueDate</td>\n<td>dateTime</td>\n<td>Value date for the transaction</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Transaction currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Transaction amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>merchant</td>\n<td>string</td>\n<td>Name of the merchant</td>\n</tr>\n<tr>\n<td>category</td>\n<td>string</td>\n<td>Name of the category</td>\n</tr>\n<tr>\n<td>reasons</td>\n<td>string</td>\n<td>Reasons why a particular transaction has been added to the forecast</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {MANUALIMPORT, MODEL}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid accountId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid forecastId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","transactions"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Page offset of results</p>\n","type":"text/plain"},"key":"pageId","value":""},{"disabled":true,"description":{"content":"<p>Returns forecasts posted on or after \"from\" date</p>\n","type":"text/plain"},"key":"from","value":""},{"disabled":true,"description":{"content":"<p>Returns forecasts posted on or before \"to\" date</p>\n","type":"text/plain"},"key":"to","value":""},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank</p>\n","type":"text/plain"},"key":"bankId","value":null},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank account</p>\n","type":"text/plain"},"key":"accountId","value":null},{"disabled":true,"description":{"content":"<p>Unique identifier for the forecast</p>\n","type":"text/plain"},"key":"forecastId","value":null}],"variable":[]}},"response":[{"id":"d98bdc8d-5edd-4a45-9122-83f58521e689","name":"Get Forecasted Transactions","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Company-Id","value":"{{companyId}}"},{"key":"Authorization","value":"{{Authorization}}"}],"url":{"raw":"{{base_url}}/forecasting/v2/transactions","host":["{{base_url}}"],"path":["forecasting","v2","transactions"],"query":[{"key":"pageId","value":"","type":"text","description":"Page offset of results","disabled":true},{"key":"from","value":"","type":"text","description":"Returns forecasts posted on or after \"from\" date","disabled":true},{"key":"to","value":"","type":"text","description":"Returns forecasts posted on or before \"to\" date","disabled":true},{"key":"bankId","value":"","type":"text","description":"Unique identifier for the bank","disabled":true},{"key":"accountId","value":"","type":"text","description":"Unique identifier for the bank account","disabled":true},{"key":"forecastId","value":"","type":"text","description":"Unique identifier for the forecast","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"96660"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 01 Mar 2021 11:15:08 GMT"},{"key":"x-amzn-RequestId","value":"b9987cbb-4303-4f5d-bb1c-60b50e62c756"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"bgTtSFnXjoEFW5A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-603cccbb-47865ce14d72c1ec2262620f"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 fefce332fa9cd85fae29d8a78eaabf6a.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BOM50-C1"},{"key":"X-Amz-Cf-Id","value":"qoPL-aed67GpZ6v3oWgCYnjeaPSLrVOA3a3B5PA_eq3tE4pq-PBRsQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"transactionId1234\",\n            \"forecastId\": \"forecastId1234\",\n            \"bankId\": 16,\n            \"accountId\": \"9aed0933-8e38-4571-93dd-8e775c8233e7\",\n            \"valueDate\": \"2020-09-18T03:59Z\",\n            \"amount\": \"1000.00\",\n            \"currency\": \"USD\",\n            \"type\": \"CREDIT\",\n            \"merchant\": \"LLoyds\",\n            \"category\": \"Tax\",\n            \"reasons\": \"\",\n            \"source\": \"MANUALIMPORT\"\n        },\n        {\n            \"id\": \"transactionId2345\",\n            \"forecastId\": \"forecastId2345\",\n            \"bankId\": 16,\n            \"accountId\": \"9aed0933-8e38-4571-93dd-8e775c8233e7\",\n            \"valueDate\": \"2020-09-18T03:59Z\",\n            \"amount\": \"1000.00\",\n            \"currency\": \"USD\",\n            \"type\": \"CREDIT\",\n            \"merchant\": \"LLoyds\",\n            \"category\": \"Tax\",\n            \"reasons\": \"\",\n            \"source\": \"MANUALIMPORT\"\n        },\n        {\n            \"id\": \"transactionId3456\",\n            \"forecastId\": \"forecastId3456\",\n            \"bankId\": 16,\n            \"accountId\": \"9aed0933-8e38-4571-93dd-8e775c8233e7\",\n            \"valueDate\": \"2020-09-18T03:59Z\",\n            \"amount\": \"1000.00\",\n            \"currency\": \"USD\",\n            \"type\": \"CREDIT\",\n            \"merchant\": \"LLoyds\",\n            \"category\": \"Tax\",\n            \"reasons\": \"\",\n            \"source\": \"MANUALIMPORT\"\n        }   \n        ],\n    \"links\": {}\n}"}],"_postman_id":"33e1543f-08eb-4104-b917-f453c6511874"},{"name":"Get Forecasted Transaction (by id)","id":"31a624b0-5cdc-4c66-9363-673fb3430923","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":"{{base_url}}/forecasting/v2/transactions/:transactionId","description":"<p>A particular forecasted transaction can be retrieved by providing a transaction id.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>transactionId</td>\n<td>string</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>forecastId</td>\n<td>string</td>\n<td>Unique identifier for the forecast</td>\n</tr>\n<tr>\n<td>valueDate</td>\n<td>datetime</td>\n<td>Value date for the transaction</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Account currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Transaction amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>merchant</td>\n<td>string</td>\n<td>Name of the merchant</td>\n</tr>\n<tr>\n<td>category</td>\n<td>string</td>\n<td>Name of the category</td>\n</tr>\n<tr>\n<td>reasons</td>\n<td>string</td>\n<td>Reasons why a particular transaction has been added to the forecast</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {MANUALIMPORT, MODEL}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid transactionId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","transactions",":transactionId"],"host":["{{base_url}}"],"query":[],"variable":[{"description":{"content":"<p>Unique identifier for the transaction</p>\n","type":"text/plain"},"type":"string","value":"","key":"transactionId"}]}},"response":[{"id":"510dbadb-ffcf-4813-965a-1caf250dd042","name":"Get Forecasted Transaction (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/forecasting/v2/transactions/:transactionId","host":["{{base_url}}"],"path":["forecasting","v2","transactions",":transactionId"],"variable":[{"key":"transactionId","value":"transactionId1234","type":"string","description":"Unique identifier for the transaction"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"318"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 01 Mar 2021 11:27:38 GMT"},{"key":"x-amzn-RequestId","value":"f347deff-dd2e-4944-bdd0-f7977a134b74"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"bgVilGZHjoEFzKg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-603ccfaa-572e836f03ce1bee7ffbcd76"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 af1285e159d40db6a95c829305a00563.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"DEL51-C1"},{"key":"X-Amz-Cf-Id","value":"CXNdQusfm3sVud5u9TQtJwCu6NlMGutsp_IXUCmLQG8VV54YCksmHw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"transactionId1234\",\n    \"forecastId\": \"5fb529e2-2172-4a60-a16e-0d4c5da2546c\",\n    \"bankId\": 16,\n    \"accountId\": \"9aed0933-8e38-4571-93dd-8e775c8233e7\",\n    \"valueDate\": \"2020-09-18T03:59Z\",\n    \"amount\": \"1000.00\",\n    \"currency\": \"USD\",\n    \"type\": \"CREDIT\",\n    \"merchant\": \"LLoyds\",\n    \"category\": \"Tax\",\n    \"reasons\": \"\",\n    \"source\": \"MANUALIMPORT\"\n}"}],"_postman_id":"31a624b0-5cdc-4c66-9363-673fb3430923"}],"id":"bcb32858-01c7-49a4-a3ec-4e98b4b21edc","description":"<p>A new forecast is generated every time new data is imported for that business. All forecasts can be retrieved by calling \"Get all forecasts\" endpoint.</p>\n<p>Each forecast (at the time of data import) has an id,  a timestamp and source. The id can be used to retrieve transactions.</p>\n<p>It is recommended to use the most recent id to get the latest forecasted transactions.</p>\n","event":[{"listen":"prerequest","script":{"id":"1c3aeb15-3652-47f6-98fc-c3ed4df55b92","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"acf3fc88-e6e1-4dd6-ba34-e8cc75683c0d","type":"text/javascript","exec":[""]}}],"_postman_id":"bcb32858-01c7-49a4-a3ec-4e98b4b21edc","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}}},{"name":"Forecasted Balance","item":[{"name":"Get Forecasted Balances","event":[{"listen":"test","script":{"id":"67638572-9cb4-45f0-afe8-7eb8d1d7d688","exec":["// checking for unique balanceId","pm.test(\"checking for unique balanceId \", function () {","        var jsonData = pm.response.json();","","    var size = jsonData.results.length;","","  for(var i = 0; i < size; i++) {","      var balanceIdCheck= jsonData.results[i].id;","    for(var j = i+1; j < size; j++){","          pm.expect(jsonData.results[j].id).not.to.eql(balanceIdCheck);","    }","  }","});"],"type":"text/javascript"}}],"id":"a759ea73-a862-4bd9-904b-9c3785a6cf46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":"{{base_url}}/forecasting/v2/balances","description":"<p>'Get Forecasted Balances' will return all the forecasted balances for the provided forecast id.</p>\n<h2> Query Parameters </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>forecastId</td>\n<td>string</td>\n<td>Unique identifier for the forecast</td>\n</tr>\n<tr>\n<td>pageId</td>\n<td>string</td>\n<td>Page offset of results</td>\n</tr>\n<tr>\n<td>from</td>\n<td>dateTime</td>\n<td>Returns balances posted on or after \"from\" date</td>\n</tr>\n<tr>\n<td>to</td>\n<td>dateTime</td>\n<td>Returns balances posted on or before \"to\" date</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the balance</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>forecastId</td>\n<td>string</td>\n<td>Unique identifier for the forecast</td>\n</tr>\n<tr>\n<td>date</td>\n<td>datetime</td>\n<td>Balance date</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Balance currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Balance amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {MANUALIMPORT, MODEL}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid accountId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid forecastId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid pageId</td>\n<td>400 Bad Request</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","balances"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Returns forecasted balances on or after \"from\" date</p>\n","type":"text/plain"},"key":"from","value":""},{"disabled":true,"description":{"content":"<p>Returns forecasts balances until  \"to\" date</p>\n","type":"text/plain"},"key":"to","value":""},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank</p>\n","type":"text/plain"},"key":"bankId","value":null},{"disabled":true,"description":{"content":"<p>Unique identifier for the bank account</p>\n","type":"text/plain"},"key":"accountId","value":null},{"disabled":true,"description":{"content":"<p>Unique identifier for the forecast</p>\n","type":"text/plain"},"key":"forecastId","value":null}],"variable":[]}},"response":[{"id":"f12fa306-353f-4a2d-b173-c9bc805b3259","name":"Get Forecasted Balances","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/forecasting/v2/balances","host":["{{base_url}}"],"path":["forecasting","v2","balances"],"query":[{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true},{"key":"pageId","value":null,"description":"Page offset of results","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"326"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 30 Oct 2020 19:52:07 GMT"},{"key":"x-amzn-RequestId","value":"d648b504-8e64-4fe6-9a25-04db0eb090b8"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VPZEGGshjoEF5lQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9c6ee6-5cd9cde4173bf74b30fd43fd"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a59cacde45227666db5b17829b32dd95.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"HO_G_sXSXhkVHUWdHIZxqjEyXSTrdqAneRsB24yhoDaTuYeTawIC5A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"90044386-1c09-40bf-b75f-622555da29f5\",\n            \"bankId\": 16,\n            \"accountId\": \"accountId1234\",\n            \"forecastId\": \"forecastId1234\",\n            \"date\": \"2020-11-30T03:59Z\",\n            \"amount\": \"100000.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\",\n            \"source\": \"MANUALIMPORT\"\n        },\n        {\n            \"id\": \"6cb6c2d1-5b8e-4efc-8e69-7e051a6c3820\",\n            \"bankId\": 18,\n            \"accountId\": \"accountId2345\",\n            \"forecastId\": \"forecastId2345\",\n            \"date\": \"2020-12-30T03:59Z\",\n            \"amount\": \"110000.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\",\n            \"source\": \"MANUALIMPORT\"\n        }\n    ],\n    \"links\": {}\n}"}],"_postman_id":"a759ea73-a862-4bd9-904b-9c3785a6cf46"},{"name":"Get Forecasted Balance (by id)","event":[{"listen":"test","script":{"id":"335ef4b4-a705-467d-8069-2e7552f50728","exec":["// checking for unique balanceId","pm.test(\"checking for unique balanceId \", function () {","        var jsonData = pm.response.json();","","    var size = jsonData.results.length;","","  for(var i = 0; i < size; i++) {","      var balanceIdCheck= jsonData.results[i].id;","    for(var j = i+1; j < size; j++){","          pm.expect(jsonData.results[j].id).not.to.eql(balanceIdCheck);","    }","  }","});"],"type":"text/javascript"}}],"id":"223439f8-0aee-4788-b5bd-45cdd8e9ea72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":"{{base_url}}/forecasting/v2/balances/:balanceId","description":"<p>'Get Forecasted Balance' will return the forecasted balance for the provided forecast id</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>balanceId</td>\n<td>string</td>\n<td>Unique identifier for the balance</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for the balance</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>forecastId</td>\n<td>string</td>\n<td>Unique identifier for the forecast</td>\n</tr>\n<tr>\n<td>date</td>\n<td>datetime</td>\n<td>Balance date</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Balance currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Balance amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source of data import {MANUALIMPORT, MODEL}</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Error Messages </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th>Response Status</th>\n<th>Response Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid balanceId</td>\n<td>404 Not Found</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid partnerId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid companyId</td>\n<td>403 Forbidden</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","balances",":balanceId"],"host":["{{base_url}}"],"query":[],"variable":[{"description":{"content":"<p>Unique identifier for forecasted balance</p>\n","type":"text/plain"},"type":"string","value":"","key":"balanceId"}]}},"response":[{"id":"c53374a8-82e5-48be-9e70-f3af381a560c","name":"Get Forecasted Balance (by id)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"url":{"raw":"{{base_url}}/forecasting/v2/balances/:balanceId","host":["{{base_url}}"],"path":["forecasting","v2","balances",":balanceId"],"variable":[{"key":"balanceId","value":"balanceId1234"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"326"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 30 Oct 2020 19:52:07 GMT"},{"key":"x-amzn-RequestId","value":"d648b504-8e64-4fe6-9a25-04db0eb090b8"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VPZEGGshjoEF5lQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9c6ee6-5cd9cde4173bf74b30fd43fd"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a59cacde45227666db5b17829b32dd95.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"HO_G_sXSXhkVHUWdHIZxqjEyXSTrdqAneRsB24yhoDaTuYeTawIC5A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"balanceId1234\",\n    \"bankId\": 16,\n    \"accountId\": \"accountId1234\",\n    \"forecastId\": \"forecastId1234\"\n    \"date\": \"2020-11-30T03:59Z\",\n    \"amount\": \"100000.00\",\n    \"currency\": \"GBP\",\n    \"type\": \"CREDIT\",\n    \"source\": \"MANUALIMPORT\"\n}\n"}],"_postman_id":"223439f8-0aee-4788-b5bd-45cdd8e9ea72"}],"id":"32f2d402-b4df-4315-9955-63d4f58abbd5","description":"<p>A new forecast is generated every time new data is imported for that business. All forecasts can be retrieved by calling the \"Get all forecasts\" endpoint.</p>\n<p>Each forecast (at the time of data import) has an id,  a timestamp and source. The id can be used to retrieve balances.</p>\n<p>It is recommended to use the most recent id to get the latest forecasted balance.</p>\n","event":[{"listen":"prerequest","script":{"id":"c4cad4da-18cc-45a3-9666-60349105a73f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e8ef073c-7873-4796-9552-dbbbf84b8ee8","type":"text/javascript","exec":[""]}}],"_postman_id":"32f2d402-b4df-4315-9955-63d4f58abbd5","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}}},{"name":"User Generated Forecast","item":[{"name":"Create Forecast","id":"12362b95-1d2c-458b-9eff-502b6c4a3bac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"values\": [\n        {\n            \"name\": \"Forecast-2020-Oct29\",\n            \"bankId\": 16,\n            \"accountId\": \"accountId1234\"\n        },\n        {\n            \"name\": \"Forecast-2020-Oct30\",\n            \"bankId\": 18,\n            \"accountId\": \"accountId2345\"\n        }\n    ]\n}"},"url":"{{base_url}}/forecasting/v2/forecasts","description":"<p>Create forecast</p>\n<p>Before the user can adjust their forecast, a new forecast id can be generated so balances and transactions that are adjusted by the user can be linked to the id.</p>\n<p>When this forecast is retrieved by calling \"Get all forecasts\" endpoint, the source will be \"MANUALIMPORT\".</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name provided for the forecast</td>\n</tr>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","forecasts"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"8c11ee0d-00c2-4e88-aeae-037c95e1b03e","name":"Create Forecast","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"values\": [\n        {\n            \"name\": \"Forecast-2020-Oct29\",\n            \"bankId\": 16,\n            \"accountId\": \"accountId1234\"\n        },\n        {\n            \"name\": \"Forecast-2020-Oct30\",\n            \"bankId\": 18,\n            \"accountId\": \"accountId2345\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/forecasting/v2/forecasts"},"status":"Multi-Status (WebDAV) (RFC 4918)","code":207,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"159"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 30 Oct 2020 19:35:35 GMT"},{"key":"x-amzn-RequestId","value":"2881ead7-e5c0-464d-8a72-44d837a001b0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VPWpLH-ZDoEFX2A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9c6b07-48db5f1f05b1f1cd263517a5"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 13930f8a12db0a7ab5a2d4f74d618018.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"zj2Rt88tyRk-7AIpzn2Yz8U1TgC3CrwwVlcIDzjiDqSWnEi8KVSHeA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"forecastId1234\",\n            \"message\": \"Created\",\n            \"status\": 201\n        },\n        {\n            \"id\": \"forecastId3456\",\n            \"message\": \"Created\",\n            \"status\": 201\n        }\n    ]\n}"}],"_postman_id":"12362b95-1d2c-458b-9eff-502b6c4a3bac"},{"name":"Add Forecast Transactions","id":"4c8d9139-e407-4493-a8ad-3731e9539883","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Company-Id","value":"{{companyId}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"values\": [\n        {\n            \"bankId\": \"16\",\n            \"accountId\": \"accountId1234\",\n            \"forecastId\": \"forecastId1234\",\n            \"valueDate\": \"2020-11-18T03:59Z\",\n            \"amount\": \"10000.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"DEBIT\",\n            \"merchant\": \"HMRC\",\n            \"category\": \"Tax\"\n        },\n        {\n            \"bankId\": \"18\",\n            \"accountId\": \"accountId2345\",\n            \"forecastId\": \"forecastId2345\",\n            \"valueDate\": \"2020-12-18T03:59Z\",\n            \"amount\": \"10500.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"DEBIT\",\n            \"merchant\": \"HMRC\",\n            \"category\": \"Tax\"\n        }\n    ]\n}"},"url":"{{base_url}}/forecasting/v2/transactions","description":"<p>Transactions can be added to a particular forecast (forecastId) by calling the \"Add forecast transactions\" endpoint.</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>forecastId</td>\n<td>string</td>\n<td>Unique identifier for the forecast (that is being adjusted)</td>\n</tr>\n<tr>\n<td>valueDate</td>\n<td>datetime</td>\n<td>Value date for the transaction</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Transaction currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Transaction amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Transaction type {DEBIT,CREDIT}</td>\n</tr>\n<tr>\n<td>merchant</td>\n<td>string</td>\n<td>Name of the merchant</td>\n</tr>\n<tr>\n<td>category</td>\n<td>string</td>\n<td>Name of the category</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","transactions"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"0deca518-1142-4474-9317-57addd4290a2","name":"Add Forecast Transactions","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Company-Id","value":"{{companyId}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"values\": [\n        {\n            \"bankId\": \"16\",\n            \"accountId\": \"accountId1234\",\n            \"forecastId\": \"forecastId1234\",\n            \"valueDate\": \"2020-11-18T03:59Z\",\n            \"amount\": \"10000.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"DEBIT\",\n            \"merchant\": \"HMRC\",\n            \"category\": \"Tax\"\n        },\n        {\n            \"bankId\": \"18\",\n            \"accountId\": \"accountId2345\",\n            \"forecastId\": \"forecastId2345\",\n            \"valueDate\": \"2020-12-18T03:59Z\",\n            \"amount\": \"10500.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"DEBIT\",\n            \"merchant\": \"HMRC\",\n            \"category\": \"Tax\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/forecasting/v2/transactions"},"status":"Multi-Status (WebDAV) (RFC 4918)","code":207,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"159"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 30 Oct 2020 19:42:44 GMT"},{"key":"x-amzn-RequestId","value":"39e77f3d-d21e-4811-82f2-848f9799c9bc"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VPXr0E87joEFeTg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9c6cb1-1accc48d30e8de712a28110d"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0c62e8c958eb0d54f812cda141e660b7.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"-6lw5Jdr6q4wAwjRcx4Itm17dcBGYu_zswKbfs0Z214TNM6bjOQQEg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"transactionId1234\",\n            \"message\": \"Created\",\n            \"status\": 201\n        },\n        {\n            \"id\": \"transactionID5678\",\n            \"message\": \"Created\",\n            \"status\": 201\n        }\n    ]\n}"}],"_postman_id":"4c8d9139-e407-4493-a8ad-3731e9539883"},{"name":"Add Forecast Balance","id":"cf665455-d17a-4464-a433-13fd5fcaa6f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"values\": [\n        {\n            \"bankId\": \"16\",\n            \"accountId\": \"accountId1234\",\n            \"forecastId\": \"forecastId1234\",\n            \"date\": \"2020-11-30T03:59Z\",\n            \"amount\": \"100000.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\"\n        },\n        {\n            \"bankId\": \"18\",\n            \"accountId\": \"accountId2345\",\n            \"forecastId\": \"forecastId2345\",\n            \"date\": \"2020-12-30T03:59Z\",\n            \"amount\": \"110000.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\"\n        }\n    ]\n}"},"url":"{{base_url}}/forecasting/v2/balances","description":"<p>Balances can be added to a particular forecast (forecastId) by calling the \"Add Forecast Balances\" endpoint.</p>\n<h2> Attributes </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bankId</td>\n<td>integer</td>\n<td>Unique identifier for the bank</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>string</td>\n<td>Unique identifier for the bank account</td>\n</tr>\n<tr>\n<td>forecastId</td>\n<td>string</td>\n<td>Unique identifier for the forecast (that is being adjusted)</td>\n</tr>\n<tr>\n<td>date</td>\n<td>datetime</td>\n<td>Value date for the balance</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Balance currency</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>integer</td>\n<td>Balance amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>Balance type {DEBIT,CREDIT}</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","balances"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"eb4792a5-79bb-4587-a880-fe5b82a9e4a1","name":"Add Forecast Balance","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Partner-id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"values\": [\n        {\n            \"bankId\": \"16\",\n            \"accountId\": \"accountId1234\",\n            \"forecastId\": \"forecastId1234\",\n            \"date\": \"2020-11-30T03:59Z\",\n            \"amount\": \"100000.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\"\n        },\n        {\n            \"bankId\": \"18\",\n            \"accountId\": \"accountId2345\",\n            \"forecastId\": \"forecastId2345\",\n            \"date\": \"2020-12-30T03:59Z\",\n            \"amount\": \"110000.00\",\n            \"currency\": \"GBP\",\n            \"type\": \"CREDIT\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/forecasting/v2/balances"},"status":"Multi-Status (WebDAV) (RFC 4918)","code":207,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"159"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 30 Oct 2020 19:50:00 GMT"},{"key":"x-amzn-RequestId","value":"b363be8a-050b-4994-9b4a-63fed78a4b8b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VPYwMH9EDoEF_fg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9c6e67-1ca252a533b78f3b6bffed64"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a59cacde45227666db5b17829b32dd95.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"CrQl5NEUGdp3cg2YfvkLxs1tIkX8T9JwJTn1LzfRkzKhZkXppvu3ug=="}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"id\": \"balanceId1234\",\n            \"message\": \"Created\",\n            \"status\": 201\n        },\n        {\n            \"id\": \"balanceId4567\",\n            \"message\": \"Created\",\n            \"status\": 201\n        }\n    ]\n}"}],"_postman_id":"cf665455-d17a-4464-a433-13fd5fcaa6f3"},{"name":"Edit Forecasted Transaction (by id)","id":"64484949-3388-48e9-83b6-7169a9756717","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"valueDate\": \"2021-07-30T03:59Z\",\n    \"amount\": \"1500.00\",\n    \"currency\": \"GBP\",\n    \"type\": \"DEBIT\",\n    \"merchant\": \"HMRC\",\n    \"category\": \"Tax\"\n}"},"url":"{{base_url}}/forecasting/v2/transactions/:transactionId","description":"<p>Forecasted transactions can be updated by calling the \"Edit forecasted transaction\" endpoint.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>transactionId</td>\n<td>string</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n204 No Content","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","transactions",":transactionId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"f21c73c8-a2c7-4367-94c4-d6d3393f980b","description":{"content":"<p>Unique identifier for the transaction</p>\n","type":"text/plain"},"type":"string","value":"","key":"transactionId"}]}},"response":[{"id":"41921e5e-94b4-43fd-ada7-5734ba5c2d34","name":"Edit Forecasted Transaction (by id)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":"{\n    \"valueDate\": \"2021-07-30T03:59Z\",\n    \"amount\": \"1500.00\",\n    \"currency\": \"GBP\",\n    \"type\": \"DEBIT\",\n    \"merchant\": \"HMRC\",\n    \"category\": \"Tax\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/forecasting/v2/transactions/:transactionId","host":["{{base_url}}"],"path":["forecasting","v2","transactions",":transactionId"],"variable":[{"key":"transactionId","value":"transactionId5678","description":"Unique identifier for the transaction"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 30 Oct 2020 19:58:50 GMT"},{"key":"x-amzn-RequestId","value":"555693ac-5235-4d43-89cc-8d33527d85bc"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VPaDIGXUDoEFWig="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9c707a-291271ac63fcf5b0633fe257"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 fe4c2207fc59dd7aa34d5b9c9e7bef06.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"A4zilLPtZ1x8Ym7JM29HaYbIqbFx62wMVZBGGb7XW5gGmmXiWi1kSA=="}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"64484949-3388-48e9-83b6-7169a9756717"},{"name":"Edit Forecasted Balance (by id)","id":"3afd7764-8851-447b-a312-3ea4a0c1d711","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Company-Id","value":"{{companyId}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n\"date\": \"2021-07-30T03:59Z\",\n\"amount\": \"12000.00\",\n\"currency\": \"GBP\",\n\"type\": \"CREDIT\"\n}"},"url":"{{base_url}}/forecasting/v2/balances/:balanceId","description":"<p>Forecasted balance can be updated by calling the \"Edit forecasted balance\" endpoint.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>balanceId</td>\n<td>string</td>\n<td>Unique identifier for the balance</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n204 No Content","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","balances",":balanceId"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"8b0e6700-8408-4d5a-83d4-b8b60c2fb0e1","description":{"content":"<p>Unique identifier for the balance</p>\n","type":"text/plain"},"type":"string","value":"","key":"balanceId"}]}},"response":[{"id":"ea707c44-027e-4a2e-a84a-555e70c6209c","name":"Edit Forecasted Balance (by id)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"X-Company-Id","value":"{{companyId}}"},{"key":"Authorization","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"date\": \"2021-07-30T03:59Z\",\n    \"amount\": \"12000.00\",\n    \"currency\": \"GBP\",\n    \"type\": \"CREDIT\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/forecasting/v2/balances/:balanceId","host":["{{base_url}}"],"path":["forecasting","v2","balances",":balanceId"],"variable":[{"key":"balanceId","value":"balanceId4567","description":"Unique identifier for the balance"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 30 Oct 2020 20:14:41 GMT"},{"key":"x-amzn-RequestId","value":"3402f047-c2d1-4370-8195-dca3aacfc457"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VPcXtHX0DoEFuJg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9c7431-2c39ff8663df44bc22d50135"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 fe4c2207fc59dd7aa34d5b9c9e7bef06.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"UBxZTARQYg-ziK6N9_2Bh759iZM7kDU743Ms4sYHdS8k5HWfi7gMlg=="}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3afd7764-8851-447b-a312-3ea4a0c1d711"},{"name":"Delete Forecasted Transaction (by id)","id":"b48c4e6e-46fc-495f-8dd2-a10c28621b20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/forecasting/v2/transactions/:transactionId","description":"<p>Forecasted transactions can be deleted by calling the \"Delete forecasted transaction\" endpoint.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>transactionId</td>\n<td>string</td>\n<td>Unique identifier for the transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n202 Accepted","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","transactions",":transactionId"],"host":["{{base_url}}"],"query":[],"variable":[{"description":{"content":"<p>Unique identifier for the bank transaction</p>\n","type":"text/plain"},"type":"string","value":"","key":"transactionId"}]}},"response":[{"id":"e7a468c3-f318-4466-b071-36e9cd721ce6","name":"Delete Forecasted Transaction (by id)","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{base_url}}/forecasting/v2/transactions/:transactionId","host":["{{base_url}}"],"path":["forecasting","v2","transactions",":transactionId"],"variable":[{"key":"transactionId","value":"transactionId4567","description":"Unique identifier for the transaction"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 30 Oct 2020 20:12:31 GMT"},{"key":"x-amzn-RequestId","value":"47c001b6-fffe-4b17-ba30-8b057b0ccbf5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VPcDZFjpDoEFWCQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9c73af-4184ef95741727d23a76ada1"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 fe4c2207fc59dd7aa34d5b9c9e7bef06.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"c945iV8c6nCTeYEjntos6R4CXnM4zuzhqcB3MYT_ojZsM6Q6aLTqaw=="}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"b48c4e6e-46fc-495f-8dd2-a10c28621b20"},{"name":"Delete Forecasted Balance (by id)","id":"07b74669-b535-4bdf-918f-2ace59187b62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/forecasting/v2/balances/:balanceId","description":"<p>Forecasted balance can be deleted by calling the \"Delete forecasted balance\" endpoint.</p>\n<h2> Path variables </h2>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>balanceId</td>\n<td>string</td>\n<td>Unique identifier for the balance</td>\n</tr>\n</tbody>\n</table>\n</div><h2> Success </h2>\n202 Accepted","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}},"urlObject":{"path":["forecasting","v2","balances",":balanceId"],"host":["{{base_url}}"],"query":[],"variable":[{"description":{"content":"<p>Unique identifier for the balance</p>\n","type":"text/plain"},"type":"string","value":"","key":"balanceId"}]}},"response":[{"id":"8f02efb7-ef72-403c-be23-8f0b573e6731","name":"Delete Forecasted Balance (by id)","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Partner-Id","value":"{{X-Partner-Id}}"},{"key":"X-Api-Key","value":"{{X-Api-Key}}"},{"key":"Authorization","value":"{{Authorization}}"},{"key":"X-Company-Id","value":"{{companyId}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{base_url}}/forecasting/v2/balances/:balanceId","host":["{{base_url}}"],"path":["forecasting","v2","balances",":balanceId"],"variable":[{"key":"balanceId","value":"balanceId4567","description":"Unique identifier for the balanace"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 30 Oct 2020 20:16:24 GMT"},{"key":"x-amzn-RequestId","value":"874116d5-3750-4776-a8f2-07117d093bce"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VPcn3GgMjoEFxUQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f9c7498-463d59853d70c541624a9956"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 fe4c2207fc59dd7aa34d5b9c9e7bef06.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"1_-8BP1mamkm2IIN-O8RP235Sjr5RSAtT7VHfKX7v1q6I1Hb5yGWDg=="}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"07b74669-b535-4bdf-918f-2ace59187b62"}],"id":"5437f5a0-016e-47a8-add4-42c1851301f3","description":"<p>The Cash Flow Forecasting API allows customers to adjust their forecast by adding, updating and/or deleting forecasted transactions and balances.</p>\n<p>Multiple forecasts can be created and can enable scenario planning for the business.</p>\n<p>Either an existing forecast can be adjusted by passing an existing forecast id or a new forecast can be created by first calling the \"Create Forecast\" endpoint.</p>\n","event":[{"listen":"prerequest","script":{"id":"643976a1-473b-4fc7-be2f-3a6e92c12224","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"06028dba-129e-47e8-9ee3-4583faf4e158","type":"text/javascript","exec":[""]}}],"_postman_id":"5437f5a0-016e-47a8-add4-42c1851301f3","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240","id":"e55285f1-b329-40b0-972c-d3ae6d90d240","name":"Cashflow Forecast API","type":"folder"}}}],"id":"e55285f1-b329-40b0-972c-d3ae6d90d240","description":"<p>Cashflow Forecast API</p>\n<p>tomato pay Cash Flow Forecasting API returns predicted transactions as well as balances so that a business’ cash flow can be calculated.</p>\n<p>The Cash Flow Forecasting API allows customers to adjust their forecast by adding, updating and/or deleting forecasted transactions and balances.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"fea89780-ff30-41ea-aca9-ac3455af6b88","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ab153da2-019b-4cc0-b73f-43790f2a3029","type":"text/javascript","exec":[""]}}],"_postman_id":"e55285f1-b329-40b0-972c-d3ae6d90d240"}],"id":"418a753c-bb2c-47ee-af04-815fcffed3da","description":"<p>APIs for our partners who use our multi-tenant platform to serve their customers using Open Banking</p>\n","_postman_id":"418a753c-bb2c-47ee-af04-815fcffed3da"},{"name":"Change Log","item":[],"id":"4cef3875-8418-423a-b376-2cfec7672371","description":"<h2 id=\"jan-2022\">Jan 2022</h2>\n<ul>\n<li>Document layout changed to incorporate Partner APIs and Merchant API subsections</li>\n</ul>\n<p><strong>Partner Payment APIs</strong></p>\n<ul>\n<li>Below listed Payment APIs were marked for decommissioning to make way to standardised web payment journey which incorporates fraud prevention measure. Guidance for migration will be provided soon<ul>\n<li>Create Payment Consent</li>\n<li>Authorise Payment</li>\n<li>Retrieve Payment Consents</li>\n<li>Retrieve Payment Consent by id</li>\n</ul>\n</li>\n</ul>\n<h2>May 2021</h2>\n\n<p><a href=\"https://docs.tomatopay.co.uk/#dc3900f5-721d-473c-bc67-20df026f09e2\"><strong>Bank Data API</strong></a></p>\n<p><a href=\"https://docs.tomatopay.co.uk/#e09cc91a-1026-49a7-8447-83719f8d7865\">Updated Retrieve Banks endpoint</a></p>\n<ul>\n<li>Added logos in PNG format</li>\n<li>Added AIS status and PIS status</li>\n<li>Added rdfName field (bank name)</li>\n<li>logoUrl field has been removed</li>\n<li>Added type as a query parameter to filter banks that support AIS and/or payments</li>\n<li>Renamed pg to pageId</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#9b156e2f-aba6-40d9-8677-30a0ec5abc36\">Updated Create Bank Consent endpoint</a></p>\n<ul>\n<li>Removed bankId from the path</li>\n<li>Added bankId to POST body</li>\n<li>Renamed 'permission' field to 'permissions'</li>\n<li>'type' has been removed from the response</li>\n<li>Renamed 'signinUrl' to 'signInUrl'</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#f9e0c6cf-e0e1-44c8-9420-b9e52b9dbcec\">Updated Retrieve Bank Consents endpoint</a></p>\n<ul>\n<li>Removed bankId from the path</li>\n<li>Added bankId as a query parameter</li>\n<li>Added status</li>\n<li>Renamed 'permission' field to 'permissions'</li>\n<li>Removed 'dateCreated' for consent</li>\n<li>Removed 'ConsentType'</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#9906a74a-e19d-4a3d-9d0a-a0fcba433f8b\">Updated Retrieve Bank Consent (by id) endpoint</a></p>\n<ul>\n<li>Removed bankId from the path</li>\n<li>Added status</li>\n<li>Renamed 'permission' field to 'permissions'</li>\n<li>Removed 'dateCreated' for consent</li>\n<li>Removed 'ConsentType'</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#d7610153-0fea-43ba-a21c-7c8ee1e3ffa7\">Updated Put Bank Consent (by id) endpoint</a></p>\n<ul>\n<li>Removed bankId from the path</li>\n<li>Added bankId to POST body</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#114be4ba-78f0-4ea2-802d-8c7bafd111c3\">Updated Delete Bank Consent (by id) endpoint</a></p>\n<ul>\n<li>Removed bankId from the path</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#2758297c-b296-4103-ac38-b1b1b7bdd03c\">Updated Retrieve Bank Accounts endpoint</a></p>\n<ul>\n<li>Added consentId to the response for Open Banking accounts</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#b6556b0e-9cdb-4199-b372-589715f535a2\">Updated Retrieve Bank Account (by id) endpoint</a></p>\n<ul>\n<li>Added consentId to the response for Open Banking accounts</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#6bce3b1e-f502-47f7-954b-d9bc78663a64\">Added Retrieve Parties endpoint</a></p>\n<p><a href=\"https://docs.tomatopay.co.uk/#0ad76a6e-26bd-4766-a5bc-d85df73fd875\"><strong>Payments API</strong></a></p>\n<p><a href=\"https://docs.tomatopay.co.uk/#37d4dda2-1b6e-415b-8dd5-1fa14836821c\">Updated Create Payment Consent endpoint</a></p>\n<ul>\n<li>companyId is now a mandatory header</li>\n<li>Changed the endpoint to /banking/v2/pay/domestic/consents</li>\n<li>Added bankId to POST body</li>\n<li>Renamed paymentType to type</li>\n<li>Renamed authUrl to signInUrl</li>\n<li>Renamed consentStatus to status</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#6615dfcf-7755-46a8-a909-0c85560c3c01\">Updated Authorise Payment Consent endpoint</a></p>\n<ul>\n<li>companyId is now a mandatory header</li>\n<li>Changed the endpoint to /banking/v2/pay/domestic/consents/:consentId</li>\n<li>Added bankId to POST body</li>\n<li>Renamed paymentId to ‘id’</li>\n<li>Added type (paymentType) to the response</li>\n<li>Renamed dateCreated to creationDate</li>\n<li>Added remittanceInfo to the response</li>\n<li>Added companyId to the response</li>\n<li>Renamed SchemeName to 'schemeName'</li>\n<li>Renamed Identification to identification</li>\n<li>Renamed Name to name</li>\n<li>Removed consentType</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#080a2e69-7c21-42e5-b051-7660c63fad08\">Updated Retrieve Payment Consents endpoint</a></p>\n<ul>\n<li>companyId is now a mandatory header</li>\n<li>Changed the endpoint to /banking/v2/pay/domestic/consents</li>\n<li>Renamed 'consentId' to ‘id’</li>\n<li>Added companyId to the response</li>\n<li>Renamed paymentType to type</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#ae362f3b-3edb-42e1-97bb-e646c72607d8\">Updated Retrieve Payment Consents (by id) endpoint</a></p>\n<ul>\n<li>companyId is now a mandatory header</li>\n<li>Changed the endpoint to /banking/v2/pay/domestic/consents/:consentId</li>\n<li>Renamed 'consentId' to ‘id’</li>\n<li>Added companyId to the response</li>\n<li>Renamed paymentType to type</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#f9961515-12f6-4917-91dc-38abe05e64b4\">Updated Retrieve Payment (by id) endpoint</a></p>\n<ul>\n<li>companyId is now a mandatory header</li>\n<li>Changed the endpoint to /banking/v2/pay/payments/:paymentId</li>\n<li>Added companyId to the response</li>\n<li>Renamed 'paymentId' to ‘id’</li>\n<li>Renamed date to creationDate</li>\n<li>Added remittanceInfo to the response</li>\n<li>Renamed paymentType to type</li>\n<li>Renamed SchemeName to 'schemeName'</li>\n<li>Renamed Identification to identification</li>\n<li>Renamed Name to name</li>\n</ul>\n<p><a href=\"https://docs.tomatopay.co.uk/#d75e5c28-f692-48b1-89b3-4b971904725e\">Added Retrieve Payment endpoint</a></p>\n<h2>March 2021</h2>\n\n<p><a href=\"https://docs.tomatopay.co.uk/#e55285f1-b329-40b0-972c-d3ae6d90d240\"><strong>Forecast API</strong></a></p>\n<p><strong>Updated Forecast API endpoints</strong></p>\n<p>Removed bankId from the app and added bankId to the body and response (wherever relevant).</p>\n<h2>November 2020</h2>\n\n<p><a href=\"https://docs.tomatopay.co.uk/#dc3900f5-721d-473c-bc67-20df026f09e2\"><strong>Bank Data API</strong></a></p>\n<p><a href=\"https://docs.tomatopay.co.uk/#2758297c-b296-4103-ac38-b1b1b7bdd03c\">Updated Retrieve Bank Accounts endpoint</a></p>\n<p><a href=\"https://docs.tomatopay.co.uk/#c6232c86-f254-4e48-9df9-543a4bd8d83a\">Updated Retrieve Bank Balances endpoint</a></p>\n<p><a href=\"https://docs.tomatopay.co.uk/#ed354431-80b0-4574-b3fc-b42dd87fbc78\">Updated Retrieve Bank Transactions endpoint</a></p>\n<p><a href=\"https://docs.tomatopay.co.uk/#9b156e2f-aba6-40d9-8677-30a0ec5abc36\">Updated Create Consent endpoint</a> Consent for retrieving specific data can now be requested</p>\n<li><p>Deprecated \\banking\\v2\\banks\\:bankId\\accounts; use \\banking\\v2\\accounts endpoint instead</p></li><li><p>Deprecated \\banking\\v2\\banks\\:bankId\\balances; use \\banking\\v2\\balances endpoint instead</p></li><li><p>Deprecated \\banking\\v2\\banks\\:bankId\\transactions; use \\banking\\v2\\transactions endpoint instead</p></li><h2>October 2020</h2>\n\n<p><a href=\"https://docs.tomatopay.co.uk/#7e079fc5-c37a-44aa-a7d0-b4865a79ed86\"><strong>Company API</strong></a></p>\n<p><a href=\"https://docs.tomatopay.co.uk/#1695d206-b4fa-4052-83ce-d15b819e72bb\">Added Update Company endpoint</a></p>\n<p><a href=\"https://docs.tomatopay.co.uk/#73793898-d8ba-4e2d-b4aa-2d17737d5d27\">Updated Create Company endpoint</a></p>\n<ul><li><p>External ID and/or CRN can now be added to a company.</p></li><li><p>Added support for creating single company and multiple companies.</p></li></ul>\n\n<p><a href=\"https://docs.tomatopay.co.uk/#d1c7e6cc-f772-454f-8968-20843639bd34\">Updated Get Companies endpoint</a><br />Companies can be queried by External ID and/or CRN.</p>\n","_postman_id":"4cef3875-8418-423a-b376-2cfec7672371"}],"event":[{"listen":"prerequest","script":{"id":"92aa0971-e4d8-4986-8126-a49fa6454150","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"43add788-54d0-4631-a652-8da9436eaa51","type":"text/javascript","exec":[""]}}]}