{"info":{"_postman_id":"2d064307-12bc-4671-99d5-eca1600f5a8b","name":"GRG API v1.8 - 2022-10-24","description":"<html><head></head><body><h1 id=\"welcome\">Welcome!</h1>\n<p>The Global Reach API is designed for customers who want to get direct access to their GRG account and take advantage of our transactional FX, risk management and international payments platform. There are many potential applications, but our vision is to expose the GRG toolbox and allow integrators to make use of our capabilities however they best suit you.</p>\n<p>We are on a journey to expose the best of our capabilities and will be regularly rolling out enhancements and new features.</p>\n<p>We have two environments - Sandbox and Production.</p>\n<p>In Sandbox, no trades or payments will be executed in the market, so it is completely safe to experiment. We recommend you never enter production credentials into Postman.</p>\n<h2 id=\"changes-in-this-release\">Changes in this release</h2>\n<p>*   Standalone payments from available trades balance and from trades with available balance</p>\n<h2 id=\"getting-started\">Getting Started</h2>\n<p>Internally at GRG, we make extensive use of Postman and felt it was the best way to give integrators the interactive documentation and tooling that makes for an easy onboarding process.</p>\n<p>We highly recommend that you use Postman to make your way through the Bootcamp list in the Platform API section of the documentation. If you want to dive straight into using curl to test things out on the command line, or build a test app outside of Postman, then we recommend using the code generator inside Postman to get you going.</p>\n<p>Simple choose each endpoint in turn then click on the &lt; /&gt; icon to reveal the code generator panel. This will help you get all the right headers and encodings straight off the bat.</p>\n<p><strong>Step 1 - Sign up for a GRG account</strong>.</p>\n<p>You will need to have a registered GRG account before you can begin testing and investigating the API.</p>\n<p><strong>Step 2 - Request access to the API from your dealer</strong></p>\n<p>Once you have requested access, we will configure your API account and provide the necessary credentials via a secure method.</p>\n<p><strong>Step 3 - Try it out in Postman</strong></p>\n<p>Enter your credentials into the Environments section in Postman, and begin exploring!</p>\n<p>We heavily recommend you never use your production environment credentials in Postman. It will potentially compromise the security of your account and any trades you book or payments you make will <em>actually be processed</em> and require funding.</p>\n<h2 id=\"common-terms\">Common Terms</h2>\n<p>*   Client Id and Client Secret - The API access credentials that provide access to underlying client accounts.\n*   Client account – A unique account for a given on-boarded entity. All eg beneficiaries, trades, payments etc reside under one client account and are not shared with other client accounts.\n*   Account ID - A unique 6-9 digit client identifier for each client account.\n*   Beneficiary – recipient of funds\n*   Payment - outgoing cashflow to a beneficiary\n*   Settlement - incoming cashflow to GRG eg to pay for a trade.</p>\n<h4 id=\"credentials--accounts-hierarchy\">Credentials &amp; Accounts Hierarchy</h4>\n<p>At GRG, each individual or entity has a Client Account. Beneficiaries, trades and payments are scoped to a single Client Account.</p>\n<p>In the example below, a single set of API credentials (client_id, client_secret) can access multiple client accounts. This is usual in a group structure, or for a partner managing a number of clients:</p>\n<p>*   Client id A (API Access Credentials)\n    *   Client Account 1\n        *   Client 1 - Beneficiaries\n        *   Client 1 - Trades\n        *   Client 1 - Payments\n    *   Client Account 2\n        *   Client 2 - Beneficiaries\n        *   Client 2 - Trades\n        *   Client 2 - Payments</p>\n<h2 id=\"auth-api-and-platform-api\">Auth API and Platform API</h2>\n<p>Within Postman, we have two distinct folders representing two separate APIs:</p>\n<p>*   Auth API\n*   Platform API</p>\n<p>The Auth API folder relates to our central auth server API for obtaining JWTs for use with the Platform API.</p>\n<p>The Platform API folder is where our GRG API lives, and may have different requirements, request and response formats to the Auth API.</p>\n<h2 id=\"postman-automation\">Postman Automation</h2>\n<p>Within Postman, we have made use of pre-request and test scripts as well as environment and collection level variables to make your first experiences of the journey simpler to understand. When it comes to integrating into your own platform, you will be more directly responsible for setting the correct headers, getting valid JWT tokens etc.</p>\n<p>Using the code generator can simplify the task of understanding what details are required.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Welcome!","slug":"welcome"}],"owner":"21839173","collectionId":"2d064307-12bc-4671-99d5-eca1600f5a8b","publishedId":"2s84LJ1Ehe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-10-24T10:05:34.000Z"},"item":[{"name":"Auth API","item":[{"name":"Get a java web token","event":[{"listen":"test","script":{"id":"bbf9d6cc-8ff0-4b77-baee-6102cf6e138e","exec":["pm.test('Api returns a status 200', () => {","     pm.response.to.have.status(200);","});","","pm.test(\"Check the response is JSON\", function () {","    pm.response.to.be.json;","    pm.response.to.not.be.error; ","});","","","pm.test('A valid auth response is returned', () => {","   const data = pm.response.json();","    var expiryTime = new Date(new Date().getTime() + ((data.expires_in - 60)*1000));","    console.log(\"New JWT expiry time is:\"+expiryTime);","    pm.collectionVariables.set('jwt', data.access_token );","    pm.collectionVariables.set('jwtExpiry',expiryTime);","    pm.collectionVariables.set('jwtEnvironment',pm.environment.name);","","    pm.expect(data.access_token).to.be.a('string');","    pm.expect(data.expires_in).to.be.a('number');","    pm.expect(data.token_type).to.equal('Bearer');","    pm.expect(data.scope).to.equal('grg.api');","","","","});"],"type":"text/javascript"}}],"id":"87caeccc-4287-4b50-9388-ae225499ff69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{ClientId}}","type":"text"},{"key":"client_secret","value":"{{ClientSecret}}","type":"text"},{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"scope","value":"grg.api","type":"text"},{"key":"client_name","value":"testaccount","type":"text","disabled":true}]},"url":"{{AuthBaseUrl}}/auth","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"fffd773d-5e80-4e81-a132-75548b0b64ce","id":"fffd773d-5e80-4e81-a132-75548b0b64ce","name":"Auth API","type":"folder"}},"urlObject":{"path":["auth"],"host":["{{AuthBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"e9ba7784-5bd6-4f0f-ac16-e39a1b8781f5","name":"200 Successful request","originalRequest":{"method":"POST","header":[{"key":"Ocp-Apim-Subscription-Key","value":"85a606a41089476298a8275e1735404b","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"5fb3ba8c-501f-4e69-a162-6be75526ba46","type":"text"},{"key":"client_secret","value":"?a5gA^iLW7xDWe!U","type":"text"},{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"scope","value":"grg.api","type":"text"},{"key":"client_name","value":"testaccount","type":"text","disabled":true}]},"url":"{{ApiBaseUrl}}/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Mar 2022 09:50:09 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-store, no-cache, max-age=0"},{"key":"pragma","value":"no-cache"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=8p919vbaNOqWCp6mVEQrES2CAifatoFzrX9v6L9RApKBOGr7ilTLxqcQWXsyvObjD4J0KDJUf2BqlS%2FeK3k2gRc0gC9olZEfnrZZjTfyYfC0NpPYTYwf5PtoysTnjHQU7OTX55O7kgFyNdPsuWOqVv9GuqI1IrSsCwY%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f0e803bdc7c773b-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IkNFOUI0RTc5Qzg0QUZGM0NFRTgyMUZCMzI0N0VFNEREIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE2NDgxMTU0MDksImV4cCI6MTY0ODExOTAwOSwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS1zZXJ2ZXItZGV2Lmdsb2JhbHJlYWNoZ3JvdXAuY29tIiwiYXVkIjoiZ3JnLmFwaSIsImNsaWVudF9pZCI6ImEyYWU0ZDgyLWE4ZmItNDkxNy04NzFmLTRhMzZkMmE5NmI5MCIsImNsaWVudF9hY2NvdW50X2lkIjoiQzIxTkcxNjEzOCIsImlhdCI6MTY0ODExNTQwOSwic2NvcGUiOlsiZ3JnLmFwaSJdfQ.OagzRXgzBE96LbRgqw9Gr-kltvFZ5PQdmu4aB-KLb_L8OfinoWcRrg1H_DhiXLfPGqBx3ZgQjLa1xunttgje_Ashplqv4hw7cV67c9L5Tr4QCF5vzPpNwRxVbMehThrokeMzbQ6tnXbAwIXDxBwaGpFoFUnaevDnrB7NOuhaFYnjLx4FM7LvP67U_XCOOigJ5WG23cKN--3oyGYeqXHMmp80kbUjgpR5GQbKTJALnMQcmcR_cDpwYp5JqhCyO_vi2emL3BwU4kUHncWW1_u6X8gDtXpYISDrSk2v_9kxubl-oZfnX2SMsNllO9tVZ5t6mTk3-SN3k7zW_OYTlX-8ww\",\n    \"expires_in\": 3600,\n    \"token_type\": \"Bearer\",\n    \"scope\": \"grg.api\"\n}"},{"id":"47f6b21b-a5c9-4a7b-9247-0b2ca68ac5c0","name":"400 Bad Request","originalRequest":{"method":"POST","header":[{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{ClientId}}","type":"text"},{"key":"client_secret","value":"{{ClientSecret}}1","type":"text"},{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"scope","value":"grg.api","type":"text"},{"key":"client_name","value":"testaccount","type":"text","disabled":true}]},"url":"{{AuthBaseUrl}}/auth"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Apr 2022 12:03:29 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-store, no-cache, max-age=0"},{"key":"pragma","value":"no-cache"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=x%2FE%2Bn1eywEguqwBuU003VsO3XXPnxuELzE0NSxRLn%2FNL%2BWP%2FlRCh3SYRZIHSVHDmZNnXtOyJCrXxhnth3Llr8Y48KYJVA9MegDy6FJYKm5QrVEVZ51A%2BlvZr5eknGgs9IKXdfIGbKB3T%2BpDUI%2Buktbk%2Flp18uSg10i8%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f72240cef6e72e4-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"invalid_client\"\n}"}],"_postman_id":"87caeccc-4287-4b50-9388-ae225499ff69"}],"id":"fffd773d-5e80-4e81-a132-75548b0b64ce","description":"<p>The GRG API uses standard JWTs alongside a separate product subscription key for authorisation.</p>\n<p>Using the 'Get a java web token' method with your unique client_id and client_secret you can retrieve a bearer token which is then used in any subsequent call to other API endpoints.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"c1140b03-9df1-4b1f-8649-30057cb78987","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"faba8a64-998f-4879-a58b-393387fee5f8","type":"text/javascript","exec":[""]}}],"_postman_id":"fffd773d-5e80-4e81-a132-75548b0b64ce"},{"name":"Platform API","item":[{"name":"Health","item":[{"name":"Get health","event":[{"listen":"test","script":{"id":"d03155ae-42a4-40cf-a542-ed6670d40985","exec":["//postman.setNextRequest('List beneficiaries with filter');"],"type":"text/javascript"}}],"id":"f9628aaf-3368-4bf9-a124-67ebe07c3c35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/health","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["health"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"a27ce502-6e84-470d-bc3a-6a53758ee7de","name":"200 Successful health check","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{Account}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/health"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Apr 2022 10:58:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=lXS2C8Qhn3LbJ1Ti%2BOr3w9S6GOX9%2Fef2LXAaBx4LqreRg45DHxsZr0tGtm9ysR0sS9szuywmZpFAtHMGrSymT45wmehBK7aAuAnGl3ehA1fkRV0Ljlk%2F8dq8yzgxicibY9pYAxJ%2Bh77tfc%2Fe80kTcJNqd1Vc4ik%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f8a7d9b58ce8924-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"a5ec63ba-0c10-4fa4-8671-c73d18e6dbc7\",\n    \"status\": 200,\n    \"data\": {\n        \"entries\": {\n            \"Data Layer\": {\n                \"data\": {},\n                \"description\": null,\n                \"duration\": {\n                    \"ticks\": 2997105,\n                    \"days\": 0,\n                    \"hours\": 0,\n                    \"milliseconds\": 299,\n                    \"minutes\": 0,\n                    \"seconds\": 0,\n                    \"totalDays\": 0.000003468871527777778,\n                    \"totalHours\": 0.00008325291666666667,\n                    \"totalMilliseconds\": 299.7105,\n                    \"totalMinutes\": 0.004995175,\n                    \"totalSeconds\": 0.2997105\n                },\n                \"exception\": null,\n                \"status\": \"Healthy\",\n                \"tags\": []\n            }\n        },\n        \"status\": \"Healthy\",\n        \"totalDuration\": {\n            \"ticks\": 3091180,\n            \"days\": 0,\n            \"hours\": 0,\n            \"milliseconds\": 309,\n            \"minutes\": 0,\n            \"seconds\": 0,\n            \"totalDays\": 0.0000035777546296296296,\n            \"totalHours\": 0.00008586611111111111,\n            \"totalMilliseconds\": 309.118,\n            \"totalMinutes\": 0.005151966666666666,\n            \"totalSeconds\": 0.309118\n        }\n    }\n}"}],"_postman_id":"f9628aaf-3368-4bf9-a124-67ebe07c3c35"}],"id":"704bf2c8-5209-468d-92a5-8e3e05fa61ce","_postman_id":"704bf2c8-5209-468d-92a5-8e3e05fa61ce","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}}},{"name":"Rates","item":[{"name":"Get a rate","event":[{"listen":"test","script":{"id":"b7cbcc13-abd3-432a-a387-80919945d177","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('A rate is returned', () => {\r","   const retval = pm.response.json();\r","   const data=retval.data;\r","\r","   pm.expect(data.sell.currency).to.eql(pm.request.url.query.toObject().Sell);\r","   pm.expect(data.sell.amount).is.greaterThan(0); \r","   pm.expect(data.sell.amount).is.a('number'); \r","\r","   pm.expect(data.buy.currency).to.eql(pm.request.url.query.toObject().Buy);\r","   pm.expect(data.buy.amount).is.greaterThan(0);\r","   pm.expect(data.buy.amount).is.a('number'); \r","   pm.expect(data.rate).is.greaterThan(0);   \r","});\r","\r","//postman.setNextRequest('List beneficiaries with filter');"],"type":"text/javascript"}}],"id":"9b7ac920-6f64-4598-aa38-5d7eb386deff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"description":"<p>(Required) The GRG client account number. The request action will be performed on this client account. See client account for more information.</p>\n","key":"Account-Id","value":"{{AccountId}}"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Unique-Request-Id","value":"4a7f6872-1818-4b37-94f6-beb08f38d58a","type":"text"}],"url":"{{ApiBaseUrl}}/rates/?Sell=EUR&Buy=GBP&Side=Buy&Amount=1000","description":"<p>Get an live exchange rate for a particular GRG client, currency pair, and amount.Currencies are specified using the <a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4127</a> format.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["rates",""],"host":["{{ApiBaseUrl}}"],"query":[{"description":{"content":"<p>(Required) The 3 letter currency code (ISO 4217) for the sell currency.</p>\n","type":"text/plain"},"key":"Sell","value":"EUR"},{"description":{"content":"<p>(Required) The 3 letter currency code (ISO 4217) for the buy currency.</p>\n","type":"text/plain"},"key":"Buy","value":"GBP"},{"description":{"content":"<p>(Required) Is the amount specified in buy or sell?.</p>\n","type":"text/plain"},"key":"Side","value":"Buy"},{"description":{"content":"<p>(Required) The amount of currency to exchange.</p>\n","type":"text/plain"},"key":"Amount","value":"1000"}],"variable":[]}},"response":[{"id":"b4a6d433-09d6-4b64-b635-a5e10b1f081f","name":"200 Successful request","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"description":"(Required) The GRG client account number. The request action will be performed on this client account. See client account for more information.","key":"Account-Id","value":"{{Account}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/rates/?Sell=EUR&Buy=GBP&Side=Buy&Amount=1000","host":["{{ApiBaseUrl}}"],"path":["rates",""],"query":[{"key":"Sell","value":"EUR","description":"(Required) The 3 letter currency code (ISO 4217) for the sell currency."},{"key":"Buy","value":"GBP","description":"(Required) The 3 letter currency code (ISO 4217) for the buy currency."},{"key":"Side","value":"Buy","description":"(Required) Is the amount specified in buy or sell?."},{"key":"Amount","value":"1000","description":"(Required) The amount of currency to exchange."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Apr 2022 10:51:23 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=RqxFZ20370E9%2BL6SYUIVCguL7ID8crDP8GM0dZaFsPrlM8maaIBM4zIQhq%2Bipt3WldHCQaGic4cndO%2B8tF%2BIa50w83FGwTWQcoMsXCiDSqYGiP9URVltRPdf8WiyUWuL3r9SXaZ6OUhQ8NezHR1CQPFe30eUXyI%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f8a727ecc2a8924-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"521b6808-545c-4e0d-926f-82d548ea4829\",\n    \"status\": 200,\n    \"data\": {\n        \"sell\": {\n            \"currency\": \"EUR\",\n            \"amount\": 1202.4\n        },\n        \"buy\": {\n            \"currency\": \"GBP\",\n            \"amount\": 1000\n        },\n        \"rate\": 1.2024,\n        \"createdDateTime\": \"2022-04-08T10:51:23Z\"\n    }\n}"},{"id":"7547260e-ae43-478b-91ee-46a95ad5a8b8","name":"400 Invalid request","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"description":"(Required) The GRG client account number. The request action will be performed on this client account. See client account for more information.","key":"Account-Id","value":"{{Account}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/rates/?Sell=EUR&Buy=GBP&Side=Buy&Amount=-1","host":["{{ApiBaseUrl}}"],"path":["rates",""],"query":[{"key":"Sell","value":"EUR","description":"(Required) The 3 letter currency code (ISO 4217) for the sell currency."},{"key":"Buy","value":"GBP","description":"(Required) The 3 letter currency code (ISO 4217) for the buy currency."},{"key":"Side","value":"Buy","description":"(Required) Is the amount specified in buy or sell?."},{"key":"Amount","value":"-1","description":"(Required) The amount of currency to exchange."}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Apr 2022 10:52:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"145"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=RdlqxlNeBDCC88knAajrdaET8%2FipDjeni8qja1pTABofNwlaYzqGUN4IX5c4WKf1eDNRwEppg4Bwwnxudw4RRzEXYKOJTJUFNhb1hrNgIVgiQ3WDrJkJNvu%2Bct%2BYnC%2BpI%2Fa2psgLHy%2F7tN1RqI7PgkPPtyfVQnY%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f8a74e1abf18924-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"79f9b532-1afc-45f9-9447-a6244fb5e5d4\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"'Amount' must be greater than '0'.\"\n    ]\n}"}],"_postman_id":"9b7ac920-6f64-4598-aa38-5d7eb386deff"}],"id":"9f382dfd-1557-4840-9498-f6328f23c1cc","_postman_id":"9f382dfd-1557-4840-9498-f6328f23c1cc","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}}},{"name":"Beneficiaries","item":[{"name":"Add beneficiary - simple case","event":[{"listen":"test","script":{"id":"6338d0b2-cc3b-46de-bfe8-841022d56f41","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Newly added beneficiary is returned', () => {\r","   const data = pm.response.json().data;\r","   \r","   pm.expect(data.id).not.eq(null);\r","   pm.expect(data.customerReference).not.eq(null);\r","   pm.expect(data.beneficiaryNumber).not.eq(null);\r","   pm.expect(data.name).not.eq(null);\r","   pm.expect(data.paymentCurrency).not.eq(null);\r","\r","   pm.expect(data.bankDetails.name).not.eq(null);\r","   pm.expect(data.bankDetails.accountNumber).not.eq(null);\r","   pm.expect(data.bankDetails.swiftCode).not.eq(null);\r","\r","  pm.collectionVariables.set('addedBeneficiaryId', data.id);\r","});"],"type":"text/javascript"}}],"id":"cfdae035-b52c-4d83-afd7-a379a898a747","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"customerReference\": \"c7210f98-e953-45b6-bfa1-7cec7cf6ac5c\",\r\n  \"paymentCurrency\": \"EUR\",\r\n  \"recipient\": {\r\n    \"name\": \"Test Bene 1776080507\",\r\n    \"nationality\": \"British\"\r\n  },\r\n  \"bankDetails\": {\r\n    \"name\": \"Santander Bank\",\r\n    \"accountNumber\": \"ES3821008635710200074431\",\r\n    \"swiftCode\": \"CAIXESBBXXX\",\r\n    \"address\": {\r\n      \"countryCode\": \"ES\"\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/beneficiaries","description":"<p>Some beneficiaries will require less information, e.g. paying Euros to Europe, although more information can be provided if you have it.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["beneficiaries"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"4f3960d8-a55d-4fef-a770-1d1a38b0e8b3","name":"200 Successfully created beneficiary","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"customerReference\": \"d3172ed0-8800-469d-8dfa-ab6035e26214\",\r\n  \"paymentCurrency\": \"EUR\",\r\n  \"recipient\": {\r\n    \"name\": \"Test Bene 1776080507\"\r\n  },\r\n  \"bankDetails\": {\r\n    \"name\": \"Santander Bank\",\r\n    \"accountNumber\": \"ES3821008635710200074431\",\r\n    \"swiftCode\": \"CAIXESBBXXX\",\r\n    \"address\": {\r\n      \"countryCode\": \"ES\"\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/beneficiaries/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Sep 2022 06:29:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=wxLS2VB31rNxGxG5YZuujaXVOXiOM8Now8gUaI9cekpmMjW4wGFS8vlF2DIankU9evzZcT%2BjlH6s91YrfBKzEv8%2BQAIOfFHWcX1GCQLU7%2BlrI8n%2F%2B9wnly2i1pDlS1neugf10K34kbnXER2Nxb9VObEh6yAAb7U%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"743bf284a93cdcef-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"5694fab1-6110-4ec4-ba12-56079b89078f\",\n    \"status\": 200,\n    \"data\": {\n        \"id\": \"f2064a63-e561-43cd-b7e6-67fcda3fcfa7\",\n        \"customerReference\": \"3a0fd018-e5ac-48a7-8546-822059c9480\",\n        \"status\": \"Created\",\n        \"beneficiaryNumber\": 154334,\n        \"createdDateTime\": \"2022-09-01T06:29:15.08Z\",\n        \"paymentCurrency\": \"EUR\",\n        \"recipient\": {\n            \"name\": \"Test Bene 1662013722\",\n            \"nationality\": null,\n            \"address\": {\n                \"addressLine1\": null,\n                \"city\": null,\n                \"country\": null\n            }\n        },\n        \"bankDetails\": {\n            \"name\": \"Santander Bank\",\n            \"address\": {\n                \"addressLine1\": null,\n                \"city\": null,\n                \"countryCode\": \"ES\"\n            },\n            \"accountNumber\": \"ES3821008635710200074431\",\n            \"sortCode\": null,\n            \"swiftCode\": \"CAIXESBBXXX\",\n            \"bankCode\": null\n        }\n    }\n}"},{"id":"03e3b690-63fa-4b9f-a68e-a74c14de49bf","name":"400 Missing key fields","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"customerReference\": \"d9dc2b3c-2676-472c-aff1-eb43ec733b42\",\r\n  \"paymentCurrency\": \"EUR\"\r\n  \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/beneficiaries/add"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Sep 2022 06:30:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"180"},{"key":"Connection","value":"keep-alive"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=TZuR7x6riS%2FcKasDTQnTSYALSNmJclHqm8SBPC5C%2F%2FlWLuDdE1TJ%2BpX%2BKtkVyeyiOOIaRBW14st2lR9JX76YA2kBOXQ9WwYUsfCZU%2F2xiSa5xUf0alh6PdWf5IitbOQsxMHgvQa8nR8zrkR1ZN4xPuF0zGtkyxk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"743bf507fd0edcef-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"3a172673-80aa-422a-9591-1a76d72c0907\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"The recipient field is required.\",\n        \"The bankDetails field is required.\"\n    ]\n}"}],"_postman_id":"cfdae035-b52c-4d83-afd7-a379a898a747"},{"name":"Add beneficiary - full data","event":[{"listen":"test","script":{"id":"a6f665a5-3fe9-44b5-a22a-ff79375eb3e2","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Newly added beneficiary is returned', () => {\r","   const data = pm.response.json().data;\r","   \r","    pm.expect(data.id).not.eq(null);\r","    pm.expect(data.customerReference).not.eq(null);\r","    pm.expect(data.beneficiaryNumber).not.eq(null);\r","    pm.expect(data.recipient.name).not.eq(null);\r","    pm.expect(data.paymentCurrency).not.eq(null);\r","    pm.expect(data.recipient.address.addressLine1).not.eq(null);\r","    pm.expect(data.recipient.address.city).not.eq(null);\r","    pm.expect(data.recipient.address.country).not.eq(null);\r","\r","    pm.expect(data.bankDetails.name).not.eq(null);\r","    pm.expect(data.bankDetails.accountNumber).not.eq(null);\r","    pm.expect(data.bankDetails.swiftCode).not.eq(null);\r","\r","    pm.expect(data.intermediaryBankDetails.name).not.eq(null);\r","    pm.expect(data.intermediaryBankDetails.accountNumber).not.eq(null);\r","    pm.expect(data.intermediaryBankDetails.swiftCode).not.eq(null);\r","    \r","    pm.collectionVariables.set('addedBeneficiaryId', data.id);\r","\r","});"],"type":"text/javascript"}}],"id":"2f6728c5-00c3-4d34-8a8b-b564288b423e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"customerReference\" : \"49bd7c21-3a70-494b-9734-9c16197158a2\",\r\n    \"paymentCurrency\": \"GBP\",\r\n    \"recipient\": {\r\n        \"name\": \"Test Bene 1776080507\",\r\n        \"nationality\": \"British\",\r\n        \"address\": {\r\n          \"addressLine1\": \"Beneficiary Address 1\",\r\n          \"city\": \"Beneficiary Address 2\",\r\n          \"countryCode\": \"GB\"\r\n        }\r\n    },\r\n    \"bankDetails\": {\r\n        \"name\": \"Santander Bank\",\r\n        \"address\": {\r\n            \"addressLine1\": \"514 High Rd\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"ES\"\r\n        },\r\n        \"accountNumber\": \"ES3821008635710200074431\",\r\n        \"swiftCode\": \"CAIXESBBXXX\",\r\n        \"bankCode\" : \"\",\r\n        \"sortCode\" : \"\"\r\n    },\r\n    \"intermediaryBankDetails\": {\r\n        \"name\": \"Santander Bank\",\r\n        \"address\": {\r\n            \"addressLine1\": \"514 High Rd\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"ES\"\r\n        },\r\n        \"accountNumber\": \"ES3821008635710200074431\",        \r\n        \"swiftCode\": \"CAIXESBBXXX\"        \r\n    }  \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/beneficiaries","description":"<p>Beneficiaries are complex, there are lots of possible fields that may be important when sending a payment, but not all are mandatory. The mandatory fields are determined by the currency you are sending and the country you are sending the payment to.</p>\n<p>In this example we have provided all of the potential fields that you can send when adding a beneficiary. Our recommendation is that you populate the fields that the beneficiary has provided, then use the validator end point to check that these meet the criteria.</p>\n<p>Beneficiary name, currency, bank country, bank name always required.</p>\n<p>The \"Customer reference\" is where you can provide a unique reference to help you identify beneficiaries in addition to the beneficiary details required for payments.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["beneficiaries"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"9aae1333-2759-44d1-b1c2-7be6335d8eff","name":"200 Successfully created beneficiary","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"name\": \"Test Beneficiary 1776080507\",\r\n    \"customerReference\" : \"80a81b84-d805-4f8f-b38f-cdd502eab44b\",\r\n    \"nationality\": \"British\",    \r\n    \"paymentCurrency\": \"GBP\",\r\n    \"beneficiaryAddress\": {\r\n        \"addressLine1\": \"TEST\",\r\n        \"city\": \"TEST\",\r\n        \"countryCode\": \"GB\"\r\n    },\r\n    \"bankDetails\": {\r\n        \"name\": \"Santander Bank\",\r\n        \"address\": {\r\n            \"addressLine1\": \"514 High Rd\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"ES\"\r\n        },\r\n        \"accountNumber\": \"ES3821008635710200074431\",\r\n        \"swiftCode\": \"CAIXESBBXXX\",\r\n        \"bankCode\" : \"\",\r\n        \"sortCode\" : \"\"       \r\n    },\r\n    \"intermediaryBankDetails\": {\r\n        \"name\": \"Santander Bank\",\r\n        \"address\": {\r\n            \"addressLine1\": \"514 High Rd\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"ES\"\r\n        },\r\n        \"accountNumber\": \"ES3821008635710200074431\",        \r\n        \"swiftCode\": \"CAIXESBBXXX\"        \r\n    }  \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/beneficiaries/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:22:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=hELptysqj0Y9d0CGo2eiZitgt1ud6%2BYqaeQYd3KOl46pkpg5A6xoV%2FTRGjyt7A%2FKJd6xYsjzqSP0vDe3QvTGkslAE9jdRt4fpdKusRuyp%2FKrHnYc4BwsDqqJPKk%2BPeWK7ojKNoc17Cif9W9%2BLDJNkmwiVwYy0gk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f427773ca0068a-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"9418220e-c1ac-48f0-af3e-fe108fa1dc31\",\n    \"status\": 200,\n    \"data\": {\n        \"id\": \"62340ce9-9123-40ea-95f9-5efc9ac86288\",\n        \"customerReference\": \"bb0aa739-6688-4e01-bd78-43ccd72b372\",\n        \"status\": \"Created\",\n        \"beneficiaryNumber\": 154301,\n        \"createdDateTime\": \"2022-08-23T13:22:11.347Z\",\n        \"paymentCurrency\": \"GBP\",\n        \"recipient\": {\n            \"name\": \"Test Beneficiary 1661260916\",\n            \"nationality\": \"British\",\n            \"address\": {\n                \"addressLine1\": \"TEST\",\n                \"city\": \"TEST\",\n                \"country\": \"GB\"\n            }\n        },\n        \"bankDetails\": {\n            \"name\": \"Santander Bank\",\n            \"address\": {\n                \"addressLine1\": \"514 High Rd\",\n                \"city\": \"TEST\",\n                \"countryCode\": \"ES\"\n            },\n            \"accountNumber\": \"ES3821008635710200074431\",\n            \"sortCode\": \"\",\n            \"swiftCode\": \"CAIXESBBXXX\",\n            \"bankCode\": \"\"\n        },\n        \"intermediaryBankDetails\": {\n            \"name\": \"Santander Bank\",\n            \"address\": {\n                \"addressLine1\": \"514 High Rd\",\n                \"city\": \"TEST\",\n                \"countryCode\": \"ES\"\n            },\n            \"swiftCode\": \"CAIXESBBXXX\",\n            \"accountNumber\": \"ES3821008635710200074431\"\n        }\n    }\n}"},{"id":"a6edbef0-6925-4475-a935-9738eeb56fde","name":"400 Missing key fields","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"name\": \"Test Beneficiary 1776080507\",\r\n    \"customerReference\" : \"cd155cf8-1bfb-4e74-bf7c-2aa1d4812f79\",\r\n    \"nationality\": \"British\",    \r\n    \"beneficiaryAddress\": {\r\n        \"addressLine1\": \"TEST\",\r\n        \"city\": \"TEST\",\r\n        \"countryCode\": \"GB\"\r\n    },\r\n    \"bankDetails\": {\r\n        \"name\": \"Santander Bank\",\r\n        \"address\": {\r\n            \"addressLine1\": \"514 High Rd\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"ES\"\r\n        },\r\n        \"accountNumber\": \"ES3821008635710200074431\",\r\n        \"swiftCode\": \"CAIXESBBXXX\",\r\n        \"bankCode\" : \"\",\r\n        \"sortCode\" : \"\"       \r\n    },\r\n    \"intermediaryBankDetails\": {\r\n        \"name\": \"Santander Bank\",\r\n        \"address\": {\r\n            \"addressLine1\": \"514 High Rd\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"ES\"\r\n        },\r\n        \"accountNumber\": \"ES3821008635710200074431\",        \r\n        \"swiftCode\": \"CAIXESBBXXX\"        \r\n    }  \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/beneficiaries/add"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:25:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"149"},{"key":"Connection","value":"keep-alive"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=9tuGswENyyh8fAOnba2s68IX8J9GI4UWJgi71muu8OOKOwpq5QKlnK8iMCPet9h8MnU25vfTdipB5xmHeQRMOl67NmnYVPD6W%2FzFjHihqJBt0YP%2BfKKB7mKWNTnzBG1AlEm9LMl1fe%2FX2IlyJ0WZ7PCkreHM8CQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f42c37ca5c068a-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"03938b2a-06cb-4eb7-b778-9581b46ea672\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"The paymentCurrency field is required.\"\n    ]\n}"}],"_postman_id":"2f6728c5-00c3-4d34-8a8b-b564288b423e"},{"name":"Validate beneficiary","event":[{"listen":"test","script":{"id":"5b2a7038-63ac-4b9c-b559-ff2fadb4ce00","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Result determines this is a valid beneficiary', () => {\r","    const data = pm.response.json().data;\r","\r","    pm.expect(data.isValid).be.eq(true);\r","    pm.expect(data.validationErrors).be.eq(null);\r","});"],"type":"text/javascript"}}],"id":"53f1dbe0-8a12-432d-a846-42013bc1db6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"recipient\" : {\r\n        \"name\": \"Validate Beneficiary 1776080507\",\r\n        \"nationality\": \"American\",\r\n        \"address\": {\r\n            \"addressLine1\": \"TEST\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"GB\"\r\n        }\r\n    },   \r\n    \"paymentCurrency\": \"GBP\",    \r\n    \"bankDetails\": {\r\n        \"name\": \"Santander Bank\",\r\n        \"address\": {\r\n            \"addressLine1\": \"514 High Rd\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"GB\"\r\n        },\r\n        \"accountNumber\": \"12345678\",\r\n        \"swiftCode\": null,\r\n        \"bankCode\" : null,\r\n        \"sortCode\" : \"123456\"       \r\n    },\r\n    \"intermediaryBankDetails\": null\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/beneficiaries/validate","description":"<p>The mandatory information required for each beneficiary will depend on the country you are paying to and the currency you are paying. Our validator will review the information provided and determine if all required information is present and in the correct format and length.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["beneficiaries","validate"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"12bfe772-f153-40ee-b221-a602a2b6246a","name":"200 Successful request","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"name\": \"Validate Beneficiary 1776080507\",\r\n    \"nationality\": \"American\",    \r\n    \"paymentCurrency\": \"GBP\",\r\n    \"beneficiaryAddress\": {\r\n        \"addressLine1\": \"TEST\",\r\n        \"city\": \"TEST\",\r\n        \"countryCode\": \"GB\"\r\n    },\r\n    \"bankDetails\": {\r\n        \"name\": \"Santander Bank\",\r\n        \"address\": {\r\n            \"addressLine1\": \"514 High Rd\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"GB\"\r\n        },\r\n        \"accountNumber\": \"12345678\",\r\n        \"swiftCode\": null,\r\n        \"bankCode\" : null,\r\n        \"sortCode\" : \"123456\"       \r\n    },\r\n    \"intermediaryBankDetails\": null\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/beneficiaries/validate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 11 Aug 2022 10:12:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=LSa3YZgoFmSNOV1Sy4nsH1B%2FJkqmwbH33MDgnDJeoQecDbustfXRQcW5QlS%2Bx4UZPRV0afrukitxRuQCAkpq%2BqcBJl1vp1KhaDGeTvzAnjzcl71yD42GbLqBzL9LIBb%2Bd4aI6YV2Qf59IRPUk668bZN2dCcbFpI%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"739031916f508286-IAD"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"d72e9001-ade4-4270-860b-00a3b02555b5\",\n    \"status\": 200,\n    \"data\": {\n        \"isValid\": true,\n        \"validationErrors\": null\n    }\n}"},{"id":"db146ebe-16e5-4aac-a7e2-7850168e8b13","name":"400 Invalid request","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"name\": \"Validate Beneficiary 1776080507\",\r\n    \"nationality\": \"American\",    \r\n    \"paymentCurrency\": \"CAD\",\r\n    \"beneficiaryAddress\": {\r\n        \"addressLine1\": \"TEST\",\r\n        \"city\": \"TEST\",\r\n        \"countryCode\": \"CA\"\r\n    },\r\n    \"bankDetails\": {\r\n        \"name\": \"Santander Bank\",\r\n        \"address\": {\r\n            \"addressLine1\": \"514 High Rd\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"CA\"\r\n        },\r\n        \"accountNumber\": \"11122222333333333333\",\r\n        \"swiftCode\": \"AIVVCATT\",\r\n        \"bankCode\" : null,\r\n        \"sortCode\" : \"\"       \r\n    },\r\n    \"intermediaryBankDetails\": null\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/beneficiaries/validate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 11 Aug 2022 10:06:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=XdQiACF0yHSJAla4JLEKVRxenL4mylDcL%2Fy5nxTpJv5QtgPxBlNCNiRcAHndg0JjGVshM41lbd%2BG%2FxQ0d56arhFfbTuSZUVpOwxRexuLDwJf47hM42sfUrO9h08r8CbU3quH5AN19pJ%2BGxJWCiZeLH0SruW%2ByIc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"739029546d2a8f0e-IAD"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"accd51f6-7bb6-4c29-a319-2b8b7f5ddd63\",\n    \"status\": 200,\n    \"data\": {\n        \"isValid\": false,\n        \"validationErrors\": [\n            \"TransitNumber is required.\"\n        ]\n    }\n}"},{"id":"d384cf4d-ac6e-454b-9d71-e7697553f160","name":"400 Invalid request","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"name\": \"Validate Beneficiary 1776080507\",\r\n    \"nationality\": \"American\",    \r\n    \"paymentCurrency\": \"GBP\",\r\n    \"beneficiaryAddress\": {\r\n        \"addressLine1\": \"TEST\",\r\n        \"city\": \"TEST\",\r\n        \"countryCode\": \"GB\"\r\n    },\r\n    \"bankDetails\": {\r\n        \"name\": \"Santander Bank\",\r\n        \"address\": {\r\n            \"addressLine1\": \"514 High Rd\",\r\n            \"city\": \"TEST\",\r\n            \"countryCode\": \"GB\"\r\n        },\r\n        \"accountNumber\": \"1234567\",\r\n        \"swiftCode\": null,\r\n        \"bankCode\" : null,\r\n        \"sortCode\" : \"123456\"       \r\n    },\r\n    \"intermediaryBankDetails\": null\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/beneficiaries/validate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 11 Aug 2022 10:11:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=usEVcv4fAXh9VgPh40tQ4rf7%2BZPecxCt8qVQTwD51SDbd0cslzVUaObOBIkatRpi%2FznW%2FXgXS2w%2F8iEnNEaYcf%2FbgmSjWeZTmUaPd9yNvxNsOMfO8sA67EoOo5qTMvjn8zwjvF%2BZrk1j1pnF1UyhFqvCqgtc%2Bew%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73903007e8288278-IAD"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"e73fc6f2-6888-4749-a6a4-2eb3c937b923\",\n    \"status\": 200,\n    \"data\": {\n        \"isValid\": false,\n        \"validationErrors\": [\n            \"AccountNumber - Enter a 8 digit number.\",\n            \"IBAN is required.\",\n            \"IBAN - The IBAN field is too short.\",\n            \"IBAN - The IBAN should consist of letters and numbers only.\",\n            \"IBAN - The IBAN entered is not valid.\",\n            \"Swift is required.\",\n            \"Swift - The Swift code length must be 8 or 11 characters.\",\n            \"Swift - The Swift format is not correct.\",\n            \"Swift - The Swift code entered does not match the recipient country.\"\n        ]\n    }\n}"}],"_postman_id":"53f1dbe0-8a12-432d-a846-42013bc1db6a"},{"name":"Delete beneficiary","event":[{"listen":"test","script":{"id":"6338d0b2-cc3b-46de-bfe8-841022d56f41","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Beneficiary is successfully deleted', () => {\r","  \r","});"],"type":"text/javascript"}}],"id":"99e2e62f-34c8-4614-87fd-f0c7d9b7fa5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/beneficiaries/:Id","description":"<p>When deleting a beneficiary be mindful that any payment already set up that hasn't been processed yet will still be sent to those beneficiary details. Please contact us if any payments need addressing.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["beneficiaries",":Id"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[{"id":"3473cc4e-abc6-488d-aa7e-f9c3f7aa51f6","type":"any","value":"","key":"Id"}]}},"response":[{"id":"13514601-4baa-439c-826a-92651802603d","name":"200 Successfully deleted beneficiary","originalRequest":{"method":"DELETE","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/beneficiaries/:Id","host":["{{ApiBaseUrl}}"],"path":["beneficiaries",":Id"],"variable":[{"key":"Id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:26:46 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=gltSWx97F9zS8tZ6LjzOaNscAABWcsCKWMwN%2BuiRUOI2DyDkjjddxjgl7C%2BoVMC9hOCCjJmqFeSUKe5WqNNdmcn59WrGAVpAJ%2BU9FYGwLAcQpu5ci47e5%2Bje5qNSxnZGWr4KhnugCqncmWAcBFo%2Bq61z62luW%2BI%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f42e880daa068a-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"042ebf03-c9c2-4b4b-9185-2fe13c53f063\",\n    \"status\": 200,\n    \"data\": {\n        \"beneficiaryId\": \"8dfbcdca-994b-4553-b74e-d81cd477dc18\",\n        \"deleted\": true\n    }\n}"},{"id":"6baf42ff-3f45-4a02-a27d-48753147af5a","name":"400 Invalid beneficiary id","originalRequest":{"method":"DELETE","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/beneficiaries/123123123"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:27:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"153"},{"key":"Connection","value":"keep-alive"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=FjJLiZ0G6rDY8oDR1YPfK7Hl61QA7KjCuR%2BmU1HJMbHvUDOLphybSg4MxjehVG61nUM%2FVyksCEuhQiYtOh1mz5XuRkv%2BegF8pX0t0033Xw%2BiD3bbiP%2BkDR0NsTadOfRm3a1Xpqi2Sa3aeRIe%2Fs27Cj%2F4Bx1NWOc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f42f0fb80d068a-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"4881d85d-244c-45d6-bfd5-1e225f7f2419\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"The value '123123123' is not valid for id.\"\n    ]\n}"}],"_postman_id":"99e2e62f-34c8-4614-87fd-f0c7d9b7fa5f"},{"name":"List beneficiaries with filter","event":[{"listen":"test","script":{"id":"0e9ca38b-8621-439e-b04c-54c77cbc3a25","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Beneficiaries are returned', () => {\r","   const data = pm.response.json().data;\r","\r","    var beneficiaryId = data.beneficiaries[0].id;\r","    console.log(\"Beneficiary ID:\" + beneficiaryId)\r","\r","    pm.collectionVariables.set('beneficiaryId', beneficiaryId);\r","    pm.expect(data.beneficiaries).length.greaterThan(-1)\r","});\r","\r","//postman.setNextRequest(\"Get beneficiary by ID\");"],"type":"text/javascript"}}],"id":"e2e3ccff-d61e-48de-ab05-3a1e99e13d7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/beneficiaries/?currency=GBP&bankCountryCode=GB","description":"<p>All beneficiaries will have a status; Created and Deleted.</p>\n<ul>\n<li>Created is an active beneficiary and can be used to make a payment to</li>\n<li>Deleted will return a invalid request when attempting to make a payment to</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["beneficiaries",""],"host":["{{ApiBaseUrl}}"],"query":[{"key":"currency","value":"GBP"},{"key":"bankCountryCode","value":"GB"},{"disabled":true,"key":"customerReference","value":""},{"disabled":true,"key":"showDeleted","value":"true"}],"variable":[]}},"response":[{"id":"df20f99b-c652-4edb-b030-f4910e8385ef","name":"List beneficiaries with filter","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/beneficiaries/list?currency=GBP&bankCountryCode=GB","host":["{{ApiBaseUrl}}"],"path":["beneficiaries","list"],"query":[{"key":"currency","value":"GBP"},{"key":"bankCountryCode","value":"GB"},{"key":"customerReference","value":"","disabled":true},{"key":"showDeleted","value":"true","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 14:30:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=mVcGS7WoK93pnH0wlCZcJ5gbGdaInBm2bJuG%2FeaiOngnoPpa6lR91LMqqJXfEZ5EKqjcr7fA2ppS%2FwM7UiRwPxi%2BAm5Lbm2Meu%2FJUSnvFV2qq%2BrlolNnrDhmVKBII2IrzwZq1xwZkX8K3T7gohkq4lZ6Kfgea6k%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f48c23db16730c-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"522cf1a6-e88b-4b88-9a95-889ed352c4d1\",\n    \"status\": 200,\n    \"data\": {\n        \"beneficiaries\": [\n            {\n                \"id\": \"194a3609-ffeb-44c8-9821-395bd342e5a8\",\n                \"customerReference\": \"Amit Email Test\",\n                \"status\": \"Created\",\n                \"beneficiaryNumber\": 20152,\n                \"createdDateTime\": null,\n                \"paymentCurrency\": \"GBP\",\n                \"recipient\": {\n                    \"name\": \"Test Beneficiary 20152\",\n                    \"nationality\": \"British\",\n                    \"address\": {\n                        \"addressLine1\": \"Beneficiary Address 1\",\n                        \"city\": \"Beneficiary Address 2\",\n                        \"country\": \"Beneficiary Address 3\"\n                    }\n                },\n                \"bankDetails\": {\n                    \"name\": \"Beneficiary Bank Update\",\n                    \"address\": {\n                        \"addressLine1\": \"Address\",\n                        \"city\": \"City\",\n                        \"countryCode\": \"GB\"\n                    },\n                    \"accountNumber\": \"78951365\",\n                    \"sortCode\": \"259874\",\n                    \"swiftCode\": \"BARCGB22\",\n                    \"bankCode\": \"\"\n                }\n            },\n            {\n                \"id\": \"e1870d0a-3ea9-4dbc-bba5-36abde426f55\",\n                \"customerReference\": \"Amit Hiran Patel - GBP\",\n                \"status\": \"Created\",\n                \"beneficiaryNumber\": 111885,\n                \"createdDateTime\": \"2019-07-09T15:14:06.683Z\",\n                \"paymentCurrency\": \"GBP\",\n                \"recipient\": {\n                    \"name\": \"Test Beneficiary 111885\",\n                    \"nationality\": \"British\",\n                    \"address\": {\n                        \"addressLine1\": \"TEST\",\n                        \"city\": \"TEST\",\n                        \"country\": \"HA96BN\"\n                    }\n                },\n                \"bankDetails\": {\n                    \"name\": \"Santander Bank\",\n                    \"address\": {\n                        \"addressLine1\": \"514 High Rd\",\n                        \"city\": \"TEST\",\n                        \"countryCode\": \"GB\"\n                    },\n                    \"accountNumber\": \"38290008\",\n                    \"sortCode\": \"200415\",\n                    \"swiftCode\": \"\",\n                    \"bankCode\": \"\"\n                }\n            },\n            {\n                \"id\": \"f1a51e7e-d37a-4c66-a1ea-81282b49d609\",\n                \"customerReference\": \"Created Online - GBP\",\n                \"status\": \"Created\",\n                \"beneficiaryNumber\": 154298,\n                \"createdDateTime\": \"2022-08-19T13:24:50.77Z\",\n                \"paymentCurrency\": \"GBP\",\n                \"recipient\": {\n                    \"name\": \"Created Online\",\n                    \"nationality\": null,\n                    \"address\": {\n                        \"addressLine1\": null,\n                        \"city\": null,\n                        \"country\": null\n                    }\n                },\n                \"bankDetails\": {\n                    \"name\": \"Bank\",\n                    \"address\": {\n                        \"addressLine1\": \"Bank Address\",\n                        \"city\": \"\",\n                        \"countryCode\": \"GB\"\n                    },\n                    \"accountNumber\": \"12121212\",\n                    \"sortCode\": \"202022\",\n                    \"swiftCode\": \"\",\n                    \"bankCode\": \"\"\n                }\n            },\n            {\n                \"id\": \"18e69c4a-0249-4d40-87dc-1c33f8b31e70\",\n                \"customerReference\": \"TESTNewAmitPatel\",\n                \"status\": \"Created\",\n                \"beneficiaryNumber\": 44779,\n                \"createdDateTime\": null,\n                \"paymentCurrency\": \"GBP\",\n                \"recipient\": {\n                    \"name\": \"Test Beneficiary 44779\",\n                    \"nationality\": \"British\",\n                    \"address\": {\n                        \"addressLine1\": \"TESTNewAmitPatel\",\n                        \"city\": \"TESTNewAmitPatel\",\n                        \"country\": \"TESTNewAmitPatel\"\n                    }\n                },\n                \"bankDetails\": {\n                    \"name\": \"TESTNewAmitPatel\",\n                    \"address\": {\n                        \"addressLine1\": \"TESTNewAmitPatel\",\n                        \"city\": \"TESTNewAmitPatel\",\n                        \"countryCode\": \"GB\"\n                    },\n                    \"accountNumber\": \"12345678\",\n                    \"sortCode\": \"123456\",\n                    \"swiftCode\": \"\",\n                    \"bankCode\": \"\"\n                }\n            }\n        ],\n        \"filters\": {\n            \"currency\": \"GBP\",\n            \"bankCountryCode\": \"GB\"\n        }\n    }\n}"}],"_postman_id":"e2e3ccff-d61e-48de-ab05-3a1e99e13d7a"},{"name":"Get beneficiary by ID","event":[{"listen":"test","script":{"id":"5e2a89a6-9ad3-4ac5-8523-090b4cfc115d","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","//postman.setNextRequest(\"Create a quote\");"],"type":"text/javascript"}}],"id":"2acdc2a4-4ee6-49cb-88d2-66394433c6c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/beneficiaries/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["beneficiaries",":id"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[{"id":"9d65f47f-08c5-4ee6-baf4-52b09878610d","type":"any","value":"","key":"id"}]}},"response":[{"id":"db6c0c8f-a985-4e6e-9a37-dc0bab363399","name":"200 Successful request","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{Account}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/beneficiaries/:id","host":["{{ApiBaseUrl}}"],"path":["beneficiaries",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 24 Jun 2022 16:07:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=mf004uHavKeICjbUT2HD6suLT1fZg8AolHxt35HRfSSB0cr8hPHhRU6%2FOz9yV%2FVeaTfY7N7t39MYD4ttH59qDanGS1sPcb4y3ieAjSXfqxulm3%2F9eu4ld3L8ELnYdda%2FCAOP2wSgnk0RFrnZZJsZMA2oByOh0vQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7206b80bad8471c0-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"19d22329-80b3-4e39-9a43-95c7ff3502e0\",\n    \"status\": 200,\n    \"data\": {\n        \"beneficiary\": {\n            \"id\": \"5ddc949a-31ad-48fa-863f-946faf43f1de\",\n            \"name\": \"Test Test\",\n            \"nationality\": null,\n            \"createdDateTime\": \"2022-06-24T13:49:29.52Z\",\n            \"paymentCurrency\": \"GBP\",\n            \"beneficiaryAddress\": {\n                \"addressLine1\": \".\",\n                \"city\": \".\",\n                \"country\": \".\"\n            },\n            \"bankDetails\": {\n                \"name\": \"TestBank1\",\n                \"address\": {\n                    \"addressLine1\": \".\",\n                    \"city\": \"London\",\n                    \"country\": \"United Kingdom\"\n                },\n                \"accountNumber\": \"12345678\",\n                \"sortCode\": \"600606\",\n                \"swiftCode\": \"\",\n                \"bankCode\": \"\"\n            },\n            \"intermediaryBankDetails\": {\n                \"name\": \"\",\n                \"address\": {\n                    \"addressLine1\": \"\",\n                    \"city\": \"\",\n                    \"country\": \"United Kingdom\"\n                },\n                \"swiftCode\": \"\"\n            }\n        }\n    }\n}"}],"_postman_id":"2acdc2a4-4ee6-49cb-88d2-66394433c6c4"}],"id":"fa4e1c78-3f59-4798-92f7-3f7980794ff0","description":"<p>In the current platform, beneficiaries are effectively templates that can be used to create a payment.</p>\n<p><strong>Beneficiary data and endpoints</strong></p>\n<p>Beneficiaries are relatively complex pieces of data. Depending on the currency and country, there are many different optional/required data points to ensure a payment is possible and arrives in reasonable time.</p>\n<p>We have provided a 'validate' endpoint so you can test out the data you have and see if it is sufficient for us to make a payment. You can then use the add endpoint to actually create a beneficiary.</p>\n<p>In Postman we have documented a 'simple case' and the 'full case' where we show all the potential fields we can capture. We will always need at least the beneficiary name (ie the destination account holders name), the currency and some basic bank details, but we recommend you always provide as much information as you have as this is likely to improve deliverability of the payment.</p>\n<p><strong>Linking Reference</strong></p>\n<p>The 'customerReference' field is a reference you can use from your systems as a linking ID and can be particularly useful if uploading beneficiaries via CFX (see below). The GRG API does not require these to be unique.</p>\n<p><strong>Uniqueness</strong></p>\n<p>The platform will only allow one beneficiary to be created with the same:</p>\n<ul>\n<li>Recipient name</li>\n<li>Payment currency</li>\n<li>Bank account number</li>\n</ul>\n<p><strong>Uploading beneficiaries using CFX</strong></p>\n<p>As well as adding beneficiaries one by one via the API, you can also mass-upload beneficiaries using our web-based CFX portal (<a href=\"https://corporate.globalreachgroup.com\">https://corporate.globalreachgroup.com</a>). When uploading via this method, you can specify a linking reference (called 'OPITemplateName' in CFX) which is exposed via the API as the customerReference field on the beneficiary return object.</p>\n<p>Using this, it is possible to mass-import beneficiaries into the platform with a user-supplied reference that can then be tied back to a GRG beneficiary id.</p>\n","_postman_id":"fa4e1c78-3f59-4798-92f7-3f7980794ff0","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}}},{"name":"Trades","item":[{"name":"Create a quote","event":[{"listen":"test","script":{"id":"d4d4c811-9445-4cf5-930f-b05b5c367727","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test('A quote is returned', () => {\r","   const data = pm.response.json().data;\r","\r","   // Got a quote id\r","   pm.expect(data.id).not.eq(null);\r","   console.log(\"Quote ID: \" + data.id)\r","   pm.collectionVariables.set('quoteId',data.id)\r","\r","});\r","\r","\r","pm.test('Quote is a valid trade', () => {\r","   const trade = pm.response.json().data.trade;\r","\r","   pm.expect(trade).instanceOf(Object);\r","   \r","   var req = JSON.parse(request.data);\r","\r","   pm.expect(trade.buy.currency).to.eql(req.trade.buy.currency);\r","   pm.expect(trade.buy.amount).is.greaterThan(0);\r","   pm.expect(trade.buy.amount).is.a('number'); \r","   if (req.trade.buy.hasOwnProperty('amount')) {\r","     pm.expect(trade.buy.amount).to.eql(req.trade.buy.amount);\r","   }\r","   if (req.trade.sell.hasOwnProperty('amount')) {\r","     pm.expect(trade.sell.amount).to.eql(req.trade.sell.amount);\r","   }\r","   \r","   pm.expect(trade.sell.currency).to.eql(req.trade.sell.currency);\r","   pm.expect(trade.sell.amount).is.greaterThan(0);\r","   pm.expect(trade.sell.amount).is.a('number');\r","});\r","\r","//postman.setNextRequest(\"Book trade from quote\");"],"type":"text/javascript"}}],"id":"f19d096e-4d97-4f14-a0d1-1a58bfc4d75d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\"\r\n      ,\"amount\": 1000\r\n\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote","description":"<p>In the POST body, you can specify the buy and sell currency details.</p>\n<p>The amount can be provided on either the buy or the sell side.</p>\n<p>To quote for a same-currency trade, simply set the buy and sell currency to the same value.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["trades","quote"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"c93e5a73-af7b-4fb9-8cfc-114328ac0f7d","name":"Cross Currency (Sell side)","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{Account}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\",\r\n      \"amount\": 1000\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Apr 2022 10:52:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=cg5lCwj7d05L8qrVOpwhnNgzAROiLsg%2FQcYkZ65GxI1PjkrtLeMboC8uQC3pj07bxiPimLPWxdbeiGyKA%2FxI1hDHmwaFuO9hUr%2FOhKPiQ9kYFkgWw0Tt7WdRFg7rJYghhJ%2FrkuPb87P1eIXUeWWBdW%2FPrDTSQ3Q%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f8a73876e748924-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"2a906cee-30c9-42da-b154-c80130ba1699\",\n    \"status\": 200,\n    \"data\": {\n        \"id\": \"8fdcac82-1b97-4fb4-b6fa-3ffcb81ae6ed\",\n        \"expiresDateTime\": \"2022-04-08T09:57:04Z\",\n        \"createdDateTime\": \"2022-04-08T09:52:04Z\",\n        \"trade\": {\n            \"side\": \"Sell\",\n            \"rate\": 1.1944,\n            \"valueDate\": \"2022-04-08\",\n            \"buy\": {\n                \"currency\": \"EUR\",\n                \"amount\": 1194.4\n            },\n            \"sell\": {\n                \"currency\": \"GBP\",\n                \"amount\": 1000\n            },\n            \"settlement\": {\n                \"date\": \"2022-04-08\",\n                \"totalPayable\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 1000\n                }\n            }\n        }\n    }\n}"},{"id":"29f8baf5-e9cb-430c-92bf-0eb9d1b06745","name":"Cross Currency (buy side)","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n      ,\"amount\": 1000\r\n\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\"\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:37:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=NHzMvr5g5eE8zqMeNVUQk5WsgY46Gzf7Ux70HQeU7rAPOz%2BelyZ95SHcaK%2F5bXpnl1nPf74xNPW54oL9s4Heu6Fy9PW7Br242S%2F6puyaEAZfqJC%2F4LTOvH7ByEvQ9UC8r4KGL70HUD%2F7UNBhpoTYMU052eE%2FphY%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f43ef2ca487190-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"5eb5383e-ec6a-4398-af71-1439ac2ad96e\",\n    \"status\": 200,\n    \"data\": {\n        \"id\": \"46f9209d-5bcf-462b-b82b-64bc670442d6\",\n        \"expiresDateTime\": \"2022-08-23T13:42:58.487Z\",\n        \"createdDateTime\": \"2022-08-23T13:37:58.487Z\",\n        \"trade\": {\n            \"side\": \"Buy\",\n            \"rate\": 1.1817,\n            \"valueDate\": \"2022-08-23\",\n            \"buy\": {\n                \"currency\": \"EUR\",\n                \"amount\": 1000\n            },\n            \"sell\": {\n                \"currency\": \"GBP\",\n                \"amount\": 846.24\n            },\n            \"settlement\": {\n                \"date\": \"2022-08-23\",\n                \"totalPayable\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 846.24\n                }\n            }\n        }\n    }\n}"},{"id":"c92471eb-1c80-4599-ba7f-bfa5053c8608","name":"Same Currency","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{Account}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"EUR\",\r\n      \"amount\": 1000\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 06 Jun 2022 15:09:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=vaUcX3Ok9Jqx7%2Fs6sDeXcSzkK8rboPnD6c1Z8BlVRFRmuyUYQQP8EU6B4hpOnYuI4zANrZC6O5qUZgvGEYYUIAJZaH1BG5rAZu2yUrVeHmBEPTgo96C8sva8%2Ffx9CLxkU884HPBpszVP%2BH5NG0r1FSCMfLMMkz8%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"717211a2892073ff-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"d51a93d4-68d7-43cb-87a6-c97242a60dd0\",\n    \"status\": 200,\n    \"data\": {\n        \"id\": \"c191114e-fab3-4125-98bc-a53ae45ebac5\",\n        \"expiresDateTime\": \"2022-06-06T15:14:24.703Z\",\n        \"createdDateTime\": \"2022-06-06T15:09:24.703Z\",\n        \"trade\": {\n            \"side\": \"Sell\",\n            \"rate\": 1,\n            \"valueDate\": \"2022-06-07\",\n            \"buy\": {\n                \"currency\": \"EUR\",\n                \"amount\": 1000\n            },\n            \"sell\": {\n                \"currency\": \"EUR\",\n                \"amount\": 1000\n            },\n            \"settlement\": {\n                \"date\": \"2022-06-07\",\n                \"totalPayable\": {\n                    \"currency\": \"EUR\",\n                    \"amount\": 1000\n                }\n            }\n        }\n    }\n}"},{"id":"101ed7ba-e6d9-4a5e-948b-b8954f2c20f0","name":"400 Invalid Request - Invalid JSON","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{Account}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{ ,BADJSON,\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\",\r\n      \"amount\": 1000\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Apr 2022 10:53:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"220"},{"key":"Connection","value":"keep-alive"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=6%2Bz31xSXzNz%2BzWwbXRhxY4U0RJDsJ4%2By4iHlK%2FWOGp1rpsM4jBJ8xxXU7zFGSl5sK7LPx9IdZ2wnO0wCXrU%2Bs%2BAZgn063un3ddiA2aRKK2FW3sxPlXaDdkpg2QsUphB1y%2FecXJT29Vro3k9ajGLuGH9RKneg58M%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f8a76600c908924-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"d0a4b411-dfcd-4b86-b7f4-4f79a92a3214\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"',' is an invalid start of a property name. Expected a '\\\"'. Path: $ | LineNumber: 0 | BytePositionInLine: 2.\"\n    ]\n}"},{"id":"cd580385-93e1-4972-8582-082cdbf8d12a","name":"400 Invalid Request - Invalid buy currency","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"000\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\",\r\n      \"amount\": 1000\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jul 2022 13:22:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"192"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"SIT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2B5Cn5EzDKXkHVkUA4NwsNkSBvxVSq1EJKLlQqEdMa8yDCSeyHb8vr1bszGuXnu4qBzh0hUcLFpQ7fa88cpgDPMnDuEe9%2FxLwnjmczkOQQH4TFCg7apEvxcYoZMj1i9sTHPKexdq0fNNkjq4Z13QcKvtcu8r2IeM%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:6baf5929-5735-40dd-81e1-760508ca6ddb"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"723f72d1dffd72ba-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"5c098382-9c6a-4038-9048-bd9df6d0e3cc\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"The buy currency is invalid or not supported\",\n        \"The currency pair is not supported\"\n    ]\n}"},{"id":"d778e2c0-c029-4de6-a2ab-2f01b8e6d44d","name":"400 Invalid Request - Invalid sell currency","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"000\",\r\n      \"amount\": 1000\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jul 2022 13:23:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"193"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"SIT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Ds5ghF%2ByUJDZTIng6oMNK5oDsb71AGNmQ8IDXlIwZRbFbBo6Wu3xN2rdfLj0H0T6P2jSx%2FDpDFNZrHBeQZdBOHsJ4vEeKfo69EVOiIczbRSAyNlXUVZZxwAUJ4k20Y9HklI%2Fw%2B8CImzQSuZaX3iNBhmZBxvuhms%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:6baf5929-5735-40dd-81e1-760508ca6ddb"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"723f74bc1df372ba-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"086c4825-6ebc-45f4-8fed-5d4d0dbc7baa\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"The sell currency is invalid or not supported\",\n        \"The currency pair is not supported\"\n    ]\n}"},{"id":"1e531b73-9c9b-4110-8aee-9bc4ca6f1967","name":"400 Invalid Request - Invalid amount","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\",\r\n      \"amount\": -500\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jul 2022 13:24:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"151"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"SIT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=m7vFz5V0K82Rw%2Bz1LZML7x8qbck7kBXgtN50BZC%2BXdOffIme%2F2%2BKIBmjEkooFg5%2FdbAGdiYfWbU5twL0uKDNLJydGms0C6iYzHFvITCREEL0zKHxSKW9UhtMgcnzV%2FHE8fIKOA5UG1djhUKN1DQxgdJsPX0UOfc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:6baf5929-5735-40dd-81e1-760508ca6ddb"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"723f75b2d95b72ba-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"6c9c3b3d-9b3c-4f5b-993d-97b1530de941\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"'Trade Amount' must be greater than '0'.\"\n    ]\n}"}],"_postman_id":"f19d096e-4d97-4f14-a0d1-1a58bfc4d75d"},{"name":"Book trade from quote","event":[{"listen":"test","script":{"id":"8b1dd59f-14ed-40f5-baa9-9fbe4d84ba54","exec":["pm.test('Api returns a status 200', () => {","     pm.response.to.have.status(200);","});","","","pm.test('A trade is returned', () => {","   const data = pm.response.json().data;","   pm.collectionVariables.set('bookedTradeIdFromQuote',data.trade.id)","","   pm.expect(data.id).not.eq(null);","   console.log(\"Quote ID:\" + pm.collectionVariables.get('quoteId') + \", Trade ID: \" + data.id + \", trade number: \"+data.tradeNumber);","});","","//postman.setNextRequest(\"Create a quote with payments\");"],"type":"text/javascript"}}],"id":"3cad92ab-360f-441b-8a56-40bddfa6750c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Unique-Request-Id","value":"28324f00-5353-4a9f-863e-0e9144a81939","type":"text"}],"url":"{{ApiBaseUrl}}/trades/book/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["trades","book",":id"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[{"id":"78628345-3bf4-4e7b-a0a0-92579e037a87","type":"any","value":"","key":"id"}]}},"response":[{"id":"f5547cd0-11a7-4e90-98dc-5d738088bbef","name":"Trade booked","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Unique-Request-Id","value":"072b560f-f7d6-4eae-969c-5baf0f06133b","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/trades/book/:id","host":["{{ApiBaseUrl}}"],"path":["trades","book",":id"],"variable":[{"id":"78628345-3bf4-4e7b-a0a0-92579e037a87","key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:47:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=kT0vOT%2BSdJzdhTj2QVQgenpyKFTmpKbPu%2FO0yC4LJaa5NQNctTHaYxq13bNVrZKIE%2Fk7GkQ543ie5tZZEEGe0qXfkXct7MlHFIYSqLohW1FKeRauyYSgaUvd6fjKwAQf%2B3A49RolbgyMDhJVciH0De3b5%2BvYCRY%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f44d3aefc47190-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"1e878e7b-b6a7-48d2-af62-b4f46218943c\",\n    \"status\": 200,\n    \"data\": {\n        \"trade\": {\n            \"id\": \"620d408d-241c-48ab-80f5-4c89ee7c2d50\",\n            \"tradeNumber\": 1019512,\n            \"valueDate\": \"2022-08-24\",\n            \"createdDateTime\": \"2022-08-23T13:47:43.543Z\",\n            \"tradeType\": \"Spot\",\n            \"rate\": 1.1817,\n            \"buy\": {\n                \"currency\": \"EUR\",\n                \"amount\": 1000\n            },\n            \"sell\": {\n                \"currency\": \"GBP\",\n                \"amount\": 846.24\n            },\n            \"side\": \"Buy\",\n            \"buySideAvailable\": 1000,\n            \"settlement\": {\n                \"date\": \"2022-08-24\",\n                \"totalPayable\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 846.24\n                },\n                \"settlementAccount\": {\n                    \"name\": \"Global Reach Partners Ltd\",\n                    \"bankDetails\": {\n                        \"name\": \"Barclays Bank Plc\",\n                        \"address\": {\n                            \"addressLine1\": \"Pall Mall\",\n                            \"city\": \"\",\n                            \"countryCode\": \"GB\"\n                        },\n                        \"accountNumber\": \"80670693\",\n                        \"sortCode\": \"200605\",\n                        \"swiftCode\": \"BARCGB22\",\n                        \"bankCode\": \"BARC\"\n                    }\n                }\n            },\n            \"payments\": []\n        }\n    }\n}"},{"id":"18789710-9716-43c8-a2bc-f7a3ca790afa","name":"400 Invalid request","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{Account}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/trades/book/:id","host":["{{ApiBaseUrl}}"],"path":["trades","book",":id"],"variable":[{"key":"id","value":"abc123"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Apr 2022 07:26:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=lR3zI%2Fa3CiQnKZOwqyT3OXVAQX1%2F9emJpXxQ4dPlWpywmYdfcDODTW2F2142B2g6VdihKgLYLErnRml1zvlb81z%2F9IQLL4M812qI%2BIWo8Ah4auM4TsLsTUCYK4%2B8T2J3tT4zJ9sc6xDLJZqgUQ%2Fe3amyf%2FBK8KE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f708d973d3be680-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"a0b4d222-jeit-4b86-j8f0-4f79a66a3244\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": \"Unable to find selected quote: abc123\"\n}"}],"_postman_id":"3cad92ab-360f-441b-8a56-40bddfa6750c"},{"name":"Create a quote with payments","event":[{"listen":"test","script":{"id":"d4d4c811-9445-4cf5-930f-b05b5c367727","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('A quote is returned', () => {\r","   const data = pm.response.json().data;\r","\r","   // Got a quote id\r","   pm.expect(data.id).not.eq(null);\r","   console.log(\"Quote ID (with payments): \" + data.id)\r","   pm.collectionVariables.set('quoteIdWithPayments',data.id)\r","\r","});\r","\r","pm.test('Quote is a valid trade', () => {\r","   const trade = pm.response.json().data.trade;\r","\r","   pm.expect(trade).instanceOf(Object);\r","   \r","   var req = JSON.parse(request.data);\r","\r","   pm.expect(trade.buy.currency).to.eql(req.trade.buy.currency);\r","   pm.expect(trade.buy.amount).is.greaterThan(0);\r","   pm.expect(trade.buy.amount).is.a('number'); \r","   if (req.trade.buy.hasOwnProperty('amount')) {\r","     pm.expect(trade.buy.amount).to.eql(req.trade.buy.amount);\r","   }\r","   if (req.trade.sell.hasOwnProperty('amount')) {\r","     pm.expect(trade.sell.amount).to.eql(req.trade.sell.amount);\r","   }\r","   \r","   pm.expect(trade.sell.currency).to.eql(req.trade.sell.currency);\r","   pm.expect(trade.sell.amount).is.greaterThan(0);\r","   pm.expect(trade.sell.amount).is.a('number');\r","});\r","\r","//postman.setNextRequest(\"Book trade from quote with payments\");"],"type":"text/javascript"}}],"id":"38ec38eb-ceeb-4dd0-9ab8-a84728aed0b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\"\r\n    },\r\n    \"payments\" :[\r\n        {\r\n            \"amount\" : 1000,\r\n            \"currency\" : \"EUR\",\r\n            \"beneficiaryId\" : \"\",\r\n            \"paymentReference\" : \"Ref1\",\r\n            \"paymentReference2\" : \"\",\r\n            \"paymentReference3\" : \"\",\r\n            \"paymentReason\" : \"CCAS\" \r\n        },\r\n        {\r\n            \"amount\" : 2000,\r\n            \"currency\" : \"EUR\",\r\n            \"beneficiaryId\" : \"\",\r\n            \"paymentReference\" : \"Ref2\",\r\n            \"paymentReference2\" : \"\",\r\n            \"paymentReference3\" : \"\",\r\n            \"paymentReason\" : \"CCAS\" \r\n        },\r\n        {\r\n            \"amount\" : 3000,\r\n            \"currency\" : \"EUR\",\r\n            \"beneficiaryId\" : \"\",\r\n            \"paymentReference\" : \"Ref3\",\r\n            \"paymentReference2\" : \"\",\r\n            \"paymentReference3\" : \"\",\r\n            \"paymentReason\" : \"CCAS\" \r\n        }\r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote","description":"<p>A paymentReason is mandatory. Please see the Payments section of the documentation for the allowed paymentReasons.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["trades","quote"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"f6b9e5f4-a504-461f-a79c-924a61b26679","name":"Single payment","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\",\r\n      \"amount\": 1000\r\n    },\r\n    \"payments\" :[\r\n        {\r\n            \"amount\" : 10,\r\n            \"currency\" : \"EUR\",\r\n            \"beneficiaryId\" : \"\",\r\n            \"paymentReference\" : \"Ref1\",\r\n            \"paymentReference2\" : \"\",\r\n            \"paymentReference3\" : \"\",\r\n            \"paymentReason\" : \"CCAS\" \r\n        }        \r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:43:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=5bhmvJ69sTWEwljxt5He2DXUyg4Ecz234NVZW2X6raz6ssZRwvIepPT4R9zSNObhTr51Us7XTrkT2zDyySzzF6qRj5N%2F1f8qjrP3%2FtHRdtlEoytBwGHNiqAbeVLOPEpjbv4OGEXPmULb4AcKwvJojf89RxbE6ao%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f4479aaba77190-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"1af9ec89-a51d-4b6a-bf05-25d018377f50\",\n    \"status\": 200,\n    \"data\": {\n        \"id\": \"3da0f035-80cb-4f70-84d3-255529a3122e\",\n        \"expiresDateTime\": \"2022-08-23T13:48:52.88Z\",\n        \"createdDateTime\": \"2022-08-23T13:43:52.88Z\",\n        \"trade\": {\n            \"side\": \"Sell\",\n            \"rate\": 1.1817,\n            \"valueDate\": \"2022-08-24\",\n            \"buy\": {\n                \"currency\": \"EUR\",\n                \"amount\": 1181.7\n            },\n            \"sell\": {\n                \"currency\": \"GBP\",\n                \"amount\": 1000\n            },\n            \"settlement\": {\n                \"date\": \"2022-08-24\",\n                \"totalPayable\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 1000\n                }\n            },\n            \"payments\": [\n                {\n                    \"amount\": 10,\n                    \"currency\": \"EUR\",\n                    \"beneficiaryId\": \"c867bc01-ef30-4d3b-9d91-e7452e442a24\",\n                    \"paymentReference\": \"Ref1\",\n                    \"paymentReference2\": \"\",\n                    \"paymentReference3\": null,\n                    \"paymentReason\": \"CCAS\"\n                }\n            ]\n        }\n    }\n}"},{"id":"214684c2-7fda-42e3-b5b9-7b588f8c79d0","name":"Multiple payments","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\"\r\n    },\r\n    \"payments\" :[\r\n        {\r\n            \"amount\" : 10000,\r\n            \"currency\" : \"EUR\",\r\n            \"beneficiaryId\" : \"\",\r\n            \"paymentReference\" : \"Ref1\",\r\n            \"paymentReference2\" : \"\",\r\n            \"paymentReference3\" : \"\",\r\n            \"paymentReason\" : \"CCAS\" \r\n        },\r\n        {\r\n            \"amount\" : 5000,\r\n            \"currency\" : \"EUR\",\r\n            \"beneficiaryId\" : \"\",\r\n            \"paymentReference\" : \"Ref2\",\r\n            \"paymentReference2\" : \"\",\r\n            \"paymentReference3\" : \"\",\r\n            \"paymentReason\" : \"CCAS\" \r\n        },\r\n        {\r\n            \"amount\" : 1000,\r\n            \"currency\" : \"EUR\",\r\n            \"beneficiaryId\" : \"\",\r\n            \"paymentReference\" : \"Ref3\",\r\n            \"paymentReference2\" : \"\",\r\n            \"paymentReference3\" : \"\",\r\n            \"paymentReason\" : \"CCAS\" \r\n        }\r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:43:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=bU0HGiYZSLpVLKpGENi%2BjRFslOB0%2B2xFlTbktLtwWMFkwBIo%2FlfY142VjfWM3uEw1lvpLOQWIfvXqPvXBBvlN7ar%2BvChBdHWzUTc1l%2Br07cMBnhbzIkJfpY1UiG202%2B8oRle%2FrgP1sd2IkG2FcUgyYHPgPrwOHE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f446bdc82b7190-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"0375d20b-05c2-41b4-b469-fd072d90f16c\",\n    \"status\": 200,\n    \"data\": {\n        \"id\": \"d0919679-4541-4e6c-b938-bc60d556571d\",\n        \"expiresDateTime\": \"2022-08-23T13:48:17.62Z\",\n        \"createdDateTime\": \"2022-08-23T13:43:17.62Z\",\n        \"trade\": {\n            \"side\": \"Buy\",\n            \"rate\": 1.1817,\n            \"valueDate\": \"2022-08-24\",\n            \"buy\": {\n                \"currency\": \"EUR\",\n                \"amount\": 16000\n            },\n            \"sell\": {\n                \"currency\": \"GBP\",\n                \"amount\": 13539.82\n            },\n            \"settlement\": {\n                \"date\": \"2022-08-24\",\n                \"totalPayable\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 13539.82\n                }\n            },\n            \"payments\": [\n                {\n                    \"amount\": 10000,\n                    \"currency\": \"EUR\",\n                    \"beneficiaryId\": \"c867bc01-ef30-4d3b-9d91-e7452e442a24\",\n                    \"paymentReference\": \"Ref1\",\n                    \"paymentReference2\": \"\",\n                    \"paymentReference3\": null,\n                    \"paymentReason\": \"CCAS\"\n                },\n                {\n                    \"amount\": 5000,\n                    \"currency\": \"EUR\",\n                    \"beneficiaryId\": \"c867bc01-ef30-4d3b-9d91-e7452e442a24\",\n                    \"paymentReference\": \"Ref2\",\n                    \"paymentReference2\": \"\",\n                    \"paymentReference3\": null,\n                    \"paymentReason\": \"CCAS\"\n                },\n                {\n                    \"amount\": 1000,\n                    \"currency\": \"EUR\",\n                    \"beneficiaryId\": \"c867bc01-ef30-4d3b-9d91-e7452e442a24\",\n                    \"paymentReference\": \"Ref3\",\n                    \"paymentReference2\": \"\",\n                    \"paymentReference3\": null,\n                    \"paymentReason\": \"CCAS\"\n                }\n            ]\n        }\n    }\n}"},{"id":"9eb7441a-098e-441e-92db-c2229c3338a3","name":"Amount determined from payments","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\",\r\n      \"amount\": 1000\r\n    },\r\n    \"payments\" :[\r\n        {\r\n            \"amount\" : 10,\r\n            \"currency\" : \"EUR\",\r\n            \"beneficiaryId\" : \"\",\r\n            \"paymentReference\" : \"Ref1\",\r\n            \"paymentReference2\" : \"\",\r\n            \"paymentReference3\" : \"\",\r\n            \"paymentReason\" : \"HOLM\" \r\n        }        \r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Jul 2022 13:15:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=hlKCIJ99Q951IkRLDGJdvWs8u0d58kVeWndjEBD29O%2BpIijzwMqv0hUx99NKIOXZ385Gy1oxlKzz1kr7Zj6wZ%2FWcOUf3DneS7uw8cazHXVM5Dg5n5xaUPPl2vsMQpt6FvWd9KWyIydB%2BBkjUMo27T2idMi704Qg%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"72605ed998b672f0-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"b5788964-ca86-4a77-ab17-9a701eaf7a8e\",\n    \"status\": 200,\n    \"data\": {\n        \"id\": \"4ea69ab0-07ff-46dc-bb12-c7cdade1c484\",\n        \"expiresDateTime\": \"2022-07-05T13:15:53.023Z\",\n        \"createdDateTime\": \"2022-07-05T13:15:38.023Z\",\n        \"trade\": {\n            \"side\": \"Sell\",\n            \"rate\": 1.1618,\n            \"valueDate\": \"2022-07-05\",\n            \"buy\": {\n                \"currency\": \"EUR\",\n                \"amount\": 1161.8\n            },\n            \"sell\": {\n                \"currency\": \"GBP\",\n                \"amount\": 1000\n            },\n            \"settlement\": {\n                \"date\": \"2022-07-05\",\n                \"totalPayable\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 1000\n                }\n            },\n            \"payments\": [\n                {\n                    \"amount\": 10,\n                    \"currency\": \"EUR\",\n                    \"beneficiaryId\": \"4a570dad-eeba-478b-99c4-8d213dd8a03d\",\n                    \"paymentReference\": \"Ref1\",\n                    \"paymentReference2\": \"\",\n                    \"paymentReference3\": null,\n                    \"paymentReason\": \"CCAS\"\n                }\n            ]\n        }\n    }\n}"},{"id":"65d51e64-1f41-4b69-affb-34ee5f0a5c17","name":"400 Invalid Request","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{Account}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{ ,BADJSON,\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\",\r\n      \"amount\": 1000\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Apr 2022 10:53:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"220"},{"key":"Connection","value":"keep-alive"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=6%2Bz31xSXzNz%2BzWwbXRhxY4U0RJDsJ4%2By4iHlK%2FWOGp1rpsM4jBJ8xxXU7zFGSl5sK7LPx9IdZ2wnO0wCXrU%2Bs%2BAZgn063un3ddiA2aRKK2FW3sxPlXaDdkpg2QsUphB1y%2FecXJT29Vro3k9ajGLuGH9RKneg58M%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f8a76600c908924-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"d0a4b411-dfcd-4b86-b7f4-4f79a92a3214\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"',' is an invalid start of a property name. Expected a '\\\"'. Path: $ | LineNumber: 0 | BytePositionInLine: 2.\"\n    ]\n}"},{"id":"46fbfbd4-023a-4ddf-9984-4ede5e6202c3","name":"400 Invalid Request -  Currency Mismatch","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"trade\": {\r\n    \"buy\": {\r\n      \"currency\": \"EUR\"\r\n    },\r\n    \"sell\": {\r\n      \"currency\": \"GBP\",\r\n      \"amount\": 1000\r\n    },\r\n    \"payments\" :[\r\n        {\r\n            \"amount\" : 10,\r\n            \"currency\" : \"USD\",\r\n            \"beneficiaryId\" : \"\",\r\n            \"paymentReference\" : \"Ref1\",\r\n            \"paymentReference2\" : \"\",\r\n            \"paymentReference3\" : \"\",\r\n            \"paymentReason\" : \"CCAS\" \r\n        }        \r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/trades/quote"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Jul 2022 13:16:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"163"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=zNcemqNThc%2FXAU5RJrQz%2BxTFRusuOre7yu2rP1NLs7%2FAt%2BNjYvwXeohvRxABAbTew%2FFVyzxgnUKEyUzOUIdOJTEYKEnDqE%2FcgxzDfsmeM1NVnBZLmu8eaRF3c77bwvzLFrVvLmTCXQbAwN46FJrGCaz1JBCbXUo%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7260607e5c9972f0-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"40c15800-2ce8-4d6c-a2bb-aef07d1a319b\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": \"The payment currency does not match the trade currency\"\n}"}],"_postman_id":"38ec38eb-ceeb-4dd0-9ab8-a84728aed0b2"},{"name":"Book trade from quote with payments","event":[{"listen":"test","script":{"id":"8b1dd59f-14ed-40f5-baa9-9fbe4d84ba54","exec":["pm.test('Api returns a status 200', () => {","     pm.response.to.have.status(200);","});","","","pm.test('A trade is returned', () => {","   const data = pm.response.json().data;","   pm.collectionVariables.set('bookedTradeIdFromQuote',data.trade.id)","","   pm.expect(data.id).not.eq(null);","   console.log(\"Quote ID:\" + pm.collectionVariables.get('quoteId') + \", Trade ID: \" + data.id + \", trade number: \"+data.tradeNumber);","});","","//postman.setNextRequest(\"Get trade by ID\");"],"type":"text/javascript"}}],"id":"6077dda8-2a57-4878-b003-28c2c9bde06e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Unique-Request-Id","value":"da8f3f5c-cb08-4287-a8d3-16434aea5331","type":"text"}],"url":"{{ApiBaseUrl}}/trades/book/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["trades","book",":id"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[{"id":"71865904-2359-4585-9ed1-168dc83c9baf","type":"any","value":"","key":"id"}]}},"response":[{"id":"211fe9f9-ccbf-4d60-8b85-ca91f8034819","name":"Trade and payment booked","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Unique-Request-Id","value":"902c3249-8884-4603-b4d2-5346c1c9cd61","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/trades/book/:id","host":["{{ApiBaseUrl}}"],"path":["trades","book",":id"],"variable":[{"id":"71865904-2359-4585-9ed1-168dc83c9baf","key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:49:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=U0WABCsfH5RwLJ0dFMBGcCGP%2B1IJKUJCq25wZZLzzKRKiFz8J%2FSiDLa6C5%2FRivZzh368wuyHPVF5xSLfIWcopd87Sk1CImuMcK9EORbrGNqwO0nLJ3uiGRjRCbLGZ9EY882Bmv0hnZwL7relnnMu4fIb4Ha74Ic%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f44f90097f7190-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"c01c2a47-f408-4d7c-951e-441ce216760e\",\n    \"status\": 200,\n    \"data\": {\n        \"trade\": {\n            \"id\": \"aae0dc65-25a0-44f5-9c9a-4dfbc7105433\",\n            \"tradeNumber\": 1019513,\n            \"valueDate\": \"2022-08-24\",\n            \"createdDateTime\": \"2022-08-23T13:49:18.817Z\",\n            \"tradeType\": \"Spot\",\n            \"rate\": 1.1817,\n            \"buy\": {\n                \"currency\": \"EUR\",\n                \"amount\": 1181.7\n            },\n            \"sell\": {\n                \"currency\": \"GBP\",\n                \"amount\": 1000\n            },\n            \"side\": \"Sell\",\n            \"buySideAvailable\": 1171.7,\n            \"settlement\": {\n                \"date\": \"2022-08-24\",\n                \"totalPayable\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 1000\n                },\n                \"settlementAccount\": {\n                    \"name\": \"Global Reach Partners Ltd\",\n                    \"bankDetails\": {\n                        \"name\": \"Barclays Bank Plc\",\n                        \"address\": {\n                            \"addressLine1\": \"Pall Mall\",\n                            \"city\": \"\",\n                            \"countryCode\": \"GB\"\n                        },\n                        \"accountNumber\": \"80670693\",\n                        \"sortCode\": \"200605\",\n                        \"swiftCode\": \"BARCGB22\",\n                        \"bankCode\": \"BARC\"\n                    }\n                }\n            },\n            \"payments\": [\n                {\n                    \"id\": \"7bcc025f-60da-4746-8474-b1f8283c99c1\"\n                }\n            ]\n        }\n    }\n}"},{"id":"3c42a310-a167-4924-b3a9-f3cb6eff70db","name":"Trade and multiple payments booked","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Unique-Request-Id","value":"0a06ac0c-ee0a-4dcc-9ce6-60cb813eb7fb","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/trades/book/:id","host":["{{ApiBaseUrl}}"],"path":["trades","book",":id"],"variable":[{"id":"71865904-2359-4585-9ed1-168dc83c9baf","key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:54:07 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Aow0XPFrNmAl5PooVgHJTcSYmYLJATLmDMj0PQ42oKg3brEs19lfVlrivMXV%2FylkfiWt8gp9pjnoCiM8LHoPUtVK2D5nTEA%2FDBR9qYRDQtTyPNCwfYZE7lNZLVGjk5zmu%2FClHtdUG%2BvcumkUIfVB9egcbO%2FgB9A%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f4569a4a497190-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"3c6252e0-b969-444f-a710-aec3df210060\",\n    \"status\": 200,\n    \"data\": {\n        \"trade\": {\n            \"id\": \"db210fdc-856d-4fdc-9d87-f52772337a34\",\n            \"tradeNumber\": 1019514,\n            \"valueDate\": \"2022-08-24\",\n            \"createdDateTime\": \"2022-08-23T13:54:07.2Z\",\n            \"tradeType\": \"Spot\",\n            \"rate\": 1.1817,\n            \"buy\": {\n                \"currency\": \"EUR\",\n                \"amount\": 6000\n            },\n            \"sell\": {\n                \"currency\": \"GBP\",\n                \"amount\": 5077.43\n            },\n            \"side\": \"Buy\",\n            \"buySideAvailable\": 0,\n            \"settlement\": {\n                \"date\": \"2022-08-24\",\n                \"totalPayable\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 5077.43\n                },\n                \"settlementAccount\": {\n                    \"name\": \"Global Reach Partners Ltd\",\n                    \"bankDetails\": {\n                        \"name\": \"Barclays Bank Plc\",\n                        \"address\": {\n                            \"addressLine1\": \"Pall Mall\",\n                            \"city\": \"\",\n                            \"countryCode\": \"GB\"\n                        },\n                        \"accountNumber\": \"80670693\",\n                        \"sortCode\": \"200605\",\n                        \"swiftCode\": \"BARCGB22\",\n                        \"bankCode\": \"BARC\"\n                    }\n                }\n            },\n            \"payments\": [\n                {\n                    \"id\": \"f6b46b75-aae5-4337-add0-8c567a138a78\"\n                },\n                {\n                    \"id\": \"c70a605e-3ff4-403c-a628-b617d6a76e0c\"\n                },\n                {\n                    \"id\": \"4a03c8e4-ca70-4fee-bdab-0e343b5dc62f\"\n                }\n            ]\n        }\n    }\n}"},{"id":"76c9db67-4948-474d-afc1-aadb1eba0a21","name":"400 Invalid request","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{Account}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/trades/book/:id","host":["{{ApiBaseUrl}}"],"path":["trades","book",":id"],"variable":[{"key":"id","value":"abc123"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Apr 2022 07:26:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=lR3zI%2Fa3CiQnKZOwqyT3OXVAQX1%2F9emJpXxQ4dPlWpywmYdfcDODTW2F2142B2g6VdihKgLYLErnRml1zvlb81z%2F9IQLL4M812qI%2BIWo8Ah4auM4TsLsTUCYK4%2B8T2J3tT4zJ9sc6xDLJZqgUQ%2Fe3amyf%2FBK8KE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f708d973d3be680-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"a0b4d222-jeit-4b86-j8f0-4f79a66a3244\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": \"Unable to find selected quote: abc123\"\n}"}],"_postman_id":"6077dda8-2a57-4878-b003-28c2c9bde06e"},{"name":"Get trade by ID","event":[{"listen":"test","script":{"id":"7ded101c-6214-4a1e-95cc-68144fc65e75","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","postman.setNextRequest(\"List trades with filter\");"],"type":"text/javascript"}}],"id":"bd3bf0c6-9a75-4cb3-98a2-84604198356b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{ApiBaseUrl}}/trades/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["trades",":id"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[{"id":"9ae7ae97-24a5-48d9-9866-6683bea848cc","type":"any","value":"","key":"id"}]}},"response":[{"id":"fc831859-cbb7-4e34-91fd-e6be9a960de6","name":"200 Successful request","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{ApiBaseUrl}}/trades/:id","host":["{{ApiBaseUrl}}"],"path":["trades",":id"],"variable":[{"id":"2f529e9c-eb37-47e0-8fa2-d4ccfe579c9a","key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:51:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=4U7ki0pWDIPth2fJlg7JAeq6QDaBFIHblmUTUXEmrb6eSsl01AzJGTXTM8s05YyCvQ8R5w0fg%2BbrtceavJA6VqPd6AcxJGri%2BvDq5bVTu7DaMdteDW9ottyaFK4hAZDvqhNEFBKtnwtJv%2F2iElk7exs4b0wlrK8%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f4521d3b927190-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"a121d498-a0de-48c3-975a-2deb17262a0a\",\n    \"status\": 200,\n    \"data\": {\n        \"trade\": {\n            \"id\": \"aae0dc65-25a0-44f5-9c9a-4dfbc7105433\",\n            \"tradeNumber\": 1019513,\n            \"valueDate\": \"2022-08-24\",\n            \"createdDateTime\": \"2022-08-23T13:49:18.817Z\",\n            \"tradeType\": \"Spot\",\n            \"rate\": 1.1817,\n            \"buy\": {\n                \"currency\": \"EUR\",\n                \"amount\": 1181.7\n            },\n            \"sell\": {\n                \"currency\": \"GBP\",\n                \"amount\": 1000\n            },\n            \"side\": \"Sell\",\n            \"buySideAvailable\": 1171.7,\n            \"settlement\": {\n                \"date\": \"2022-08-24\",\n                \"totalPayable\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 1000\n                },\n                \"settlementAccount\": {\n                    \"name\": \"Global Reach Partners Ltd\",\n                    \"bankDetails\": {\n                        \"name\": \"Barclays Bank Plc\",\n                        \"address\": {\n                            \"addressLine1\": \"Pall Mall\",\n                            \"city\": \"\",\n                            \"countryCode\": \"GB\"\n                        },\n                        \"accountNumber\": \"80670693\",\n                        \"sortCode\": \"200605\",\n                        \"swiftCode\": \"BARCGB22\",\n                        \"bankCode\": \"BARC\"\n                    }\n                }\n            },\n            \"payments\": [\n                {\n                    \"id\": \"7bcc025f-60da-4746-8474-b1f8283c99c1\"\n                }\n            ]\n        }\n    }\n}"},{"id":"e4148c65-e275-48e0-b53a-f44d20ed2e3c","name":"400 Invalid request","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{Account}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{ApiBaseUrl}}/trades/:id","host":["{{ApiBaseUrl}}"],"path":["trades",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Apr 2022 10:57:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"167"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=9iGBqTZzficpdlVnJofkcyCyiOzRa4u5k9x7WqxY6oSRlPmH5vzmx5akAWLYUaEF%2BVUjyHqzLvgZb%2FxvlK%2FrUhY63mK2J4WT9AcK%2FkByNv%2FA00oMvhMV9H5KdHuMT3iIUEzMWixV2QoAPplHuJ9JrO9wcaQ3Imk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f8a7aee791e8924-LHR"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"cd2a8579-8133-4784-a4b8-909c91efbb7e\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": \"Trade Id is invalid: e28e716d-d97b-4c85-a470-fc72e3bd806c1\"\n}"}],"_postman_id":"bd3bf0c6-9a75-4cb3-98a2-84604198356b"},{"name":"List trades with filter","event":[{"listen":"test","script":{"id":"7ded101c-6214-4a1e-95cc-68144fc65e75","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","//postman.setNextRequest('Get balances');"],"type":"text/javascript"}}],"id":"31aabf16-578b-4203-996a-83528462f853","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{ApiBaseUrl}}/trades/?createdDateFrom=&createdDateTo=","description":"<p>The trades list endpoint will list all trades booked with GRG that match these criteria:</p>\n<ul>\n<li>Spot</li>\n<li>Forward</li>\n<li>Same Currency</li>\n</ul>\n<p>We do not currently show any Swaps/Options/etc that may be booked, but will show trades booked over the phone or in the CFX platform. Please contact your dealer if you need to see complete trade lists/positions.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["trades",""],"host":["{{ApiBaseUrl}}"],"query":[{"key":"createdDateFrom","value":""},{"key":"createdDateTo","value":""},{"disabled":true,"key":"valueDateFrom","value":""},{"disabled":true,"key":"valueDateTo","value":""}],"variable":[]}},"response":[{"id":"fb09c4cf-62f7-4048-abf9-ad43dcdb0bca","name":"200 Successful request","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{Account}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{ApiBaseUrl}}/trades/list?createdDateFrom=2022-04-05&createdDateTo=2022-04-05","host":["{{ApiBaseUrl}}"],"path":["trades","list"],"query":[{"key":"createdDateFrom","value":"2022-04-05"},{"key":"createdDateTo","value":"2022-04-05"},{"key":"valueDateFrom","value":"2022-03-1","disabled":true},{"key":"valueDateTo","value":"2022-04-1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Apr 2022 10:58:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Z%2FccbCCDqpj%2Ba8x1McMdQXel8idfL%2FJaCLm6htugXV0Z58b9CCiWj3LDB04KMRg%2F8BclKfXCoeYbC4ob1PHH2HSB3V6OtMGCyIxJYMsjBUhkDNonYuDxpJmX%2FOZbfa1qJWjKBRIFYIEJVtsLF7dCbbsdQ1UICZ0%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"6f8a7c72682a8924-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"710be2bd-38f2-49da-aa51-5d0910019f51\",\n    \"status\": 200,\n    \"data\": {\n        \"trades\": [\n            {\n                \"id\": \"55db90b7-19c0-428e-90d3-d1b6066b5adf\",\n                \"tradeNumber\": 985191,\n                \"valueDate\": \"2022-04-05\",\n                \"createdDateTime\": \"2022-04-05T07:39:00Z\",\n                \"tradeType\": \"Spot\",\n                \"rate\": 1.1919,\n                \"buy\": {\n                    \"currency\": \"EUR\",\n                    \"amount\": 1191.9\n                },\n                \"sell\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 1000\n                },\n                \"side\": \"Sell\"\n            },\n            {\n                \"id\": \"ba93fb14-2944-45f8-be64-3772849a2b3d\",\n                \"tradeNumber\": 985200,\n                \"valueDate\": \"2022-04-06\",\n                \"createdDateTime\": \"2022-04-05T16:06:00Z\",\n                \"tradeType\": \"Spot\",\n                \"rate\": 1.1958,\n                \"buy\": {\n                    \"currency\": \"EUR\",\n                    \"amount\": 1195.8\n                },\n                \"sell\": {\n                    \"currency\": \"GBP\",\n                    \"amount\": 1000\n                },\n                \"side\": \"Sell\"\n            },\n            {\n                \"id\": \"d0991a57-c7ca-43e2-b9f3-cff114e2cac8\",\n                \"tradeNumber\": 985201,\n                \"valueDate\": \"2022-04-04\",\n                \"createdDateTime\": \"2022-04-05T16:18:00Z\",\n                \"tradeType\": \"Spot\",\n                \"rate\": 1.1076,\n                \"buy\": {\n                    \"currency\": \"USD\",\n                    \"amount\": 55380\n                },\n                \"sell\": {\n                    \"currency\": \"EUR\",\n                    \"amount\": 50000\n                },\n                \"side\": \"Sell\"\n            },\n            {\n                \"id\": \"ffb54592-4a7f-4a61-9d4e-d7f19eb45095\",\n                \"tradeNumber\": 985214,\n                \"valueDate\": \"2022-04-06\",\n                \"createdDateTime\": \"2022-04-05T19:46:00Z\",\n                \"tradeType\": \"Spot\",\n                \"rate\": 1.0868,\n                \"buy\": {\n                    \"currency\": \"USD\",\n                    \"amount\": 54340\n                },\n                \"sell\": {\n                    \"currency\": \"EUR\",\n                    \"amount\": 50000\n                },\n                \"side\": \"Sell\"\n            },\n            {\n                \"id\": \"cb880b21-413c-444b-bc66-a9af934d13e1\",\n                \"tradeNumber\": 985215,\n                \"valueDate\": \"2022-04-06\",\n                \"createdDateTime\": \"2022-04-05T19:47:00Z\",\n                \"tradeType\": \"Spot\",\n                \"rate\": 1.0868,\n                \"buy\": {\n                    \"currency\": \"USD\",\n                    \"amount\": 54340\n                },\n                \"sell\": {\n                    \"currency\": \"EUR\",\n                    \"amount\": 50000\n                },\n                \"side\": \"Sell\"\n            },\n            {\n                \"id\": \"32516555-bc13-465e-9370-89d768f5a6b7\",\n                \"tradeNumber\": 985216,\n                \"valueDate\": \"2022-04-06\",\n                \"createdDateTime\": \"2022-04-05T20:06:00Z\",\n                \"tradeType\": \"Spot\",\n                \"rate\": 1.0872,\n                \"buy\": {\n                    \"currency\": \"USD\",\n                    \"amount\": 54360\n                },\n                \"sell\": {\n                    \"currency\": \"EUR\",\n                    \"amount\": 50000\n                },\n                \"side\": \"Sell\"\n            }\n        ],\n        \"filters\": {\n            \"CreatedDateFrom\": \"2022-04-05\",\n            \"CreatedDateTo\": \"2022-04-05\"\n        }\n    }\n}"}],"_postman_id":"31aabf16-578b-4203-996a-83528462f853"}],"id":"5065cfa6-5070-4b2b-90c5-dc8c3bb59bef","description":"<p>Using the trades endpoints, it is possible to book trades (both with and without payments) as well as get details of booked trades, and report on all trades.</p>\n<p>With the GRG API, the process for booking a trade is a two-step process.</p>\n<p><strong>1 - Get a quote</strong></p>\n<p>In the quote phase you specify all the required details for the trade, and for any associated payments you wish to be created at the same time.</p>\n<p>It is possible to quote specifying either the trade buy or sell side amounts, or when you are booking associated payments you can also just specify the trade currencies, then specify the payment amounts.</p>\n<p>You can currently attach up to 1000 payments in the quote request.</p>\n<p>The response from the quote endpoint is a quote id which will be valid for 20s.</p>\n<p><strong>2 - Book a quote</strong></p>\n<p>Within the TTL of the quote, you can execute the trade by passing the quote id to the book endpoint.</p>\n<p><strong>Examples</strong></p>\n<p>In our examples, we show a simple 'trade only' quote as well as a 'trade with multiple payments' quote.</p>\n<p><strong>Date definition</strong></p>\n<p>valueDate - Date the trades buy side can be utilised</p>\n<p>createdDateTime - Date the trade was booked/created</p>\n<p>Settlement date - Date funds must be received from you to settle the trades sell side</p>\n","_postman_id":"5065cfa6-5070-4b2b-90c5-dc8c3bb59bef","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}}},{"name":"Balances","item":[{"name":"Get balances","event":[{"listen":"test","script":{"id":"90f7d9d8-5724-46cf-a321-4ad52856fded","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Trade balances are returned', () => {\r","   const data = pm.response.json().data;\r","   \r","   pm.expect(data.tradeBalances).length.greaterThan(-1)\r","});\r","\r","//postman.setNextRequest('Get health');"],"type":"text/javascript"}}],"id":"83987428-c702-44f8-88be-3968b422efa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/balances/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["balances",""],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"8e21d249-52bf-4662-ba9b-6d9a3aecec5c","name":"Get balances","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/balances/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 13:56:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=hfEkuPgotfGOXSuN58ZBw%2BlvE5IkBH%2F2vNZH0rbsmBsgSwsnZlvJA2U1ZCrr%2ByFUYlIc3dhcUeslz2PfGFzYpMDLJ8M%2BNOt%2FkQbk4hYnJn1c1uAsXjf25abct0IpEjppuqZjD8TmEoHDJX1Lm%2BxZid03KlgcwGQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f45a554fe775c5-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"5052412a-d0a6-4618-a3cb-6a7aee605560\",\n    \"status\": 200,\n    \"data\": {\n        \"tradeBalances\": [\n            {\n                \"currencyCode\": \"EUR\",\n                \"suspense\": 0,\n                \"forwardDeposits\": 0,\n                \"marginFx\": 0,\n                \"availableBalanceTotal\": 888762.7,\n                \"tradesWithAvailableBalances\": [\n                    {\n                        \"id\": \"372bcd43-c8f3-4a64-98c4-78e47df439f9\",\n                        \"valueDate\": \"2022-08-18\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 1181.7,\n                            \"available\": 1181.7\n                        }\n                    },\n                    {\n                        \"id\": \"d844c6ef-1bff-451b-b0ca-24c6b143c797\",\n                        \"valueDate\": \"2022-08-18\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 10000,\n                            \"available\": 10000\n                        }\n                    },\n                    {\n                        \"id\": \"9416bcd4-799a-44f3-8180-917ba8962db6\",\n                        \"valueDate\": \"2022-08-18\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 750,\n                            \"available\": 750\n                        }\n                    },\n                    {\n                        \"id\": \"206cca10-fed2-4339-8157-4e0b19ea06fa\",\n                        \"valueDate\": \"2022-08-19\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 1185.2,\n                            \"available\": 1185.2\n                        }\n                    },\n                    {\n                        \"id\": \"782240a4-f325-4504-a403-ed184e272d51\",\n                        \"valueDate\": \"2022-08-19\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 1185.2,\n                            \"available\": 1185.2\n                        }\n                    },\n                    {\n                        \"id\": \"51d02f40-4f5a-4405-9360-2e565c9eda99\",\n                        \"valueDate\": \"2022-08-19\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 100000,\n                            \"available\": 100000\n                        }\n                    },\n                    {\n                        \"id\": \"148c27fe-8507-4563-beea-09100b344f92\",\n                        \"valueDate\": \"2022-08-19\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 1185.2,\n                            \"available\": 1185.2\n                        }\n                    },\n                    {\n                        \"id\": \"531adb38-90af-4175-b0b3-932461b59f89\",\n                        \"valueDate\": \"2022-08-19\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 1185.2,\n                            \"available\": 1185.2\n                        }\n                    },\n                    {\n                        \"id\": \"1ba8109c-1002-4c0f-bd0f-a42498cc5810\",\n                        \"valueDate\": \"2022-08-19\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 1185.2,\n                            \"available\": 1185.2\n                        }\n                    },\n                    {\n                        \"id\": \"1b9ce358-eea9-4d35-8441-ebb13653a61d\",\n                        \"valueDate\": \"2022-08-19\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 11725,\n                            \"available\": 11725\n                        }\n                    },\n                    {\n                        \"id\": \"852674ed-454b-451f-8d2f-1eafe07c862a\",\n                        \"valueDate\": \"2022-08-22\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 1180,\n                            \"available\": 1180\n                        }\n                    },\n                    {\n                        \"id\": \"ca155002-4b3d-4e58-bf93-b991dceb64be\",\n                        \"valueDate\": \"2022-08-23\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 58000,\n                            \"available\": 58000\n                        }\n                    },\n                    {\n                        \"id\": \"e0bb4ea8-7b9b-4cc3-be2d-8293b886e3ec\",\n                        \"valueDate\": \"2022-08-23\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 100,\n                            \"available\": 100\n                        }\n                    },\n                    {\n                        \"id\": \"f07868c2-6fcc-4b38-87e8-a897b5e06fa4\",\n                        \"valueDate\": \"2022-08-24\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 100000,\n                            \"available\": 99900\n                        }\n                    },\n                    {\n                        \"id\": \"84970644-deb7-458c-a9b7-a4553fd5f6d4\",\n                        \"valueDate\": \"2022-08-24\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 100000,\n                            \"available\": 100000\n                        }\n                    },\n                    {\n                        \"id\": \"bbd7fef5-973d-4cee-b140-adad9a82b05a\",\n                        \"valueDate\": \"2022-08-25\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 100000,\n                            \"available\": 100000\n                        }\n                    },\n                    {\n                        \"id\": \"75f80a8f-3c38-4ce1-b6f1-dd16b8c75dd8\",\n                        \"valueDate\": \"2022-08-30\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 100000,\n                            \"available\": 100000\n                        }\n                    },\n                    {\n                        \"id\": \"7f625a5a-bd2d-4e61-aab3-99678bb4ca33\",\n                        \"valueDate\": \"2022-08-30\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 100000,\n                            \"available\": 100000\n                        }\n                    },\n                    {\n                        \"id\": \"c57548a3-b51f-4c50-a772-e9f5845fd9c3\",\n                        \"valueDate\": \"2022-08-30\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 100000,\n                            \"available\": 100000\n                        }\n                    },\n                    {\n                        \"id\": \"ff8e90f5-eca3-4409-8fef-d12df8954e0a\",\n                        \"valueDate\": \"2022-08-30\",\n                        \"buy\": {\n                            \"currency\": \"EUR\",\n                            \"amount\": 100000,\n                            \"available\": 100000\n                        }\n                    }\n                ]\n            }\n        ]\n    }\n}"}],"_postman_id":"83987428-c702-44f8-88be-3968b422efa6"}],"id":"017bb26c-f589-46d8-a0ff-0a959d3a6083","description":"<p>At GRG, we differentiate the various funds we hold as follows:</p>\n<h4 id=\"suspense\"><strong>Suspense</strong></h4>\n<p>Suspense funds are those funds that we hold which are not allocated to a trade.</p>\n<h4 id=\"forwarddeposits\"><strong>forwardDeposits</strong></h4>\n<p>This is the total amount of forward deposits we currently hold.</p>\n<h4 id=\"marginfx\"><strong>marginFx</strong></h4>\n<p>This is the total amount of FX margin we currently hold.</p>\n<h4 id=\"availablebalancetotal-and-tradeswithavailablebalances\"><strong>availableBalanceTotal and tradesWithAvailableBalances</strong></h4>\n<p>Once a trade is booked, the buy side currency/amount can be used to fund payments.</p>\n<p>Each payment can be funded from multiple trades and each trade can fund multiple payments.</p>\n<p>The <strong>tradesWithAvailableBalances</strong> component lists all the trades that have buy amounts that are available to use for a payment, and the availableBalanceTotal value is simply the sum of these amounts.</p>\n<p><em>Example</em></p>\n<p>Lets say we have two trades booked:</p>\n<p>Trade 1: Sell EUR, buy 500 AUD</p>\n<p>Trade 2: Sell GBP, buy 1000 AUD</p>\n<p>and we have two payments booked:</p>\n<p>Payment 1: Pay 250AUD funded from Trade 1.</p>\n<p>Payment 2: Pay 500AUD funded from Trade 1 (250AUD) and Trade 2 (250AUD).</p>\n<p>The <strong>availableBalanceTotal</strong> is 750AUD and <strong>tradesWithAvailableBalances</strong> lists Trade 2 as having 750AUD available.</p>\n","_postman_id":"017bb26c-f589-46d8-a0ff-0a959d3a6083","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}}},{"name":"Funds In","item":[{"name":"List funds in with filter","event":[{"listen":"test","script":{"id":"0e9ca38b-8621-439e-b04c-54c77cbc3a25","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"b8b08c31-4c59-46e4-be78-6688295b9e5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/fundsin/?receivedDateFrom=01-05-2022&receivedDateTo=19-05-2022","description":"<p>If no filters are set, this returns the payments within the last month.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["fundsin",""],"host":["{{ApiBaseUrl}}"],"query":[{"disabled":true,"key":"currency","value":"GBP"},{"key":"receivedDateFrom","value":"01-05-2022"},{"key":"receivedDateTo","value":"19-05-2022"}],"variable":[]}},"response":[{"id":"b584de48-5df0-4f34-9eea-14ee20793336","name":"200 Successful request","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"uniqueRequestId\": \"2def1b78-1a03-434b-a8c3-d1212efddc2f\",\r\n  \"status\": 200,\r\n  \"data\": {\r\n    \"payments\": [\r\n        {\r\n            \"id\": \"00000000-0000-0000-0000-000000000000\",\r\n            \"paymentNumber\": 1074238,\r\n            \"createdDateTime\": \"2022-04-22T15:11:00Z\",\r\n            \"status\": \"Pending\",\r\n            \"trades\": [],\r\n            \"currencyAmount\": {\r\n                \"currency\": \"EUR\",\r\n                \"amount\": 5.0\r\n            },\r\n            \"beneficiary\": null,\r\n            \"paymentReference\": \"\",\r\n            \"paymentReference2\": \"\",\r\n            \"paymentReference3\": \"B/O 41324 Test Account Ltd\",\r\n            \"transferReason\": \"Purchase of goods or services\"\r\n        }\r\n    ],\r\n    \"filters\": {\r\n        \"CreatedDateFrom\": \"2022-04-17\"\r\n    }\r\n  }\r\n}\r\n"}],"_postman_id":"b8b08c31-4c59-46e4-be78-6688295b9e5e"}],"id":"7ebdbc77-066f-4a43-9c1a-d5a1e209a6e6","_postman_id":"7ebdbc77-066f-4a43-9c1a-d5a1e209a6e6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}}},{"name":"Payments","item":[{"name":"List payments with filter","event":[{"listen":"test","script":{"id":"0e9ca38b-8621-439e-b04c-54c77cbc3a25","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Payments are returned', () => {\r","   const data = pm.response.json().data;\r","\r","    var paymentId = data.payments[0].id;\r","    console.log(\"Payment ID:\" + paymentId)\r","\r","    pm.collectionVariables.set('paymentId', paymentId);\r","    pm.expect(data.payments).length.greaterThan(-1)\r","});\r","\r","//postman.setNextRequest(\"Get payment by ID\");"],"type":"text/javascript"}}],"id":"fa17d255-f7f1-405d-aace-704437a5678a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/payments/","description":"<p>If no filters are set, this returns the payments within the last month.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["payments",""],"host":["{{ApiBaseUrl}}"],"query":[{"disabled":true,"key":"tradeId","value":""},{"disabled":true,"key":"status","value":"sent"},{"disabled":true,"key":"createdDateFrom","value":"01-05-2021"},{"disabled":true,"key":"createdDateTo","value":"19-05-2022"}],"variable":[]}},"response":[{"id":"45e478ff-f239-4d24-8fa6-ddf9941f71ee","name":"200 Successful request","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"uniqueRequestId\": \"2def1b78-1a03-434b-a8c3-d1212efddc2f\",\r\n  \"status\": 200,\r\n  \"data\": {\r\n    \"payments\": [\r\n        {\r\n            \"id\": \"00000000-0000-0000-0000-000000000000\",\r\n            \"paymentNumber\": 1074238,\r\n            \"createdDateTime\": \"2022-04-22T15:11:00Z\",\r\n            \"status\": \"Pending\",\r\n            \"trades\": [],\r\n            \"currencyAmount\": {\r\n                \"currency\": \"EUR\",\r\n                \"amount\": 5.0\r\n            },\r\n            \"beneficiary\": null,\r\n            \"paymentReference\": \"\",\r\n            \"paymentReference2\": \"\",\r\n            \"paymentReference3\": \"B/O 41324 Test Account Ltd\",\r\n            \"transferReason\": \"Purchase of goods or services\"\r\n        }\r\n    ],\r\n    \"filters\": {\r\n        \"CreatedDateFrom\": \"2022-04-17\"\r\n    }\r\n  }\r\n}\r\n"}],"_postman_id":"fa17d255-f7f1-405d-aace-704437a5678a"},{"name":"Get payment by ID","event":[{"listen":"test","script":{"id":"5e2a89a6-9ad3-4ac5-8523-090b4cfc115d","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","//postman.setNextRequest(null);"],"type":"text/javascript"}}],"id":"fbf0cbe4-5cd2-448a-be9d-62676b9f8390","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/payments/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["payments",":id"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[{"id":"2ee03d94-8ec4-4712-a87f-6c5aa3ff20d7","type":"any","value":"","key":"id"}]}},"response":[{"id":"286aef38-c031-4487-ae2f-19da3628d91e","name":"200 Successful request","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/payments/:id","host":["{{ApiBaseUrl}}"],"path":["payments",":id"],"variable":[{"id":"2ee03d94-8ec4-4712-a87f-6c5aa3ff20d7","key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Bst-Request-Id","value":"7r2VGj:wnH:25232"},{"key":"X-Bst-Info","value":"t=1660303162,h=02a,p=68956_2601:2_12085,u=941392090,c=2320,c=100199,v=7.11.200100.79"},{"key":"Date","value":"Fri, 12 Aug 2022 11:19:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Encoding","value":"gzip"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"DEV"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=ozyeMHh5%2BkSgCt2nPyNzUlI2EGYLOJKvxiVwhZ7d%2B%2F5XSAiXATCTBkFmx6Cy5VFRY8yQKU5908h3aHd4J1Xq3azDGNFpAPv2v37c97uGMpc4tiwM96mxXoNSa14vmtqENEpJER9n01NscTFmXzzMyBAnDlxuNjw%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:c5c32ee6-2d1e-4d4a-865d-3b1b56b07c38"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7398d0ccff5d75a9-LHR"},{"key":"Content-Length","value":"523"},{"key":"Connection","value":"keep-alive"},{"key":"Via","value":"1.1 hosted.websense 02a"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"831c7d72-3844-4b5f-8254-33739711a1d2\",\n    \"status\": 200,\n    \"data\": {\n        \"payment\": {\n            \"id\": \"256a05d1-cfc3-4917-8914-2b8aa59872e9\",\n            \"paymentNumber\": 1123380,\n            \"createdDateTime\": \"2022-08-08T05:24:00Z\",\n            \"status\": \"Pending\",\n            \"trades\": [\n                {\n                    \"id\": \"1a2e1458-a200-4a8e-b059-e3a4ff8cbebb\"\n                }\n            ],\n            \"currency\": \"EUR\",\n            \"amount\": 10,\n            \"beneficiary\": {\n                \"id\": \"4a570dad-eeba-478b-99c4-8d213dd8a03d\",\n                \"name\": \"Test Beneficiary 48799\",\n                \"nationality\": null,\n                \"paymentCurrency\": \"EUR\",\n                \"beneficiaryAddress\": {\n                    \"addressLine1\": null,\n                    \"city\": null,\n                    \"country\": null\n                },\n                \"bankDetails\": {\n                    \"name\": \"BANQUE RHONE ALPES\",\n                    \"address\": {\n                        \"addressLine1\": \".\",\n                        \"city\": \".\",\n                        \"countryCode\": \"FR\"\n                    },\n                    \"accountNumber\": \"FR7610468026324039180020030\",\n                    \"sortCode\": \"\",\n                    \"swiftCode\": \"RALPFR2G\",\n                    \"bankCode\": \"\"\n                }\n            },\n            \"paymentReference\": \"Ref1\",\n            \"paymentReference2\": \"\",\n            \"paymentReference3\": \"B/O 41324 Test Account Ltd\",\n            \"paymentReason\": \"Inter-company xfer/Cash management\"\n        }\n    }\n}"}],"_postman_id":"fbf0cbe4-5cd2-448a-be9d-62676b9f8390"},{"name":"Add payment - without trades","event":[{"listen":"test","script":{"id":"6338d0b2-cc3b-46de-bfe8-841022d56f41","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Newly added payment is returned', () => {\r","   const data = pm.response.json().data;\r","   \r","   pm.expect(data.payment.id).not.eq(null);  \r","});"],"type":"text/javascript"}}],"id":"ec1fb2b9-49a7-4832-8fbc-ec5fdcc360de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"beneficiaryId\" : \"\",\r\n    \"amount\": 1000,\r\n    \"currency\": \"EUR\",\r\n    \"paymentReference\": \"Ref 1\",\r\n    \"paymentReference2\": \"Ref 2\",\r\n    \"paymentReference3\": \"Ref 3\",\r\n    \"paymentReason\": \"CCAS\"   \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/payments","description":"<h4 id=\"make-payments-from-tradeswithavailablebalancestotal\"><strong>Make payments from</strong> tradesWithAvailableBalancesTotal</h4>\n<p>The tradesWithAvailableBalancesTotal value is simply the sum trades that have come to value with buy side available.</p>\n<p>Make a payment to a beneficiary providing the beneficiary ID providing the amount specified is not greater than the tradesWithAvailableBalancesTotal for the currency you want to pay the beneficiary.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["payments"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"e3817697-601f-4d42-ba9a-c6cc66dea1e1","name":"200 Successfully added payment","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"beneficiaryId\" : \"e1870d0a-3ea9-4dbc-bba5-36abde426f55\",\r\n    \"amount\": 1000,\r\n    \"currency\": \"GBP\",\r\n    \"paymentReference\": \"Ref 1\",\r\n    \"paymentReference2\": \"Ref 2\",\r\n    \"paymentReference3\": \"Ref 3\",\r\n    \"paymentReason\": \"CCAS\"   \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Bst-Request-Id","value":"HwdKHj:D87d:53211"},{"key":"X-Bst-Info","value":"t=1664533017,h=38a,p=68956_2631:2_12090,u=593342143,c=2320,c=100199,v=7.11.200100.82"},{"key":"Date","value":"Fri, 30 Sep 2022 10:16:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Encoding","value":"gzip"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=ZaMGm597E5ztCHRRe1mOSrKMERhPrrjs6pyUCEYTwdNQ1T5VgV8rW1zOcZu40fJkzZa1OGXvQpfG2Yc5NtCfUZ99WgkxrreIyEj3YvhE3bdU%2BzZw63KNfcUtC4RdWZDh9ACEZSPeFn4mOHXn%2FKKzor0lPHRzjlc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"752c348d1eb87697-LHR"},{"key":"Content-Length","value":"691"},{"key":"Connection","value":"keep-alive"},{"key":"Via","value":"1.1 hosted.websense 38a"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"268e72e5-0146-4dca-9a53-929cb0a333ca\",\n    \"status\": 200,\n    \"data\": {\n        \"payment\": {\n            \"id\": \"2b0b4e3f-e965-440e-93ae-1c3612f0d292\",\n            \"paymentNumber\": 1133706,\n            \"createdDateTime\": \"2022-09-30T10:17:00Z\",\n            \"status\": \"Pending\",\n            \"instructedDateTime\": null,\n            \"trades\": [\n                {\n                    \"id\": \"9650c61b-80bb-4bbe-8eb8-8ca2ab04b8a3\"\n                },\n                {\n                    \"id\": \"73b3ec4c-b7be-41a9-b6a9-6fd8a8ed42d0\"\n                },\n                {\n                    \"id\": \"3d2ca503-9577-4d2b-a36d-6cd5e84d0822\"\n                },\n                {\n                    \"id\": \"3684fd61-8f86-4d1b-b1bb-6430fd7067fd\"\n                },\n                {\n                    \"id\": \"d05950e7-d8f1-48b1-9039-9b4f56e17e54\"\n                },\n                {\n                    \"id\": \"86a6b698-f8df-4caa-aae9-e7bfd1405b0e\"\n                },\n                {\n                    \"id\": \"4a91140c-5a60-4ef0-8170-ace1e2b89492\"\n                },\n                {\n                    \"id\": \"42655fbd-effd-4288-8b52-c8d11ffa1696\"\n                }\n            ],\n            \"currency\": \"GBP\",\n            \"amount\": 1000,\n            \"beneficiary\": {\n                \"id\": \"e1870d0a-3ea9-4dbc-bba5-36abde426f55\",\n                \"name\": \"Test Beneficiary 111885\",\n                \"nationality\": \"British\",\n                \"paymentCurrency\": \"GBP\",\n                \"beneficiaryAddress\": {\n                    \"addressLine1\": \"TEST\",\n                    \"city\": \"TEST\",\n                    \"country\": \"HA96BN\"\n                },\n                \"bankDetails\": {\n                    \"name\": \"Santander Bank\",\n                    \"address\": {\n                        \"addressLine1\": \"514 High Rd\",\n                        \"city\": \"TEST\",\n                        \"countryCode\": \"GB\"\n                    },\n                    \"accountNumber\": \"38290008\",\n                    \"sortCode\": \"200415\",\n                    \"swiftCode\": \"\",\n                    \"bankCode\": \"\"\n                }\n            },\n            \"paymentReference\": \"Ref 1\",\n            \"paymentReference2\": \"Ref 2\",\n            \"paymentReference3\": \"Ref 2\",\n            \"paymentReasonDescription\": \"Inter-company xfer/Cash management\"\n        }\n    }\n}"},{"id":"5bf12c30-5f35-4c6c-a253-0ce28b75793f","name":"400 Beneficiary currency does not match","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"beneficiaryId\" : \"e1870d0a-3ea9-4dbc-bba5-36abde426f55\",\r\n    \"amount\": 1000,\r\n    \"currency\": \"EUR\",\r\n    \"paymentReference\": \"Ref 1\",\r\n    \"paymentReference2\": \"Ref 2\",\r\n    \"paymentReference3\": \"Ref 3\",\r\n    \"paymentReason\": \"CCAS\"   \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/payments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Bst-Request-Id","value":"bPfKHj:r9h:28563"},{"key":"X-Bst-Info","value":"t=1664533601,h=65a,p=68956_2631:2_12090,u=593342143,c=2320,c=100199,v=7.11.200100.82"},{"key":"Date","value":"Fri, 30 Sep 2022 10:26:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"171"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=QtlBbPIgNKOAdkQaMdLesCog%2BbVnS5QlFSJVJ1YBnWH10XTNcMKP7L%2FHZT%2BCDcw27rKaJvxy8nPqbiUtpOCCin29G2bWStidO%2Ff5Z9BpmYsNczv12Ru9%2FYD5p5e1%2Bu812EbU7Q2mXQRCTrH2HEVrLFaFCMbp4x8%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"752c42fc8e6e7484-LHR"},{"key":"Connection","value":"keep-alive"},{"key":"Via","value":"1.1 hosted.websense 65a"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"b918721d-3683-4f64-8de6-5c845472bd43\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"The payment currency does not match the beneficiary currency\"\n    ]\n}"},{"id":"b20340d7-f13a-4c3c-abdf-a73b46298bf6","name":"400 Amount greater than available buy side","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"beneficiaryId\" : \"e1870d0a-3ea9-4dbc-bba5-36abde426f55\",\r\n    \"amount\": 100000000,\r\n    \"currency\": \"GBP\",\r\n    \"paymentReference\": \"Ref 1\",\r\n    \"paymentReference2\": \"Ref 2\",\r\n    \"paymentReference3\": \"Ref 3\",\r\n    \"paymentReason\": \"CCAS\"   \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/payments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Bst-Request-Id","value":"D8xJHj:grXc:155849"},{"key":"X-Bst-Info","value":"t=1664533706,h=24a,p=68956_2631:2_12090,u=593342143,c=2320,c=100199,v=7.11.200100.82"},{"key":"Date","value":"Fri, 30 Sep 2022 10:28:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"176"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=uIUMyq7mszly%2FHf1fQUcl59bVWomdmjHAznPRydxe0%2BHWFYpnxW5VO8orH%2BBPFUyR7qv4zYVfrowzmTpjaro3r8MpEgKVkXXfQ1ESOMcZ4%2BWc43BGxAfjgAo9YX%2FcdYjYDimGcsopY4aezkH%2FT56tLfEo5J9NJ0%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"752c458d8e9671f8-LHR"},{"key":"Connection","value":"keep-alive"},{"key":"Via","value":"1.1 hosted.websense 24a"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"61c95752-8d1d-4ce1-bf7c-53cb4b0197c1\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"The amount is greater than the available trade buy side remaining\"\n    ]\n}"}],"_postman_id":"ec1fb2b9-49a7-4832-8fbc-ec5fdcc360de"},{"name":"Add payment  - with trades","event":[{"listen":"test","script":{"id":"6338d0b2-cc3b-46de-bfe8-841022d56f41","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Newly added payment is returned', () => {\r","   const data = pm.response.json().data;\r","   \r","   pm.expect(data.payment.id).not.eq(null);  \r","});"],"type":"text/javascript"}}],"id":"e66a7b81-c562-4522-9757-ca4a231852b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"beneficiaryId\" : \"\",\r\n    \"currency\": \"EUR\",\r\n    \"amount\" : 1000,\r\n    \"paymentReference\": \"Ref 1\",\r\n    \"paymentReference2\": \"Ref 2\",\r\n    \"paymentReference3\": \"Ref 3\",\r\n    \"paymentReason\": \"CCAS\",\r\n    \"trades\": [{\r\n        \"id\": \"\",\r\n        \"amount\" : 1000\r\n    }]    \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/payments","description":"<p>StartFragment</p>\n<h4 id=\"paying-from-tradeswithavailablebalances\"><strong>Paying from tradesWithAvailableBalances</strong></h4>\n<p>Once a trade is booked, the buy side currency/amount can be used to fund payments.</p>\n<p>Each payment can be funded from multiple trades and each trade can fund multiple payments.</p>\n<p>Pay a beneficiary using the beneficiary ID and provide the ID for each trade you wish to use funds from for the payment along with the amount. Multiple trades can be utiilised to make one payment providing the amount you specify is available from each trade.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["payments"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"63257f36-af7b-492d-983b-bb34199233fc","name":"200 Successfully added a payment from trade","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"beneficiaryId\" : \"4a570dad-eeba-478b-99c4-8d213dd8a03d\",\r\n    \"amount\" : 100,\r\n    \"currency\": \"EUR\",\r\n    \"paymentReference\": \"Ref 1\",\r\n    \"paymentReference2\": \"Ref 2\",\r\n    \"paymentReference3\": \"Ref 3\",\r\n    \"paymentReason\": \"CCAS\",\r\n    \"trades\": [{\r\n        \"id\": \"2a9b156f-a36d-4aec-9b12-5a17a0447787\",\r\n        \"amount\" : 100\r\n    }]    \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Bst-Request-Id","value":"QWGJHj:d8Bd:197658"},{"key":"X-Bst-Info","value":"t=1664535194,h=74a,p=68956_2631:2_12090,u=593342143,c=2320,c=100199,v=7.11.200100.82"},{"key":"Date","value":"Fri, 30 Sep 2022 10:53:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Encoding","value":"gzip"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=krdA4PnjFm9QiNL2A0%2F%2B9nWzUbYt3SfgTAk8oj9cpP5Qznf6obx1GfdJL7MvornJRGv7n3WNGG2JcSfxCNLZeWdUbf0gOn992H%2Fwa0IiQZofVaLWCFIvnPKAdKpvi44fVRNaxAn51xTi7WpHIC0FkNfGIZGZBzc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"752c69df8842dc31-LHR"},{"key":"Content-Length","value":"520"},{"key":"Connection","value":"keep-alive"},{"key":"Via","value":"1.1 hosted.websense 74a"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"4c0d6d90-13a2-49bf-a397-c208f38cd5a6\",\n    \"status\": 200,\n    \"data\": {\n        \"payment\": {\n            \"id\": \"3f012f89-3328-4b5e-94a0-a75e3f4da066\",\n            \"paymentNumber\": 1133707,\n            \"createdDateTime\": \"2022-09-30T10:53:00Z\",\n            \"status\": \"Pending\",\n            \"instructedDateTime\": null,\n            \"trades\": [\n                {\n                    \"id\": \"2a9b156f-a36d-4aec-9b12-5a17a0447787\"\n                }\n            ],\n            \"currency\": \"EUR\",\n            \"amount\": 100,\n            \"beneficiary\": {\n                \"id\": \"4a570dad-eeba-478b-99c4-8d213dd8a03d\",\n                \"name\": \"Test Beneficiary 48799\",\n                \"nationality\": null,\n                \"paymentCurrency\": \"EUR\",\n                \"beneficiaryAddress\": {\n                    \"addressLine1\": \".\",\n                    \"city\": \".\",\n                    \"country\": \".\"\n                },\n                \"bankDetails\": {\n                    \"name\": \"BANQUE RHONE ALPES\",\n                    \"address\": {\n                        \"addressLine1\": \".\",\n                        \"city\": \".\",\n                        \"countryCode\": \"FR\"\n                    },\n                    \"accountNumber\": \"FR7610468026324039180020030\",\n                    \"sortCode\": \"\",\n                    \"swiftCode\": \"RALPFR2G\",\n                    \"bankCode\": \"\"\n                }\n            },\n            \"paymentReference\": \"Ref 1\",\n            \"paymentReference2\": \"Ref 2\",\n            \"paymentReference3\": \"Ref 2\",\n            \"paymentReasonDescription\": \"Inter-company xfer/Cash management\"\n        }\n    }\n}"},{"id":"43be2813-81ab-4471-a3b0-a380eceac27c","name":"400 Amount greater than trades available balance","originalRequest":{"method":"POST","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"beneficiaryId\" : \"4a570dad-eeba-478b-99c4-8d213dd8a03d\",\r\n    \"amount\" : 100,\r\n    \"currency\": \"EUR\",\r\n    \"paymentReference\": \"Ref 1\",\r\n    \"paymentReference2\": \"Ref 2\",\r\n    \"paymentReference3\": \"Ref 3\",\r\n    \"paymentReason\": \"CCAS\",\r\n    \"trades\": [{\r\n        \"id\": \"d2474ce0-d88e-42af-922a-7da9d7a3688a\",\r\n        \"amount\" : 100\r\n    }]    \r\n}","options":{"raw":{"language":"json"}}},"url":"{{ApiBaseUrl}}/payments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Bst-Request-Id","value":"T2vJHj:tLQd:156543"},{"key":"X-Bst-Info","value":"t=1664534991,h=77a,p=68956_2631:2_12090,u=593342143,c=2320,c=100199,v=7.11.200100.82"},{"key":"Date","value":"Fri, 30 Sep 2022 10:49:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"188"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=YXTZohFBMbPPQ5isnw0mo8Xj24T9zCGaKR9zZ%2B0jFRL%2FXz0LqOkcUGlqF%2FQZGv06xjHRndXYzG2chUSyTMRc1l2wxDA%2FcmGx%2B1wO2iwUaHC%2FYOaqyIrc1qzgEFXOuwz2Te%2B1O2x2baaGimmkdSBT4Y7Nu8ROzkE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"752c64e1e8bd7332-LHR"},{"key":"Connection","value":"keep-alive"},{"key":"Via","value":"1.1 hosted.websense 77a"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"d09d03a3-c2ab-4a45-a481-171d45af4ea3\",\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": [\n        \"Trade d2474ce0-d88e-42af-922a-7da9d7a3688a has insufficient available balance\"\n    ]\n}"}],"_postman_id":"e66a7b81-c562-4522-9757-ca4a231852b4"}],"id":"4f9b3039-a7fd-4acf-8c78-8c881444f2d4","description":"<h1 id=\"overview\">Overview</h1>\n<p>At GRG, all payments are attached to trades, and are funded from the buy side of those trades.</p>\n<p>This means that a payment isn't ready to be sent until all the trades that fund it have reached their value date, and have been settled.</p>\n<p>Once all the trades have valued and are fully funded, then the payment will be instructed via our bank.</p>\n<p>Currently, payments have one of these statuses:</p>\n<p>* Pending: The payment is booked but has not yet been processed at the bank. This is either because the linked trades have not valued/been settled, or because the payment batch has not yet been executed.<br />* Sent: Instruction has been sent to our counterparty bank to initiate the transfer. Depending upon cutoffs, the payment may be sent by the counterparty on the same day or the following working day.</p>\n<p>In future iterations of the API we expect to add these further statuses.</p>\n<p>Payments can made without trades utilising the total available balance from trades or from specific trades with available balance.</p>\n<p>The allowed paymentReason values are (see static data endpoint /lookups/paymentreasons):</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Definition</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>DTC</td>\n<td>Donation to Charity</td>\n</tr>\n<tr>\n<td>CCAS</td>\n<td>Inter-company xfer/Cash management</td>\n</tr>\n<tr>\n<td>INPY</td>\n<td>Investment payment</td>\n</tr>\n<tr>\n<td>LSRE</td>\n<td>Legal Services Rendered</td>\n</tr>\n<tr>\n<td>LOAR</td>\n<td>Loan repayment</td>\n</tr>\n<tr>\n<td>MOPY</td>\n<td>Mortgage payment</td>\n</tr>\n<tr>\n<td>PS</td>\n<td>Payment for services</td>\n</tr>\n<tr>\n<td>PG</td>\n<td>Purchase of goods</td>\n</tr>\n<tr>\n<td>ROYY</td>\n<td>Royalties payment</td>\n</tr>\n<tr>\n<td>GDSR</td>\n<td>Sale of goods or services/revenue</td>\n</tr>\n<tr>\n<td>REV</td>\n<td>Revenue</td>\n</tr>\n<tr>\n<td>ZZZZ</td>\n<td>Other</td>\n</tr>\n<tr>\n<td>PYRL</td>\n<td>Payroll</td>\n</tr>\n<tr>\n<td>CPPU</td>\n<td>Commercial property purchase</td>\n</tr>\n<tr>\n<td>DVPY</td>\n<td>Dividend payment</td>\n</tr>\n<tr>\n<td>OSPY</td>\n<td>Paying overseas suppliers</td>\n</tr>\n<tr>\n<td>ROER</td>\n<td>Repatriating overseas earnings (Salary or profits from a subsidiary)</td>\n</tr>\n<tr>\n<td>RRFI</td>\n<td>Repatriating returns from an investment</td>\n</tr>\n<tr>\n<td>BSHG</td>\n<td>Balance sheet hedging</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Date definitions</strong></p>\n<p>instructedDateTime - Date the payment is processed by GRG</p>\n<p>createdDateTime - Date the payment is instructed by you</p>\n","_postman_id":"4f9b3039-a7fd-4acf-8c78-8c881444f2d4","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}}},{"name":"Lookups","item":[{"name":"Get countries","event":[{"listen":"test","script":{"id":"5e2a89a6-9ad3-4ac5-8523-090b4cfc115d","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Countries are returned', () => {\r","   const data = pm.response.json().data;   \r","    pm.expect(data).length.greaterThan(-1)\r","});"],"type":"text/javascript"}}],"id":"a2be5b31-a683-4a6d-aea0-a8c2ad1ed1af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/lookups/countries","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["lookups","countries"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"e33aa6aa-9e8d-4645-9678-5efa12cde7da","name":"Get countries","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/lookups/countries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 14:06:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=jIlSnaF0ese%2BupK3jPSKlUYRTeOnpihUAI2fPH9CaOALyySqcX8McGdUrRYi7QTP2y7XUEEe%2BVP%2FXRgrCuNSE1TBRfRS08oeHtYi5f7BPYAK8SitayMWYtY5nkyCPEjZPVwai2yPwT40UCLwgcKfRdwfgRinsUo%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f468b2785075c5-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"12c266b8-685c-4d27-b440-a37debbdbd24\",\n    \"status\": 200,\n    \"data\": [\n        {\n            \"name\": \"Afghanistan\",\n            \"iso2Code\": \"AF\",\n            \"iso3Code\": \"AFG\"\n        },\n        {\n            \"name\": \"Aland Islands\",\n            \"iso2Code\": \"AX\",\n            \"iso3Code\": \"ALA\"\n        },\n        {\n            \"name\": \"Albania\",\n            \"iso2Code\": \"AL\",\n            \"iso3Code\": \"ALB\"\n        },\n        {\n            \"name\": \"Alderney\",\n            \"iso2Code\": \"ZZ\",\n            \"iso3Code\": \"ZZZ\"\n        },\n        {\n            \"name\": \"Algeria\",\n            \"iso2Code\": \"DZ\",\n            \"iso3Code\": \"DZA\"\n        },\n        {\n            \"name\": \"American Samoa\",\n            \"iso2Code\": \"AS\",\n            \"iso3Code\": \"ASM\"\n        },\n        {\n            \"name\": \"Andorra\",\n            \"iso2Code\": \"AD\",\n            \"iso3Code\": \"AND\"\n        },\n        {\n            \"name\": \"Angola\",\n            \"iso2Code\": \"AO\",\n            \"iso3Code\": \"AGO\"\n        },\n        {\n            \"name\": \"Anguilla\",\n            \"iso2Code\": \"AI\",\n            \"iso3Code\": \"AIA\"\n        },\n        {\n            \"name\": \"Antarctica\",\n            \"iso2Code\": \"AQ\",\n            \"iso3Code\": \"ATA\"\n        },\n        {\n            \"name\": \"Antigua and Barbuda\",\n            \"iso2Code\": \"AG\",\n            \"iso3Code\": \"ATG\"\n        },\n        {\n            \"name\": \"Argentina\",\n            \"iso2Code\": \"AR\",\n            \"iso3Code\": \"ARG\"\n        },\n        {\n            \"name\": \"Armenia\",\n            \"iso2Code\": \"AM\",\n            \"iso3Code\": \"ARM\"\n        },\n        {\n            \"name\": \"Aruba\",\n            \"iso2Code\": \"AW\",\n            \"iso3Code\": \"ABW\"\n        },\n        {\n            \"name\": \"Australia\",\n            \"iso2Code\": \"AU\",\n            \"iso3Code\": \"AUS\"\n        },\n        {\n            \"name\": \"Austria\",\n            \"iso2Code\": \"AT\",\n            \"iso3Code\": \"AUT\"\n        },\n        {\n            \"name\": \"Azerbaijan\",\n            \"iso2Code\": \"AZ\",\n            \"iso3Code\": \"AZE\"\n        },\n        {\n            \"name\": \"Bahamas\",\n            \"iso2Code\": \"BS\",\n            \"iso3Code\": \"BHS\"\n        },\n        {\n            \"name\": \"Bahrain\",\n            \"iso2Code\": \"BH\",\n            \"iso3Code\": \"BHR\"\n        },\n        {\n            \"name\": \"Bangladesh\",\n            \"iso2Code\": \"BD\",\n            \"iso3Code\": \"BGD\"\n        },\n        {\n            \"name\": \"Barbados\",\n            \"iso2Code\": \"BB\",\n            \"iso3Code\": \"BRB\"\n        },\n        {\n            \"name\": \"Belarus\",\n            \"iso2Code\": \"BY\",\n            \"iso3Code\": \"BLR\"\n        },\n        {\n            \"name\": \"Belgium\",\n            \"iso2Code\": \"BE\",\n            \"iso3Code\": \"BEL\"\n        },\n        {\n            \"name\": \"Belize\",\n            \"iso2Code\": \"BZ\",\n            \"iso3Code\": \"BLZ\"\n        },\n        {\n            \"name\": \"Benin\",\n            \"iso2Code\": \"BJ\",\n            \"iso3Code\": \"BEN\"\n        },\n        {\n            \"name\": \"Bermuda\",\n            \"iso2Code\": \"BM\",\n            \"iso3Code\": \"BMU\"\n        },\n        {\n            \"name\": \"Bhutan\",\n            \"iso2Code\": \"BT\",\n            \"iso3Code\": \"BTN\"\n        },\n        {\n            \"name\": \"Bolivia\",\n            \"iso2Code\": \"BO\",\n            \"iso3Code\": \"BOL\"\n        },\n        {\n            \"name\": \"Bonaire Sint Eustatius a\",\n            \"iso2Code\": \"BQ\",\n            \"iso3Code\": \"BES\"\n        },\n        {\n            \"name\": \"Bosnia and Herzegovina\",\n            \"iso2Code\": \"BA\",\n            \"iso3Code\": \"BIH\"\n        },\n        {\n            \"name\": \"Botswana\",\n            \"iso2Code\": \"BW\",\n            \"iso3Code\": \"BWA\"\n        },\n        {\n            \"name\": \"Bouvet Island\",\n            \"iso2Code\": \"BV\",\n            \"iso3Code\": \"BVT\"\n        },\n        {\n            \"name\": \"Bratislava\",\n            \"iso2Code\": \"SK\",\n            \"iso3Code\": \"SVK\"\n        },\n        {\n            \"name\": \"Brazil\",\n            \"iso2Code\": \"BR\",\n            \"iso3Code\": \"BRA\"\n        },\n        {\n            \"name\": \"British Indian Ocean Territory\",\n            \"iso2Code\": \"IO\",\n            \"iso3Code\": \"IOT\"\n        },\n        {\n            \"name\": \"British Virgin Islands\",\n            \"iso2Code\": \"VG\",\n            \"iso3Code\": \"VGB\"\n        },\n        {\n            \"name\": \"Brunei Darussalam\",\n            \"iso2Code\": \"BN\",\n            \"iso3Code\": \"BRN\"\n        },\n        {\n            \"name\": \"Bulgaria\",\n            \"iso2Code\": \"BG\",\n            \"iso3Code\": \"BGR\"\n        },\n        {\n            \"name\": \"Burkina Faso\",\n            \"iso2Code\": \"BF\",\n            \"iso3Code\": \"BFA\"\n        },\n        {\n            \"name\": \"Burundi\",\n            \"iso2Code\": \"BI\",\n            \"iso3Code\": \"BDI\"\n        },\n        {\n            \"name\": \"Cambodia\",\n            \"iso2Code\": \"KH\",\n            \"iso3Code\": \"KHM\"\n        },\n        {\n            \"name\": \"Cameroon\",\n            \"iso2Code\": \"CM\",\n            \"iso3Code\": \"CMR\"\n        },\n        {\n            \"name\": \"Canada\",\n            \"iso2Code\": \"CA\",\n            \"iso3Code\": \"CAN\"\n        },\n        {\n            \"name\": \"Cape Verde\",\n            \"iso2Code\": \"CV\",\n            \"iso3Code\": \"CPV\"\n        },\n        {\n            \"name\": \"Cayman Islands\",\n            \"iso2Code\": \"KY\",\n            \"iso3Code\": \"CYM\"\n        },\n        {\n            \"name\": \"Central African Republic\",\n            \"iso2Code\": \"CF\",\n            \"iso3Code\": \"CAF\"\n        },\n        {\n            \"name\": \"Chad\",\n            \"iso2Code\": \"TD\",\n            \"iso3Code\": \"TCD\"\n        },\n        {\n            \"name\": \"Chile\",\n            \"iso2Code\": \"CL\",\n            \"iso3Code\": \"CHL\"\n        },\n        {\n            \"name\": \"China Peoples Republic\",\n            \"iso2Code\": \"CN\",\n            \"iso3Code\": \"CHN\"\n        },\n        {\n            \"name\": \"Christmas Island\",\n            \"iso2Code\": \"CX\",\n            \"iso3Code\": \"CXR\"\n        },\n        {\n            \"name\": \"Cocos (Keeling) Islands\",\n            \"iso2Code\": \"CC\",\n            \"iso3Code\": \"CCK\"\n        },\n        {\n            \"name\": \"Colombia\",\n            \"iso2Code\": \"CO\",\n            \"iso3Code\": \"COL\"\n        },\n        {\n            \"name\": \"Comoros\",\n            \"iso2Code\": \"KM\",\n            \"iso3Code\": \"COM\"\n        },\n        {\n            \"name\": \"Congo\",\n            \"iso2Code\": \"CG\",\n            \"iso3Code\": \"COG\"\n        },\n        {\n            \"name\": \"Cook Islands\",\n            \"iso2Code\": \"CK\",\n            \"iso3Code\": \"COK\"\n        },\n        {\n            \"name\": \"Costa Rica\",\n            \"iso2Code\": \"CR\",\n            \"iso3Code\": \"CRI\"\n        },\n        {\n            \"name\": \"Cote d'Ivoire\",\n            \"iso2Code\": \"CI\",\n            \"iso3Code\": \"CIV\"\n        },\n        {\n            \"name\": \"Croatia\",\n            \"iso2Code\": \"HR\",\n            \"iso3Code\": \"HRV\"\n        },\n        {\n            \"name\": \"Cuba\",\n            \"iso2Code\": \"CU\",\n            \"iso3Code\": \"CUB\"\n        },\n        {\n            \"name\": \"Curacao\",\n            \"iso2Code\": \"CW\",\n            \"iso3Code\": \"CUW\"\n        },\n        {\n            \"name\": \"Cyprus\",\n            \"iso2Code\": \"CY\",\n            \"iso3Code\": \"CYP\"\n        },\n        {\n            \"name\": \"Czech Republic\",\n            \"iso2Code\": \"CZ\",\n            \"iso3Code\": \"CZE\"\n        },\n        {\n            \"name\": \"Democratic Republic of Congo\",\n            \"iso2Code\": \"CD\",\n            \"iso3Code\": \"COD\"\n        },\n        {\n            \"name\": \"Denmark\",\n            \"iso2Code\": \"DK\",\n            \"iso3Code\": \"DNK\"\n        },\n        {\n            \"name\": \"Djibouti\",\n            \"iso2Code\": \"DJ\",\n            \"iso3Code\": \"DJI\"\n        },\n        {\n            \"name\": \"Dominica\",\n            \"iso2Code\": \"DM\",\n            \"iso3Code\": \"DMA\"\n        },\n        {\n            \"name\": \"Dominican Republic\",\n            \"iso2Code\": \"DO\",\n            \"iso3Code\": \"DOM\"\n        },\n        {\n            \"name\": \"Ecuador\",\n            \"iso2Code\": \"EC\",\n            \"iso3Code\": \"ECU\"\n        },\n        {\n            \"name\": \"Egypt\",\n            \"iso2Code\": \"EG\",\n            \"iso3Code\": \"EGY\"\n        },\n        {\n            \"name\": \"El Salvador\",\n            \"iso2Code\": \"SV\",\n            \"iso3Code\": \"SLV\"\n        },\n        {\n            \"name\": \"Equatorial Guinea\",\n            \"iso2Code\": \"GQ\",\n            \"iso3Code\": \"GNQ\"\n        },\n        {\n            \"name\": \"Eritrea\",\n            \"iso2Code\": \"ER\",\n            \"iso3Code\": \"ERI\"\n        },\n        {\n            \"name\": \"Estonia\",\n            \"iso2Code\": \"EE\",\n            \"iso3Code\": \"EST\"\n        },\n        {\n            \"name\": \"Ethiopia\",\n            \"iso2Code\": \"ET\",\n            \"iso3Code\": \"ETH\"\n        },\n        {\n            \"name\": \"Falkland Islands (Malvinas)\",\n            \"iso2Code\": \"FK\",\n            \"iso3Code\": \"FLK\"\n        },\n        {\n            \"name\": \"Faroe Islands\",\n            \"iso2Code\": \"FO\",\n            \"iso3Code\": null\n        },\n        {\n            \"name\": \"Federated States of Micronesia\",\n            \"iso2Code\": \"FM\",\n            \"iso3Code\": \"FSM\"\n        },\n        {\n            \"name\": \"Fiji\",\n            \"iso2Code\": \"FJ\",\n            \"iso3Code\": \"FJI\"\n        },\n        {\n            \"name\": \"Finland\",\n            \"iso2Code\": \"FI\",\n            \"iso3Code\": \"FIN\"\n        },\n        {\n            \"name\": \"France\",\n            \"iso2Code\": \"FR\",\n            \"iso3Code\": \"FRA\"\n        },\n        {\n            \"name\": \"French Guiana\",\n            \"iso2Code\": \"GF\",\n            \"iso3Code\": \"GUF\"\n        },\n        {\n            \"name\": \"French Polynesia\",\n            \"iso2Code\": \"PF\",\n            \"iso3Code\": \"PYF\"\n        },\n        {\n            \"name\": \"French Southern Territories\",\n            \"iso2Code\": \"TF\",\n            \"iso3Code\": \"ATF\"\n        },\n        {\n            \"name\": \"Gabon\",\n            \"iso2Code\": \"GA\",\n            \"iso3Code\": \"GAB\"\n        },\n        {\n            \"name\": \"Gambia\",\n            \"iso2Code\": \"GM\",\n            \"iso3Code\": \"GMB\"\n        },\n        {\n            \"name\": \"Georgia\",\n            \"iso2Code\": \"GE\",\n            \"iso3Code\": \"GEO\"\n        },\n        {\n            \"name\": \"Germany\",\n            \"iso2Code\": \"DE\",\n            \"iso3Code\": \"DEU\"\n        },\n        {\n            \"name\": \"Ghana\",\n            \"iso2Code\": \"GH\",\n            \"iso3Code\": \"GHA\"\n        },\n        {\n            \"name\": \"Gibraltar\",\n            \"iso2Code\": \"GI\",\n            \"iso3Code\": \"GIB\"\n        },\n        {\n            \"name\": \"Greece\",\n            \"iso2Code\": \"GR\",\n            \"iso3Code\": \"GRC\"\n        },\n        {\n            \"name\": \"Greenland\",\n            \"iso2Code\": \"GL\",\n            \"iso3Code\": \"GRL\"\n        },\n        {\n            \"name\": \"Grenada\",\n            \"iso2Code\": \"GD\",\n            \"iso3Code\": \"GRD\"\n        },\n        {\n            \"name\": \"Guadeloupe\",\n            \"iso2Code\": \"GP\",\n            \"iso3Code\": \"GLP\"\n        },\n        {\n            \"name\": \"Guam\",\n            \"iso2Code\": \"GU\",\n            \"iso3Code\": \"GUM\"\n        },\n        {\n            \"name\": \"Guatemala\",\n            \"iso2Code\": \"GT\",\n            \"iso3Code\": \"GTM\"\n        },\n        {\n            \"name\": \"Guernsey\",\n            \"iso2Code\": \"GG\",\n            \"iso3Code\": \"GGY\"\n        },\n        {\n            \"name\": \"Guinea\",\n            \"iso2Code\": \"GN\",\n            \"iso3Code\": \"GIN\"\n        },\n        {\n            \"name\": \"Guinea-Bissau\",\n            \"iso2Code\": \"GW\",\n            \"iso3Code\": \"GNB\"\n        },\n        {\n            \"name\": \"Guyana\",\n            \"iso2Code\": \"GY\",\n            \"iso3Code\": \"GUY\"\n        },\n        {\n            \"name\": \"Haiti\",\n            \"iso2Code\": \"HT\",\n            \"iso3Code\": \"HTI\"\n        },\n        {\n            \"name\": \"Heard Island and McDonald Islands\",\n            \"iso2Code\": \"HM\",\n            \"iso3Code\": \"HMD\"\n        },\n        {\n            \"name\": \"Holy See (Vatican City State)\",\n            \"iso2Code\": \"VA\",\n            \"iso3Code\": \"VAT\"\n        },\n        {\n            \"name\": \"Honduras\",\n            \"iso2Code\": \"HN\",\n            \"iso3Code\": \"HND\"\n        },\n        {\n            \"name\": \"Hong Kong\",\n            \"iso2Code\": \"HK\",\n            \"iso3Code\": \"HKG\"\n        },\n        {\n            \"name\": \"Hungary\",\n            \"iso2Code\": \"HU\",\n            \"iso3Code\": \"HUN\"\n        },\n        {\n            \"name\": \"Iceland\",\n            \"iso2Code\": \"IS\",\n            \"iso3Code\": \"ISL\"\n        },\n        {\n            \"name\": \"India\",\n            \"iso2Code\": \"IN\",\n            \"iso3Code\": \"IND\"\n        },\n        {\n            \"name\": \"Indonesia\",\n            \"iso2Code\": \"ID\",\n            \"iso3Code\": \"IDN\"\n        },\n        {\n            \"name\": \"Iraq\",\n            \"iso2Code\": \"IQ\",\n            \"iso3Code\": \"IRQ\"\n        },\n        {\n            \"name\": \"Ireland\",\n            \"iso2Code\": \"IE\",\n            \"iso3Code\": \"IRL\"\n        },\n        {\n            \"name\": \"Islamic Republic of Iran\",\n            \"iso2Code\": \"IR\",\n            \"iso3Code\": \"IRN\"\n        },\n        {\n            \"name\": \"Isle of Man\",\n            \"iso2Code\": \"IM\",\n            \"iso3Code\": \"IMN\"\n        },\n        {\n            \"name\": \"Israel\",\n            \"iso2Code\": \"IL\",\n            \"iso3Code\": \"ISR\"\n        },\n        {\n            \"name\": \"Italy\",\n            \"iso2Code\": \"IT\",\n            \"iso3Code\": \"ITA\"\n        },\n        {\n            \"name\": \"Jamaica\",\n            \"iso2Code\": \"JM\",\n            \"iso3Code\": \"JAM\"\n        },\n        {\n            \"name\": \"Japan\",\n            \"iso2Code\": \"JP\",\n            \"iso3Code\": \"JPN\"\n        },\n        {\n            \"name\": \"Jersey\",\n            \"iso2Code\": \"JE\",\n            \"iso3Code\": \"JEY\"\n        },\n        {\n            \"name\": \"Jordan\",\n            \"iso2Code\": \"JO\",\n            \"iso3Code\": \"JOR\"\n        },\n        {\n            \"name\": \"Kazakhstan\",\n            \"iso2Code\": \"KZ\",\n            \"iso3Code\": \"KAZ\"\n        },\n        {\n            \"name\": \"Kenya\",\n            \"iso2Code\": \"KE\",\n            \"iso3Code\": \"KEN\"\n        },\n        {\n            \"name\": \"Kiribati\",\n            \"iso2Code\": \"KI\",\n            \"iso3Code\": \"KIR\"\n        },\n        {\n            \"name\": \"Korea Democratic People's Republic of\",\n            \"iso2Code\": \"KP\",\n            \"iso3Code\": \"PRK\"\n        },\n        {\n            \"name\": \"Korea Republic of\",\n            \"iso2Code\": \"KR\",\n            \"iso3Code\": \"KOR\"\n        },\n        {\n            \"name\": \"Kuwait\",\n            \"iso2Code\": \"KW\",\n            \"iso3Code\": \"KWT\"\n        },\n        {\n            \"name\": \"Kyrgyzstan\",\n            \"iso2Code\": \"KG\",\n            \"iso3Code\": \"KGZ\"\n        },\n        {\n            \"name\": \"Laos\",\n            \"iso2Code\": \"LA\",\n            \"iso3Code\": \"LAO\"\n        },\n        {\n            \"name\": \"Latvia\",\n            \"iso2Code\": \"LV\",\n            \"iso3Code\": \"LVA\"\n        },\n        {\n            \"name\": \"Lebanon\",\n            \"iso2Code\": \"LB\",\n            \"iso3Code\": \"LBN\"\n        },\n        {\n            \"name\": \"Lesotho\",\n            \"iso2Code\": \"LS\",\n            \"iso3Code\": \"LSO\"\n        },\n        {\n            \"name\": \"Liberia\",\n            \"iso2Code\": \"LR\",\n            \"iso3Code\": \"LBR\"\n        },\n        {\n            \"name\": \"Libyan Arab Jamahiriya\",\n            \"iso2Code\": \"LY\",\n            \"iso3Code\": \"LBY\"\n        },\n        {\n            \"name\": \"Liechtenstein\",\n            \"iso2Code\": \"LI\",\n            \"iso3Code\": \"LIE\"\n        },\n        {\n            \"name\": \"Lithuania\",\n            \"iso2Code\": \"LT\",\n            \"iso3Code\": \"LTU\"\n        },\n        {\n            \"name\": \"Luxembourg\",\n            \"iso2Code\": \"LU\",\n            \"iso3Code\": \"LUX\"\n        },\n        {\n            \"name\": \"Macao\",\n            \"iso2Code\": \"MO\",\n            \"iso3Code\": \"MAC\"\n        },\n        {\n            \"name\": \"Macedonia\",\n            \"iso2Code\": \"MK\",\n            \"iso3Code\": \"MKD\"\n        },\n        {\n            \"name\": \"Madagascar\",\n            \"iso2Code\": \"MG\",\n            \"iso3Code\": \"MDG\"\n        },\n        {\n            \"name\": \"Malawi\",\n            \"iso2Code\": \"MW\",\n            \"iso3Code\": \"MWI\"\n        },\n        {\n            \"name\": \"Malaysia\",\n            \"iso2Code\": \"MY\",\n            \"iso3Code\": \"MYS\"\n        },\n        {\n            \"name\": \"Maldives\",\n            \"iso2Code\": \"MV\",\n            \"iso3Code\": \"MDV\"\n        },\n        {\n            \"name\": \"Mali\",\n            \"iso2Code\": \"ML\",\n            \"iso3Code\": \"MLI\"\n        },\n        {\n            \"name\": \"Malta\",\n            \"iso2Code\": \"MT\",\n            \"iso3Code\": \"MLT\"\n        },\n        {\n            \"name\": \"Marshall Islands\",\n            \"iso2Code\": \"MH\",\n            \"iso3Code\": \"MHL\"\n        },\n        {\n            \"name\": \"Martinique\",\n            \"iso2Code\": \"MQ\",\n            \"iso3Code\": \"MTQ\"\n        },\n        {\n            \"name\": \"Mauritania\",\n            \"iso2Code\": \"MR\",\n            \"iso3Code\": \"MRT\"\n        },\n        {\n            \"name\": \"Mauritius\",\n            \"iso2Code\": \"MU\",\n            \"iso3Code\": \"MUS\"\n        },\n        {\n            \"name\": \"Mayotte\",\n            \"iso2Code\": \"YT\",\n            \"iso3Code\": \"MYT\"\n        },\n        {\n            \"name\": \"Mexico\",\n            \"iso2Code\": \"MX\",\n            \"iso3Code\": \"MEX\"\n        },\n        {\n            \"name\": \"Monaco\",\n            \"iso2Code\": \"MC\",\n            \"iso3Code\": \"MCO\"\n        },\n        {\n            \"name\": \"Mongolia\",\n            \"iso2Code\": \"MN\",\n            \"iso3Code\": \"MNG\"\n        },\n        {\n            \"name\": \"Montenegro\",\n            \"iso2Code\": \"ME\",\n            \"iso3Code\": \"MNE\"\n        },\n        {\n            \"name\": \"Montserrat\",\n            \"iso2Code\": \"MS\",\n            \"iso3Code\": \"MSR\"\n        },\n        {\n            \"name\": \"Morocco\",\n            \"iso2Code\": \"MA\",\n            \"iso3Code\": \"MAR\"\n        },\n        {\n            \"name\": \"Mozambique\",\n            \"iso2Code\": \"MZ\",\n            \"iso3Code\": \"MOZ\"\n        },\n        {\n            \"name\": \"Myanmar\",\n            \"iso2Code\": \"MM\",\n            \"iso3Code\": \"MMR\"\n        },\n        {\n            \"name\": \"Namibia\",\n            \"iso2Code\": \"NA\",\n            \"iso3Code\": \"NAM\"\n        },\n        {\n            \"name\": \"Nauru\",\n            \"iso2Code\": \"NR\",\n            \"iso3Code\": \"NRU\"\n        },\n        {\n            \"name\": \"Nepal\",\n            \"iso2Code\": \"NP\",\n            \"iso3Code\": \"NPL\"\n        },\n        {\n            \"name\": \"Netherlands\",\n            \"iso2Code\": \"NL\",\n            \"iso3Code\": \"NLD\"\n        },\n        {\n            \"name\": \"Netherlands Antilles\",\n            \"iso2Code\": \"AN\",\n            \"iso3Code\": null\n        },\n        {\n            \"name\": \"New Caledonia\",\n            \"iso2Code\": \"NC\",\n            \"iso3Code\": \"NCL\"\n        },\n        {\n            \"name\": \"New Zealand\",\n            \"iso2Code\": \"NZ\",\n            \"iso3Code\": \"NZL\"\n        },\n        {\n            \"name\": \"Nicaragua\",\n            \"iso2Code\": \"NI\",\n            \"iso3Code\": \"NIC\"\n        },\n        {\n            \"name\": \"Niger\",\n            \"iso2Code\": \"NE\",\n            \"iso3Code\": \"NER\"\n        },\n        {\n            \"name\": \"Nigeria\",\n            \"iso2Code\": \"NG\",\n            \"iso3Code\": \"NGA\"\n        },\n        {\n            \"name\": \"Niue\",\n            \"iso2Code\": \"NU\",\n            \"iso3Code\": \"NIU\"\n        },\n        {\n            \"name\": \"Norfolk Island\",\n            \"iso2Code\": \"NF\",\n            \"iso3Code\": \"NFK\"\n        },\n        {\n            \"name\": \"Northern Mariana Islands\",\n            \"iso2Code\": \"MP\",\n            \"iso3Code\": \"MNP\"\n        },\n        {\n            \"name\": \"Norway\",\n            \"iso2Code\": \"NO\",\n            \"iso3Code\": \"NOR\"\n        },\n        {\n            \"name\": \"Occupied Palestinian Territory\",\n            \"iso2Code\": \"PS\",\n            \"iso3Code\": \"PSE\"\n        },\n        {\n            \"name\": \"Oman\",\n            \"iso2Code\": \"OM\",\n            \"iso3Code\": \"OMN\"\n        },\n        {\n            \"name\": \"Pakistan\",\n            \"iso2Code\": \"PK\",\n            \"iso3Code\": \"PAK\"\n        },\n        {\n            \"name\": \"Palau\",\n            \"iso2Code\": \"PW\",\n            \"iso3Code\": \"PLW\"\n        },\n        {\n            \"name\": \"Palestine\",\n            \"iso2Code\": \"PS\",\n            \"iso3Code\": \"PSE\"\n        },\n        {\n            \"name\": \"Panama\",\n            \"iso2Code\": \"PA\",\n            \"iso3Code\": \"PAN\"\n        },\n        {\n            \"name\": \"Papua New Guinea\",\n            \"iso2Code\": \"PG\",\n            \"iso3Code\": \"PNG\"\n        },\n        {\n            \"name\": \"Paraguay\",\n            \"iso2Code\": \"PY\",\n            \"iso3Code\": \"PRY\"\n        },\n        {\n            \"name\": \"Peru\",\n            \"iso2Code\": \"PE\",\n            \"iso3Code\": \"PER\"\n        },\n        {\n            \"name\": \"Philippines\",\n            \"iso2Code\": \"PH\",\n            \"iso3Code\": \"PHL\"\n        },\n        {\n            \"name\": \"Pitcairn\",\n            \"iso2Code\": \"PN\",\n            \"iso3Code\": \"PCN\"\n        },\n        {\n            \"name\": \"Plurinational State of Bolivia\",\n            \"iso2Code\": \"BO\",\n            \"iso3Code\": \"BOL\"\n        },\n        {\n            \"name\": \"Poland\",\n            \"iso2Code\": \"PL\",\n            \"iso3Code\": \"POL\"\n        },\n        {\n            \"name\": \"Portugal\",\n            \"iso2Code\": \"PT\",\n            \"iso3Code\": \"PRT\"\n        },\n        {\n            \"name\": \"Puerto Rico\",\n            \"iso2Code\": \"PR\",\n            \"iso3Code\": \"PRI\"\n        },\n        {\n            \"name\": \"Qatar\",\n            \"iso2Code\": \"QA\",\n            \"iso3Code\": \"QAT\"\n        },\n        {\n            \"name\": \"Republic of Kosovo\",\n            \"iso2Code\": \"XK\",\n            \"iso3Code\": \"KOS\"\n        },\n        {\n            \"name\": \"Republic of Moldova\",\n            \"iso2Code\": \"MD\",\n            \"iso3Code\": \"MDA\"\n        },\n        {\n            \"name\": \"Reunion\",\n            \"iso2Code\": \"RE\",\n            \"iso3Code\": \"REU\"\n        },\n        {\n            \"name\": \"Romania\",\n            \"iso2Code\": \"RO\",\n            \"iso3Code\": \"ROU\"\n        },\n        {\n            \"name\": \"Russia\",\n            \"iso2Code\": \"RU\",\n            \"iso3Code\": \"RUS\"\n        },\n        {\n            \"name\": \"Rwanda\",\n            \"iso2Code\": \"RW\",\n            \"iso3Code\": \"RWA\"\n        },\n        {\n            \"name\": \"Samoa\",\n            \"iso2Code\": \"WS\",\n            \"iso3Code\": \"WSM\"\n        },\n        {\n            \"name\": \"San Marino\",\n            \"iso2Code\": \"SM\",\n            \"iso3Code\": \"SMR\"\n        },\n        {\n            \"name\": \"Sao Tome and Principe\",\n            \"iso2Code\": \"ST\",\n            \"iso3Code\": \"STP\"\n        },\n        {\n            \"name\": \"Saudi Arabia\",\n            \"iso2Code\": \"SA\",\n            \"iso3Code\": \"SAU\"\n        },\n        {\n            \"name\": \"Senegal\",\n            \"iso2Code\": \"SN\",\n            \"iso3Code\": \"SEN\"\n        },\n        {\n            \"name\": \"Serbia\",\n            \"iso2Code\": \"RS\",\n            \"iso3Code\": \"SRB\"\n        },\n        {\n            \"name\": \"Seychelles\",\n            \"iso2Code\": \"SC\",\n            \"iso3Code\": \"SYC\"\n        },\n        {\n            \"name\": \"Sierra Leone\",\n            \"iso2Code\": \"SL\",\n            \"iso3Code\": \"SLE\"\n        },\n        {\n            \"name\": \"Singapore\",\n            \"iso2Code\": \"SG\",\n            \"iso3Code\": \"SGP\"\n        },\n        {\n            \"name\": \"Sint Maarten (Dutch part)\",\n            \"iso2Code\": \"SX\",\n            \"iso3Code\": \"SXM\"\n        },\n        {\n            \"name\": \"Slovakia\",\n            \"iso2Code\": \"SK\",\n            \"iso3Code\": \"SVK\"\n        },\n        {\n            \"name\": \"Slovenia\",\n            \"iso2Code\": \"SI\",\n            \"iso3Code\": \"SVN\"\n        },\n        {\n            \"name\": \"Solomon Islands\",\n            \"iso2Code\": \"SB\",\n            \"iso3Code\": \"SLB\"\n        },\n        {\n            \"name\": \"Somalia\",\n            \"iso2Code\": \"SO\",\n            \"iso3Code\": \"SOM\"\n        },\n        {\n            \"name\": \"South Africa\",\n            \"iso2Code\": \"ZA\",\n            \"iso3Code\": \"ZAF\"\n        },\n        {\n            \"name\": \"South Georgia and the South Sandwich Islands\",\n            \"iso2Code\": \"GS\",\n            \"iso3Code\": \"SGS\"\n        },\n        {\n            \"name\": \"South Sudan\",\n            \"iso2Code\": \"SS\",\n            \"iso3Code\": \"SSD\"\n        },\n        {\n            \"name\": \"Spain\",\n            \"iso2Code\": \"ES\",\n            \"iso3Code\": \"ESP\"\n        },\n        {\n            \"name\": \"Sri Lanka\",\n            \"iso2Code\": \"LK\",\n            \"iso3Code\": \"LKA\"\n        },\n        {\n            \"name\": \"St Barthelemy\",\n            \"iso2Code\": \"BL\",\n            \"iso3Code\": null\n        },\n        {\n            \"name\": \"St Helena Ascension and Tristan da Cunha\",\n            \"iso2Code\": \"SH\",\n            \"iso3Code\": \"SHN\"\n        },\n        {\n            \"name\": \"St Kitts and Nevis\",\n            \"iso2Code\": \"KN\",\n            \"iso3Code\": \"KNA\"\n        },\n        {\n            \"name\": \"St Lucia\",\n            \"iso2Code\": \"LC\",\n            \"iso3Code\": \"LCA\"\n        },\n        {\n            \"name\": \"St Martin (French part)\",\n            \"iso2Code\": \"MF\",\n            \"iso3Code\": \"MAF\"\n        },\n        {\n            \"name\": \"St Pierre and Miquelon\",\n            \"iso2Code\": \"PM\",\n            \"iso3Code\": \"SPM\"\n        },\n        {\n            \"name\": \"St Vincent and The Grenadines\",\n            \"iso2Code\": \"VC\",\n            \"iso3Code\": \"VCT\"\n        },\n        {\n            \"name\": \"Sudan\",\n            \"iso2Code\": \"SD\",\n            \"iso3Code\": \"SDN\"\n        },\n        {\n            \"name\": \"Suriname\",\n            \"iso2Code\": \"SR\",\n            \"iso3Code\": \"SUR\"\n        },\n        {\n            \"name\": \"Svalbard and Jan Mayen\",\n            \"iso2Code\": \"SJ\",\n            \"iso3Code\": null\n        },\n        {\n            \"name\": \"Swaziland\",\n            \"iso2Code\": \"SZ\",\n            \"iso3Code\": \"SWZ\"\n        },\n        {\n            \"name\": \"Sweden\",\n            \"iso2Code\": \"SE\",\n            \"iso3Code\": \"SWE\"\n        },\n        {\n            \"name\": \"Switzerland\",\n            \"iso2Code\": \"CH\",\n            \"iso3Code\": \"CHE\"\n        },\n        {\n            \"name\": \"Syrian Arab Republic\",\n            \"iso2Code\": \"SY\",\n            \"iso3Code\": \"SYR\"\n        },\n        {\n            \"name\": \"Taiwan\",\n            \"iso2Code\": \"TW\",\n            \"iso3Code\": \"TWN\"\n        },\n        {\n            \"name\": \"Tajikistan\",\n            \"iso2Code\": \"TJ\",\n            \"iso3Code\": \"TJK\"\n        },\n        {\n            \"name\": \"Tanzania\",\n            \"iso2Code\": \"TZ\",\n            \"iso3Code\": \"TZA\"\n        },\n        {\n            \"name\": \"Thailand\",\n            \"iso2Code\": \"TH\",\n            \"iso3Code\": \"THA\"\n        },\n        {\n            \"name\": \"Timor-Leste\",\n            \"iso2Code\": \"TL\",\n            \"iso3Code\": \"TLS\"\n        },\n        {\n            \"name\": \"Togo\",\n            \"iso2Code\": \"TG\",\n            \"iso3Code\": \"TGO\"\n        },\n        {\n            \"name\": \"Tokelau\",\n            \"iso2Code\": \"TK\",\n            \"iso3Code\": \"TKL\"\n        },\n        {\n            \"name\": \"Tonga\",\n            \"iso2Code\": \"TO\",\n            \"iso3Code\": \"TON\"\n        },\n        {\n            \"name\": \"Trinidad And Tobago\",\n            \"iso2Code\": \"TT\",\n            \"iso3Code\": \"TTO\"\n        },\n        {\n            \"name\": \"Tunisia\",\n            \"iso2Code\": \"TN\",\n            \"iso3Code\": \"TUN\"\n        },\n        {\n            \"name\": \"Turkey\",\n            \"iso2Code\": \"TR\",\n            \"iso3Code\": \"TUR\"\n        },\n        {\n            \"name\": \"Turkmenistan\",\n            \"iso2Code\": \"TM\",\n            \"iso3Code\": \"TKM\"\n        },\n        {\n            \"name\": \"Turks and Caicos Islands\",\n            \"iso2Code\": \"TC\",\n            \"iso3Code\": \"TCA\"\n        },\n        {\n            \"name\": \"Tuvalu\",\n            \"iso2Code\": \"TV\",\n            \"iso3Code\": \"TUV\"\n        },\n        {\n            \"name\": \"U.S. Virgin Islands\",\n            \"iso2Code\": \"VI\",\n            \"iso3Code\": \"VIR\"\n        },\n        {\n            \"name\": \"Uganda\",\n            \"iso2Code\": \"UG\",\n            \"iso3Code\": \"UGA\"\n        },\n        {\n            \"name\": \"Ukraine\",\n            \"iso2Code\": \"UA\",\n            \"iso3Code\": \"UKR\"\n        },\n        {\n            \"name\": \"United Arab Emirates\",\n            \"iso2Code\": \"AE\",\n            \"iso3Code\": \"ARE\"\n        },\n        {\n            \"name\": \"United Kingdom\",\n            \"iso2Code\": \"GB\",\n            \"iso3Code\": \"GBR\"\n        },\n        {\n            \"name\": \"United States\",\n            \"iso2Code\": \"US\",\n            \"iso3Code\": \"USA\"\n        },\n        {\n            \"name\": \"United States Minor Outlying Islands\",\n            \"iso2Code\": \"UM\",\n            \"iso3Code\": \"UMI\"\n        },\n        {\n            \"name\": \"Uruguay\",\n            \"iso2Code\": \"UY\",\n            \"iso3Code\": \"URY\"\n        },\n        {\n            \"name\": \"Uzbekistan\",\n            \"iso2Code\": \"UZ\",\n            \"iso3Code\": \"UZB\"\n        },\n        {\n            \"name\": \"Vanuatu\",\n            \"iso2Code\": \"VU\",\n            \"iso3Code\": \"VUT\"\n        },\n        {\n            \"name\": \"Venezuela\",\n            \"iso2Code\": \"VE\",\n            \"iso3Code\": \"VEN\"\n        },\n        {\n            \"name\": \"Vietnam\",\n            \"iso2Code\": \"VN\",\n            \"iso3Code\": \"VNM\"\n        },\n        {\n            \"name\": \"Virgin Islands (British)\",\n            \"iso2Code\": \"VG\",\n            \"iso3Code\": \"VGB\"\n        },\n        {\n            \"name\": \"Wallis and Futuna\",\n            \"iso2Code\": \"WF\",\n            \"iso3Code\": \"WLF\"\n        },\n        {\n            \"name\": \"West Indies\",\n            \"iso2Code\": \"WI\",\n            \"iso3Code\": \"WIN\"\n        },\n        {\n            \"name\": \"Western Sahara\",\n            \"iso2Code\": \"EH\",\n            \"iso3Code\": \"ESH\"\n        },\n        {\n            \"name\": \"Yemen\",\n            \"iso2Code\": \"YE\",\n            \"iso3Code\": \"YEM\"\n        },\n        {\n            \"name\": \"Zambia\",\n            \"iso2Code\": \"ZM\",\n            \"iso3Code\": \"ZMB\"\n        },\n        {\n            \"name\": \"Zimbabwe\",\n            \"iso2Code\": \"ZW\",\n            \"iso3Code\": \"ZWE\"\n        }\n    ]\n}"}],"_postman_id":"a2be5b31-a683-4a6d-aea0-a8c2ad1ed1af"},{"name":"Get currencies","event":[{"listen":"test","script":{"id":"5e2a89a6-9ad3-4ac5-8523-090b4cfc115d","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Currencies are returned', () => {\r","   const data = pm.response.json().data;   \r","    pm.expect(data).length.greaterThan(-1)\r","});"],"type":"text/javascript"}}],"id":"a4f29abc-fa89-4ddf-abd8-a3cda0116b24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{}"},"url":"{{ApiBaseUrl}}/lookups/currencies","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["lookups","currencies"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"13a2458d-3e17-495d-a68f-4c2bc182a7e4","name":"Get currencies","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{}"},"url":"{{ApiBaseUrl}}/lookups/currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 14:06:36 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=ItJE2lQ8sPcRM3zaMtB75bnAZjHqVl%2BH9DwRL6e88gzTxJfF9QhI8WJIZNGI7xXP5LH5o%2BcHxb9roAbeXVWuWrCXYGvac8EJP0sb7GAoC7lQZ8FrZlz1PjstvrWhh0r0YFxDsxfnaIKrpqnN3HWRvjTgfSW0APE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f468e35a6c75c5-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"65f0e9b7-ebb0-4c3e-8f95-ebbc05c46677\",\n    \"status\": 200,\n    \"data\": [\n        {\n            \"code\": \"AED\",\n            \"label\": \"ARAB EMIRATE DIRHAM\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"AUD\",\n            \"label\": \"AUSTRALIAN DOLLAR\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:30:00Z\"\n        },\n        {\n            \"code\": \"BGN\",\n            \"label\": \"BULGARIAN LEVA\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T07:15:00Z\"\n        },\n        {\n            \"code\": \"BHD\",\n            \"label\": \"BAHRAINI DINARS\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"BWP\",\n            \"label\": \"BOTSWANA PULA\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"CAD\",\n            \"label\": \"CANADIAN DOLLAR\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T15:45:00Z\"\n        },\n        {\n            \"code\": \"CHF\",\n            \"label\": \"SWISS FRANC\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T09:00:00Z\"\n        },\n        {\n            \"code\": \"CNY\",\n            \"label\": \"CHINESE YUAN RENMINBI\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"CZK\",\n            \"label\": \"CZECH KORUNA\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"DKK\",\n            \"label\": \"DANISH KRONER\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T09:00:00Z\"\n        },\n        {\n            \"code\": \"EUR\",\n            \"label\": \"EURO\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T13:40:00Z\"\n        },\n        {\n            \"code\": \"GBP\",\n            \"label\": \"STERLING\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T15:45:00Z\"\n        },\n        {\n            \"code\": \"GHS\",\n            \"label\": \"GHANAIAN CEDI\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"HKD\",\n            \"label\": \"HONG KONG DOLLAR\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"HRK\",\n            \"label\": \"CROATIAN KUNA\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T07:15:00Z\"\n        },\n        {\n            \"code\": \"HUF\",\n            \"label\": \"HUNGARIAN FORINT\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"ILS\",\n            \"label\": \"ISRAELI SHEKEL\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"JOD\",\n            \"label\": \"JORDANIAN DINAR\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"JPY\",\n            \"label\": \"JAPANESE YEN\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"KWD\",\n            \"label\": \"KUWAITI DINARS\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"LKR\",\n            \"label\": \"SRI LANKAN RUPEE\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"MAD\",\n            \"label\": \"MOROCCAN DIRHAM\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"MUR\",\n            \"label\": \"MAURITIAN RUPEE\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T07:15:00Z\"\n        },\n        {\n            \"code\": \"MXN\",\n            \"label\": \"MEXICAN PESO\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"NGN\",\n            \"label\": \"NIGERIAN NAIRA\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"NOK\",\n            \"label\": \"NORWEGIAN KRONER\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T09:00:00Z\"\n        },\n        {\n            \"code\": \"NZD\",\n            \"label\": \"NEW ZEALAND DOLLAR\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"PHP\",\n            \"label\": \"PHILIPPINE PESO\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"PLN\",\n            \"label\": \"POLISH ZLOTYCH\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T08:00:00Z\"\n        },\n        {\n            \"code\": \"QAR\",\n            \"label\": \"QATARI RIAL\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"RON\",\n            \"label\": \"ROMANIAN NEW LEU\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"SEK\",\n            \"label\": \"SWEDISH KRONER\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T09:00:00Z\"\n        },\n        {\n            \"code\": \"SGD\",\n            \"label\": \"SINGAPORE DOLLAR\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"THB\",\n            \"label\": \"THAI BAHT\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"TND\",\n            \"label\": \"TUNISIAN DINAR\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T12:45:00Z\"\n        },\n        {\n            \"code\": \"TRY\",\n            \"label\": \"TURKISH NEW LIRA\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T08:00:00Z\"\n        },\n        {\n            \"code\": \"UGX\",\n            \"label\": \"UGANDAN SHILLING\",\n            \"deliveryDays\": 1,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"USD\",\n            \"label\": \"US DOLLAR\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T16:15:00Z\"\n        },\n        {\n            \"code\": \"XCD\",\n            \"label\": \"EAST CARIBBEAN DOLLARS\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T07:30:00Z\"\n        },\n        {\n            \"code\": \"ZAR\",\n            \"label\": \"SOUTH AFRICAN RAND\",\n            \"deliveryDays\": 0,\n            \"cutOff\": \"2022-08-23T09:00:00Z\"\n        }\n    ]\n}"}],"_postman_id":"a4f29abc-fa89-4ddf-abd8-a3cda0116b24"},{"name":"Get payment reasons","event":[{"listen":"test","script":{"id":"5e2a89a6-9ad3-4ac5-8523-090b4cfc115d","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Payment reasons are returned', () => {\r","   const data = pm.response.json().data;   \r","    pm.expect(data).length.greaterThan(-1)\r","});"],"type":"text/javascript"}}],"id":"8d6a6af1-0fe0-4a4f-881e-c0cb1c681903","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{}"},"url":"{{ApiBaseUrl}}/lookups/paymentreasons","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["lookups","paymentreasons"],"host":["{{ApiBaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"2b8efb12-87a6-40b6-909a-1c848992c7d2","name":"Get payment reasons","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{}"},"url":"{{ApiBaseUrl}}/lookups/paymentreasons"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Aug 2022 14:06:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800,report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=GhuofiE60x5x4szn5V1PUs1ly09q3cv8c4i6AGmE2tvqbdSUU6pj4LuiI9HUD5f5SIPdcSn5UT0IpZjU7WBIeJoihkIKrSDtfwl4iXoailCqaEyKhHtYdrA990QZhlpvcrxSorcXGFW%2FUFnmZqWBIAKt8ezv6nc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73f4693f0e1075c5-LHR"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"b4ad1d3d-924d-4392-99d6-cdf52c3bb144\",\n    \"status\": 200,\n    \"data\": [\n        {\n            \"code\": \"DTC\",\n            \"description\": \"Donation to Charity\"\n        },\n        {\n            \"code\": \"CCAS\",\n            \"description\": \"Inter-company xfer/Cash management\"\n        },\n        {\n            \"code\": \"INPY\",\n            \"description\": \"Investment payment\"\n        },\n        {\n            \"code\": \"LSRE\",\n            \"description\": \"Legal Services Rendered\"\n        },\n        {\n            \"code\": \"LOAR\",\n            \"description\": \"Loan repayment\"\n        },\n        {\n            \"code\": \"MOPY\",\n            \"description\": \"Mortgage payment\"\n        },\n        {\n            \"code\": \"PS\",\n            \"description\": \"Payment for services\"\n        },\n        {\n            \"code\": \"PG\",\n            \"description\": \"Purchase of goods\"\n        },\n        {\n            \"code\": \"ROYY\",\n            \"description\": \"Royalties payment\"\n        },\n        {\n            \"code\": \"GDSR\",\n            \"description\": \"Sale of goods or services/revenue\"\n        },\n        {\n            \"code\": \"REV\",\n            \"description\": \"Revenue\"\n        },\n        {\n            \"code\": \"ZZZZ\",\n            \"description\": \"Other\"\n        },\n        {\n            \"code\": \"PYRL\",\n            \"description\": \"Payroll\"\n        },\n        {\n            \"code\": \"CPPU\",\n            \"description\": \"Commercial property purchase\"\n        },\n        {\n            \"code\": \"DVPY\",\n            \"description\": \"Dividend payment\"\n        },\n        {\n            \"code\": \"OSPY\",\n            \"description\": \"Paying overseas suppliers\"\n        },\n        {\n            \"code\": \"ROER\",\n            \"description\": \"Repatriating overseas earnings (Salary or profits from a subsidiary)\"\n        },\n        {\n            \"code\": \"RRFI\",\n            \"description\": \"Repatriating returns from an investment\"\n        },\n        {\n            \"code\": \"BSHG\",\n            \"description\": \"Balance sheet hedging\"\n        }\n    ]\n}"}],"_postman_id":"8d6a6af1-0fe0-4a4f-881e-c0cb1c681903"},{"name":"Get GRG settlement bank details","event":[{"listen":"test","script":{"id":"5e2a89a6-9ad3-4ac5-8523-090b4cfc115d","exec":["pm.test('Api returns a status 200', () => {\r","     pm.response.to.have.status(200);\r","});\r","\r","pm.test('Banks are returned', () => {\r","   const data = pm.response.json().data.banks;   \r","    pm.expect(data).length.greaterThan(-1)\r","});"],"type":"text/javascript"}}],"id":"5c5af26e-01ef-4b9d-9cea-1bd1b11fcfaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{ApiBaseUrl}}/lookups/bankaccounts?iban=GB66","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}},"urlObject":{"path":["lookups","bankaccounts"],"host":["{{ApiBaseUrl}}"],"query":[{"disabled":true,"description":{"content":"<p>Filter by accno</p>\n","type":"text/plain"},"key":"accountNumber","value":"57339528"},{"description":{"content":"<p>Filter by iban</p>\n","type":"text/plain"},"key":"iban","value":"GB66"}],"variable":[]}},"response":[{"id":"0c49c03f-aae4-4c0a-8afa-aa73ceb60dae","name":"Get GRG settlement bank details","originalRequest":{"method":"GET","header":[{"key":"Api-Version","value":"v1.0","type":"text"},{"key":"Ocp-Apim-Subscription-Key","value":"{{ApimSubscriptionKey}}","type":"text"},{"key":"Account-Id","value":"{{AccountId}}","type":"text","disabled":true},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"{{ApiBaseUrl}}/lookups/bankaccounts?iban=GB66","host":["{{ApiBaseUrl}}"],"path":["lookups","bankaccounts"],"query":[{"key":"accountNumber","value":"57339528","description":"Filter by accno","disabled":true},{"key":"iban","value":"GB66","description":"Filter by iban"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Bst-Request-Id","value":"pQcZHj:SRnf:982390"},{"key":"X-Bst-Info","value":"t=1666601716,h=25a,p=68956_2662:2_12090,u=593342143,c=2320,c=100199,v=7.11.200100.82"},{"key":"Date","value":"Mon, 24 Oct 2022 08:55:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Encoding","value":"gzip"},{"key":"api-supported-versions","value":"1.0"},{"key":"environment","value":"UAT"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Server-Timing","value":"cf-q-config;dur=6.9999950937927e-06"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=H95dB%2Fe4JpdU1wa%2B0zBt4a%2F5s12uIynqJC7O41siiD9UxD4Voe9t7apE%2F9ki3jtLE5qlbgM6x6wa3gMxlAa5EGd%2BPqI4qo3m9GnZYWBmpl3tJjBrP%2BZAflsRA2kDe6q3w494mxKE7qiL9E6RfY1DyBP58VUSnzg%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"},{"key":"Request-Context","value":"appId=cid-v1:7056cbf6-6f47-4291-8792-700ecef5f124"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"75f17d240a4f405d-LHR"},{"key":"Content-Length","value":"449"},{"key":"Connection","value":"keep-alive"},{"key":"Via","value":"1.1 hosted.websense 25a"}],"cookie":[],"responseTime":null,"body":"{\n    \"uniqueRequestId\": \"5a4b8b04-2d46-4726-8ed6-1fed8d3739f6\",\n    \"status\": 200,\n    \"data\": {\n        \"banks\": [\n            {\n                \"name\": \"Global Reach Partners Ltd LTL Acc\",\n                \"currency\": \"LTL\",\n                \"bankDetails\": {\n                    \"name\": \"Barclays Bank Plc\",\n                    \"address\": {\n                        \"addressLine1\": \"Pall Mall\",\n                        \"city\": \"\",\n                        \"countryCode\": \"GB\"\n                    },\n                    \"accountNumber\": \"54290833\",\n                    \"sortCode\": \"200605\",\n                    \"iban\": \"GB66BARC20060554290833\",\n                    \"swiftCode\": \"BARCGB22\"\n                }\n            },\n            {\n                \"name\": \"GRP RE EU CHF Account\",\n                \"currency\": \"CHF\",\n                \"bankDetails\": {\n                    \"name\": \"Barclays Bank Plc\",\n                    \"address\": {\n                        \"addressLine1\": \"Pall Mall\",\n                        \"city\": \"\",\n                        \"countryCode\": \"GB\"\n                    },\n                    \"accountNumber\": \"66196322\",\n                    \"sortCode\": \"200605\",\n                    \"iban\": \"GB66BARC20060566196322\",\n                    \"swiftCode\": \"BARCGB22\"\n                }\n            },\n            {\n                \"name\": \"GRM BV RE ILS\",\n                \"currency\": \"ILS\",\n                \"bankDetails\": {\n                    \"name\": \"Barclays Bank Plc\",\n                    \"address\": {\n                        \"addressLine1\": \"Pall Mall\",\n                        \"city\": \"\",\n                        \"countryCode\": \"GB\"\n                    },\n                    \"accountNumber\": \"88378088\",\n                    \"sortCode\": \"200605\",\n                    \"iban\": \"GB66BARC20060588378088\",\n                    \"swiftCode\": \"BARCGB22\"\n                }\n            },\n            {\n                \"name\": \"GR FX BV BGN\",\n                \"currency\": \"BGN\",\n                \"bankDetails\": {\n                    \"name\": \"JPMorgan Chase Bank\",\n                    \"address\": {\n                        \"addressLine1\": \"National Association\",\n                        \"city\": \"London\",\n                        \"countryCode\": \"GB\"\n                    },\n                    \"accountNumber\": \"0016237538\",\n                    \"sortCode\": \"      \",\n                    \"iban\": \"GB66CHAS60924216237538\",\n                    \"swiftCode\": \"CHASGB2L\"\n                }\n            }\n        ],\n        \"filters\": {\n            \"iban\": \"GB66\"\n        }\n    }\n}"}],"_postman_id":"5c5af26e-01ef-4b9d-9cea-1bd1b11fcfaa"}],"id":"56614212-376c-46eb-ad10-db15403ccc2c","_postman_id":"56614212-376c-46eb-ad10-db15403ccc2c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","name":"Platform API","type":"folder"}}}],"id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0","description":"<h1 id=\"bootcamp\">Bootcamp</h1>\n<p>Warning: Do make sure you are in the sandbox environment - otherwise this will book trades in the live market, and you will be asked to fund them!</p>\n<p>In bootcamp, we aim to achieve the following:</p>\n<ol>\n<li>Get an FX rate ('Get a rate')</li>\n<li>Create a quote for an FX trade ('Create a quote')</li>\n<li>Book an FX trade ('Book trade from quote')</li>\n<li>Get the details of the FX trade ('Get a trade by ID')</li>\n<li>List all trades booked today ('List trades with filter')</li>\n</ol>\n<p>Take each of the endpoints listed above, and send a request (with all the default settings and parameters) to each one in turn.</p>\n<p>Make sure you have the console open (bottom of the screen) so you can see the messages as well as the request and response content. You will see that the pre-request scripts are automatically getting JWTs, and that the create a quote, book a trade and get a trade by id endpoints are sharing data with each other to make sure eg the quote id is passed to the book endpoint, and the trade id is then passed to the get endpoint.</p>\n<p>If you want to run them all in one shot, click on the 'Platform API' folder and hit the 'Run' button. Postman will then run all of the endpoints sequentially in the correct order.</p>\n<p>When you have completed this, you will have successfully got your first quote, booked the trade, then collected some reporting data.</p>\n<h1 id=\"behind-the-scenes\">Behind the Scenes</h1>\n<h2 id=\"authentication\">Authentication</h2>\n<p>Behind the scenes, our Postman collection automatically checks for a JWT token, and makes an authorisation call where necessary prior to executing the expected request. In the console logs, you can see this in action.</p>\n<p>We make use of Postman collection variables to store the collected JWT and associated information (such as expiry time and the environment for which the JWT was obtained).</p>\n<p>These 'Pre-request scripts' can be found by clicking on the 'Platform API' folder, and selecting 'Pre-request Script' in the Postman panel.</p>\n<p>You can see the collection variables by clicking on the 'GRG API' collection and clicking the 'Variables' tab.</p>\n<p>Here, you can also see the default test variables, ('<em>test</em>') as well as where we store the quoteId received when creating a quote, and the tradeId when executing a quote.</p>\n<h2 id=\"unique-request-protection\">Unique Request Protection</h2>\n<p>Our API implements 'unique request protection' (also known as idempotency protection) to prevent accidentally booking unintended transactions due to a networking/system/code error.</p>\n<p>In every request, the caller can specify a 'Unique-Request-Id' header. For some endpoints including booking from a trade quote, this header is mandatory. We highly recommend always generating this and setting for every call.</p>\n<p>When the header has not been specified, the platform will automatically generate one.</p>\n<p>This unique request id is always checked against previous calls to the API and if it has been seen before, a 409 Duplicate Request is returned.</p>\n<p>Otherwise, the unique request id is always returned in every single API response and if you ever need to contact us for support with a particular query, you should quote this ID.</p>\n<h1 id=\"standardised-response-structures\">Standardised Response Structures</h1>\n<h2 id=\"successful-responses\">Successful Responses</h2>\n<p>To enable future enhancements (such as returning more metadata) without making breaking changes, we wrap all returned data as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": 200,\n  \"uniqueRequestId\": \"1687beaf-2e31-45c9-8d7a-25a9f431a41b\",\n  \"data\": {\n    \"sell\": {\n      \"currency\": \"EUR\",\n      \"amount\": 1201.6\n    },\n    \"buy\": {\n      \"currency\": \"GBP\",\n      \"amount\": 1000\n    },\n    \"rate\": 1.2016,\n    \"createdDateTime\": \"2022-04-07T06:31:43Z\"\n  }\n}\n\n</code></pre>\n<h2 id=\"error-responses\">Error Responses</h2>\n<p>Our error responses are also standardised as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 400,\n    \"title\": \"Invalid request\",\n    \"errors\": \"Trade Id is invalid: 055c3215-7091-41cc-9ab3-9dc5cc401acb1\"\n}\n\n</code></pre>\n<p>In subsequent API versions, we will include an errorCode for simpler integration.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"79b17f7f-fbb3-427a-8e41-fe17ef831542","type":"text/javascript","exec":["var apimKey = pm.environment.get(\"ApimSubscriptionKey\");","//pm.collectionVariables.unset(\"jwtExpiry\");pm.collectionVariables.unset(\"jwt\");","ensureJWTExists();","","function ensureJWTExists(){","","    var jwt = pm.collectionVariables.get('jwt');","    var jwtExpiry = new Date(pm.collectionVariables.get('jwtExpiry'));","    ","    var timeObject = new Date();","    var updateJWT=false;","","    if (!jwt) {","      console.log(\"No JWT set.\");","      updateJWT=true;","    } else if (jwtExpiry.getTime() < timeObject.getTime()) {","        console.log(\"JWT has expired: jwt (\"+jwtExpiry+\") vs now (\"+timeObject+\")\");","        updateJWT=true;","        pm.collectionVariables.unset('jwt');","        pm.collectionVariables.unset('jwtExpiry');","        pm.collectionVariables.unset('jwtEnvironment');","    } else if (pm.collectionVariables.get('jwtEnvironment') != pm.environment.name) {","      console.log(\"JWT is for wrong environment. Expected \"+pm.collectionVariables.get('jwtEnvironment') +\" vs actual \" + pm.environment.name);","      updateJWT=true;","      pm.collectionVariables.unset('jwt');","      pm.collectionVariables.unset('jwtExpiry');","      pm.collectionVariables.unset('jwtEnvironment');","    } else {","      console.log(\"JWT is present and not expired:\"+jwtExpiry + \" vs \"+timeObject);","      }","","    if (updateJWT) {","","        var clientId = pm.environment.get(\"ClientId\");","        var clientSecret = encodeURIComponent(pm.environment.get(\"ClientSecret\"));","","        const body = \"client_id=\" + clientId + \"&client_secret=\" + clientSecret + \"&grant_type=client_credentials&scope=grg.api\";","","        const getTokenRequest = {","        method: 'POST',","        url: pm.environment.get(\"AuthBaseUrl\") + \"/auth\",","        header: {","            \"Accept\" : \"*/*\",","            \"Content-Type\" : \"application/x-www-form-urlencoded\",","            \"Ocp-Apim-Subscription-Key\" : apimKey","            },","        body: body ","        };","","        console.log(\"Requesting JWT token\");","        pm.sendRequest(getTokenRequest, (err, response) => {  ","            const jsonResponse = response.json();","            if (err) {","              console.error(jsonResponse.message);","              console.error(\"Please retry.\");","              pm.collectionVariables.unset('jwt');","              pm.collectionVariables.unset('jwtExpiry');","              pm.collectionVariables.unset('jwtEnvironment');","","            } else {","              var expiryTime = new Date(new Date().getTime() + ((jsonResponse.expires_in - 60)*1000));","              console.log(\"New JWT expiry time is:\"+expiryTime);","              pm.collectionVariables.set('jwt', jsonResponse.access_token);","              pm.collectionVariables.set('jwtExpiry',expiryTime);","              pm.collectionVariables.set('jwtEnvironment',pm.environment.name);","            }","        });","    }","};"]}},{"listen":"test","script":{"id":"a3eb8e6f-8c20-469e-9d88-ed477190a22a","type":"text/javascript","exec":[""]}}],"_postman_id":"3c7f7012-5c06-4e79-a0f3-f2b9445d3df0"}],"event":[{"listen":"prerequest","script":{"id":"6cc60f88-6a32-40a0-a8cf-987e8780fb44","type":"text/javascript","exec":["// Set the 'todays date' test variable","pm.collectionVariables.set('_test_todaysDate',new Date().toISOString().split('T')[0]);",""]}},{"listen":"test","script":{"id":"51188249-9561-418c-a2ed-4c6e9a96e4f7","type":"text/javascript","exec":[""]}}],"variable":[{"key":"jwt","value":""},{"key":"jwtExpiry","value":""},{"key":"quoteId","value":""},{"key":"bookedTradeIdFromQuote","value":""},{"key":"jwtEnvironment","value":""},{"key":"_test_trades_defaultBuyCurrency","value":"EUR","type":"string"},{"key":"_test_trades_defaultSellCurrency","value":"GBP","type":"string"},{"key":"_test_trades_defaultSellAmount","value":"1000","type":"string"},{"key":"_test_todaysDate","value":"","type":"string"},{"key":"beneficiaryId","value":""},{"key":"paymentId","value":""},{"key":"quoteIdWithPayments","value":""},{"key":"addedBeneficiaryId","value":""},{"key":"quoteIdWithNoAmountOnlyPayments","value":""}]}