{"info":{"_postman_id":"659958c7-9050-4eb2-bc75-b514b5c4607a","name":"NG Web API Public Documentation Collection","description":"<html><head></head><body><h1 id=\"eclipseng-public-api-endpoints\">EclipseNG Public API Endpoints</h1>\n<p>Please note that access to this API is read-only by default. If you require access to anything other than GET end points then please speak to our I.T. Department.</p>\n<h1 id=\"paged-endpoints\">Paged Endpoints</h1>\n<p>*This is a new standard which has limited rollout but should become increasingly common.</p>\n<p>If you encounter an end point which returns paged data you will be required to provide the following in the body of the request:</p>\n<ul>\n<li>PageNumber - (Mandatory)</li>\n<li>PageSize - (Mandatory)</li>\n</ul>\n<p>Additionally, you may provide:</p>\n<ul>\n<li>FilterExpressions - (Optional)</li>\n<li>SortExpressions - (Optional)</li>\n</ul>\n<p><em><strong>FilterExpressions</strong></em></p>\n<p>This is a an array containing one or more of the following model:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"FieldName\":\"PutFieldNameHere\",\n   \"FieldValue\":\"PutFieldValueHere\",\n   \"FilterFunction\":\"PutFilterFunctionHere\"\n}\n\n</code></pre>\n<p>The FilterFunction can be one of the following values:</p>\n<ul>\n<li>NoFilter = 0 (This is effectively the same as not providing the Filter Expression at all)</li>\n<li>Contains = 1</li>\n<li>DoesNotContain = 2</li>\n<li>StartsWith = 3</li>\n<li>EndsWith = 4</li>\n<li>EqualTo = 5</li>\n<li>NotEqualTo = 6</li>\n<li>GreaterThan = 7</li>\n<li>LessThan = 8</li>\n<li>GreaterThanOrEqualTo = 9</li>\n<li>LessThanOrEqualTo = 10</li>\n<li>IsEmpty = 13</li>\n<li>NotIsEmpty = 14</li>\n<li>IsNull = 15</li>\n<li>NotIsNUll = 16</li>\n<li>In = 17</li>\n<li>IsNotIn = 18</li>\n</ul>\n<p>Please consider the function you are attempting to use and whether it is appropriate for the data value you are attempting to search by. For example if you are searching on a date value a StartsWith filter function would not be suitable.</p>\n<p><em><strong>SortExpressions</strong></em></p>\n<p>This is a an array containing one or more of the following model:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"FieldName\":\"PutFieldNameHere\",\n   \"SortOrder\":\"SortOrder\"\n}\n\n</code></pre>\n<p>The Sort Order can be one of the following:</p>\n<ul>\n<li>None = 0</li>\n<li>Ascending = 1</li>\n<li>Descending = 2</li>\n</ul>\n<p>Please note that some requests will have a version 2 Endpoint as such the headers in the version 1 should have an obsolete header indicating that you should consume the version 2 moving forward.</p>\n<p><em><strong>GroupedFilterExpression</strong></em></p>\n<p>For more complex filtering we allow grouped filter expressions where they can be separated by an OR operator to search data at a granular level.</p>\n<p>This is an array containing two sets of filter expressions which are compared with the <code>FilterExpressionsUsingOR</code> field.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"GroupedFilterExpressions\": [\n        {\n            \"FilterExpressions\":\n            [\n                {\n                    \"FieldName\": \"Description\",\n                    \"FieldValue\": \"London CLI\",\n                    \"FilterFunction\": \"EqualTo\"\n                },\n                {\n                    \"FieldName\": \"Phonenumber\",\n                    \"FieldValue\": \"020\",\n                    \"FilterFunction\": \"Contains\"\n                }\n            ]\n        },\n        {\n            \"FilterExpressions\":\n            [\n                {\n                    \"FieldName\": \"Description\",\n                    \"FieldValue\": \"Manchester CLI\",\n                    \"FilterFunction\": \"EqualTo\"\n                },\n                {\n                    \"FieldName\": \"Phonenumber\",\n                    \"FieldValue\": \"0161\",\n                    \"FilterFunction\": \"Contains\"\n                }\n            ]\n        }\n    ],\n    \"FilterExpressionsUsingOR\": true,\n    \"SortExpressions\": [\n        {\n            \"FieldName\": \"LastUpdated\",\n            \"SortOrder\": 2\n        }\n    ],\n    \"PageNumber\": 1,\n    \"PageSize\": 500\n}\n\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"EclipseNG Public API Endpoints","slug":"eclipseng-public-api-endpoints"},{"content":"Paged Endpoints","slug":"paged-endpoints"}],"owner":"50512230","collectionId":"659958c7-9050-4eb2-bc75-b514b5c4607a","publishedId":"2sBXcGCe5L","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-02-23T16:19:18.000Z"},"item":[{"name":"Account\\Sales Managers","item":[{"name":"Get all account managers","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all account managers\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"ID found\", function () {","    pm.expect(pm.response.text()).to.include(\"id\");","});","","const jdata= pm.response.json();","","pm.test(\"User 'Admin' is found\", function () ","{","    for(let i of jdata)","    {","    //console.log(i);","    if (i.name===\"jjj\")","        {","         //console.log(\"OK\");   ","        }","    }","});","/*","pm.test(\"User 'Admin' is found\", function () ","{","    ","    var count = 1;","","   for (let i=0; i<jdata.length; i++)","   {","     if(jdata[i].name === \"Admin\")","     {","        count++;","        console.log(count);","        pm.expect(jdata[i].name).to.be.eql(\"Admin\");","     }","   //  if(jdata[i].name === \"markv\")","   //  {","   //     count++;","   //  }","   ","   }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","*/","//pick random id","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);","//console.log(random_item(jdata).id);","postman.setNextRequest('Get account manager by id');","",""],"type":"text/javascript","id":"f6420f94-d846-4382-957f-7a7fe38c352a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"283354c5-e02f-40be-bf59-f816fe44fe7c"}}],"id":"c95eeeb5-f66a-4894-814a-66e430eee593","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}accountmanagers","description":"<p>Returns a collection of account manager models containing all account mangers in the system.</p>\n","urlObject":{"host":["{{mainUrl}}accountmanagers"],"query":[],"variable":[]}},"response":[],"_postman_id":"c95eeeb5-f66a-4894-814a-66e430eee593"},{"name":"Get account manager by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Return one sales manager\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"d0322baf-c1b5-4764-a5e9-8d1aafb82046"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"9b602c5f-1a1c-4a3c-8f53-ca4fd59e12ba"}}],"id":"00fc7b14-d9ba-42ea-82b1-123a989e3287","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}accountmanagers/{{id}}","description":"<p>Returns an account manager model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}accountmanagers"],"query":[],"variable":[]}},"response":[],"_postman_id":"00fc7b14-d9ba-42ea-82b1-123a989e3287"},{"name":"Get all sales managers","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all sales managers\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"ID found\", function () {","    pm.expect(pm.response.text()).to.include(\"id\");","});","","let jdata= pm.response.json();","","var count = 0;","pm.test(\"User 'Admin' is found\", function () ","{","    ","    var count = 0;","    ","   for (let i=0; i<jdata.length; i++)","   {","     if(jdata[i].name === \"Admin\")","     {","        count++;","        pm.expect(jdata[i].name).to.be.eql(\"Admin\");","     }","    }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","","//pick random id","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);","console.log(random_item(jdata).id);","",""],"type":"text/javascript","id":"f20739be-5165-4113-bfae-aa51550d6621"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5046a082-9763-495d-9970-877f83bbe671"}}],"id":"6fce0eaf-9545-4f3b-abff-b0477820246f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"url":"{{mainUrl}}salesmanagers","description":"<p>Returns a collection of sales manager models containing all sales managers in the system.</p>\n","urlObject":{"host":["{{mainUrl}}salesmanagers"],"query":[],"variable":[]}},"response":[],"_postman_id":"6fce0eaf-9545-4f3b-abff-b0477820246f"},{"name":"Get sales manager by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Return one manager\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"d165d33a-e9f6-4457-9503-7b3c28a5093d"}},{"listen":"prerequest","script":{"exec":["/*const getManagers={","    url:\"{{base}}accountmanagers/\",","    method:\"GET\"","};","*/","",""],"type":"text/javascript","id":"168cd8c8-3985-4f3c-a867-2199648d6b64"}}],"id":"579a5c02-b739-46ec-99aa-908e51975265","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"CustomerKey","value":"{{customerKey}}","type":"text"}],"url":"{{mainUrl}}accountmanagers/{{id}}","description":"<p>Returns a sales manager model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}accountmanagers"],"query":[],"variable":[]}},"response":[],"_postman_id":"579a5c02-b739-46ec-99aa-908e51975265"}],"id":"2853cbb9-279d-4c69-bb79-9930ad6ff2a2","_postman_id":"2853cbb9-279d-4c69-bb79-9930ad6ff2a2","description":""},{"name":"Analysis","item":[{"name":"Get Analysis styles","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all analysis styles\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"ID found\", function () {","    pm.expect(pm.response.text()).to.include(\"id\");","});","","let jdata= pm.response.json();","","pm.test(\"Complete Analysis is found\", function () ","{","    ","    var count = 0;","    ","   for (let i=0; i<jdata.length; i++)","   {","     if(jdata[i].name === \"Complete Analysis\")","     {","        count++;","       pm.expect(jdata[i].name).to.be.eql(\"Complete Analysis\");","     }","   }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","","//pick random id","","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);","console.log(random_item(jdata).id);","postman.setNextRequest(\"Get Analysis styles by id\");"],"type":"text/javascript","id":"3aca5ccf-1077-401b-a988-3f1d737eff1a"}}],"id":"d0bcd619-8877-4b86-9992-a62c7aad5dcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}analysisstyles","description":"<p>Returns a collection of analysis style models containing all styles in the system.</p>\n","urlObject":{"host":["{{mainUrl}}analysisstyles"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0bcd619-8877-4b86-9992-a62c7aad5dcc"},{"name":"Get Analysis styles by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Found an analysis\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"109c32cd-7194-466b-bf19-9bf5d9f89fa6"}}],"id":"a6ad54fd-551f-4f68-9cbb-9669692247e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}analysisstyles/{{id}}","description":"<p>Returns an analysis style model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}analysisstyles"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6ad54fd-551f-4f68-9cbb-9669692247e3"}],"id":"88f11a1a-ebbd-4312-b362-691ce03fc713","_postman_id":"88f11a1a-ebbd-4312-b362-691ce03fc713","description":""},{"name":"Archives","item":[{"name":"Archives","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"0f7ec4de-8251-4e97-abb3-4a1475397b17"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7398c562-c928-47bf-b19b-a0efaab6d6ea"}}],"id":"6d533972-584b-423e-8bed-b92895fa5695","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}Archive/","description":"<p>Returns a collection of archive models that you have access to.\nThe id(s) of these models can be used when calling endpoints that require access to archived data.</p>\n","urlObject":{"path":[""],"host":["{{mainUrl}}Archive"],"query":[],"variable":[]}},"response":[],"_postman_id":"6d533972-584b-423e-8bed-b92895fa5695"}],"id":"0b0b5fe3-1972-45cc-bdfa-ff5d534f0daf","_postman_id":"0b0b5fe3-1972-45cc-bdfa-ff5d534f0daf","description":""},{"name":"Bill Charges","item":[{"name":"Add new charge","event":[{"listen":"test","script":{"exec":["","","let jdata=pm.response.json();","pm.globals.set(\"id\", jdata.id);","pm.globals.set(\"customer_id\", jdata.customer_id);","pm.globals.set(\"tel_id\", jdata.tel_id);","","","pm.test(\"Add a charge\", function () {","    pm.response.to.have.status(201);","});"],"type":"text/javascript","id":"9e87f90e-5d8b-4c7e-92fb-b99ec3cdee86"}}],"id":"36270f79-7613-4db4-9510-6879acfa2d44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": 139,\n  \"numberId\": 40318,\n  \"productId\": 20,\n  \"startDate\": \"2019-06-26\",\n  \"refNo\": \"\",\n  \"repeatCode\": 1,\n  \"quantity\": 1,\n  \"supplierFilter\": \"\"\n}"},"url":"{{mainUrl}}billcharges","description":"<p>Adds a new charge to either an account or CLI. </p>\n","urlObject":{"host":["{{mainUrl}}billcharges"],"query":[],"variable":[]}},"response":[],"_postman_id":"36270f79-7613-4db4-9510-6879acfa2d44"},{"name":"Get bill charges by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Get one charge\", function () {","    pm.response.to.have.status(200);","});","","//pm.globals.unset(\"id\");"],"type":"text/javascript","id":"cbff0253-d8cb-416a-90d9-6c366cd43580"}}],"id":"148a657a-b445-42bb-9514-d29e3d42b5f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billcharges/{{id}}","description":"<p>Returns a charge model matching the ID provided.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}billcharges"],"query":[],"variable":[]}},"response":[],"_postman_id":"148a657a-b445-42bb-9514-d29e3d42b5f6"},{"name":"Get bill charges by customer","event":[{"listen":"test","script":{"exec":["pm.test(\"Get charge(s) from a customer\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"a5f9e3f4-09ec-4438-99d5-38a15fd23d0a"}}],"id":"6ea94d86-c7e9-415b-8e13-ef533ee85318","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}customers/{{customer_id}}/billcharges","description":"<p>Returns a collection of charge models that will contain all of the charges that are linked to a customer. </p>\n<p>\nAccount level charges are those charge models where the tel_id field is set to 0.\n</p>\n<p>\nNumber level charges are those charge models where the tel_id field is greater than 0.\n</p>\n","urlObject":{"path":["{{customer_id}}","billcharges"],"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ea94d86-c7e9-415b-8e13-ef533ee85318"},{"name":"Get bill charges by phone number","event":[{"listen":"test","script":{"exec":["pm.test(\"Get charge(s) from a phone number\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"aad3d506-a04c-46ec-a5a0-56105746c10d"}}],"id":"0815ab9c-7cc7-44e8-b2e8-de6855fc7ee0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}"}],"url":"{{mainUrl}}phonenumbers/{{tel_id}}/billcharges","description":"<p>Returns a collection of charge models that are linked to a specific CLI/Phonenumber.</p>\n","urlObject":{"path":["{{tel_id}}","billcharges"],"host":["{{mainUrl}}phonenumbers"],"query":[],"variable":[]}},"response":[],"_postman_id":"0815ab9c-7cc7-44e8-b2e8-de6855fc7ee0"},{"name":"Get all repeat periods","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"229c949b-4cbb-4ddf-89e0-57ceb49ba31f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"696aaae1-2607-43ce-b1e7-b161a8fed6c3"}}],"id":"8faceded-fece-4b11-aa2a-9de2e538b170","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"CustomerId\": 144,\r\n    \"FromDate\": \"\",\r\n    \"ToDate\": \"\",\r\n    \"StartInvoiceNo\": null,\r\n    \"EndInvoiceNo\": null,\r\n    \"PONumber\": null\r\n}"},"url":"{{mainUrl}}billcharges/repeatcodes","urlObject":{"path":["repeatcodes"],"host":["{{mainUrl}}billcharges"],"query":[],"variable":[]}},"response":[],"_postman_id":"8faceded-fece-4b11-aa2a-9de2e538b170"},{"name":"Update charge","event":[{"listen":"test","script":{"exec":["pm.test(\"A charge is updated\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"a213a0fc-dab1-496f-9a26-60d7a2a06550"}}],"id":"3106d67a-8c9b-48c7-8d05-29d1034d81c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"refNo\": \"Updated\",\r\n  \"repeatCode\": 1,\r\n  \"quantity\": 1,\r\n  \"description\": \"Updated text\",\r\n  \"unitPrice\": 20,\r\n  \"buyPrice\": 0,\r\n  \"startDate\": \"2018-10-10\",\r\n  \"endDate\": \"\",\r\n  \"lastTo\": \"\",\r\n  \"applyWhen\": 0,\r\n  \"credit\": false\r\n}"},"url":"{{mainUrl}}billcharges/{{id}}","description":"<p>Updates a charge in the system.</p>\n<p>\n<b>Note</b>\nThere are certain restrictions on the kind of changes that can be applied. These include the following.\n</p><ul>\n    <li>A product cannot be changed on a live charge.</li>\n    <li>Some values cannot be changed if the charge is included on a Bill that has been finalised. </li>\n</ul>\n<p></p>\n\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}billcharges"],"query":[],"variable":[]}},"response":[],"_postman_id":"3106d67a-8c9b-48c7-8d05-29d1034d81c9"},{"name":"End charge","event":[{"listen":"test","script":{"exec":["pm.test(\"Charge is ended\", function () {","    pm.response.to.have.status(204);","});","","","pm.globals.unset(\"delete date\");"],"type":"text/javascript","id":"c39c9f9b-3f46-41d9-bfef-b68ed70c9728"}},{"listen":"prerequest","script":{"exec":["var sdate = new Date();"," sdate.setDate(sdate.getDate() + 1);","","pm.globals.set(\"delete date\", sdate);","",""],"type":"text/javascript","id":"827b50ed-cbce-474f-a74e-f87dd0ed9b14"}}],"id":"ec25e518-109f-40ac-8024-e8c264ba3d12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"'{{delete date}}'\r\n"},"url":"{{mainUrl}}billcharges/{{id}}/end","description":"<p>Ends a charge on the system.\nThis will set the date beyond which the charge will no longer bill. if the date is before the last to date (date the charge has already been billed to) then a credit will be generated unless the Credit flag is set to false.</p>\n","urlObject":{"path":["{{id}}","end"],"host":["{{mainUrl}}billcharges"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec25e518-109f-40ac-8024-e8c264ba3d12"},{"name":"Delete charge","event":[{"listen":"test","script":{"exec":["pm.test(\"Deleted a record\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");","pm.globals.unset(\"customer_id\");","pm.globals.unset(\"tel_id\");",""],"type":"text/javascript","id":"b2f93c53-9b20-4e41-8b1e-d8307f447671"}},{"listen":"prerequest","script":{"exec":["",""],"type":"text/javascript","id":"1c7ad1f5-f22a-4094-b7d2-d4ba1c53c56a"}}],"id":"95ef67f0-eb53-453d-ac8f-e7b931a2c6e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billcharges/{{id}}","description":"<p>Deletes a charge from the system.\nOnce removed it cannot be restored.\n<strong>Note</strong> \nCharges contained on a bill that has been finalised cannot be deleted.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}billcharges"],"query":[],"variable":[]}},"response":[],"_postman_id":"95ef67f0-eb53-453d-ac8f-e7b931a2c6e0"},{"name":"Search Account Level Charges Paged","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"ba6c4d32-cd0a-446a-ba9e-a43f63123ad9"}}],"id":"37908dc6-6e83-48cf-83db-3cbc0f318cbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"CustomerId\",\r\n            \"FieldValue\": \"2\",\r\n            \"FilterFunction\": 5\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}Charge/SearchAccountLevelChargesPaged","description":"<p>Allows paged searching of bill charge records. Returns a paged collection of account level charge models.</p>\n<p>Please view the <a href=\"#paged-endpoints\">Paged Endpoints</a> section in the introduction which details the paged search functionality.</p>\n","urlObject":{"path":["SearchAccountLevelChargesPaged"],"host":["{{mainUrl}}Charge"],"query":[],"variable":[]}},"response":[{"id":"2f1a9eb4-387e-412c-9a93-6cea01a8c3b4","name":"Search Account Level Charges Paged","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"ProductId\",\r\n            \"FieldValue\": 25,\r\n            \"FilterFunction\": 5\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}Charge/SearchAccountLevelChargesPaged"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"currentPage\": 1,\r\n    \"totalPages\": 1,\r\n    \"totalItems\": 1,\r\n    \"itemsPerPage\": 10,\r\n    \"items\": [\r\n        {\r\n            \"id\": 1,\r\n            \"customerId\": 2,\r\n            \"telId\": 0,\r\n            \"productId\": 25,\r\n            \"description\": \"Call Forwarding\",\r\n            \"quantity\": 1,\r\n            \"unitPrice\": 250.0000,\r\n            \"vat\": 50.0000,\r\n            \"repeat\": 1,\r\n            \"startDate\": \"2021-06-08T00:00:00Z\",\r\n            \"endDate\": null,\r\n            \"lastToDate\": \"2022-07-31T00:00:00Z\",\r\n            \"billValue\": 0.0000,\r\n            \"refNo\": \"\",\r\n            \"creator\": \"inform\",\r\n            \"oldLastToDate\": null,\r\n            \"creditOnDisconnection\": true,\r\n            \"charged\": true,\r\n            \"oldEndDate\": null,\r\n            \"buyPrice\": 150.0000,\r\n            \"supplierFilter\": \"\",\r\n            \"closedCycleCharge\": false,\r\n            \"dateChargeAdded\": \"2022-06-08T16:31:06.437Z\",\r\n            \"isBundleCharge\": false,\r\n            \"dealerId\": null,\r\n            \"suppressZeroCharges\": false,\r\n            \"lastUpdated\": \"2022-08-09T10:36:05.0864553+01:00\"\r\n        }\r\n    ]\r\n}"}],"_postman_id":"37908dc6-6e83-48cf-83db-3cbc0f318cbb"},{"name":"Search Number Level Charges Paged","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"a5ec9628-a30d-4394-aac5-fb3513e8b953"}}],"id":"97cc9f0c-4e23-4788-8e6c-1d8898e1e8de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"CustomerId\",\r\n            \"FieldValue\": \"2\",\r\n            \"FilterFunction\": 5\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}Charge/SearchNumberLevelChargesPaged","description":"<p>Allows paged searching of bill charge records. Returns a paged collection of number level charge models.</p>\n<p>Please view the <a href=\"#paged-endpoints\">Paged Endpoints</a> section in the introduction which details the paged search functionality.</p>\n","urlObject":{"path":["SearchNumberLevelChargesPaged"],"host":["{{mainUrl}}Charge"],"query":[],"variable":[]}},"response":[{"id":"870631a8-fd25-44d7-9491-42c6c86ace11","name":"Search Number Level Charges Paged","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"Quantity\",\r\n            \"FieldValue\": 5,\r\n            \"FilterFunction\": 9\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}Charge/SearchNumberLevelChargesPaged"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"currentPage\": 1,\r\n    \"totalPages\": 1,\r\n    \"totalItems\": 1,\r\n    \"itemsPerPage\": 10,\r\n    \"items\": [\r\n        {\r\n            \"id\": 4,\r\n            \"customerId\": 2,\r\n            \"telId\": 2,\r\n            \"productId\": 18,\r\n            \"description\": \"ISDN2 Installation\",\r\n            \"quantity\": 5,\r\n            \"unitPrice\": 99.0000,\r\n            \"vat\": 19.8000,\r\n            \"repeat\": 1,\r\n            \"startDate\": \"2022-04-01T00:00:00Z\",\r\n            \"endDate\": \"2022-12-31T00:00:00Z\",\r\n            \"lastToDate\": \"2022-07-29T00:00:00Z\",\r\n            \"billValue\": 1.0000,\r\n            \"refNo\": \"12\",\r\n            \"creator\": \"inform\",\r\n            \"oldLastToDate\": \"2022-11-11T00:00:00Z\",\r\n            \"creditOnDisconnection\": true,\r\n            \"charged\": true,\r\n            \"oldEndDate\": \"2023-01-01T00:00:00Z\",\r\n            \"buyPrice\": 1.3000,\r\n            \"supplierFilter\": \"NG Testing Basic Filter\",\r\n            \"closedCycleCharge\": true,\r\n            \"dateChargeAdded\": \"2022-07-15T14:38:47.623Z\",\r\n            \"isBundleCharge\": true,\r\n            \"dealerId\": null,\r\n            \"suppressZeroCharges\": true,\r\n            \"lastUpdated\": \"2022-08-08T14:10:03.9126746+01:00\"\r\n        }\r\n    ]\r\n}"}],"_postman_id":"97cc9f0c-4e23-4788-8e6c-1d8898e1e8de"},{"name":"Get Service Charges Paged","id":"0b3d85bc-c04b-4667-9411-5161b3885e56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\n  \"GroupedFilterExpressions\": [\n        {\n             \"FilterExpressions\": \n             [{\n                    \"FieldName\":\"phonenumber\",\n                    \"FieldValue\":\"30004412\",\n                    \"FilterFunction\":\"Contains\"\n            }]\n        }\n        \n    ],\n    \"SortExpressions\": [{\n        \"FieldName\":\"description\",\n        \"sortOrder\":2\n    }],\n    \"PageNumber\": 1,\n    \"PageSize\": 501\n}"},"url":"{{mainUrl}}Charge/GetServiceCharges","description":"<p>Allows paged searching of bill charge records. Returns a paged collection of service charge models.</p>\n<p>Please view the <a href>Paged Endpoints</a> section in the introduction which details the paged search functionality.</p>\n","urlObject":{"path":["GetServiceCharges"],"host":["{{mainUrl}}Charge"],"query":[],"variable":[]}},"response":[{"id":"e52e02dd-4c64-419f-af14-5b2d051ad374","name":"Get Service Charges Paged","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\n  \"GroupedFilterExpressions\": [\n        {\n             \"FilterExpressions\": \n             [{\n                    \"FieldName\":\"phonenumber\",\n                    \"FieldValue\":\"30004412\",\n                    \"FilterFunction\":\"Contains\"\n            }]\n        }\n        \n    ],\n    \"SortExpressions\": [{\n        \"FieldName\":\"description\",\n        \"sortOrder\":2\n    }],\n    \"PageNumber\": 1,\n    \"PageSize\": 501\n}"},"url":"{{mainUrl}}Charge/GetServiceCharges"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcanNtaXRoXHNvdXJjZVxyZXBvc1xFY2xpcHNlTkdfTmV3QXJjaGl0ZWN0dXJlXEluZm9ybUJpbGxpbmcuRWNsaXBzZU5HXEVjbGlwc2VORy5XZWJBcGlcQ2hhcmdlXEdldFNlcnZpY2VDaGFyZ2Vz?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 11 Aug 2023 12:41:36 GMT"},{"key":"Content-Length","value":"2435"}],"cookie":[],"responseTime":null,"body":"{\n    \"currentPage\": 1,\n    \"totalPages\": 1,\n    \"totalItems\": 2,\n    \"itemsPerPage\": 501,\n    \"items\": [\n        {\n            \"phonenumber\": \"30004412\",\n            \"numberType\": \"Mobile\",\n            \"numberDescription\": \"1120A6447\",\n            \"billPlanName\": \"New Bill Plan00\",\n            \"productCode\": \"ZSA800\",\n            \"description\": \"ZSA800 - Description\",\n            \"serialno\": \"\",\n            \"dealer\": null,\n            \"quantity\": 1,\n            \"price\": 10,\n            \"buyprice\": 0,\n            \"start\": \"2020-08-12T00:00:00Z\",\n            \"end\": null,\n            \"lastto\": \"2022-08-31T00:00:00Z\",\n            \"repeatDescription\": \"Every year\",\n            \"supplier_filter\": \"Self Bill\",\n            \"applywhenvalue\": 0,\n            \"credit\": true,\n            \"username\": \"test_Inform\",\n            \"islinerental\": false,\n            \"billPlanClosed\": false,\n            \"customerHasPriceList\": false,\n            \"productAvailableOnPriceList\": true,\n            \"inactiveCharge\": false,\n            \"id\": 24226,\n            \"customer_id\": 4,\n            \"tel_id\": 52290,\n            \"product_id\": 299,\n            \"vat\": 2,\n            \"repeat\": 12,\n            \"oldlastto\": null,\n            \"link_id\": 0,\n            \"charged\": false,\n            \"oldenddate\": null,\n            \"provisioncharge\": false,\n            \"disconnected\": false,\n            \"tpackage_name\": null,\n            \"productType\": \"BILLING\",\n            \"carrier_id\": -2,\n            \"name\": null,\n            \"txtFor\": \"\",\n            \"number_con_date\": \"2020-08-12T00:00:00Z\",\n            \"applied_individual_bundle_id\": null,\n            \"applied_bundle_is_one_off\": null,\n            \"hasChildCharges\": false,\n            \"closed_cycle_charge\": false,\n            \"billing_id\": 2245,\n            \"number_disconnect_date\": null,\n            \"charge_source_package_id\": null,\n            \"inb_source_package_id\": 0,\n            \"linked_package_code\": null,\n            \"linked_package_name\": null\n        },\n        {\n            \"phonenumber\": \"30004412\",\n            \"numberType\": \"Mobile\",\n            \"numberDescription\": \"1120A6447\",\n            \"billPlanName\": \"New Bill Plan00\",\n            \"productCode\": \"22_SCREEN\",\n            \"description\": \"nvgdfhjf\",\n            \"serialno\": \"\",\n            \"dealer\": null,\n            \"quantity\": 1,\n            \"price\": 5,\n            \"buyprice\": 2.72,\n            \"start\": \"2020-08-12T00:00:00Z\",\n            \"end\": null,\n            \"lastto\": \"2021-05-28T00:00:00Z\",\n            \"repeatDescription\": \"Do not repeat - one off\",\n            \"supplier_filter\": \"Unreconciled\",\n            \"applywhenvalue\": 0,\n            \"credit\": true,\n            \"username\": \"test_Inform\",\n            \"islinerental\": false,\n            \"billPlanClosed\": false,\n            \"customerHasPriceList\": false,\n            \"productAvailableOnPriceList\": true,\n            \"inactiveCharge\": true,\n            \"id\": 24227,\n            \"customer_id\": 4,\n            \"tel_id\": 52290,\n            \"product_id\": 50,\n            \"vat\": 1,\n            \"repeat\": 0,\n            \"oldlastto\": null,\n            \"link_id\": 0,\n            \"charged\": false,\n            \"oldenddate\": null,\n            \"provisioncharge\": false,\n            \"disconnected\": false,\n            \"tpackage_name\": null,\n            \"productType\": \"BILLING\",\n            \"carrier_id\": 0,\n            \"name\": null,\n            \"txtFor\": \"\",\n            \"number_con_date\": \"2020-08-12T00:00:00Z\",\n            \"applied_individual_bundle_id\": null,\n            \"applied_bundle_is_one_off\": null,\n            \"hasChildCharges\": false,\n            \"closed_cycle_charge\": true,\n            \"billing_id\": 2245,\n            \"number_disconnect_date\": null,\n            \"charge_source_package_id\": null,\n            \"inb_source_package_id\": 0,\n            \"linked_package_code\": null,\n            \"linked_package_name\": null\n        }\n    ]\n}"}],"_postman_id":"0b3d85bc-c04b-4667-9411-5161b3885e56"}],"id":"8bf9c3f5-140c-4619-8696-6f38785c407c","description":"<p>This section contains the Bill Charges API endpoints.</p>\n","_postman_id":"8bf9c3f5-140c-4619-8696-6f38785c407c"},{"name":"Bill Plans","item":[{"name":"Add bill plan","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"1686e72c-3799-498a-b533-6921f70e8447"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"995351fe-c385-44a1-b1ac-288fba575f31"}}],"id":"250b6101-6ef4-41ab-a437-148aa04e97c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"customerId\": 1,\r\n  \"billPlanId\": 0,\r\n  \"copy\": false,\r\n  \"numCopies\": 1\r\n}"},"url":"{{mainUrl}}billplans","description":"<p>Adds a new bill plan to the system. \nA bill plan must be linked to a customer and is required before adding Phonenumbers/CLIs to the Database.</p>\n","urlObject":{"host":["{{mainUrl}}billplans"],"query":[],"variable":[]}},"response":[],"_postman_id":"250b6101-6ef4-41ab-a437-148aa04e97c4"},{"name":"Get all phone numbers by bill plan id","id":"560d4cb3-c0b7-4aa5-8482-85f7cc77fe5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billplans/{{billplanid}}phonenumbers","description":"<p>Returns a collection of phonenumber models containing all of the phonenumbers assigned to the bill plan ID passed.</p>\n","urlObject":{"path":["{{billplanid}}phonenumbers"],"host":["{{mainUrl}}billplans"],"query":[],"variable":[]}},"response":[],"_postman_id":"560d4cb3-c0b7-4aa5-8482-85f7cc77fe5b"},{"name":"Get bill plan by customer id","event":[{"listen":"test","script":{"exec":["pm.test(\"Get a bill plan by customer\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","pm.globals.set(\"billingid\", random_item(jdata).id);"],"type":"text/javascript","id":"939c4c46-5027-4bd6-ad6e-6c824f2de73c"}}],"id":"7198accc-0e28-4507-84a6-525fa512280b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}customers/{{customerid}}/billplans","description":"<p>Returns a bill plan model matching the ID provided.</p>\n","urlObject":{"path":["{{customerid}}","billplans"],"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"7198accc-0e28-4507-84a6-525fa512280b"},{"name":"Update bill plan by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Bill plan created\", function () {","    pm.response.to.have.status(200);","});","","//let jdata=pm.response.json();","//pm.globals.set(\"id\", jdata.id);"],"type":"text/javascript","id":"ea5e06f4-3a00-4dc3-8d2c-cd156d813cd2"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d5cf2841-9ac5-4fdd-a7fe-f4df78b75408"}}],"id":"62550310-98e0-48e9-9333-0192cc4075bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"New bill plan\",\r\n  \"site_Contact\": \"\",\r\n  \"site_address\": \"\",\r\n  \"sysmanufac\": \"\",\r\n  \"sysyearinst\": 0,\r\n  \"syssoftver\": \"\",\r\n  \"sysprogrammable\": false,\r\n  \"sysext\": 0,\r\n  \"sys2ndary_id\": 0,\r\n  \"syscostmaint\": 0,\r\n  \"sysnumlines\": 0,\r\n  \"offerlcr\": false,\r\n  \"plan_id\": 0,\r\n  \"pabx_notes\": \"\",\r\n  \"email\": \"no email address specified\",\r\n  \"sumprint\": false,\r\n  \"sumtomain\": false,\r\n  \"sumtobplan\": false,\r\n  \"sumshowsaving\": false,\r\n  \"sumshowext\": false,\r\n  \"sumaddtext\": \"\",\r\n  \"analprint\": false,\r\n  \"analtomain\": false,\r\n  \"analtobplan\": false,\r\n  \"analStyle\": 1,\r\n  \"tpsum\": false,\r\n  \"tpanal\": false,\r\n  \"tpitem\": false,\r\n  \"tesumac\": false,\r\n  \"teanalac\": false,\r\n  \"teitemac\": false,\r\n  \"tesumbp\": false,\r\n  \"teanalbp\": false,\r\n  \"teitembp\": false,\r\n  \"tesumus\": false,\r\n  \"teanalus\": false,\r\n  \"teitemus\": false,\r\n  \"tanalstyle\": 1,\r\n  \"tsumshowsave\": false,\r\n  \"tecdrac\": false,\r\n  \"tecdrbp\": false,\r\n  \"tecdrus\": false,\r\n  \"Custom1\": \"Test\",\r\n  \"Custom2\": \"Test1\",\r\n  \"Custom3\": \"Datalist\"\r\n}\r\n}"},"url":"{{mainUrl}}billplans/{{billingid}}","description":"<p>Updates a single bill plan.</p>\n","urlObject":{"path":["{{billingid}}"],"host":["{{mainUrl}}billplans"],"query":[],"variable":[]}},"response":[],"_postman_id":"62550310-98e0-48e9-9333-0192cc4075bb"},{"name":"Get a bill plan by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Get a bill plan\", function () {","    pm.response.to.have.status(200);","});","","","//pm.globals.unset(\"billid\");"],"type":"text/javascript","id":"0d1ac44f-0c15-40c1-a261-ff8faa2f2b24"}}],"id":"788f0655-b0cd-4094-bce4-890238099c86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billplans/{{billingid}}","description":"<p>Returns a bill plan model matching the ID that has been provided.</p>\n","urlObject":{"path":["{{billingid}}"],"host":["{{mainUrl}}billplans"],"query":[],"variable":[]}},"response":[],"_postman_id":"788f0655-b0cd-4094-bce4-890238099c86"},{"name":"Search bill plan phonumbers by description","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"c190c33b-bda5-4049-884c-f14ec11cddfd"}},{"listen":"test","script":{"exec":["pm.test(\"Match found\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"bebadccc-fd9d-48ce-821e-70a8099fd011"}}],"id":"468643fe-638a-4073-bc85-3b88ef48e95b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billplans/{{billingid}}/phonenumbers?search={{searchParameter}}","description":"<p>Returns a collection of phonenumber models containing zero to many result based on the criteria passed.</p>\nParameters are:\n<p>Number - this is a partial match </p>\n<p>numberStatus - All = 0, Connected = 1, Disconnected = 2 </p>\n<p>accountType  \nAll = 0, Customer= 1, Dealer = 2, Supplier = 3, Reseller = 4, Contact = 5, Prospect = 6</p>\n<p>start&gt;</p>\n<p>end</p>","urlObject":{"path":["{{billingid}}","phonenumbers"],"host":["{{mainUrl}}billplans"],"query":[{"key":"search","value":"{{searchParameter}}"}],"variable":[]}},"response":[],"_postman_id":"468643fe-638a-4073-bc85-3b88ef48e95b"},{"name":"Delete bill plan","event":[{"listen":"test","script":{"exec":["pm.test(\"Bill plan deleted\", function () {","    pm.response.to.have.status(200);","});","","","pm.globals.unset(\"billingid\");"],"type":"text/javascript","id":"df6519d8-5b88-4ca9-b1ba-d07c8e42134e"}},{"listen":"prerequest","script":{"exec":["var data= [2159,2158,2157,2156];","var current=data[Math.floor(Math.random()*data.length)];","","","pm.globals.set(\"billid\", current);"],"type":"text/javascript","id":"999052d8-54f8-4afc-9ac6-46f1ac30f4e1"}}],"id":"5b8ab5ae-e5f4-4fe5-a780-a315c90e339f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billplans/{{billingid}}","description":"<p>Deletes the bill plan and all number and charges connected to the bill plan\n<strong>Note - Once deleted this cannot be reversed</strong></p>\n<p>\nThe following list details reasons why you might not be able to delete a bill plan.\n</p><ul>\n    <li>The bill plan contains active number(s) </li>\n    <li>The customer has a finalised invoice </li>\n</ul>\n<p></p>","urlObject":{"path":["{{billingid}}"],"host":["{{mainUrl}}billplans"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b8ab5ae-e5f4-4fe5-a780-a315c90e339f"},{"name":"Search Bill Plans Paged","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"b25a48d2-69fe-4a17-8011-b1964b3da019"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"aa4c7052-62e5-459a-923b-d29e2fdd6df4"}}],"id":"8e30b4ed-ed02-447c-8db1-c8c237d11633","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"IsClosed\",\r\n            \"FieldValue\": false,\r\n            \"FilterFunction\": 5\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}"},"url":"{{mainUrl}}BillPlans/SearchBillPlansPaged","description":"<p>Allows paged searching of bill plan records. Returns a paged collection of bill plan models.</p>\n<p>Please view the <a href=\"#paged-endpoints\">Paged Endpoints</a> section in the introduction which details the paged search functionality.</p>\n","urlObject":{"path":["SearchBillPlansPaged"],"host":["{{mainUrl}}BillPlans"],"query":[],"variable":[]}},"response":[{"id":"a552ba9c-670e-4254-93fc-7d52822b1835","name":"Search Bill Plans Paged","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"},{"key":"customerKey","value":"123456","type":"text"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"FieldValue\": 1956,\r\n            \"FilterFunction\": 5\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"https://development.eclipse-billing.co.uk/APISERVICES/BillPlans/SearchBillPlansPaged"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"currentPage\": 1,\r\n    \"totalPages\": 1,\r\n    \"totalItems\": 1,\r\n    \"itemsPerPage\": 10,\r\n    \"items\": [\r\n        {\r\n            \"id\": 1956,\r\n            \"customerId\": 2,\r\n            \"name\": \"Please enter billing plan name here\",\r\n            \"siteContact\": \"testing site contact\",\r\n            \"siteAddress\": \"testing address\",\r\n            \"systemManufacturer\": \"1\",\r\n            \"systemModel\": \"1\",\r\n            \"systemYearOfInstallation\": 1,\r\n            \"systemSoftwareVersion\": \"1\",\r\n            \"systemProgrammable\": true,\r\n            \"systemNumberOfExtensions\": 1,\r\n            \"systemContractRenewalDate\": \"2022-07-26T12:46:52.317Z\",\r\n            \"systemMaintainer\": 1,\r\n            \"systemMaintenanceCost\": 1.6000000238418579,\r\n            \"systemNumberOfLines\": 1,\r\n            \"maintainerOffersLcr\": true,\r\n            \"pabxNotes\": \"Note example\",\r\n            \"email\": \"no email address specified\",\r\n            \"summaryPagePrint\": true,\r\n            \"summaryAccountAddress\": true,\r\n            \"summaryBillingPlanAddress\": true,\r\n            \"summaryShowSaving\": true,\r\n            \"summaryExtensionBill\": true,\r\n            \"summaryAdditionalText\": \"sdfe\",\r\n            \"summaryAnalysisPrint\": true,\r\n            \"summaryAnalysisAccountAddress\": true,\r\n            \"summaryAnalysisBillingPlanAddress\": true,\r\n            \"summaryAnalysisStyle\": 0,\r\n            \"custom1\": \"test1\",\r\n            \"custom2\": \"test2\",\r\n            \"custom3\": \"test3\",\r\n            \"custom4\": \"test4\",\r\n            \"custom5\": \"test5\",\r\n            \"custom6\": \"test6\",\r\n            \"custom7\": \"test7\",\r\n            \"custom8\": \"test8\",\r\n            \"custom9\": \"test9\",\r\n            \"custom10\": \"test10\",\r\n            \"custom11\": \"test11\",\r\n            \"custom12\": \"test12\",\r\n            \"custom13\": \"test13\",\r\n            \"custom14\": \"test14\",\r\n            \"custom15\": \"test15\",\r\n            \"defaultNewCliSummaryPagePrint\": true,\r\n            \"defaultNewCliAnalysisPrint\": true,\r\n            \"defaultNewCliItemisationPrint\": true,\r\n            \"defaultNewCliSummaryAccountAddress\": true,\r\n            \"defaultNewCliAnalysisAccountAddress\": true,\r\n            \"defaultNewCliItemisationAccountAddress\": true,\r\n            \"defaultNewCliSummaryBillingPlanAddress\": true,\r\n            \"defaultNewCliAnalysisBillingPlanAddress\": true,\r\n            \"defaultNewCliItemisationBillingPlanAddress\": true,\r\n            \"defaultNewCliSummaryUserCliAddress\": true,\r\n            \"defaultNewCliAnalysisUserCliAddress\": true,\r\n            \"defaultNewCliItemisationUserCliAddress\": true,\r\n            \"defaultNewCliAnalysisStyle\": 0,\r\n            \"defaultNewCliSummaryShowSaving\": true,\r\n            \"defaultNewCliCdrsAccountAddress\": true,\r\n            \"defaultNewCliCdrsBillingPlanAddress\": true,\r\n            \"defaultNewCliCdrsUserCliAddress\": true,\r\n            \"isClosed\": true,\r\n            \"closedDate\": \"2022-06-16T12:23:05.99Z\",\r\n            \"lastUpdated\": \"2022-07-27T09:14:03.7545601+01:00\"\r\n        }\r\n    ]\r\n}"}],"_postman_id":"8e30b4ed-ed02-447c-8db1-c8c237d11633"}],"id":"aae7c9f6-83c4-4c30-ad61-e30d39cd7c10","description":"<p>This section contains the Bill Plan API endpoints.</p>\n","_postman_id":"aae7c9f6-83c4-4c30-ad61-e30d39cd7c10"},{"name":"Bill Styles","item":[{"name":"Get all bill styles","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all bill styles\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"ID found\", function () {","    pm.expect(pm.response.text()).to.include(\"id\");","});","","let jdata= pm.response.json();","","//var count = 0;","pm.test(\"'SME Style' is found\", function () ","{","    ","    var count = 0;","    ","   for (let i=0; i<jdata.length; i++)","   {","     if(jdata[i].styleName === \"SME Style\")","     {","        count++;","        pm.expect(jdata[i].styleName).to.be.eql(\"SME Style\");","     }","   //console.log(count);","   }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","","//pick random id","function random_item(jdata)","{","","return jdata[Math.floor(Math.random()*jdata.length)];","","}","","pm.globals.set(\"id\", random_item(jdata).id);","postman.setNextRequest(\"Get bill style by id\");","//console.log(random_item(jdata).id);"],"type":"text/javascript","id":"26b03393-f291-4707-be8c-b15b932a218a"}}],"id":"e02743cf-1d5c-44b1-a4b9-1d00b6aae705","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billstyles","description":"<p>Returns a collection of bill style models containing all bill styles in the system.</p>\n","urlObject":{"host":["{{mainUrl}}billstyles"],"query":[],"variable":[]}},"response":[],"_postman_id":"e02743cf-1d5c-44b1-a4b9-1d00b6aae705"},{"name":"Get bill style by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Return one bill style\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"47b53818-2f86-46e2-8575-a255f3279509"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"52c0eb36-909d-4efb-8cbc-b451bff7e1df"}}],"id":"9adfcf10-ae07-4000-b453-59073de6ff51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billstyles/{{id}}","description":"<p>Returns a bill style model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}billstyles"],"query":[],"variable":[]}},"response":[],"_postman_id":"9adfcf10-ae07-4000-b453-59073de6ff51"}],"id":"06ba00a9-586f-48d2-a519-63adf22832f9","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"abcd9b18-09f7-49e2-b4c1-fb556eb93d68"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"4190dbb9-fc62-4c32-88e7-413ec8dfaff3"}}],"_postman_id":"06ba00a9-586f-48d2-a519-63adf22832f9","description":""},{"name":"Bundles ","item":[{"name":"Get all bundles","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all bundles\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","","pm.test(\"Bundle '2000mins - Mobile' is found\", function () ","{","    for(let i of jdata)","    {","    //console.log(i);","    if (i.bundlename===\"2000mins - Mobile\")","        {","         //console.log(\"OK\");   ","        }","    }","});","","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"bundle_id\", random_item(jdata).bundle_id);",""],"type":"text/javascript","id":"d33a60cb-814f-4026-b632-3a4dd5f2a346"}}],"id":"9013873a-e3eb-4e38-9b14-f2a3b9dc6cbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billbundles","description":"<p>Returns a collection of bundle models containing all bundles in the system.</p>\n","urlObject":{"host":["{{mainUrl}}billbundles"],"query":[],"variable":[]}},"response":[],"_postman_id":"9013873a-e3eb-4e38-9b14-f2a3b9dc6cbb"},{"name":"Get bundle by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Bundle found\", function () {","    pm.response.to.have.status(200);","});","","","pm.globals.unset(\"bundle_id\");"],"type":"text/javascript","id":"e06f0657-c8d3-41ac-bea3-0ce7a355fd5e"}}],"id":"06d18bbc-f847-4928-8373-fbc4c2e51376","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billbundles/{{bundle_id}}","description":"<p>Returns a bundle model related to the id passed.</p>\n","urlObject":{"path":["{{bundle_id}}"],"host":["{{mainUrl}}billbundles"],"query":[],"variable":[]}},"response":[],"_postman_id":"06d18bbc-f847-4928-8373-fbc4c2e51376"},{"name":"Get bundle by phone number","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"f274eb29-71dc-4124-8cfd-e3318893c016"}}],"id":"2c300987-410f-454a-9a98-4c4380fd405e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billbundles/telid/{{telid}}","description":"<p>Returns a collection of bundle models related to the phone number id passed.</p>\n","urlObject":{"path":["telid","{{telid}}"],"host":["{{mainUrl}}billbundles"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c300987-410f-454a-9a98-4c4380fd405e"}],"id":"c89ec2ca-a0d0-4589-8415-f84c8d0e01cd","_postman_id":"c89ec2ca-a0d0-4589-8415-f84c8d0e01cd","description":""},{"name":"Carriers","item":[{"name":"Get all carriers","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all carriers\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"ID found\", function () {","    pm.expect(pm.response.text()).to.include(\"id\");","});","","let jdata= pm.response.json();","pm.test(\"Carrier 'Blizzard Telecom' is found\", function () ","{","  ","  // let jsonData = JSON.stringify(responseBody);","   pm.expect(jdata[0].name).to.be.eql(\"Blizzard Telecom\");","});","",""],"type":"text/javascript","id":"435d678c-9743-4602-a262-66b92017bca5"}}],"id":"7e30e3d0-532f-44e7-8acb-ed914112b29c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}carriers","description":"<p>Returns a collection of carrier models containing all carriers in the system.</p>\n","urlObject":{"host":["{{mainUrl}}carriers"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e30e3d0-532f-44e7-8acb-ed914112b29c"},{"name":"Get all service providers","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all service providers\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"ID found\", function () {","    pm.expect(pm.response.text()).to.include(\"id\");","});","","let jdata= pm.response.json();","","var count = 0;","pm.test(\"'B4B Telecoms' is found\", function () ","{","    ","    var count = 0;","    ","   // let jsonData = JSON.stringify(responseBody);","   for (let i=0; i<jdata.length; i++)","   {","     if(jdata[i].name === \"B4B Telecoms\")","     {","        count++;","     }","    }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","/*","//pick random id","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);","console.log(random_item(jdata).id);","","*/"],"type":"text/javascript","id":"2b52c8f7-5e18-401f-a31e-bc4a78bb4bd0"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8e4fef18-3f56-448a-ba05-2dcebcfff465"}}],"id":"206e72cd-026f-4f5d-9710-206a2dbe9be9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}serviceproviders","description":"<p>Returns a collection of service providers models containing all service providers in the system.</p>\n","urlObject":{"host":["{{mainUrl}}serviceproviders"],"query":[],"variable":[]}},"response":[],"_postman_id":"206e72cd-026f-4f5d-9710-206a2dbe9be9"}],"id":"652117fb-937c-4fd4-92f6-17676cfc2174","_postman_id":"652117fb-937c-4fd4-92f6-17676cfc2174","description":""},{"name":"Companies","item":[{"name":"Get all companies","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all companies\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","","//var count = 0;","pm.test(\"Company 'Digi Toolbox Ltd' is found\", function () ","{","    ","    var count = 0;","    ","   // let jsonData = JSON.stringify(responseBody);","   for (let i=0; i<jdata.length; i++)","   {","   ","     if(jdata[i].name === \"Digi Toolbox Ltd\")","     {","        count++;","        pm.expect(jdata[i].name).to.be.eql(\"Digi Toolbox Ltd\");","      ","     }","   }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","","","//pick random id","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);","pm.globals.set(\"name\", random_item(jdata).name);","pm.globals.set(\"address\", random_item(jdata).address);","//console.log(random_item(jdata).name);"],"type":"text/javascript","id":"dfa8614e-bbc9-4501-b28a-fa8645c1d533"}}],"id":"74157fe4-7dd3-4f72-a3a2-c4201adb0cfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}companies","description":"<p>Returns a collection of all company models in the system. \nThere will always be at least one billing company.</p>\n","urlObject":{"host":["{{mainUrl}}companies"],"query":[],"variable":[]}},"response":[],"_postman_id":"74157fe4-7dd3-4f72-a3a2-c4201adb0cfa"},{"name":"Get a company by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Get a billing company\", function () {","    pm.response.to.have.status(200);","});","","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"1d86679f-cbc6-432c-9cd5-73228c2dc3db"}}],"id":"8fa3c973-8bbf-4277-acf8-1dbd010e26e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}companies/{{id}}","description":"<p>Returns a company model matching the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}companies"],"query":[],"variable":[]}},"response":[],"_postman_id":"8fa3c973-8bbf-4277-acf8-1dbd010e26e2"},{"name":"Search Companies","event":[{"listen":"test","script":{"exec":["pm.test(\"Record(s) found\", function () {","    pm.response.to.have.status(200);","});","/*","let jdata= pm.response.json();","","console.log(pm.globals.get(\"name1\"));","","//var count = 0;","pm.test(\"Company is found\", function () ","{","    ","    var count = 0;","    ","   // let jsonData = JSON.stringify(responseBody);","   for (let i=0; i<jdata.length; i++)","   {","   console.log(jdata[i].name);","  ","     if(jdata[i].name ===pm.globals.get(\"name1\") )","     {","        count++;","       // pm.expect(jdata[i].name).to.be.eql(\"Digi Toolbox Ltd\");","      console.log(\"Company found\");","     }else","     {","         console.log(\"Company not found\");","     }","   }","});","*/","","pm.globals.unset(\"address\");","",""],"type":"text/javascript","id":"04973e8b-ddf9-4eba-9783-efb015d322ce"}},{"listen":"prerequest","script":{"exec":["/*var data= [\"Digi Toolbox Ltd\",\"Abc\"];","var current=data[Math.floor(Math.random()*data.length)];","","var data1= [\"Lan\",\"Cur\"];","var current1=data1[Math.floor(Math.random()*data1.length)];","","pm.globals.set(\"address1\",current1);","pm.globals.set(\"name1\", current);","*/"],"type":"text/javascript","id":"9cdafe91-bcb2-4f9f-b711-190d52c208d2"}}],"id":"b438cfab-9346-44bf-9c0e-821dc49088a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}companies/search?coaddress={{address}}","description":"<p>Returns a collection of company models containing zero to many results based on the criteria used.</p>\n<p>Parameters are:</p>\n<p>coname - partial match</p>\n<p>coaddress - partial match</p>","urlObject":{"path":["search"],"host":["{{mainUrl}}companies"],"query":[{"key":"coaddress","value":"{{address}}"}],"variable":[]}},"response":[],"_postman_id":"b438cfab-9346-44bf-9c0e-821dc49088a9"}],"id":"5b450fd9-e08e-4727-9d9b-3c010a7696d3","_postman_id":"5b450fd9-e08e-4727-9d9b-3c010a7696d3","description":""},{"name":"Customers","item":[{"name":"V1","item":[{"name":"Get all customers","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all customers\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","","//var count = 0;","pm.test(\"Customer 'Intelligence Finance Solutions Ltd' is found\", function () ","{","    ","    var count = 0;","    ","   // let jsonData = JSON.stringify(responseBody);","   for (let i=0; i<jdata.length; i++)","   {","   ","     ","     if(jdata[i].company === \"Intelligence Finance Solutions Ltd\")","     {","        count++;","        pm.expect(jdata[i].company).to.be.eql(\"Intelligence Finance Solutions Ltd\");","     }","   }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","","//pick random id","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","//console.log(random_item(jdata).id);","pm.globals.set(\"id\", random_item(jdata).id);","pm.globals.set(\"accountNumber\", random_item(jdata).accountNumber);","pm.globals.set(\"company\", random_item(jdata).company);","pm.globals.set(\"surname\", random_item(jdata).surname);","pm.globals.set(\"firstaccount\", jdata[1].accountNumber);","pm.globals.set(\"firstcompany\", jdata[1].company);","pm.globals.set(\"forename\", random_item(jdata).foreName);","pm.globals.set(\"address1\", random_item(jdata).address1);","pm.globals.set(\"address2\", random_item(jdata).address2);","pm.globals.set(\"address3\", random_item(jdata).address3);","pm.globals.set(\"postcode\", random_item(jdata).postcode);","//console.log(random_item(jdata).accountNumber);","",""],"type":"text/javascript","id":"a5e000af-cf1b-4898-9e83-8f68d5ee5014"}}],"id":"573f464e-d07f-4703-8028-74ec1b7b5d58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}customers","description":"<p>Returns a collection of all customers models in the system.</p>\n","urlObject":{"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"573f464e-d07f-4703-8028-74ec1b7b5d58"},{"name":"Customer by ID","event":[{"listen":"test","script":{"exec":["pm.test(\"Get a company\", function() {","    pm.response.to.have.status(200);","});","","","pm.globals.unset(\"id\");","let jdata= pm.response.json();","pm.globals.unset(\"id\");","//pm.globals.set(\"company\",jdata.company);","","//console.log(jdata.company);","//pm.globals.set(\"accountNumber\",jdata.accountNumber);",""],"type":"text/javascript","id":"bd453209-d087-48c9-96c6-ea4cd870649d"}}],"id":"df4e5fd3-60aa-49ab-8418-871217ac6530","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"url":"{{mainUrl}}customers/{{id}}","description":"<p>Returns a customer model matching the customer ID that has been passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"df4e5fd3-60aa-49ab-8418-871217ac6530"},{"name":"Get Customer custom field information","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"11ad95e7-1fc7-4f24-97eb-4ab66f6ec9fb"}}],"id":"2b3ddb3d-6fa8-4045-82d1-f06415677ca4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}customers/customfieldsinuse","urlObject":{"path":["customfieldsinuse"],"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b3ddb3d-6fa8-4045-82d1-f06415677ca4"},{"name":"Search customer ","event":[{"listen":"test","script":{"exec":["pm.test(\"Match found\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"firstaccount\");","pm.globals.unset(\"firstcompany\");"],"type":"text/javascript","id":"8d0b7964-ecad-4f32-b7a6-7b454b477e92"}}],"id":"e2d1837d-f176-49d3-9e6d-422ff7ebf885","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}customers/search?account_number={{firstaccount}}&company={{firstcompany}}","description":"<p>Returns a collection of customer models containing zero to many results depending on the criteria passed to it. </p>\n\n<p>You can pass the following parameters that will allow you to do a partial match on a single or combination of the following parameters </p>\n\n<p>account_number</p>\n<p>Company</p>\n<p>Surname</p>\n<p>Forename</p>\n<p>Address1</p>\n<p>Address2</p>\n<p>Address3</p>\n<p>Postcode</p>","urlObject":{"path":["search"],"host":["{{mainUrl}}customers"],"query":[{"key":"account_number","value":"{{firstaccount}}"},{"key":"company","value":"{{firstcompany}}"}],"variable":[]}},"response":[],"_postman_id":"e2d1837d-f176-49d3-9e6d-422ff7ebf885"},{"name":"Get  customer salutations","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"5610197a-3755-4735-91ab-ff76cfe3222a"}}],"id":"1b79dbc1-9e66-411f-8393-3a5835cbcfd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"url":"{{mainUrl}}customers/salutations/","urlObject":{"path":["salutations",""],"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b79dbc1-9e66-411f-8393-3a5835cbcfd5"},{"name":"Add customer","event":[{"listen":"test","script":{"exec":["pm.test(\"Customer added\", function () {","    pm.response.to.have.status(201);","});","","let jdata= pm.response.json();","pm.globals.set(\"customerId\", jdata.id);","","","/*","//var count = 0;","pm.test(\"Customer 'Intelligence Finance Solutions Ltd' is found\", function () ","{","    ","    var count = 0;","    ","   // let jsonData = JSON.stringify(responseBody);","   for (let i=0; i<jdata.length; i++)","   {","     if(jdata[i].company === \"Intelligence Finance Solutions Ltd\")","     {","        count++;","        pm.expect(jdata[i].company).to.be.eql(\"Intelligence Finance Solutions Ltd\");","     }","   }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","","//pick random id","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","console.log(random_item(jdata).id);","pm.globals.set(\"id\", random_item(jdata).id);","//pm.globals.set(\"accountNumber\", random_item(jdata).accountNumber);","//pm.globals.set(\"company\", random_item(jdata).company);","//console.log(random_item(jdata).accountNumber);","","*/","","",""],"type":"text/javascript","id":"8ebcc8c0-4ef7-4177-9f4d-21ec953e9d23"}}],"id":"6e8d2109-8d69-4524-9ee3-66c64534a91d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"accountNumber\": \"ABF1233\",\r\n  \"company\": \"Blog Tech1\",\r\n  \"salutation\": \"Mr\",\r\n  \"title\": \"Managing Director\",\r\n  \"foreName\": \"Joe\",\r\n  \"surname\": \"Blogs\",\r\n  \"address1\": \"11 High Stret\",\r\n  \"address2\": \"Hilton\",\r\n  \"address3\": \"Derby\",\r\n  \"postcode\": \"DE1 2AA\",\r\n  \"county\": \"Derbyshire\",\r\n  \"country\": \"United Kingdom\",\r\n  \"telephoneh\": \"0115 9505051\",\r\n  \"telephonew\": \"0115 9505052\",\r\n  \"telephonem\": \"0115 9505053\",\r\n  \"telephonewext\": \"12345\",\r\n  \"fax\": \"0115 9505055\",\r\n  \"email\": \"jb@blogtech.co.uk\",\r\n  \"homepage\": \"http://no homepage specified\",\r\n  \"itemiseLen\": 1,\r\n  \"itemiseCost\": 1.2,\r\n  \"baddress1\": \"11 High Street\",\r\n  \"baddress2\": \"Hilton\",\r\n  \"baddress3\": \"Derby\",\r\n  \"bpostcode\": \"DE1 2AA\",\r\n  \"bcounty\": \"Derbyshire\",\r\n  \"bcountry\": \"United Kingdom\",\r\n  \"telll\": \"0115 9505050\",\r\n  \"hfax\": \"\",\r\n  \"altemail\": \"accounts@blogtech.co.uk\",\r\n  \"customeryes\": true,\r\n  \"dealeryes\": false,\r\n  \"supplieryes\": false,\r\n  \"prospectyes\": false,\r\n  \"contactyes\": false,\r\n  \"onstop\": false,\r\n  \"credlim\": 0,\r\n  \"bfao\": \"Billing For Attention of Joe\",\r\n  \"mandate_ref\": \"mandate_ref\",\r\n  \"bank\": \"Bank\",\r\n  \"sortcode\": \"123456\",\r\n  \"acname\": \"Account Name\",\r\n  \"acnum\": \"Account Number\",\r\n  \"vatreg\": false,\r\n  \"vatnum\": \"vatnumber\",\r\n  \"coreg\": \"not supplied\",\r\n  \"btype\": \"business type\",\r\n  \"ytrade\": 1,\r\n  \"ptype\": 2,\r\n  \"distributoryes\": false,\r\n  \"emailinvoice\": false,\r\n  \"emailformat\": 0,\r\n  \"iscompany\": true,\r\n  \"sales_manager_id\": 1,\r\n  \"account_manager_id\": 1,\r\n  \"creditDays\": 0,\r\n  \"proddisband\": 0,\r\n  \"zipfiles\": false,\r\n  \"mergepdf\": false,\r\n  \"analprint\": false,\r\n  \"analemail\": false,\r\n  \"analStyle\": 1,\r\n  \"invaddtext\": \"na\",\r\n  \"printed\": false,\r\n  \"showintro\": false,\r\n  \"minbillvalue\": 0,\r\n  \"billStyle\": \"Default Eclipse Style\",\r\n  \"tax_id\": 2,\r\n  \"companyId\": 4,\r\n  \"antispend\": 0,\r\n  \"pO_Number\": \"PO Number\",\r\n  \"customer_Ref\": \"Customer Ref\",\r\n  \"priceList_ID\": 0,\r\n  \"adv_months\": 0,\r\n  \"show_dealer_logo\": false,\r\n  \"isBusiness\": true,\r\n  \"Custom1\": \"Datalist\",\r\n  \"Custom2\": \"Value\"\r\n}"},"url":"{{mainUrl}}customers","description":"<p>Adds a new customer record to the system.</p>\n","urlObject":{"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e8d2109-8d69-4524-9ee3-66c64534a91d"},{"name":"Search Customers Paged","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"8d85558a-2d81-4ded-afba-41e4738ff739"}}],"id":"253cbb91-855a-40cf-917f-b88a4cb87167","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"FilterExpressions\": [\r\n        {\r\n            \"FieldName\":\"CompanyName\",\r\n            \"FieldValue\":\"Test\",\r\n            \"FilterFunction\":\"Contains\"\r\n        },\r\n        {\r\n            \"FieldName\":\"AccountNumber\",\r\n            \"FieldValue\":\"Test4\",\r\n            \"FilterFunction\":\"EqualTo\"\r\n        }\r\n    ],\r\n    \"SortExpressions\": [{\r\n        \"FieldName\":\"Id\",\r\n        \"sortOrder\":1\r\n    }],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}"},"url":"{{mainUrl}}Customer/SearchCustomersPaged","description":"<p>Returns a paged collection of customer models containing zero to many results depending on the criteria passed to it.</p>\n<p>Please see the Paged End Points section in the <a href=\"https://api-doc.eclipse-billing.co.uk/#intro\">Introduction</a> which details the paged search functionality.</p>\n<p>In the example body below we are stating we wish to view all customers where the Company contains 'Test' AND the AccountNumber is equal to 'Test4' and order the results by Id Ascending</p>\n","urlObject":{"path":["SearchCustomersPaged"],"host":["{{mainUrl}}Customer"],"query":[],"variable":[]}},"response":[{"id":"df199385-cb97-4049-9475-a9a8eaa62b91","name":"Search Customers Paged","originalRequest":{"method":"POST","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{  \r\n    \"FilterExpressions\": [\r\n        {\r\n            \"FieldName\":\"Id\",\r\n            \"FieldValue\": 2,\r\n            \"FilterFunction\": 5\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"SortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}Customer/SearchCustomersPaged"},"_postman_previewlanguage":"json","header":[{"key":"Obsolete","value":"9999-12-31","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"currentPage\": 1,\r\n    \"totalPages\": 1,\r\n    \"totalItems\": 1,\r\n    \"itemsPerPage\": 10,\r\n    \"items\": [\r\n        {\r\n            \"id\": 2,\r\n            \"accountNumber\": \"0000000A\",\r\n            \"company\": \"Company Test 1\",\r\n            \"title\": \"Doctor\",\r\n            \"foreName\": \"Joe\",\r\n            \"surname\": \"Bloggs\",\r\n            \"salutation\": \"Dr\",\r\n            \"address1\": \"47 Bouverie Road\",\r\n            \"address2\": \"Claygate\",\r\n            \"address3\": \"\",\r\n            \"postcode\": \"TF11 6PT\",\r\n            \"county\": \"\",\r\n            \"country\": \"United Kingdom\",\r\n            \"telephoneh\": \"\",\r\n            \"telephonew\": \"\",\r\n            \"telephonewext\": \"\",\r\n            \"fax\": \"\",\r\n            \"email\": \"no email address specified\",\r\n            \"homepage\": \"no homepage specified\",\r\n            \"createuser\": \"inform\",\r\n            \"status\": 1,\r\n            \"baddress1\": \"47 Bouverie Road\",\r\n            \"baddress2\": \"\",\r\n            \"baddress3\": \"Claygate\",\r\n            \"bpostcode\": \"TF11 6PT\",\r\n            \"bcounty\": \"\",\r\n            \"bcountry\": \"United Kingdom\",\r\n            \"telll\": \"\",\r\n            \"hfax\": \"\",\r\n            \"altemail\": \"boris@informbilling.co.uk\",\r\n            \"code\": null,\r\n            \"ctype\": 0,\r\n            \"customeryes\": true,\r\n            \"dealeryes\": false,\r\n            \"supplieryes\": false,\r\n            \"prospectyes\": false,\r\n            \"contactyes\": false,\r\n            \"onstop\": false,\r\n            \"credlim\": 0.0,\r\n            \"bfao\": \"Accounts Department\",\r\n            \"mandate_ref\": \"\",\r\n            \"bank\": \"\",\r\n            \"sortcode\": \"\",\r\n            \"dd\": false,\r\n            \"acname\": \"\",\r\n            \"acnum\": \"\",\r\n            \"vatreg\": false,\r\n            \"vatnum\": null,\r\n            \"addtext\": null,\r\n            \"paidby\": 0,\r\n            \"datestamp\": \"2022-06-08T00:00:00Z\",\r\n            \"invoiceno\": \"100000\",\r\n            \"invoicedate\": \"2022-07-29T00:00:00Z\",\r\n            \"coreg\": \"123ABC\",\r\n            \"btype\": null,\r\n            \"ytrade\": 0,\r\n            \"ptype\": 1,\r\n            \"typeid\": 0,\r\n            \"compid\": 0,\r\n            \"transactionid\": 0,\r\n            \"distributoryes\": false,\r\n            \"baddebt\": 0.0000,\r\n            \"cissuenum\": null,\r\n            \"cissuedate\": null,\r\n            \"dacno\": null,\r\n            \"printinvoice\": false,\r\n            \"emailinvoice\": true,\r\n            \"emailformat\": 0,\r\n            \"iscompany\": false,\r\n            \"salesmanager\": null,\r\n            \"sales_manager_id\": 1,\r\n            \"accountmanager\": null,\r\n            \"account_manager_id\": 0,\r\n            \"creditDays\": 14.0000,\r\n            \"proddisband\": null,\r\n            \"zipfiles\": false,\r\n            \"mergepdf\": true,\r\n            \"custom1\": null,\r\n            \"custom2\": null,\r\n            \"custom3\": null,\r\n            \"custom4\": null,\r\n            \"custom5\": null,\r\n            \"custom6\": null,\r\n            \"custom7\": null,\r\n            \"custom8\": null,\r\n            \"custom9\": null,\r\n            \"custom10\": null,\r\n            \"custom11\": null,\r\n            \"custom12\": null,\r\n            \"custom13\": null,\r\n            \"custom14\": null,\r\n            \"custom15\": null,\r\n            \"itemiseLen\": 0,\r\n            \"itemiseCost\": 0.0000,\r\n            \"analprint\": false,\r\n            \"analemail\": false,\r\n            \"analStyle\": 1,\r\n            \"invaddtext\": \"Sample additional invoice text.\",\r\n            \"printed\": false,\r\n            \"showintro\": false,\r\n            \"minbillvalue\": 0.0000,\r\n            \"posted\": false,\r\n            \"emailed\": false,\r\n            \"emailedcdr\": false,\r\n            \"balanceos\": 0.0000,\r\n            \"billStyle\": \"SME Style\",\r\n            \"oldinvoiceno\": null,\r\n            \"statementno\": null,\r\n            \"statementdate\": null,\r\n            \"oldstatementno\": null,\r\n            \"specialinstructions\": null,\r\n            \"tax_id\": 2,\r\n            \"copyCustomer_ID\": 0,\r\n            \"copyBilling_ID\": 0,\r\n            \"companyid\": 4,\r\n            \"docfolder\": null,\r\n            \"callsto\": null,\r\n            \"parent_dealer_id\": 0,\r\n            \"antispend\": 0.0000,\r\n            \"internal1\": null,\r\n            \"enlighten\": false,\r\n            \"pO_Number\": null,\r\n            \"customer_Ref\": null,\r\n            \"priceList_ID\": 0,\r\n            \"adv_months\": 0,\r\n            \"closeDate\": null,\r\n            \"preview_file\": null,\r\n            \"dealerlogofile\": \"\",\r\n            \"show_dealer_logo\": false,\r\n            \"dealerlogo\": \"\",\r\n            \"isBusiness\": true,\r\n            \"emailedErrored\": null\r\n        }\r\n    ]\r\n}"}],"_postman_id":"253cbb91-855a-40cf-917f-b88a4cb87167"},{"name":"Update customer by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Updated a record\", function () {","    pm.response.to.have.status(200);","});","","//pm.globals.unset(\"id\");","/*","let jdata= pm.response.json();","","//var count = 0;","pm.test(\"Customer 'Intelligence Finance Solutions Ltd' is found\", function () ","{","    ","    var count = 0;","    ","   // let jsonData = JSON.stringify(responseBody);","   for (let i=0; i<jdata.length; i++)","   {","     if(jdata[i].company === \"Intelligence Finance Solutions Ltd\")","     {","        count++;","        pm.expect(jdata[i].company).to.be.eql(\"Intelligence Finance Solutions Ltd\");","     }","   }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","","//pick random id","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","console.log(random_item(jdata).id);","pm.globals.set(\"id\", random_item(jdata).id);","//pm.globals.set(\"accountNumber\", random_item(jdata).accountNumber);","//pm.globals.set(\"company\", random_item(jdata).company);","//console.log(random_item(jdata).accountNumber);","","*/",""],"type":"text/javascript","id":"86366a50-2fce-4cdb-8532-a06db00726a8"}}],"id":"6b3f4c1b-6070-4995-be8a-c167ec3459a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"accountNumber\": \"AHJRBCA\",\r\n  \"company\": \"Test company\",\r\n  \"salutation\": \"Mr\",\r\n  \"title\": \"Managing Director\",\r\n  \"foreName\": \"Phil\",\r\n  \"surname\": \"Blogs\",\r\n  \"address1\": \"22 a Road\",\r\n  \"address2\": \"A vilalge \",\r\n  \"address3\": \"A Town\",\r\n  \"postcode\": \"DE25FG\",\r\n  \"county\": \"derbyshire\",\r\n  \"country\": \"United Kingdom\",\r\n  \"telephoneh\": \"0115 7505051\",\r\n  \"telephonew\": \"0115 7505052\",\r\n  \"telephonem\": \"078523657\",\r\n  \"telephonewext\": \"12345\",\r\n  \"fax\": \"0115 9505055\",\r\n  \"email\": \"no email address specified\",\r\n  \"homepage\": \"http://no homepage specified\",\r\n  \"itemiseLen\": 1,\r\n  \"itemiseCost\": 1.2,\r\n  \"baddress1\": \"Billing Address Line 1\",\r\n  \"baddress2\": \"Billing Address Line 2\",\r\n  \"baddress3\": \"Billing Address Line 3\",\r\n  \"bpostcode\": \"Billing PostCode\",\r\n  \"bcounty\": \"Billing Address County\",\r\n  \"bcountry\": \"Billing Address Country\",\r\n  \"telll\": \"0115 9505050\",\r\n  \"hfax\": \"\",\r\n  \"altemail\": \"no email address specified\",\r\n  \"customeryes\": true,\r\n  \"dealeryes\": false,\r\n  \"supplieryes\": false,\r\n  \"prospectyes\": false,\r\n  \"contactyes\": false,\r\n  \"onstop\": false,\r\n  \"credlim\": 0,\r\n  \"bfao\": \"Billing For Attention of\",\r\n  \"mandate_ref\": \"mandate_ref\",\r\n  \"custom1\": \"Datalist\",\r\n  \"custom2\": \"Value\",\r\n  \"custom3\": null,\r\n  \"custom4\": null,\r\n  \"custom5\": null,\r\n  \"custom6\": null,\r\n  \"custom7\": null,\r\n  \"custom8\": null,\r\n  \"custom9\": null,\r\n  \"custom10\": null,\r\n  \"custom11\": null,\r\n  \"custom12\": null,\r\n  \"custom13\": null,\r\n  \"custom14\": null,\r\n  \"custom15\": null,\r\n  \"bank\": \"Bank\",\r\n  \"sortcode\": \"123456\",\r\n  \"acname\": \"Account Name\",\r\n  \"acnum\": \"Account Number\",\r\n  \"vatreg\": false,\r\n  \"vatnum\": \"vatnumber\",\r\n  \"coreg\": \"not supplied\",\r\n  \"btype\": \"business type\",\r\n  \"ytrade\": 1,\r\n  \"ptype\": 2,\r\n  \"distributoryes\": false,\r\n  \"emailinvoice\": false,\r\n  \"emailformat\": 0,\r\n  \"iscompany\": true,\r\n  \"sales_manager_id\": 1,\r\n  \"account_manager_id\": 1,\r\n  \"creditDays\": 0,\r\n  \"proddisband\": 0,\r\n  \"zipfiles\": false,\r\n  \"mergepdf\": false,\r\n  \"analprint\": false,\r\n  \"analemail\": false,\r\n  \"analStyle\": 1,\r\n  \"invaddtext\": \"na\",\r\n  \"printed\": false,\r\n  \"showintro\": false,\r\n  \"minbillvalue\": 0,\r\n  \"billStyle\": \"Default Eclipse Style\",\r\n  \"tax_id\": 2,\r\n  \"companyId\": 4,\r\n  \"antispend\": 0,\r\n  \"pO_Number\": \"PO Number\",\r\n  \"customer_Ref\": \"Customer Ref\",\r\n  \"priceList_ID\": 0,\r\n  \"adv_months\": 0,\r\n  \"show_dealer_logo\": false,\r\n  \"isBusiness\": true\r\n}"},"url":"{{mainUrl}}customers/{{customerId}}","description":"<p>Updates a customer record based on the values in the model passed in.</p>\n","urlObject":{"path":["{{customerId}}"],"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b3f4c1b-6070-4995-be8a-c167ec3459a5"},{"name":"Close account by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Close the account\", function () {","    pm.response.to.have.status(200);","});","","pm.environment.unset(\"closedate\");","pm.globals.unset(\"customerId\");"],"type":"text/javascript","id":"dbb89794-6d70-45c4-ae7b-dc66d66c1ec1"}},{"listen":"prerequest","script":{"exec":["","//let currentDate= new Date();","//console.log(currentDate);","","//pm.globals.set(\"closedate\", currentDate.);","//pm.environment.set(\"closedate\", \"currentDate\");","var dateNow = new Date();","pm.environment.set(\"closedate\", dateNow.toISOString());"],"type":"text/javascript","id":"4e875fed-dc8f-4e8d-a69d-7a30878a0c47"}}],"id":"f7055f61-42aa-40f1-9b1f-c557aa409c0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"\r\n\t\"{{closedate}}\"\r\n\r\n"},"url":"{{mainUrl}}customers/{{customerId}}/close","description":"<p>Closes a customers account. \n<strong>Warning</strong> this will disconnect all numbers, account and number level charges on this account. </p>\n","urlObject":{"path":["{{customerId}}","close"],"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7055f61-42aa-40f1-9b1f-c557aa409c0c"}],"id":"c312e12a-ea1d-4920-86f2-f734e76567c6","_postman_id":"c312e12a-ea1d-4920-86f2-f734e76567c6","description":""},{"name":"V2","item":[{"name":"Search Customers Paged","id":"6ebdc458-c0ce-4c47-ba4a-1f56c04720d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"LastUpdated\",\r\n            \"FieldValue\": \"2022-08-04\",\r\n            \"FilterFunction\": 8\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}v2/customers/SearchCustomersPaged","description":"<p>Allows paged searching of customer records. Returns a paged collection of customer models.</p>\n<p>Please view the <a href=\"#paged-endpoints\">Paged Endpoints</a> section in the introduction which details the paged search functionality.</p>\n","urlObject":{"path":["customers","SearchCustomersPaged"],"host":["{{mainUrl}}v2"],"query":[],"variable":[]}},"response":[{"id":"2a8b5124-4145-421e-9005-0711c4efcee0","name":"Search Customers Paged","originalRequest":{"method":"POST","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"FieldValue\": 7,\r\n            \"FilterFunction\": 5\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"sortOrder\": 2\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}customers/v2/SearchCustomersPaged"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"currentPage\": 1,\n    \"totalPages\": 1,\n    \"totalItems\": 1,\n    \"itemsPerPage\": 10,\n    \"items\": [\n        {\n            \"accountCreatedBy\": \"admin\",\n            \"accountCreatedDate\": \"2022-09-06T11:14:32.657Z\",\n            \"invoiceNo\": null,\n            \"oldInvoiceNo\": null,\n            \"statementNo\": null,\n            \"statementDate\": null,\n            \"oldStatementNo\": null,\n            \"isUploadedToEnlighten\": false,\n            \"closedDate\": null,\n            \"lastUpdated\": \"2022-09-26T11:27:04.9363902+01:00\",\n            \"id\": 7,\n            \"accountNumber\": \"TestAPI1\",\n            \"companyName\": \"Test Company\",\n            \"primaryContactSurname\": \"Bloggs\",\n            \"primaryContactForename\": \"Joe\",\n            \"primaryContactJobTitle\": \"Developer\",\n            \"primaryContactSalutation\": \"Mr\",\n            \"registeredAddressLine1\": \"47 Bouverie Road\",\n            \"registeredAddressLine2\": \"Claygate\",\n            \"registeredAddressLine3\": \"-\",\n            \"registeredAddressPostcode\": \"TF11 6PT\",\n            \"registeredAddressCounty\": \"-\",\n            \"registeredAddressCountry\": \"United Kingdom\",\n            \"primaryContactTelephoneAlt\": null,\n            \"accountDetailsTelephoneMain\": null,\n            \"primaryContactTelephoneMobile\": \"070 6985 1528\",\n            \"primaryContactExtension\": null,\n            \"accountDetailsFax\": null,\n            \"accountDetailsEmail\": \"test@informbilling.co.uk\",\n            \"accountDetailsWebsite\": \"https://www.informbilling.co.uk\",\n            \"accountStatus\": 1,\n            \"billingAddressLine1\": \"47 Bouverie Road\",\n            \"billingAddressLine2\": \"Claygate\",\n            \"billingAddressLine3\": \"-\",\n            \"billingAddressPostcode\": \"TF11 6PT\",\n            \"billingAddressCounty\": \"-\",\n            \"billingAddressCountry\": \"United Kingdom\",\n            \"primaryContactTelephoneMain\": null,\n            \"accountDetailsFax2\": null,\n            \"primaryContactBillingEmail\": \"no email address specified\",\n            \"customerTypeIsCustomer\": true,\n            \"customerTypeIsDealer\": false,\n            \"customerTypeIsSupplier\": false,\n            \"customerTypeIsProspect\": false,\n            \"customerTypeIsContact\": false,\n            \"accountOnStop\": false,\n            \"creditLimit\": 1.2000,\n            \"billingAddressFao\": \"Accounts Department\",\n            \"mandateReference\": \"\",\n            \"bankName\": \"\",\n            \"sortCode\": \"\",\n            \"directDebit\": false,\n            \"bankAccountName\": \"\",\n            \"bankAccountNumber\": \"\",\n            \"vatRegistered\": false,\n            \"vatNo\": null,\n            \"invoiceDate\": null,\n            \"accountDetailsCompanyRegNo\": \"Not supplied\",\n            \"accountDetailsCompanyType\": null,\n            \"accountDetailsYearsTrading\": 0,\n            \"paymentMethod\": 1,\n            \"typeId\": 0,\n            \"transactionId\": 0,\n            \"customerTypeReseller\": false,\n            \"printInvoice\": true,\n            \"emailInvoiceToAccount\": true,\n            \"isCustomer\": false,\n            \"salesManagerId\": 0,\n            \"accountManagerId\": 0,\n            \"creditDays\": 14.0000,\n            \"zipFilesAttachedForEmailInvoice\": false,\n            \"mergePDFFilesForEmailInvoice\": false,\n            \"custom1\": \"Test 1\",\n            \"custom2\": \"Test 2\",\n            \"custom3\": null,\n            \"custom4\": null,\n            \"custom5\": null,\n            \"custom6\": null,\n            \"custom7\": null,\n            \"custom8\": null,\n            \"custom9\": null,\n            \"custom10\": null,\n            \"custom11\": null,\n            \"custom12\": null,\n            \"custom13\": null,\n            \"custom14\": null,\n            \"custom15\": null,\n            \"itemiseCallsWithSecondsGreaterThan\": 5,\n            \"itemiseCallsWithCostGreaterThan\": 1.2000,\n            \"printAnalysis\": true,\n            \"emailAnalysisToAccount\": false,\n            \"analysisStyle\": 1,\n            \"additionalInvoiceText\": \"Enter your default Additional Invoice Text Here.\",\n            \"isPrinted\": false,\n            \"showIntroducerOnInvoice\": false,\n            \"minimumBillValue\": 0.0000,\n            \"isEmailed\": false,\n            \"isCDRsEmailed\": false,\n            \"billStyle\": \"Default Eclipse Style\",\n            \"taxBandId\": 2,\n            \"billingCompanyId\": 4,\n            \"parentDealerId\": 0,\n            \"anticipatedSpend\": 0.0000,\n            \"poNumber\": null,\n            \"customerReference\": null,\n            \"priceListId\": 0,\n            \"advancedMonths\": 0,\n            \"showDealerLogoOnInvoice\": false,\n            \"isBusiness\": true,\n            \"useDealerPriceList\": false,\n            \"salesInvoiceBillStyleId\": 19,\n            \"alertsEmail\": null\n        }\n    ]\n}"}],"_postman_id":"6ebdc458-c0ce-4c47-ba4a-1f56c04720d3"},{"name":"Add Customer","id":"3a0fe3ce-0180-4ab8-9ebd-03320c983ae5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"accountNumber\": \"API30\",\r\n    \"companyName\": \"API Created Company\",\r\n    \"primaryContactSurname\": \"Bloggs\",\r\n    \"primaryContactForename\": \"Joe\",\r\n    \"primaryContactJobTitle\": \"Director\",\r\n    \"primaryContactSalutation\": \"Mr\",\r\n    \"registeredAddressLine1\": \"Badger Farm Business Park\",\r\n    \"registeredAddressLine2\": \"Willowpit Lane\",\r\n    \"registeredAddressLine3\": null,\r\n    \"registeredAddressPostcode\": \"DE65 5FN\",\r\n    \"registeredAddressCounty\": \"Derbyshire\",\r\n    \"registeredAddressCountry\": \"United Kingdom\",\r\n    \"primaryContactTelephoneAlt\": \"\",\r\n    \"accountDetailsTelephoneMain\": \"99999 999 999\",\r\n    \"primaryContactTelephoneMobile\": \"\",\r\n    \"primaryContactExtension\": \"\",\r\n    \"accountDetailsFax\": \"\",\r\n    \"accountDetailsEmail\": \"joebloggs@informbilling.co.uk\",\r\n    \"accountDetailsWebsite\": \"https://www.informbilling.co.uk/contact/\",\r\n    \"accountCreatedBy\": \"dev_api_test_insert\",\r\n    \"accountStatus\": 1,\r\n    \"billingAddressLine1\": \"Badger Farm Business Park\",\r\n    \"billingAddressLine2\": \"Willowpit Lane\",\r\n    \"billingAddressLine3\": null,\r\n    \"billingAddressPostcode\": \"DE65 5FN\",\r\n    \"billingAddressCounty\": \"Derbyshire\",\r\n    \"billingAddressCountry\": \"United Kingdom\",\r\n    \"primaryContactTelephoneMain\": \"01332 927070\",\r\n    \"accountDetailsFax2\": \"\",\r\n    \"primaryContactBillingEmail\": \"sales@informbilling.co.uk\",\r\n    \"customerTypeIsCustomer\": true,\r\n    \"customerTypeIsDealer\": false,\r\n    \"customerTypeIsSupplier\": false,\r\n    \"customerTypeIsProspect\": false,\r\n    \"customerTypeIsContact\": false,\r\n    \"accountOnStop\": false,\r\n    \"creditLimit\": 0.0,\r\n    \"billingAddressFao\": \"test\",\r\n    \"mandateReference\": \"\",\r\n    \"bankName\": \"\",\r\n    \"sortCode\": \"\",\r\n    \"bankAccountName\": \"\",\r\n    \"bankAccountNumber\": \"\",\r\n    \"vatRegistered\": false,\r\n    \"vatNo\": null,\r\n    \"invoiceDate\": null,\r\n    \"accountDetailsCompanyRegNo\": \"Not supplied\",\r\n    \"accountDetailsCompanyType\": null,\r\n    \"accountDetailsYearsTrading\": 0,\r\n    \"paymentMethod\": 1,\r\n    \"typeId\": 0,\r\n    \"transactionId\": 0,\r\n    \"customerTypeReseller\": false,\r\n    \"printInvoice\": false,\r\n    \"emailInvoiceToAccount\": true,\r\n    \"isCustomer\": false,\r\n    \"salesManagerId\": 1,\r\n    \"accountManagerId\": 1,\r\n    \"creditDays\": 30,\r\n    \"zipFilesAttachedForEmailInvoice\": false,\r\n    \"mergePDFFilesForEmailInvoice\": false,\r\n    \"custom1\": \"\",\r\n    \"custom2\": \"\",\r\n    \"custom3\": null,\r\n    \"custom4\": null,\r\n    \"custom5\": null,\r\n    \"custom6\": null,\r\n    \"custom7\": null,\r\n    \"custom8\": null,\r\n    \"custom9\": null,\r\n    \"custom10\": null,\r\n    \"custom11\": null,\r\n    \"custom12\": null,\r\n    \"custom13\": null,\r\n    \"custom14\": null,\r\n    \"custom15\": null,\r\n    \"itemiseCallsWithSecondsGreaterThan\": 5,\r\n    \"itemiseCallsWithCostGreaterThan\": 1.2000,\r\n    \"printAnalysis\": false,\r\n    \"emailAnalysisToAccount\": true,\r\n    \"analysisStyle\": 1,\r\n    \"additionalInvoiceText\": \"Enter your default Additional Invoice Text Here.\\r\\nTo change the default text go to the Admin Setup section and then press the Companies button.\",\r\n    \"isPrinted\": false,\r\n    \"showIntroducerOnInvoice\": false,\r\n    \"minimumBillValue\": 0.0000,\r\n    \"isEmailed\": false,\r\n    \"isCDRsEmailed\": false,\r\n    \"balanceOs\": 0.0000,\r\n    \"billStyle\": \"Default Eclipse Style\",\r\n    \"taxBandId\": 1,\r\n    \"billingCompanyId\": 4,\r\n    \"parentDealerId\": 0,\r\n    \"anticipatedSpend\": 0.0000,\r\n    \"poNumber\": null,\r\n    \"customerReference\": null,\r\n    \"priceListId\": 0,\r\n    \"advancedMonths\": 0,\r\n    \"showDealerLogoOnInvoice\": false,\r\n    \"isBusiness\": true,\r\n    \"useDealerPriceList\": false,\r\n    \"salesInvoiceBillStyleId\": 0,\r\n    \"alertsEmail\": \"support@informbilling.co.uk\"\r\n}"},"url":"{{mainUrl}}v2/customers","description":"<p>Adds a new customer record to the system.</p>\n","urlObject":{"path":["customers"],"host":["{{mainUrl}}v2"],"query":[],"variable":[]}},"response":[{"id":"5b6ee439-d8e9-47f0-847d-f3413e55bb77","name":"Add Customer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"accountNumber\": \"API29\",\r\n    \"companyName\": \"API Created Company\",\r\n    \"primaryContactSurname\": \"Bloggs\",\r\n    \"primaryContactForename\": \"Joe\",\r\n    \"primaryContactJobTitle\": \"Director\",\r\n    \"primaryContactSalutation\": \"Mr\",\r\n    \"registeredAddressLine1\": \"Badger Farm Business Park\",\r\n    \"registeredAddressLine2\": \"Willowpit Lane\",\r\n    \"registeredAddressLine3\": \"Hilton\",\r\n    \"registeredAddressPostcode\": \"DE65 5FN\",\r\n    \"registeredAddressCounty\": \"Derbyshire\",\r\n    \"registeredAddressCountry\": \"United Kingdom\",\r\n    \"primaryContactTelephoneAlt\": \"\",\r\n    \"accountDetailsTelephoneMain\": \"99999 999 999\",\r\n    \"primaryContactTelephoneMobile\": \"\",\r\n    \"primaryContactExtension\": \"\",\r\n    \"accountDetailsFax\": \"\",\r\n    \"accountDetailsEmail\": \"joebloggs@informbilling.co.uk\",\r\n    \"accountDetailsWebsite\": \"https://www.informbilling.co.uk/contact/\",\r\n    \"accountCreatedBy\": \"dev_api_test_insert\",\r\n    \"accountStatus\": 1,\r\n    \"billingAddressLine1\": \"Badger Farm Business Park\",\r\n    \"billingAddressLine2\": \"Willowpit Lane\",\r\n    \"billingAddressLine3\": \"Hilton\",\r\n    \"billingAddressPostcode\": \"DE65 5FN\",\r\n    \"billingAddressCounty\": \"Derbyshire\",\r\n    \"billingAddressCountry\": \"United Kingdom\",\r\n    \"primaryContactTelephoneMain\": \"01332 927070\",\r\n    \"accountDetailsFax2\": \"\",\r\n    \"primaryContactBillingEmail\": \"sales@informbilling.co.uk\",\r\n    \"customerTypeIsCustomer\": true,\r\n    \"customerTypeIsDealer\": false,\r\n    \"customerTypeIsSupplier\": false,\r\n    \"customerTypeIsProspect\": false,\r\n    \"customerTypeIsContact\": false,\r\n    \"accountOnStop\": false,\r\n    \"creditLimit\": 0.0,\r\n    \"billingAddressFao\": \"test\",\r\n    \"mandateReference\": \"\",\r\n    \"bankName\": \"\",\r\n    \"sortCode\": \"\",\r\n    \"bankAccountName\": \"\",\r\n    \"bankAccountNumber\": \"\",\r\n    \"vatRegistered\": false,\r\n    \"vatNo\": \"\",\r\n    \"invoiceDate\": null,\r\n    \"accountDetailsCompanyRegNo\": \"Not supplied\",\r\n    \"accountDetailsCompanyType\": \"\",\r\n    \"accountDetailsYearsTrading\": 0,\r\n    \"paymentMethod\": 1,\r\n    \"typeId\": 0,\r\n    \"transactionId\": 0,\r\n    \"customerTypeReseller\": false,\r\n    \"printInvoice\": false,\r\n    \"emailInvoiceToAccount\": true,\r\n    \"isCustomer\": false,\r\n    \"salesManagerId\": 1,\r\n    \"accountManagerId\": 1,\r\n    \"creditDays\": 30,\r\n    \"zipFilesAttachedForEmailInvoice\": false,\r\n    \"mergePDFFilesForEmailInvoice\": false,\r\n    \"custom1\": \"\",\r\n    \"custom2\": \"\",\r\n    \"custom3\": null,\r\n    \"custom4\": null,\r\n    \"custom5\": null,\r\n    \"custom6\": null,\r\n    \"custom7\": null,\r\n    \"custom8\": null,\r\n    \"custom9\": null,\r\n    \"custom10\": null,\r\n    \"custom11\": null,\r\n    \"custom12\": null,\r\n    \"custom13\": null,\r\n    \"custom14\": null,\r\n    \"custom15\": null,\r\n    \"itemiseCallsWithSecondsGreaterThan\": 5,\r\n    \"itemiseCallsWithCostGreaterThan\": 1.2000,\r\n    \"printAnalysis\": false,\r\n    \"emailAnalysisToAccount\": true,\r\n    \"analysisStyle\": 1,\r\n    \"additionalInvoiceText\": \"Enter your default Additional Invoice Text Here.\\r\\nTo change the default text go to the Admin Setup section and then press the Companies button.\",\r\n    \"isPrinted\": false,\r\n    \"showIntroducerOnInvoice\": false,\r\n    \"minimumBillValue\": 0.0000,\r\n    \"isEmailed\": false,\r\n    \"isCDRsEmailed\": false,\r\n    \"billStyle\": \"Default Eclipse Style\",\r\n    \"taxBandId\": 1,\r\n    \"billingCompanyId\": 4,\r\n    \"parentDealerId\": 0,\r\n    \"anticipatedSpend\": 0.0000,\r\n    \"poNumber\": \"\",\r\n    \"customerReference\": \"\",\r\n    \"priceListId\": 0,\r\n    \"advancedMonths\": 0,\r\n    \"showDealerLogoOnInvoice\": false,\r\n    \"isBusiness\": true,\r\n    \"useDealerPriceList\": false,\r\n    \"salesInvoiceBillStyleId\": 0,\r\n    \"alertsEmail\": \"support@informbilling.co.uk\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}v2/customers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"accountCreatedBy\": \"dev_api\",\n    \"accountCreatedDate\": \"2022-11-23T16:14:05.46Z\",\n    \"invoiceNo\": null,\n    \"oldInvoiceNo\": null,\n    \"statementNo\": null,\n    \"statementDate\": null,\n    \"oldStatementNo\": null,\n    \"isUploadedToEnlighten\": null,\n    \"closedDate\": null,\n    \"lastUpdated\": \"2022-11-23T16:14:05.6329779+00:00\",\n    \"id\": 40,\n    \"accountNumber\": \"API30\",\n    \"companyName\": \"API Created Company\",\n    \"primaryContactSurname\": \"Bloggs\",\n    \"primaryContactForename\": \"Joe\",\n    \"primaryContactJobTitle\": \"Director\",\n    \"primaryContactSalutation\": \"Mr\",\n    \"registeredAddressLine1\": \"Badger Farm Business Park\",\n    \"registeredAddressLine2\": \"Willowpit Lane\",\n    \"registeredAddressLine3\": \"Hilton\",\n    \"registeredAddressPostcode\": \"DE65 5FN\",\n    \"registeredAddressCounty\": \"Derbyshire\",\n    \"registeredAddressCountry\": \"United Kingdom\",\n    \"primaryContactTelephoneAlt\": \"\",\n    \"accountDetailsTelephoneMain\": \"99999 999 999\",\n    \"primaryContactTelephoneMobile\": \"\",\n    \"primaryContactExtension\": \"\",\n    \"accountDetailsFax\": \"\",\n    \"accountDetailsEmail\": \"joebloggs@example.com\",\n    \"accountDetailsWebsite\": \"http://https://www.example.co.uk/\",\n    \"accountStatus\": 1,\n    \"billingAddressLine1\": \"Badger Farm Business Park\",\n    \"billingAddressLine2\": \"Willowpit Lane\",\n    \"billingAddressLine3\": \"Hilton\",\n    \"billingAddressPostcode\": \"DE65 5FN\",\n    \"billingAddressCounty\": \"Derbyshire\",\n    \"billingAddressCountry\": \"United Kingdom\",\n    \"primaryContactTelephoneMain\": \"01332 927070\",\n    \"accountDetailsFax2\": \"\",\n    \"primaryContactBillingEmail\": \"sales@example.co.uk\",\n    \"customerTypeIsCustomer\": true,\n    \"customerTypeIsDealer\": false,\n    \"customerTypeIsSupplier\": false,\n    \"customerTypeIsProspect\": false,\n    \"customerTypeIsContact\": false,\n    \"accountOnStop\": false,\n    \"creditLimit\": 0.0000,\n    \"billingAddressFao\": \"test\",\n    \"mandateReference\": null,\n    \"bankName\": null,\n    \"sortCode\": null,\n    \"bankAccountName\": null,\n    \"bankAccountNumber\": null,\n    \"vatRegistered\": false,\n    \"vatNo\": \"\",\n    \"invoiceDate\": null,\n    \"accountDetailsCompanyRegNo\": \"Not supplied\",\n    \"accountDetailsCompanyType\": \"\",\n    \"accountDetailsYearsTrading\": 0,\n    \"paymentMethod\": 1,\n    \"typeId\": 0,\n    \"transactionId\": 0,\n    \"customerTypeReseller\": false,\n    \"printInvoice\": true,\n    \"emailInvoiceToAccount\": true,\n    \"isCustomer\": false,\n    \"salesManagerId\": 1,\n    \"accountManagerId\": 1,\n    \"creditDays\": 30.0000,\n    \"zipFilesAttachedForEmailInvoice\": false,\n    \"mergePDFFilesForEmailInvoice\": false,\n    \"custom1\": \"\",\n    \"custom2\": \"\",\n    \"custom3\": null,\n    \"custom4\": null,\n    \"custom5\": null,\n    \"custom6\": null,\n    \"custom7\": null,\n    \"custom8\": null,\n    \"custom9\": null,\n    \"custom10\": null,\n    \"custom11\": null,\n    \"custom12\": null,\n    \"custom13\": null,\n    \"custom14\": null,\n    \"custom15\": null,\n    \"itemiseCallsWithSecondsGreaterThan\": 5,\n    \"itemiseCallsWithCostGreaterThan\": 1.2000,\n    \"printAnalysis\": false,\n    \"emailAnalysisToAccount\": true,\n    \"analysisStyle\": 1,\n    \"additionalInvoiceText\": \"Enter your default Additional Invoice Text Here.\\r\\nTo change the default text go to the Admin Setup section and then press the Companies button.\",\n    \"isPrinted\": false,\n    \"showIntroducerOnInvoice\": false,\n    \"minimumBillValue\": 0.0000,\n    \"isEmailed\": false,\n    \"isCDRsEmailed\": false,\n    \"billStyle\": \"Default Eclipse Style\",\n    \"taxBandId\": 1,\n    \"billingCompanyId\": 4,\n    \"parentDealerId\": 0,\n    \"anticipatedSpend\": 0.0000,\n    \"poNumber\": \"\",\n    \"customerReference\": \"\",\n    \"priceListId\": 0,\n    \"advancedMonths\": 0,\n    \"showDealerLogoOnInvoice\": false,\n    \"isBusiness\": true,\n    \"useDealerPriceList\": false,\n    \"salesInvoiceBillStyleId\": 0,\n    \"alertsEmail\": \"support@example.co.uk\"\n}"}],"_postman_id":"3a0fe3ce-0180-4ab8-9ebd-03320c983ae5"},{"name":"Update Customer By Id","id":"5de2a7de-be4f-44f5-830c-0069c92c3aca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 27,\r\n    \"accountNumber\": \"API18\",\r\n    \"companyName\": \"API Created Company - PUT Test 9\",\r\n    \"primaryContactSurname\": \"Dave - PUT\",\r\n    \"primaryContactForename\": \"Dave\",\r\n    \"primaryContactJobTitle\": \"Dave\",\r\n    \"primaryContactSalutation\": \"Mr\",\r\n    \"registeredAddressLine1\": \"address1\",\r\n    \"registeredAddressLine2\": \"address2\",\r\n    \"registeredAddressLine3\": \"address3\",\r\n    \"registeredAddressPostcode\": \"postcode\",\r\n    \"registeredAddressCounty\": \"county\",\r\n    \"registeredAddressCountry\": \"country\",\r\n    \"primaryContactTelephoneAlt\": \"\",\r\n    \"accountDetailsTelephoneMain\": \"99999 999 999\",\r\n    \"primaryContactTelephoneMobile\": \"\",\r\n    \"primaryContactExtension\": \"\",\r\n    \"accountDetailsFax\": \"\",\r\n    \"accountDetailsEmail\": \"no email address specified\",\r\n    \"accountDetailsWebsite\": \"no homepage specified\",\r\n    \"accountStatus\": 1,\r\n    \"billingAddressLine1\": \"Billing Address Line 1\",\r\n    \"billingAddressLine2\": \"Billing Address Line 2\",\r\n    \"billingAddressLine3\": \"Billing Address Line 3\",\r\n    \"billingAddressPostcode\": \"Billing Postcode\",\r\n    \"billingAddressCounty\": \"county\",\r\n    \"billingAddressCountry\": \"country\",\r\n    \"primaryContactTelephoneMain\": \"1234\",\r\n    \"accountDetailsFax2\": \"\",\r\n    \"primaryContactBillingEmail\": \"example@email.com\",\r\n    \"customerTypeIsCustomer\": true,\r\n    \"customerTypeIsDealer\": false,\r\n    \"customerTypeIsSupplier\": false,\r\n    \"customerTypeIsProspect\": false,\r\n    \"customerTypeIsContact\": false,\r\n    \"accountOnStop\": false,\r\n    \"creditLimit\": 0.0,\r\n    \"billingAddressFao\": \"test\",\r\n    \"mandateReference\": \"\",\r\n    \"bankName\": \"\",\r\n    \"sortCode\": \"\",\r\n    \"bankAccountName\": \"\",\r\n    \"bankAccountNumber\": \"\",\r\n    \"vatRegistered\": false,\r\n    \"vatNo\": null,\r\n    \"invoiceDate\": null,\r\n    \"accountDetailsCompanyRegNo\": \"Not supplied\",\r\n    \"accountDetailsCompanyType\": null,\r\n    \"accountDetailsYearsTrading\": 0,\r\n    \"paymentMethod\": 1,\r\n    \"typeId\": 0,\r\n    \"transactionId\": 0,\r\n    \"customerTypeReseller\": false,\r\n    \"printInvoice\": false,\r\n    \"emailInvoiceToAccount\": true,\r\n    \"isCustomer\": false,\r\n    \"salesManagerId\": 1,\r\n    \"accountManagerId\": 1,\r\n    \"creditDays\": 30,\r\n    \"zipFilesAttachedForEmailInvoice\": false,\r\n    \"mergePDFFilesForEmailInvoice\": false,\r\n    \"custom1\": \"\",\r\n    \"custom2\": \"\",\r\n    \"custom3\": null,\r\n    \"custom4\": null,\r\n    \"custom5\": null,\r\n    \"custom6\": null,\r\n    \"custom7\": null,\r\n    \"custom8\": null,\r\n    \"custom9\": null,\r\n    \"custom10\": null,\r\n    \"custom11\": null,\r\n    \"custom12\": null,\r\n    \"custom13\": null,\r\n    \"custom14\": null,\r\n    \"custom15\": null,\r\n    \"itemiseCallsWithSecondsGreaterThan\": 5,\r\n    \"itemiseCallsWithCostGreaterThan\": 1.2000,\r\n    \"printAnalysis\": false,\r\n    \"emailAnalysisToAccount\": true,\r\n    \"analysisStyle\": 1,\r\n    \"additionalInvoiceText\": \"Enter your default Additional Invoice Text Here.\\r\\nTo change the default text go to the Admin Setup section and then press the Companies button.\",\r\n    \"isPrinted\": false,\r\n    \"showIntroducerOnInvoice\": false,\r\n    \"minimumBillValue\": 0.0000,\r\n    \"isEmailed\": false,\r\n    \"isCDRsEmailed\": false,\r\n    \"balanceOs\": 0.0000,\r\n    \"billStyle\": \"Default Eclipse Style\",\r\n    \"taxBandId\": 1,\r\n    \"billingCompanyId\": 4,\r\n    \"parentDealerId\": 0,\r\n    \"anticipatedSpend\": 0.0000,\r\n    \"poNumber\": null,\r\n    \"customerReference\": null,\r\n    \"priceListId\": 0,\r\n    \"advancedMonths\": 1,\r\n    \"showDealerLogoOnInvoice\": false,\r\n    \"isBusiness\": true,\r\n    \"useDealerPriceList\": false,\r\n    \"salesInvoiceBillStyleId\": 0,\r\n    \"alertsEmail\": \"joebloggs@example.co.uk\"\r\n}"},"url":"{{mainUrl}}v2/customers","description":"<p>Updates (replaces) a customer record based on the values in the model passed in.</p>\n","urlObject":{"path":["customers"],"host":["{{mainUrl}}v2"],"query":[],"variable":[]}},"response":[{"id":"474afff1-a4db-44ee-9c56-93860604d125","name":"Update Customer By Id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 27,\r\n    \"accountNumber\": \"API18\",\r\n    \"companyName\": \"API Created Company - PUT Test 9\",\r\n    \"primaryContactSurname\": \"Dave - PUT\",\r\n    \"primaryContactForename\": \"Dave\",\r\n    \"primaryContactJobTitle\": \"Dave\",\r\n    \"primaryContactSalutation\": \"Mr\",\r\n    \"registeredAddressLine1\": \"address1\",\r\n    \"registeredAddressLine2\": \"address2\",\r\n    \"registeredAddressLine3\": \"address3\",\r\n    \"registeredAddressPostcode\": \"postcode\",\r\n    \"registeredAddressCounty\": \"county\",\r\n    \"registeredAddressCountry\": \"country\",\r\n    \"primaryContactTelephoneAlt\": \"\",\r\n    \"accountDetailsTelephoneMain\": \"99999 999 999\",\r\n    \"primaryContactTelephoneMobile\": \"\",\r\n    \"primaryContactExtension\": \"\",\r\n    \"accountDetailsFax\": \"\",\r\n    \"accountDetailsEmail\": \"no email address specified\",\r\n    \"accountDetailsWebsite\": \"no homepage specified\",\r\n    \"accountStatus\": 1,\r\n    \"billingAddressLine1\": \"Billing Address Line 1\",\r\n    \"billingAddressLine2\": \"Billing Address Line 2\",\r\n    \"billingAddressLine3\": \"Billing Address Line 3\",\r\n    \"billingAddressPostcode\": \"Billing Postcode\",\r\n    \"billingAddressCounty\": \"county\",\r\n    \"billingAddressCountry\": \"country\",\r\n    \"primaryContactTelephoneMain\": \"1234\",\r\n    \"accountDetailsFax2\": \"\",\r\n    \"primaryContactBillingEmail\": \"example@email.com\",\r\n    \"customerTypeIsCustomer\": true,\r\n    \"customerTypeIsDealer\": false,\r\n    \"customerTypeIsSupplier\": false,\r\n    \"customerTypeIsProspect\": false,\r\n    \"customerTypeIsContact\": false,\r\n    \"accountOnStop\": false,\r\n    \"creditLimit\": 0.0,\r\n    \"billingAddressFao\": \"test\",\r\n    \"mandateReference\": \"\",\r\n    \"bankName\": \"\",\r\n    \"sortCode\": \"\",\r\n    \"bankAccountName\": \"\",\r\n    \"bankAccountNumber\": \"\",\r\n    \"vatRegistered\": false,\r\n    \"vatNo\": null,\r\n    \"invoiceDate\": null,\r\n    \"accountDetailsCompanyRegNo\": \"Not supplied\",\r\n    \"accountDetailsCompanyType\": null,\r\n    \"accountDetailsYearsTrading\": 0,\r\n    \"paymentMethod\": 1,\r\n    \"typeId\": 0,\r\n    \"transactionId\": 0,\r\n    \"customerTypeReseller\": false,\r\n    \"printInvoice\": false,\r\n    \"emailInvoiceToAccount\": true,\r\n    \"isCustomer\": false,\r\n    \"salesManagerId\": 1,\r\n    \"accountManagerId\": 1,\r\n    \"creditDays\": 30,\r\n    \"zipFilesAttachedForEmailInvoice\": false,\r\n    \"mergePDFFilesForEmailInvoice\": false,\r\n    \"custom1\": \"\",\r\n    \"custom2\": \"\",\r\n    \"custom3\": null,\r\n    \"custom4\": null,\r\n    \"custom5\": null,\r\n    \"custom6\": null,\r\n    \"custom7\": null,\r\n    \"custom8\": null,\r\n    \"custom9\": null,\r\n    \"custom10\": null,\r\n    \"custom11\": null,\r\n    \"custom12\": null,\r\n    \"custom13\": null,\r\n    \"custom14\": null,\r\n    \"custom15\": null,\r\n    \"itemiseCallsWithSecondsGreaterThan\": 5,\r\n    \"itemiseCallsWithCostGreaterThan\": 1.2000,\r\n    \"printAnalysis\": false,\r\n    \"emailAnalysisToAccount\": true,\r\n    \"analysisStyle\": 1,\r\n    \"additionalInvoiceText\": \"Enter your default Additional Invoice Text Here.\\r\\nTo change the default text go to the Admin Setup section and then press the Companies button.\",\r\n    \"isPrinted\": false,\r\n    \"showIntroducerOnInvoice\": false,\r\n    \"minimumBillValue\": 0.0000,\r\n    \"isEmailed\": false,\r\n    \"isCDRsEmailed\": false,\r\n    \"balanceOs\": 0.0000,\r\n    \"billStyle\": \"Default Eclipse Style\",\r\n    \"taxBandId\": 1,\r\n    \"billingCompanyId\": 4,\r\n    \"parentDealerId\": 0,\r\n    \"anticipatedSpend\": 0.0000,\r\n    \"poNumber\": null,\r\n    \"customerReference\": null,\r\n    \"priceListId\": 0,\r\n    \"advancedMonths\": 1,\r\n    \"showDealerLogoOnInvoice\": false,\r\n    \"isBusiness\": true,\r\n    \"useDealerPriceList\": false,\r\n    \"salesInvoiceBillStyleId\": 0,\r\n    \"alertsEmail\": \"joebloggs@example.co.uk\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}v2/customers"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"5de2a7de-be4f-44f5-830c-0069c92c3aca"},{"name":"Update Customer By Id","id":"6a2b6e3d-ac5a-4434-ae25-d22f1bcd2806","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n\t\t\"op\": \"replace\",\r\n\t\t\"path\": \"/RegisteredAddressLine1\",\r\n\t\t\"value\": \"10 Downing Street\"\r\n\t}\r\n]"},"url":"{{mainUrl}}v2/customers/20","description":"<p>Updates the customer record field(s) specified in the model passed in.</p>\n","urlObject":{"path":["customers","20"],"host":["{{mainUrl}}v2"],"query":[],"variable":[]}},"response":[{"id":"46a2f338-3153-46e9-a0fc-d99378389b30","name":"Update Customer By Id","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n\t\t\"op\": \"replace\",\r\n\t\t\"path\": \"/RegisteredAddressLine1\",\r\n\t\t\"value\": \"10 Downing Street\"\r\n\t}\r\n]","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}v2/customers/20"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6a2b6e3d-ac5a-4434-ae25-d22f1bcd2806"}],"id":"eda3bcf7-98a0-4dca-9918-51f7bec47635","description":"<p>This subsection contains version 2 endpoints that replace one or more existing endpoints.</p>\n","_postman_id":"eda3bcf7-98a0-4dca-9918-51f7bec47635"}],"id":"3e0ccd7a-8660-4c5d-b107-9a512e62af32","description":"<p>This section contains the Customers API endpoints.</p>\n","_postman_id":"3e0ccd7a-8660-4c5d-b107-9a512e62af32"},{"name":"Data Reporting (Data Warehousing)","item":[{"name":"Generic Endpoints","item":[{"name":"Search Call Data Paged","id":"251f7946-1446-477e-83b2-92ec9240c1c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"POST","header":[{"key":"customerKey","value":"{{customerKey}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"telId\",\r\n            \"FieldValue\": 1028,\r\n            \"FilterFunction\": 5\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 350000\r\n}"},"url":"{{mainUrl}}Warehouse/SearchCallDataPaged","urlObject":{"path":["SearchCallDataPaged"],"host":["{{mainUrl}}Warehouse"],"query":[],"variable":[]}},"response":[{"id":"efd12970-0a10-44ec-b132-2a9f25cbe02c","name":"Search Call Data Paged","originalRequest":{"method":"POST","header":[{"key":"customerKey","value":"{{customerKey}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"telId\",\r\n            \"FieldValue\": 1028,\r\n            \"FilterFunction\": 5\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 350000\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}Warehouse/SearchCallDataPaged"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"lastUpdated\": \"2023-02-24T12:14:42.613Z\",\n    \"currentPage\": 1,\n    \"totalPages\": 1,\n    \"totalItems\": 2,\n    \"itemsPerPage\": 50000,\n    \"items\": [\n        {\n            \"id\": 22,\n            \"telId\": 1028,\n            \"carrierId\": 9,\n            \"companyName\": \"Template Company\",\n            \"accountNumber\": \"TEST001\",\n            \"billPlanName\": \"SME - Please enter billing plan name here\",\n            \"billingCli\": \"078 7226 4060\",\n            \"dialledCli\": \"077 4853 9859\",\n            \"terminatingCli\": \"\",\n            \"date\": \"2022-10-12T00:00:00\",\n            \"time\": \"18:43:55\",\n            \"type\": \"f-dq\",\n            \"band\": \"KJ_MOD_Test1\",\n            \"bandDesc\": \"KJ_MOD\",\n            \"carrierCost\": 0.17500,\n            \"cost\": 0.17500,\n            \"duration\": 14,\n            \"bundled\": false,\n            \"partiallyBundled\": false,\n            \"bundledDuration\": 0,\n            \"bundledCost\": 0.00000,\n            \"bundleApplied\": null,\n            \"markedUp\": true,\n            \"network\": \"\",\n            \"carrierName\": \"BT\",\n            \"country\": \"\",\n            \"ratingTableName\": \"Example mobile\",\n            \"billed\": false,\n            \"callBandType\": \"Voice\",\n            \"currencySymbol\": \"£\"\n        },\n        {\n            \"id\": 24,\n            \"telId\": 1028,\n            \"carrierId\": 9,\n            \"companyName\": \"Template Company\",\n            \"accountNumber\": \"TEST001\",\n            \"billPlanName\": \"SME - Please enter billing plan name here\",\n            \"billingCli\": \"077 0842 2233\",\n            \"dialledCli\": \"077 3034 9026\",\n            \"terminatingCli\": \"\",\n            \"date\": \"2022-10-12T00:00:00\",\n            \"time\": \"18:43:55\",\n            \"type\": \"f-dq\",\n            \"band\": \"KJ_MOD_Test1\",\n            \"bandDesc\": \"KJ_MOD\",\n            \"carrierCost\": 0.17500,\n            \"cost\": 0.17500,\n            \"duration\": 14,\n            \"bundled\": false,\n            \"partiallyBundled\": false,\n            \"bundledDuration\": 0,\n            \"bundledCost\": 0.00000,\n            \"bundleApplied\": null,\n            \"markedUp\": true,\n            \"network\": \"\",\n            \"carrierName\": \"BT\",\n            \"country\": \"\",\n            \"ratingTableName\": \"Example mobile\",\n            \"billed\": false,\n            \"callBandType\": \"Voice\",\n            \"currencySymbol\": \"£\"\n        }\n    ]\n}"}],"_postman_id":"251f7946-1446-477e-83b2-92ec9240c1c5"}],"id":"4057cc28-dfd4-4dd4-a41e-8b1b74d2ffe1","description":"<p>Allows paged searching of (data warehouse) call data records. Returns a paged collection of data warehouse version of the call data models.</p>\n<p>Please view the <a href=\"#paged-endpoints\">Paged Endpoints</a> section in the introduction which details the paged search functionality.</p>\n","_postman_id":"4057cc28-dfd4-4dd4-a41e-8b1b74d2ffe1"}],"id":"0d847082-5fe0-4308-8011-4b89af9e52ce","description":"<p>Data warehousing solution in relation to call data information.</p>\n<p>Please note that your database may not be setup to enable this.</p>\n","_postman_id":"0d847082-5fe0-4308-8011-4b89af9e52ce"},{"name":"Invoices","item":[{"name":"V1","item":[{"name":"Get all invoices","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all invoices\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"e1474dc2-d50b-4fd8-91ab-35dba60331c2"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"74303dc0-33bc-477c-bcb5-566042537bbf"}}],"id":"fba82bec-db94-46aa-8e07-43e7e41f2edb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"CustomerId\": 144,\r\n    \"FromDate\": \"\",\r\n    \"ToDate\": \"\",\r\n    \"StartInvoiceNo\": null,\r\n    \"EndInvoiceNo\": null,\r\n    \"PONumber\": null\r\n}"},"url":"{{mainUrl}}Invoice","description":"<p>Returns a collection of invoice models containing historical sales and recurring invoice data. Please note current cycle recurring invoice models will be returned where the invoice has been finalised and emailed but be aware that this could change if the user(s) roll the invoices back in the billing platform.</p>\n","urlObject":{"host":["{{mainUrl}}Invoice"],"query":[],"variable":[]}},"response":[],"_postman_id":"fba82bec-db94-46aa-8e07-43e7e41f2edb"},{"name":"Get all recurring invoices archive month","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all recurring invoices from an archive month\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"c973ee7b-8899-409f-8e01-0a9aebdbe315"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"a2c127c2-c512-4d58-bf42-28f9c3cee185"}}],"id":"ca654ea0-dd9a-4ef2-8772-7e13a21beca7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}Invoice/RecurringInvoices?dbId={{archivemonthid}}","description":"<p>Returns a collection of recurring invoice models containing recurring invoices in the archive month specified. </p>\n<p>\nYou can call the Archives end point to get the id(s) of the archives to query in this call.\n</p>","urlObject":{"path":["RecurringInvoices"],"host":["{{mainUrl}}Invoice"],"query":[{"key":"dbId","value":"{{archivemonthid}}"}],"variable":[]}},"response":[],"_postman_id":"ca654ea0-dd9a-4ef2-8772-7e13a21beca7"},{"name":"Get all recurring invoices current month","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all recurring invoices\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","id":"5dde8e3f-d7a6-448c-9b2a-77ca9d0a3c1d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"67d41c6f-18a0-4560-ac13-5f7f5bdefe59"}}],"id":"24a943cf-4009-4829-83e1-2ab0b55ed037","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}Invoice/RecurringInvoices","description":"<p>Returns a collection of recurring invoice models containing recurring invoices in the current month.</p>\n","urlObject":{"path":["RecurringInvoices"],"host":["{{mainUrl}}Invoice"],"query":[],"variable":[]}},"response":[],"_postman_id":"24a943cf-4009-4829-83e1-2ab0b55ed037"},{"name":"Sales Invoices","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"ef6fdf35-f298-418c-9ab7-cca88644c690"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"bb31d1b7-66b1-48f4-901e-4d87bf2b13cd"}}],"id":"1703c992-346c-411d-8a00-e50018df3918","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"FromDate\": null,\n\t\"ToDate\": null,\n\t\"CustomerId\": 1612,\n\t\"InvoiceNo\": null,\n\t\"PONumber\": null,\n\t\"CustRef\": null\n}"},"url":"{{mainUrl}}Invoice/SalesInvoices","description":"<p>Returns a collection of sales invoice models containing sales invoice data related to the serach criteria passed.</p>\n<p>\nThe search criteria is made up of:\n    </p><ul>\n        <li>\n        FromDate: If filled in will return sales invoices where the invoice date is greater than or equal to the date passed.\n        </li>\n        <li>\n        ToDate: If filled in will return sales invoices where the invoice date is less than or equal to the date passed.\n        </li>\n        <li>\n        CustomerId: If filled in will return sales invoices where customerId is equal to the id passed.\n        </li>   \n        <li>\n        InvoiceNo: If filled in will return sales invoices where the invoice number is equal to that passed.\n        </li>\n        <li>\n        PONumber: If filled in will return sales invoices where the PO number is equal to that passed.\n        </li>\n        <li>\n        CustRef: If filled in will return sales invoices where the customer reference number is equal to that passed.\n        </li>\n    </ul>\n    Please note that combining these fields will narrow down the results passed back.\n<p></p>","urlObject":{"path":["SalesInvoices"],"host":["{{mainUrl}}Invoice"],"query":[],"variable":[]}},"response":[],"_postman_id":"1703c992-346c-411d-8a00-e50018df3918"}],"id":"2b090175-66d0-403b-9608-772b25399244","_postman_id":"2b090175-66d0-403b-9608-772b25399244","description":""},{"name":"V2","item":[{"name":"Search Recurring Invoice Headers Paged","id":"6cf5c7f3-11bc-40dc-8da4-24e502d5ce6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{      \n    \"FilterExpressions\":[\n        {\n            \"FieldName\": \"CustomerId\",\n            \"FieldValue\": 2,\n            \"FilterFunction\": 5\n        }\n    ],\n    \"SortExpressions\": [\n        {\n            \"FieldName\": \"CustomerId\",\n            \"SortOrder\": 1\n        }\n    ],\n    \"PageNumber\": 1,\n    \"PageSize\": 10\n}"},"url":"{{mainUrl}}Invoice/SearchRecurringInvoiceHeadersPaged","description":"<p>Allows paged searching of recurring invoice header records. Returns a paged collection of invoice header models.</p>\n<p>Please view the <a href=\"#paged-endpoints\">Paged Endpoints</a> section in the introduction which details the paged search functionality.</p>\n","urlObject":{"path":["SearchRecurringInvoiceHeadersPaged"],"host":["{{mainUrl}}Invoice"],"query":[],"variable":[]}},"response":[{"id":"dbe4fd1f-e845-4607-baaa-e9641e58a550","name":"Search Recurring Invoice Headers Paged","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{      \n    \"FilterExpressions\":[\n        {\n            \"FieldName\": \"CustomerId\",\n            \"FieldValue\": 2,\n            \"FilterFunction\": 5\n        }\n    ],\n    \"SortExpressions\": [\n        {\n            \"FieldName\": \"CustomerId\",\n            \"SortOrder\": 1\n        }\n    ],\n    \"PageNumber\": 1,\n    \"PageSize\": 10\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}Invoice/SearchRecurringInvoiceHeadersPaged"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"currentPage\": 1,\n    \"totalPages\": 1,\n    \"totalItems\": 1,\n    \"itemsPerPage\": 10,\n    \"items\": [\n        {\n            \"customerId\": 2,\n            \"billingCompanyId\": 4,\n            \"currencySymbol\": \"£\",\n            \"invoiceNumber\": \"100000\",\n            \"invoiceDate\": \"2022-07-29T00:00:00Z\",\n            \"invoiceTotal\": 3936.67,\n            \"vatTotal\": 787.33,\n            \"isFinalised\": true\n        }\n    ]\n}"}],"_postman_id":"6cf5c7f3-11bc-40dc-8da4-24e502d5ce6f"},{"name":"Search Recurring Invoice Lines Paged By Invoice Number","id":"d74baded-ad31-4bb4-a1b3-35b481766a2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{      \n    \"FilterExpressions\":[\n        {\n            \"FieldName\": \"TelId\",\n            \"FieldValue\": 2,\n            \"FilterFunction\": 5\n        }\n    ],\n    \"SortExpressions\": [\n        {\n            \"FieldName\": \"Id\",\n            \"SortOrder\": 1\n        }\n    ],\n    \"PageNumber\": 1,\n    \"PageSize\": 10\n}"},"url":"{{mainUrl}}Invoice/SearchRecurringInvoiceLinesPagedByInvoiceNumber?InvoiceNumber=100000&BillingCompanyId=4","description":"<p>Allows paged searching of recurring invoice line records. Returns a paged collection of invoice line models based on input parameters. Takes the InvoiceNumber and BillingCompanyId as parameters, this can be retrieved in the invoice header request.</p>\n<p>Please view the <a href=\"#paged-endpoints\">Paged Endpoints</a> section in the introduction which details the paged search functionality.</p>\n","urlObject":{"path":["SearchRecurringInvoiceLinesPagedByInvoiceNumber"],"host":["{{mainUrl}}Invoice"],"query":[{"key":"InvoiceNumber","value":"100000"},{"key":"BillingCompanyId","value":"4"}],"variable":[]}},"response":[{"id":"6f5752fa-ae1a-438c-bd15-ab88a8fc60b4","name":"Search Recurring Invoice Lines Paged By Invoice Number","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{      \n    \"FilterExpressions\":[\n        {\n            \"FieldName\": \"TelId\",\n            \"FieldValue\": 2,\n            \"FilterFunction\": 5\n        }\n    ],\n    \"SortExpressions\": [\n        {\n            \"FieldName\": \"Id\",\n            \"SortOrder\": 1\n        }\n    ],\n    \"PageNumber\": 1,\n    \"PageSize\": 10\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{mainUrl}}Invoice/SearchRecurringInvoiceLinesPagedByInvoiceNumber?InvoiceNumber=100000&billingCompanyId=4","host":["{{mainUrl}}Invoice"],"path":["SearchRecurringInvoiceLinesPagedByInvoiceNumber"],"query":[{"key":"InvoiceNumber","value":"100000"},{"key":"billingCompanyId","value":"4"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"currentPage\": 1,\n    \"totalPages\": 1,\n    \"totalItems\": 2,\n    \"itemsPerPage\": 10,\n    \"items\": [\n        {\n            \"telId\": 2,\n            \"invoiceNumber\": \"100000\",\n            \"billingCompanyId\": 4,\n            \"id\": 1,\n            \"valueType\": 3,\n            \"description\": \"ISDN2 Installation\",\n            \"chargeVatablePrice\": 495,\n            \"chargeNonVatablePrice\": 0,\n            \"vat\": 99,\n            \"chargeId\": 4,\n            \"buyPrice\": 0,\n            \"chargeFromDate\": \"2022-07-29T00:00:00Z\",\n            \"chargeToDate\": \"2022-07-29T00:00:00Z\",\n            \"chargeQuantity\": 5,\n            \"chargeRepeatCode\": 1,\n            \"productId\": 18,\n            \"productCode\": \"ISDN2_INSTALL\"\n        },\n        {\n            \"telId\": 2,\n            \"invoiceNumber\": \"100000\",\n            \"billingCompanyId\": 4,\n            \"id\": 4,\n            \"valueType\": 3,\n            \"description\": \"Absorbed Charge - do not pass on\",\n            \"chargeVatablePrice\": 0,\n            \"chargeNonVatablePrice\": 0,\n            \"vat\": 0,\n            \"chargeId\": 3,\n            \"buyPrice\": 0,\n            \"chargeFromDate\": \"2020-03-01T00:00:00Z\",\n            \"chargeToDate\": \"2022-07-31T00:00:00Z\",\n            \"chargeQuantity\": 1,\n            \"chargeRepeatCode\": 1,\n            \"productId\": 43,\n            \"productCode\": \"ABSORB\"\n        }\n    ]\n}"}],"_postman_id":"d74baded-ad31-4bb4-a1b3-35b481766a2d"}],"id":"7a72eeb8-e5ae-4daa-aec3-527f161c6db2","description":"<p>This subsection contains version 2 endpoints that replace one or more existing endpoints.</p>\n","_postman_id":"7a72eeb8-e5ae-4daa-aec3-527f161c6db2"}],"id":"017aa977-0dec-4d7d-88c5-0ac3ec61c134","description":"<p>This section contains the Invoice API endpoints.</p>\n","_postman_id":"017aa977-0dec-4d7d-88c5-0ac3ec61c134"},{"name":"Line Types","item":[{"name":"Search line type for fixed number","event":[{"listen":"test","script":{"exec":["pm.test(\"Line type found\", function () {","    pm.response.to.have.status(200);","});","","","pm.globals.unset(\"Phonenumber\");"],"type":"text/javascript","id":"fb35e6fc-1c2b-4dd9-b8de-3da68c616b64"}}],"id":"47fd9bd1-b7bc-4b37-a2c9-ca833570019a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"url":"{{mainUrl}}phonenumbers/phonetypes","description":"<p>Returns a collection of line type models that are related to fixed number types.</p>\n","urlObject":{"path":["phonetypes"],"host":["{{mainUrl}}phonenumbers"],"query":[],"variable":[]}},"response":[],"_postman_id":"47fd9bd1-b7bc-4b37-a2c9-ca833570019a"}],"id":"0fa5f7e2-48e3-4dbb-aa83-eaee50223329","_postman_id":"0fa5f7e2-48e3-4dbb-aa83-eaee50223329","description":""},{"name":"Number Groups","item":[{"name":"Get all global number groups","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all number group\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","","pm.test(\"'Landline & Mobiles' is found\", function () ","{","    for(let i of jdata)","    {","    //console.log(i);","    if (i.groupname===\"Landline & Mobiles\")","        {","         //console.log(\"OK\");   ","        }","    }","});","","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);",""],"type":"text/javascript","id":"1c55196d-535a-46ad-8d1f-8a9498276b10"}}],"id":"f2176027-7052-4741-8080-86f0a7720851","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}globalnumbergroups","description":"<p>Returns a collection of number group models containing all global number groups in the system.</p>\n","urlObject":{"host":["{{mainUrl}}globalnumbergroups"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2176027-7052-4741-8080-86f0a7720851"},{"name":"Get global number group by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Global number group found\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"575d990f-d77a-4044-b39a-fb0b7ed442e1"}}],"id":"6915acf4-6d84-4d34-8be6-0e404e51ce59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}globalnumbergroups/{{id}}","description":"<p>Returns a number group model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}globalnumbergroups"],"query":[],"variable":[]}},"response":[],"_postman_id":"6915acf4-6d84-4d34-8be6-0e404e51ce59"},{"name":"Get all number groups","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all number groups\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","/*","pm.test(\"'Sample Comparison Table' is found\", function () ","{","    for(let i of jdata)","    {","    //console.log(i);","    if (i.name===\"Sample Comparison Table\")","        {","         console.log(i.name);   ","        }","    }","});","*/","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"customerid\", random_item(jdata).customer_id);"],"type":"text/javascript","id":"6ad72789-6244-410e-a6d6-92e4d3653965"}}],"id":"3a3d4ddd-6097-4b0c-8e35-651d300fa63f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}customernumbergroups","description":"<p>Returns a collection of number group models containing all number groups in the system.</p>\n","urlObject":{"host":["{{mainUrl}}customernumbergroups"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a3d4ddd-6097-4b0c-8e35-651d300fa63f"},{"name":"Get customer number groups by customer id","event":[{"listen":"test","script":{"exec":["pm.test(\"Local number group found\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","//pm.globals.set(\"customer_id\", jdata.customer_id);","","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","console.log(random_item(jdata).id)","pm.globals.set(\"id\", random_item(jdata).id);","","postman.setNextRequest('Get customer number group by id and customer Id');",""],"type":"text/javascript","id":"3ef3cf97-f05b-4c29-9d95-a3120d4c67e5"}}],"id":"4d6e6764-a902-41bd-a9a4-08b59479bcb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}customers/{{customerid}}/customernumbergroups","description":"<p>Returns a collection of all customer number group models related to the customer id passed.</p>\n","urlObject":{"path":["{{customerid}}","customernumbergroups"],"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d6e6764-a902-41bd-a9a4-08b59479bcb7"},{"name":"Get customer number group by id and customer Id","event":[{"listen":"test","script":{"exec":["","pm.test(\"Local number group found\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"customerid\");","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"69a27136-00cb-481b-9032-eb3ef199fd3c"}}],"id":"7d1ee344-6e1d-4243-b798-7a28680de02a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}customers/{{customerid}}/customernumbergroups/{{id}}","description":"<p>Returns a customer number group model related to the customer id and number group id passed.</p>\n","urlObject":{"path":["{{customerid}}","customernumbergroups","{{id}}"],"host":["{{mainUrl}}customers"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d1ee344-6e1d-4243-b798-7a28680de02a"},{"name":"Get number group by phone number","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"a3917952-6d5a-4ff4-b417-aa2ecd57aceb"}}],"id":"937fe39f-936b-4839-837b-cb8e0115304f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}sharednumbergroups/telId/{{telid}}","description":"<p>Returns a collection of number group models related to the phone number id passed.</p>\n","urlObject":{"path":["telId","{{telid}}"],"host":["{{mainUrl}}sharednumbergroups"],"query":[],"variable":[]}},"response":[],"_postman_id":"937fe39f-936b-4839-837b-cb8e0115304f"}],"id":"3bb21273-935d-4d84-8679-0a3ea6f3447b","_postman_id":"3bb21273-935d-4d84-8679-0a3ea6f3447b","description":""},{"name":"Number Profiles","item":[{"name":"Get all number profiles","event":[{"listen":"test","script":{"exec":["","pm.test(\"Get ALL profiles\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).profile_id);","//pm.globals.set(\"name\", random_item(jdata).name);","console.log(random_item(jdata).profile_id);","",""],"type":"text/javascript","id":"65783eb5-49a7-4683-8bce-9733be3cca03"}}],"id":"07001ab6-10fe-46a8-abae-9afe661ebb4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}numberprofiles","description":"<p>Returns a collection of number profile models containing all number profiles in the system.</p>\n","urlObject":{"host":["{{mainUrl}}numberprofiles"],"query":[],"variable":[]}},"response":[],"_postman_id":"07001ab6-10fe-46a8-abae-9afe661ebb4e"},{"name":"Get profile by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Get a profile by id\", function () {","    pm.response.to.have.status(200);","});","","","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"36ccb676-25f7-4e69-b5b4-bfcad2293214"}}],"id":"62521652-b983-4ae7-8fc3-87af10e198f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}numberprofiles/{{id}}","description":"<p>Returns a profile model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}numberprofiles"],"query":[],"variable":[]}},"response":[],"_postman_id":"62521652-b983-4ae7-8fc3-87af10e198f7"}],"id":"d5dbcadd-18f8-4b05-a58c-86c19308ec37","_postman_id":"d5dbcadd-18f8-4b05-a58c-86c19308ec37","description":""},{"name":"Payment Types","item":[{"name":"Get all payment types","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all payment types\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"ID found\", function () {","    pm.expect(pm.response.text()).to.include(\"id\");","});","","let jdata= pm.response.json();","","var count = 0;","pm.test(\"'Direct Debit' is found\", function () ","{","    ","    var count = 0;","    ","  ","   for (let i=0; i<jdata.length; i++)","   {","     if(jdata[i].name === \"Direct Debit\")","     {","        count++;","        pm.expect(jdata[i].name).to.be.eql(\"Direct Debit\");","     }","   ","   }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","","//pick random id","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);","pm.globals.set(\"name\", random_item(jdata).name);","console.log(random_item(jdata).id);","","//postman.setNextRequest(\"Search customer by company\");","",""],"type":"text/javascript","id":"33a0412c-0803-4d61-bae2-2e04f41fa25c"}}],"id":"2c0dd7af-fa27-49a1-aaac-1c250a5582bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}paymenttypes","description":"<p>Returns a collection of payment type models containing all payment types in the system.</p>\n","urlObject":{"host":["{{mainUrl}}paymenttypes"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c0dd7af-fa27-49a1-aaac-1c250a5582bc"},{"name":"Get payment type by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Return one payment type\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"4541a2d0-0506-4a5f-a172-da5b87c7498c"}}],"id":"6b21da27-5c01-418b-80ad-eab91573ef55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}paymenttypes/{{id}}","description":"<p>Returns a payment type model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}paymenttypes"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b21da27-5c01-418b-80ad-eab91573ef55"},{"name":"Search payment types","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all payment types\", function () {","    pm.response.to.have.status(200);","});","","","pm.globals.unset(\"name\");"],"type":"text/javascript","id":"977b6a68-f8ef-4c84-a8e2-1ea6737c2f9e"}}],"id":"086588cc-8b5b-4072-b00c-6ef462c78e17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"url":"{{mainUrl}}paymenttypes/search?name={{name}}","description":"<p>Returns a collection of payment type models containing payment types related to the search text.</p>\n","urlObject":{"path":["search"],"host":["{{mainUrl}}paymenttypes"],"query":[{"key":"name","value":"{{name}}"}],"variable":[]}},"response":[],"_postman_id":"086588cc-8b5b-4072-b00c-6ef462c78e17"}],"id":"47173a07-3fed-45db-b467-f3a606e28598","_postman_id":"47173a07-3fed-45db-b467-f3a606e28598","description":""},{"name":"Phone numbers","item":[{"name":"V1","item":[{"name":"Get Number details","id":"b387323a-a928-456d-8a29-4838cd8d627e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"url":"{{mainUrl}}billplans/{{billplanid}}/phonenumbers/{{telid}}","description":"<p>Returns a collection of phonenumber models that will contain zero or more phonenumbers depending on the criteria used.</p>\n","urlObject":{"path":["{{billplanid}}","phonenumbers","{{telid}}"],"host":["{{mainUrl}}billplans"],"query":[],"variable":[]}},"response":[],"_postman_id":"b387323a-a928-456d-8a29-4838cd8d627e"},{"name":"Search phone numbers","event":[{"listen":"test","script":{"exec":["pm.test(\"List all phone numbers\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"Phonenumber\", random_item(jdata).phonenumber);","//pm.globals.set(\"billing_id\", random_item(jdata).billing_id);","//pm.globals.set(\"tel_id\", random_item(jdata).tel_id);","",""],"type":"text/javascript","id":"71b83f65-701a-4c1c-8b2c-c17508eacd45"}}],"id":"7f80195d-3a4a-4dca-8f82-581bc334ea80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"url":"{{mainUrl}}phonenumbers/search?start=1&end=50","description":"<p>Returns a collection of phonenumber models containing zero to many results based on the criteria passed.</p>\nParameters are:\n<p>Number - this is a partial match.</p>\n<p>numberStatus - All = 0, Connected = 1, Disconnected = 2 </p>\n<p>accountType  \nAll = 0, Customer= 1, Dealer = 2, Supplier = 3, Reseller = 4, Contact = 5, Prospect = 6</p>\n<p>start&gt;</p>\n<p>end</p>","urlObject":{"path":["search"],"host":["{{mainUrl}}phonenumbers"],"query":[{"key":"start","value":"1"},{"key":"end","value":"50"}],"variable":[]}},"response":[],"_postman_id":"7f80195d-3a4a-4dca-8f82-581bc334ea80"},{"name":"DDIs","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"42fbb05e-3301-4914-bbf6-76a82c90aef8"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d04ad7af-1eda-459d-aafe-9426d0afaf96"}}],"id":"1e4d2ef5-121e-4311-bcb2-334e102e788a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}phonenumbers/ddi/{{telid}}","description":"<p>Returns a collection of DDI models. </p>\n","urlObject":{"path":["ddi","{{telid}}"],"host":["{{mainUrl}}phonenumbers"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e4d2ef5-121e-4311-bcb2-334e102e788a"},{"name":"Add fixed number","event":[{"listen":"test","script":{"exec":["pm.test(\"Number added\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"2e1f6e71-504e-43aa-8dc3-d2b68c7db342"}}],"id":"dddd7c97-b61a-4cf9-b44a-b1e4cdf368d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"cli\": \"02085558555\",\r\n  \"accountId\": 169,\r\n  \"billingPlanId\": 2380,\r\n  \"numberType\": 2,\r\n  \"startDate\": \"2019-07-15\",\r\n  \"costCentre\": \"000\",\r\n  \"description\": \"Test\",\r\n  \"email\": \"api@informbilling.co.uk\",\r\n  \"processLine\": true,\r\n  \"ratingTables\": [\r\n    {\r\n      \"ratingTableId\": 90,\r\n      \"carrierId\": 0,\r\n      \"comparisionId\": 2\r\n    },\r\n    {\r\n      \"ratingTableId\": 91,\r\n      \"carrierId\": 6,\r\n      \"comparisionId\": 2\r\n    }\r\n  ]\r\n}"},"url":"{{mainUrl}}/numberprofile/{{Fixedprofileid}}/phonenumbers","description":"<p>Adds a number of the type - fixed line.</p>\n","urlObject":{"path":["numberprofile","{{Fixedprofileid}}","phonenumbers"],"host":["{{mainUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dddd7c97-b61a-4cf9-b44a-b1e4cdf368d7"},{"name":"Add mobile number","event":[{"listen":"test","script":{"exec":["pm.test(\"Number added\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"4a7596d7-d546-4cd0-a3c1-e1689aef89b8"}}],"id":"88e6a886-7cb1-4c72-9382-8ca8badeea96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"cli\": \"07864710356\",\r\n  \"accountId\": 61,\r\n  \"billingPlanId\": 2002,\r\n  \"numberType\": 3,\r\n  \"startDate\": \"2019-07-15 00:00:00.000\",\r\n  \"costCentre\": \"000\",\r\n  \"description\": \"Test\",\r\n  \"email\": \"api@informbilling.co.uk\",\r\n  \"processLine\": false,\r\n  \"ratingTables\": [\r\n    {\r\n      \"ratingTableId\": 90,\r\n      \"carrierId\": 0,\r\n      \"comparisionId\": 0\r\n    }\r\n    ]\r\n}"},"url":"{{mainUrl}}/numberprofile/{{Mobileprofileid}}/phonenumbers","description":"<p>Adds a mobile number to the system.</p>\n","urlObject":{"path":["numberprofile","{{Mobileprofileid}}","phonenumbers"],"host":["{{mainUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"88e6a886-7cb1-4c72-9382-8ca8badeea96"},{"name":"Add NTS number","event":[{"listen":"test","script":{"exec":["pm.test(\"Number added\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"67ce51d0-9152-4d89-ba29-93c119e32080"}}],"id":"719fc0b2-1017-4e04-9a59-38c71566b1f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"cli\": \"0800558542\",\r\n  \"accountId\": 139,\r\n  \"billingPlanId\": 2074,\r\n  \"numberType\": 1,\r\n  \"startDate\": \"2018-10-18\",\r\n  \"costCentre\": \"000\",\r\n  \"description\": \"Test\",\r\n  \"email\": \"api@informbilling.co.uk\",\r\n  \"processLine\": true,\r\n  \"ratingTables\": [\r\n    {\r\n      \"ratingTableId\": 91,\r\n      \"carrierId\": 0,\r\n      \"comparisionId\": 2\r\n    },\r\n    {\r\n      \"ratingTableId\": 90,\r\n      \"carrierId\": 6,\r\n      \"comparisionId\": 2\r\n    }\r\n  ]\r\n}"},"url":"{{mainUrl}}/numberprofile/{{NTSprofileid}}/phonenumbers","description":"<p>Adds an Inbound NTS number to the system.</p>\n","urlObject":{"path":["numberprofile","{{NTSprofileid}}","phonenumbers"],"host":["{{mainUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"719fc0b2-1017-4e04-9a59-38c71566b1f6"},{"name":"Update fixed number","event":[{"listen":"test","script":{"exec":["pm.test(\"Number updated\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"07334b36-02fd-4f35-a48d-3c0a9169bd61"}}],"id":"f84f2d42-cf4c-47e6-ad35-df700b203be0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"equip_id\": 5,\r\n  \"numlines\": 1,\r\n  \"numchannels\": 1,\r\n  \"type_id\": 26,\r\n  \"centrex\": {\r\n    \"cps_options\": \"D\"\r\n  },\r\n  \"description\": \"test description/username\",\r\n  \"costcode\": \"000\",\r\n  \"conDate\": \"2016-03-05T00:00:00Z\",\r\n  \"email\": \"no email address specified\",\r\n  \"sp_contype\": 4,\r\n  \"user_contractdate\": \"2016-11-03T12:00:00Z\",\r\n  \"user_contractlen\": 12,\r\n  \"user_contype\": 4,\r\n  \"sp_contractdate\": \"2016-11-03T12:00:00Z\",\r\n  \"sp_contractlen\": 12,\r\n  \"printSettings\": {\r\n    \"psum\": false,\r\n    \"panal\": false,\r\n    \"pitem\": false,\r\n    \"analstyle\": 1,\r\n    \"sumshowsave\": false\r\n  },\r\n  \"emailSettings\": {\r\n    \"esumac\": false,\r\n    \"eanalac\": false,\r\n    \"eitemac\": false,\r\n    \"esumbp\": false,\r\n    \"eanalbp\": false,\r\n    \"eitembp\": false,\r\n    \"esumus\": false,\r\n    \"eanalus\": false,\r\n    \"eitemus\": false,\r\n    \"ecdrac\": false,\r\n    \"ecdrbp\": false,\r\n    \"ecdrus\": false\r\n  },\r\n  \"Custom1\": \"Test\",\r\n  \"Custom2\": \"Test1\",\r\n  \"Custom3\": \"Datalist\"\r\n}"},"url":"{{mainUrl}}phonenumbers/fixed/{{telid}}","description":"<p>Updates a fixed line number.</p>\n","urlObject":{"path":["fixed","{{telid}}"],"host":["{{mainUrl}}phonenumbers"],"query":[],"variable":[]}},"response":[{"id":"e5d19caf-6d62-4b84-94bb-c66377f5f6da","name":"Update fixed number","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"equip_id\": 5,\r\n  \"numlines\": 1,\r\n  \"numchannels\": 1,\r\n  \"type_id\": 26,\r\n  \"centrex\": {\r\n    \"cps_options\": \"D\"\r\n  },\r\n  \"description\": \"test description/username\",\r\n  \"costcode\": \"000\",\r\n  \"conDate\": \"2016-03-05T00:00:00Z\",\r\n  \"email\": \"no email address specified\",\r\n  \"sp_contype\": 4,\r\n  \"user_contractdate\": \"2016-11-03T12:00:00Z\",\r\n  \"user_contractlen\": 12,\r\n  \"user_contype\": 4,\r\n  \"sp_contractdate\": \"2016-11-03T12:00:00Z\",\r\n  \"sp_contractlen\": 12,\r\n  \"printSettings\": {\r\n    \"psum\": false,\r\n    \"panal\": false,\r\n    \"pitem\": false,\r\n    \"analstyle\": 1,\r\n    \"sumshowsave\": false\r\n  },\r\n  \"emailSettings\": {\r\n    \"esumac\": false,\r\n    \"eanalac\": false,\r\n    \"eitemac\": false,\r\n    \"esumbp\": false,\r\n    \"eanalbp\": false,\r\n    \"eitembp\": false,\r\n    \"esumus\": false,\r\n    \"eanalus\": false,\r\n    \"eitemus\": false,\r\n    \"ecdrac\": false,\r\n    \"ecdrbp\": false,\r\n    \"ecdrus\": false\r\n  }\r\n}"},"url":"{{base}}phonenumbers/fixed/19852"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Microsoft-IIS/8.5"},{"key":"X-StackifyID","value":"V1|f975d02b-4f0a-400f-b7b8-2596925c3e45|"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Mon, 29 Oct 2018 10:13:42 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"f84f2d42-cf4c-47e6-ad35-df700b203be0"},{"name":"Update mobile number","id":"cbb832fa-b660-4116-95e0-3f0ffa522e2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"sim\": \"-\",\r\n  \"puk\": \"-\",\r\n  \"mailbox\": \"aa\",\r\n  \"data\": \"aa\",\r\n  \"fax\": \"aa\",\r\n  \"bar_int\": true,\r\n  \"bar_roam\": true,\r\n  \"bar_out\": true,\r\n  \"bar_stolen\": true,\r\n  \"lower\": 1,\r\n  \"upper\": 1,\r\n  \"sim_restrictions\": \"dd\",\r\n  \"pac\": \"dd\",\r\n  \"shortcode\": \"dd\",\r\n  \"equipserial\": \"dd\",\r\n  \"equip_id\": 3,\r\n  \"description\": \"No description/username\",\r\n  \"costcode\": \"000\",\r\n  \"conDate\": \"2016-03-31T00:00:00Z\",\r\n  \"email\": \"no email address specified\",\r\n  \"sp_contype\": 6,\r\n  \"user_contractdate\": \"2016-04-30T00:00:00Z\",\r\n  \"user_contractlen\": 12,\r\n  \"user_contype\": 6,\r\n  \"sp_contractdate\": \"2016-04-30T00:00:00Z\",\r\n  \"sp_contractlen\": 12,\r\n  \"printSettings\": {\r\n    \"psum\": true,\r\n    \"panal\": true,\r\n    \"pitem\": true,\r\n    \"analstyle\": 1,\r\n    \"sumshowsave\": true\r\n  },\r\n  \"emailSettings\": {\r\n    \"esumac\": true,\r\n    \"eanalac\": false,\r\n    \"eitemac\": true,\r\n    \"esumbp\": true,\r\n    \"eanalbp\": false,\r\n    \"eitembp\": true,\r\n    \"esumus\": false,\r\n    \"eanalus\": false,\r\n    \"eitemus\": false,\r\n    \"ecdrac\": false,\r\n    \"ecdrbp\": false,\r\n    \"ecdrus\": false\r\n  },\r\n  \"Custom1\": \"Test\",\r\n  \"Custom2\": \"Test1\",\r\n  \"Custom3\": \"Datalist\"\r\n}"},"url":"{{mainUrl}}phonenumbers/mobile/{{telid}}","description":"<p>Updates a mobile number.</p>\n","urlObject":{"path":["mobile","{{telid}}"],"host":["{{mainUrl}}phonenumbers"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbb832fa-b660-4116-95e0-3f0ffa522e2a"},{"name":"Update NTS number","id":"202e4bcb-c79d-462f-b200-72480444f677","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"ntsclass\": 1,\r\n  \"ntstype\": 4,\r\n  \"routing_plan\": 1,\r\n  \"description\": \"no\",\r\n  \"costcode\": \"100\",\r\n  \"conDate\": \"2014-11-01T00:00:00Z\",\r\n  \"email\": \"abdulw@informbilling.co.uk\",\r\n  \"sp_contype\": 10,\r\n  \"user_contractdate\": \"2014-11-01T00:00:00Z\",\r\n  \"user_contractlen\": 12,\r\n  \"user_contype\": 10,\r\n  \"sp_contractdate\": \"2014-11-01T00:00:00Z\",\r\n  \"sp_contractlen\": 12,\r\n  \"printSettings\": {\r\n    \"psum\": true,\r\n    \"panal\": true,\r\n    \"pitem\": true,\r\n    \"analstyle\": 15,\r\n    \"sumshowsave\": true\r\n  },\r\n  \"emailSettings\": {\r\n    \"esumac\": 2,\r\n    \"eanalac\": true,\r\n    \"eitemac\": true,\r\n    \"esumbp\": true,\r\n    \"eanalbp\": true,\r\n    \"eitembp\": true,\r\n    \"esumus\": true,\r\n    \"eanalus\": true,\r\n    \"eitemus\": true,\r\n    \"ecdrac\": true,\r\n    \"ecdrbp\": true,\r\n    \"ecdrus\": true\r\n  },\r\n  \"Custom1\": \"Test\",\r\n  \"Custom2\": \"Test1\",\r\n  \"Custom3\": \"Datalist\"\r\n}"},"url":"{{mainUrl}}phonenumbers/nts/{{telid}}","description":"<p>Updates an inbound NTS number.</p>\n","urlObject":{"path":["nts","{{telid}}"],"host":["{{mainUrl}}phonenumbers"],"query":[],"variable":[]}},"response":[],"_postman_id":"202e4bcb-c79d-462f-b200-72480444f677"},{"name":"Update CLI","event":[{"listen":"test","script":{"exec":["pm.test(\"CLI has updated\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"9ac3ddc9-e75c-4cfb-96c0-78bcb7438393"}}],"id":"b7ba0cc0-64d3-41b8-8f36-95f6dbb04606","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"newCli\": \"Clearsolution\"\r\n}"},"url":"{{mainUrl}}phonenumbers/{{telid}}/updatecli","description":"<p>Updates any number type.</p>\n","urlObject":{"path":["{{telid}}","updatecli"],"host":["{{mainUrl}}phonenumbers"],"query":[],"variable":[]}},"response":[],"_postman_id":"b7ba0cc0-64d3-41b8-8f36-95f6dbb04606"},{"name":"Disconnect a number","event":[{"listen":"prerequest","script":{"exec":["let d = new Date();","console.log(d);","","","//pm.globals.set(\"disconnectDate\", d);",""],"type":"text/javascript","id":"0cdba682-ec10-4329-8526-72a03e7463a7"}},{"listen":"test","script":{"exec":["pm.test(\"Number disconnected\", function () {","    pm.response.to.have.status(200);","});","","","pm.globals.unset(\"disconnectDate\");"],"type":"text/javascript","id":"1d59013b-457e-438c-8a72-eba508a17db0"}}],"id":"98b2011d-0b8c-4500-8763-7338f3a07131","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"disconnectionDate\":\"2017-10-31\",\r\n  \"deleteUnbilled\": true,\r\n  \"credit\": true\r\n}"},"url":"{{mainUrl}}billplans/{{billplanid}}/phonenumbers/{{telid}}/disconnect","description":"<p>Sets a disconnection date for a number. The number will not be deleted. This controls the dates that calls will be billed for on this number.</p>\n","urlObject":{"path":["{{billplanid}}","phonenumbers","{{telid}}","disconnect"],"host":["{{mainUrl}}billplans"],"query":[],"variable":[]}},"response":[],"_postman_id":"98b2011d-0b8c-4500-8763-7338f3a07131"},{"name":"Delete number","event":[{"listen":"test","script":{"exec":["pm.test(\"Number deleted\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","id":"a7f877bb-b27b-4d8b-9807-ca1374596112"}}],"id":"55f44950-7b6b-4b30-b879-4eff76212ff0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}billplans/{{billplanid}}/phonenumbers/{{telid}}","description":"<p>Permanently deletes the number from the system. \n<strong>Note</strong>\nOnce a number has been deleted it cannot be retrieved and all charges connected to this number will also be deleted. </p>\n<ul>\n    <li>\n        A number cannot be deleted if it has calls or charges that are contained on a bill that is finalised.\n    </li>\n    <li>\n        If there are any unbilled calls connected to this number the number will still be deleted but the unbilled calls will be flagged as missing billing cli(s) in Eclipse NG.\n    </li>\n</ul>","urlObject":{"path":["{{billplanid}}","phonenumbers","{{telid}}"],"host":["{{mainUrl}}billplans"],"query":[],"variable":[]}},"response":[],"_postman_id":"55f44950-7b6b-4b30-b879-4eff76212ff0"}],"id":"f0396e65-8650-4bbf-9fba-c95ad263a051","_postman_id":"f0396e65-8650-4bbf-9fba-c95ad263a051","description":""},{"name":"V2","item":[{"name":"Search CLIs Paged","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"257b1c37-43cd-42cd-b3b5-7319ce9b0575"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"45953c5a-dce1-41c3-836f-f95236fdc25e"}}],"id":"517b1cbd-34a2-4fec-9b9f-08c1162d5627","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{      \n    \"FilterExpressions\":[\n        {\n            \"FieldName\": \"LastUpdated\",\n            \"FieldValue\": \"2022-08-05\",\n            \"FilterFunction\": 7\n        }\n    ],\n    \"SortExpressions\": [\n        {\n            \"FieldName\": \"Id\",\n            \"sortOrder\": 1\n        }\n    ],\n    \"PageNumber\": 1,\n    \"PageSize\": 10\n}"},"url":"{{mainUrl}}v2/CLI/SearchCLIsPaged","description":"<p>Allows paged searching of CLI records. Returns a paged collection of CLI models.</p>\n<p>Please view the <a href=\"#paged-endpoints\">Paged Endpoints</a> section in the introduction which details the paged search functionality.</p>\n","urlObject":{"path":["CLI","SearchCLIsPaged"],"host":["{{mainUrl}}v2"],"query":[],"variable":[]}},"response":[{"id":"75443709-c190-4c0a-9b34-72f001834212","name":"Search CLIs Paged","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"},{"key":"customerKey","value":"{{customerKey}}","type":"text"}],"body":{"mode":"raw","raw":"{      \n    \"FilterExpressions\":[\n        {\n            \"FieldName\": \"numberDetailsEmailAddress\",\n            \"FieldValue\": \"api@informbilling.co.uk\",\n            \"FilterFunction\": 5\n        }\n    ],\n    \"SortExpressions\": [\n        {\n            \"FieldName\": \"Id\",\n            \"sortOrder\": 1\n        }\n    ],\n    \"PageNumber\": 1,\n    \"PageSize\": 10\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}CLI/v2/SearchCLIsPaged"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"currentPage\": 1,\n    \"totalPages\": 1,\n    \"totalItems\": 1,\n    \"itemsPerPage\": 10,\n    \"items\": [\n        {\n            \"id\": 1002,\n            \"telId\": 1002,\n            \"numberDetailsNumberDescription\": \"Description example\",\n            \"numberDetailsCostCentre\": \"000\",\n            \"activePeriodStartDate\": \"2020-03-01T00:00:00Z\",\n            \"activePeriodEndDate\": \"2029-12-31T00:00:00Z\",\n            \"numberDetailsEmailAddress\": \"api@informbilling.co.uk\",\n            \"equipmentId\": 1,\n            \"equipmentSerialNo\": \"1\",\n            \"lineDetailsNoLines\": 1,\n            \"lineDetailsNoChannels\": 1,\n            \"lineDetailLineType\": 2,\n            \"addressDetailsAccountNumber\": \"BT123456\",\n            \"addressDetailsAccountName\": \"BT Acct\",\n            \"addressDetailsAddress\": \"74 Prestwick Road\",\n            \"addressDetailsPostcode\": \"BS12 3RN\",\n            \"addressDetailsWholesaleOrderNo\": \"BTW98765\",\n            \"cpsCentrexRef\": \"\",\n            \"cpsOrderNumber\": \"CPS123456\",\n            \"cpsOptions\": \"1\",\n            \"simDetailsSim\": \"-\",\n            \"simDetailsPUK\": \"-\",\n            \"simDetailsMailboxNo\": \"api@informbilling.co.uk\",\n            \"simDetailsDataNo\": \"\",\n            \"simDetailsFaxNo\": \"\",\n            \"lower\": 0.00,\n            \"upper\": 0.00,\n            \"simRestrictions\": \"\",\n            \"carrierContractStartDate\": \"2020-03-01T00:00:00Z\",\n            \"carrierContractEndDate\": 1,\n            \"carrierContractContractType\": 1,\n            \"userContractStartDate\": \"2020-03-01T00:00:00Z\",\n            \"userContractLength\": 1,\n            \"userContractContractType\": 1,\n            \"miscellaneousPac\": \"123123\",\n            \"miscellaneousShortCode\": \"1231241\",\n            \"numberInfoRoutingPlan\": 1,\n            \"numberInfoDestP2PNumber\": \"1\",\n            \"custom1\": \"Custom1 example\",\n            \"custom2\": null,\n            \"custom3\": null,\n            \"custom4\": null,\n            \"custom5\": null,\n            \"custom6\": null,\n            \"custom7\": null,\n            \"custom8\": null,\n            \"custom9\": null,\n            \"custom10\": null,\n            \"custom11\": null,\n            \"custom12\": null,\n            \"custom13\": null,\n            \"custom14\": null,\n            \"custom15\": null,\n            \"summaryPagePrint\": true,\n            \"analysisPrint\": true,\n            \"itemisationPrint\": true,\n            \"summaryPageAccountAddress\": true,\n            \"analysisAccountAddress\": true,\n            \"itemisationAccountAddress\": true,\n            \"summaryPageBillingPlanAddress\": true,\n            \"analysisBillingPlanAddress\": true,\n            \"itemisationBillingPlanAddress\": true,\n            \"summaryPageUserCLIAddress\": true,\n            \"analysisUserCLIAddress\": true,\n            \"itemisationUserCLIAddress\": true,\n            \"analysisStyle\": 1,\n            \"summaryPageShowSaving\": true,\n            \"username\": \"inform\",\n            \"cdrsAccountAddress\": true,\n            \"cdrsBillingPlanAddress\": true,\n            \"cdrsUserCLIAddress\": true,\n            \"numberInfoClassType\": 1,\n            \"secondaryDetailsCreationTime\": \"2022-07-15T14:40:10.853Z\",\n            \"lineRentalNumberType\": 2,\n            \"ntsType\": 1,\n            \"bonusPaid\": true,\n            \"bonusPaidOld\": true,\n            \"disconnected\": false,\n            \"billingId\": 1962,\n            \"numberDetailsPhoneNumber\": \"GA123123sf12\",\n            \"lastUpdated\": \"2022-08-12T10:01:59.4455913+01:00\"\n        }\n    ]\n}"}],"_postman_id":"517b1cbd-34a2-4fec-9b9f-08c1162d5627"},{"name":"Update Fixed CLI","id":"ae55f517-0cfb-431b-8109-27124f01278d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\r\n    \"telId\": 1024,\r\n    \"numberDescription\": \"Testing Fixed CLI 2\",\r\n    \"costCentre\": \"000\",\r\n    \"activePeriodStartDate\": \"2020-02-29T00:00:00Z\",\r\n    \"activePeriodEndDate\": \"2999-09-09T11:11:11Z\",\r\n    \"emailAddress\": \"joebloggs@informbilling.co.uk\",\r\n    \"equipmentId\": 5,\r\n    \"equipmentSerialNo\": null,\r\n    \"numberOfLines\": null,\r\n    \"numberOfChannels\": null,\r\n    \"lineTypeId\": 23,\r\n    \"addressDetailsAccountNumber\": null,\r\n    \"addressDetailsAccountName\": null,\r\n    \"addressDetailsAddress\": null,\r\n    \"addressDetailsPostcode\": null,\r\n    \"addressDetailsWholesaleOrderNo\": null,\r\n    \"cpsCentrexRef\": null,\r\n    \"cpsOrderNumber\": null,\r\n    \"cpsOptionId\": \"A\",\r\n    \"carrierContractStartDate\": \"2020-02-29T00:00:00Z\",\r\n    \"carrierContractEndDate\": 999,\r\n    \"carrierContractContractTypeId\": 2,\r\n    \"userContractStartDate\": \"2020-02-29T00:00:00Z\",\r\n    \"userContractLength\": 1,\r\n    \"userContractContractTypeId\": 2,\r\n    \"custom1\": \"test custom field 1\",\r\n    \"custom2\": \"test custom field 2\",\r\n    \"custom3\": \"\",\r\n    \"custom4\": \"\",\r\n    \"custom5\": \"\",\r\n    \"custom6\": \"\",\r\n    \"custom7\": \"\",\r\n    \"custom8\": \"\",\r\n    \"custom9\": \"\",\r\n    \"custom10\": \"\",\r\n    \"custom11\": \"\",\r\n    \"custom12\": \"\",\r\n    \"custom13\": \"\",\r\n    \"custom14\": \"\",\r\n    \"custom15\": \"\",\r\n    \"printSummary\": null,\r\n    \"printAnalysis\": null,\r\n    \"printItemisation\": null,\r\n    \"emailSummaryToAccount\": null,\r\n    \"emailAnalysisToAccount\": null,\r\n    \"emailItemisationToAccount\": null,\r\n    \"emailSummaryToBillPlan\": null,\r\n    \"emailAnalysisToBillPlan\": null,\r\n    \"emailItemisationToBillPlan\": null,\r\n    \"emailSummaryToCLI\": null,\r\n    \"emailAnalysisToCLI\": null,\r\n    \"emailItemisationToCLI\": null,\r\n    \"analysisStyle\": 0,\r\n    \"showSavingOnSummary\": null,\r\n    \"emailCDRsToAccount\": null,\r\n    \"emailCDRsToBillPlan\": null,\r\n    \"emailCDRsToCLI\": null\r\n}"},"url":"{{mainUrl}}v2/CLI/fixed","description":"<p>Updates a fixed line number.</p>\n","urlObject":{"path":["CLI","fixed"],"host":["{{mainUrl}}v2"],"query":[],"variable":[]}},"response":[{"id":"7568485e-dada-4e13-8005-6eb83170ea24","name":"Update Fixed CLI","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\r\n    \"telId\": 1024,\r\n    \"numberDescription\": \"Testing Fixed CLI 2\",\r\n    \"costCentre\": \"000\",\r\n    \"activePeriodStartDate\": \"2020-02-29T00:00:00Z\",\r\n    \"activePeriodEndDate\": \"2999-09-09T11:11:11Z\",\r\n    \"emailAddress\": \"joebloggs@informbilling.co.uk\",\r\n    \"equipmentId\": 5,\r\n    \"equipmentSerialNo\": null,\r\n    \"numberOfLines\": null,\r\n    \"numberOfChannels\": null,\r\n    \"lineTypeId\": 23,\r\n    \"addressDetailsAccountNumber\": null,\r\n    \"addressDetailsAccountName\": null,\r\n    \"addressDetailsAddress\": null,\r\n    \"addressDetailsPostcode\": null,\r\n    \"addressDetailsWholesaleOrderNo\": null,\r\n    \"cpsCentrexRef\": null,\r\n    \"cpsOrderNumber\": null,\r\n    \"cpsOptionId\": \"A\",\r\n    \"carrierContractStartDate\": \"2020-02-29T00:00:00Z\",\r\n    \"carrierContractEndDate\": 999,\r\n    \"carrierContractContractTypeId\": 2,\r\n    \"userContractStartDate\": \"2020-02-29T00:00:00Z\",\r\n    \"userContractLength\": 1,\r\n    \"userContractContractTypeId\": 2,\r\n    \"custom1\": \"test custom field 1\",\r\n    \"custom2\": \"test custom field 2\",\r\n    \"custom3\": \"\",\r\n    \"custom4\": \"\",\r\n    \"custom5\": \"\",\r\n    \"custom6\": \"\",\r\n    \"custom7\": \"\",\r\n    \"custom8\": \"\",\r\n    \"custom9\": \"\",\r\n    \"custom10\": \"\",\r\n    \"custom11\": \"\",\r\n    \"custom12\": \"\",\r\n    \"custom13\": \"\",\r\n    \"custom14\": \"\",\r\n    \"custom15\": \"\",\r\n    \"printSummary\": null,\r\n    \"printAnalysis\": null,\r\n    \"printItemisation\": null,\r\n    \"emailSummaryToAccount\": null,\r\n    \"emailAnalysisToAccount\": null,\r\n    \"emailItemisationToAccount\": null,\r\n    \"emailSummaryToBillPlan\": null,\r\n    \"emailAnalysisToBillPlan\": null,\r\n    \"emailItemisationToBillPlan\": null,\r\n    \"emailSummaryToCLI\": null,\r\n    \"emailAnalysisToCLI\": null,\r\n    \"emailItemisationToCLI\": null,\r\n    \"analysisStyle\": 0,\r\n    \"showSavingOnSummary\": null,\r\n    \"emailCDRsToAccount\": null,\r\n    \"emailCDRsToBillPlan\": null,\r\n    \"emailCDRsToCLI\": null\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}v2/CLI/fixed"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"ae55f517-0cfb-431b-8109-27124f01278d"},{"name":"Update Mobile CLI","id":"4df0a078-313b-4535-9716-0bbc3b907c75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\r\n    \"telId\": 1026,\r\n    \"numberDescription\": \"Testing Mobile CLI 2\",\r\n    \"costCentre\": \"CostCode123\",\r\n    \"activePeriodStartDate\": \"2022-06-08T00:00:00Z\",\r\n    \"activePeriodEndDate\": \"2033-06-08T00:00:00Z\",\r\n    \"emailAddress\": \"joebloggs@informbilling.co.uk\",\r\n    \"equipmentId\": 3,\r\n    \"equipmentSerialNo\": \"\",\r\n    \"sim\": \"SIM Test 1\",\r\n    \"puk\": \"PUK Test 1\",\r\n    \"mailboxNumber\": \"MailBoxNumber Test 1\",\r\n    \"dataNumber\": \"DataNumber Test 1\",\r\n    \"faxNumber\": \"FaxNumber Test 1\",\r\n    \"restrictedNumbers\": null,\r\n    \"carrierContractStartDate\": \"2022-06-08T00:00:00Z\",\r\n    \"carrierContractEndDate\": 1,\r\n    \"carrierContractContractTypeId\": 16,\r\n    \"userContractStartDate\": \"2022-06-08T00:00:00Z\",\r\n    \"userContractLength\": 1,\r\n    \"userContractContractTypeId\": 6,\r\n    \"pac\": \"\",\r\n    \"shortCode\": \"\",\r\n    \"custom1\": null,\r\n    \"custom2\": null,\r\n    \"custom3\": null,\r\n    \"custom4\": null,\r\n    \"custom5\": null,\r\n    \"custom6\": null,\r\n    \"custom7\": null,\r\n    \"custom8\": null,\r\n    \"custom9\": null,\r\n    \"custom10\": null,\r\n    \"custom11\": null,\r\n    \"custom12\": null,\r\n    \"custom13\": null,\r\n    \"custom14\": null,\r\n    \"custom15\": null,\r\n    \"printSummary\": false,\r\n    \"printAnalysis\": false,\r\n    \"printItemisation\": false,\r\n    \"emailSummaryToAccount\": false,\r\n    \"emailAnalysisToAccount\": false,\r\n    \"emailItemisationToAccount\": false,\r\n    \"emailSummaryToBillPlan\": false,\r\n    \"emailAnalysisToBillPlan\": false,\r\n    \"emailItemisationToBillPlan\": null,\r\n    \"emailSummaryToCLI\": false,\r\n    \"emailAnalysisToCLI\": false,\r\n    \"emailItemisationToCLI\": false,\r\n    \"analysisStyle\": 1,\r\n    \"showSavingOnSummary\": false,\r\n    \"creator\": \"inform\",\r\n    \"emailCDRsToAccount\": false,\r\n    \"emailCDRsToBillPlan\": false,\r\n    \"emailCDRsToCLI\": false\r\n}"},"url":"{{mainUrl}}v2/CLI/mobile","description":"<p>Updates a mobile number.</p>\n","urlObject":{"path":["CLI","mobile"],"host":["{{mainUrl}}v2"],"query":[],"variable":[]}},"response":[{"id":"e772e452-99e3-4eca-a81a-fff785fcf7b7","name":"Update Mobile CLI","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\r\n    \"telId\": 1026,\r\n    \"numberDescription\": \"Testing Mobile CLI 2\",\r\n    \"costCentre\": \"CostCode123\",\r\n    \"activePeriodStartDate\": \"2022-06-08T00:00:00Z\",\r\n    \"activePeriodEndDate\": \"2033-06-08T00:00:00Z\",\r\n    \"emailAddress\": \"joebloggs@informbilling.co.uk\",\r\n    \"equipmentId\": 3,\r\n    \"equipmentSerialNo\": \"\",\r\n    \"sim\": \"SIM Test 1\",\r\n    \"puk\": \"PUK Test 1\",\r\n    \"mailboxNumber\": \"MailBoxNumber Test 1\",\r\n    \"dataNumber\": \"DataNumber Test 1\",\r\n    \"faxNumber\": \"FaxNumber Test 1\",\r\n    \"restrictedNumbers\": null,\r\n    \"carrierContractStartDate\": \"2022-06-08T00:00:00Z\",\r\n    \"carrierContractEndDate\": 1,\r\n    \"carrierContractContractTypeId\": 16,\r\n    \"userContractStartDate\": \"2022-06-08T00:00:00Z\",\r\n    \"userContractLength\": 1,\r\n    \"userContractContractTypeId\": 6,\r\n    \"pac\": \"\",\r\n    \"shortCode\": \"\",\r\n    \"custom1\": null,\r\n    \"custom2\": null,\r\n    \"custom3\": null,\r\n    \"custom4\": null,\r\n    \"custom5\": null,\r\n    \"custom6\": null,\r\n    \"custom7\": null,\r\n    \"custom8\": null,\r\n    \"custom9\": null,\r\n    \"custom10\": null,\r\n    \"custom11\": null,\r\n    \"custom12\": null,\r\n    \"custom13\": null,\r\n    \"custom14\": null,\r\n    \"custom15\": null,\r\n    \"printSummary\": false,\r\n    \"printAnalysis\": false,\r\n    \"printItemisation\": false,\r\n    \"emailSummaryToAccount\": false,\r\n    \"emailAnalysisToAccount\": false,\r\n    \"emailItemisationToAccount\": false,\r\n    \"emailSummaryToBillPlan\": false,\r\n    \"emailAnalysisToBillPlan\": false,\r\n    \"emailItemisationToBillPlan\": null,\r\n    \"emailSummaryToCLI\": false,\r\n    \"emailAnalysisToCLI\": false,\r\n    \"emailItemisationToCLI\": false,\r\n    \"analysisStyle\": 1,\r\n    \"showSavingOnSummary\": false,\r\n    \"creator\": \"inform\",\r\n    \"emailCDRsToAccount\": false,\r\n    \"emailCDRsToBillPlan\": false,\r\n    \"emailCDRsToCLI\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}v2/CLI/mobile"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"4df0a078-313b-4535-9716-0bbc3b907c75"},{"name":"Update NTS CLI","id":"a8b60004-a910-461a-8303-d2a10389b2c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\r\n    \"telId\": 1025,\r\n    \"numberDescription\": \"Testing NTS CLI 2\",\r\n    \"costCentre\": \"000\",\r\n    \"activePeriodStartDate\": \"2011-11-11T00:00:00Z\",\r\n    \"activePeriodEndDate\": \"2012-12-12T12:12:12Z\",\r\n    \"emailAddress\": \"joebloggs@informbilling.co.uk\",\r\n    \"carrierContractStartDate\": \"2020-03-01T00:00:00Z\",\r\n    \"carrierContractEndDate\": 1,\r\n    \"carrierContractContractTypeId\": 10,\r\n    \"userContractStartDate\": \"2020-03-01T00:00:00Z\",\r\n    \"userContractLength\": 1,\r\n    \"userContractContractTypeId\": 11,\r\n    \"routingPlan\": 1,\r\n    \"destP2PNumber\": \"123\",\r\n    \"custom1\": null,\r\n    \"custom2\": null,\r\n    \"custom3\": null,\r\n    \"custom4\": null,\r\n    \"custom5\": null,\r\n    \"custom6\": null,\r\n    \"custom7\": null,\r\n    \"custom8\": null,\r\n    \"custom9\": null,\r\n    \"custom10\": null,\r\n    \"custom11\": null,\r\n    \"custom12\": null,\r\n    \"custom13\": null,\r\n    \"custom14\": null,\r\n    \"custom15\": null,\r\n    \"printSummary\": false,\r\n    \"printAnalysis\": false,\r\n    \"printItemisation\": false,\r\n    \"emailSummaryToAccount\": false,\r\n    \"emailAnalysisToAccount\": false,\r\n    \"emailItemisationToAccount\": false,\r\n    \"emailSummaryToBillPlan\": false,\r\n    \"emailAnalysisToBillPlan\": false,\r\n    \"emailItemisationToBillPlan\": null,\r\n    \"emailSummaryToCLI\": false,\r\n    \"emailAnalysisToCLI\": false,\r\n    \"emailItemisationToCLI\": false,\r\n    \"analysisStyle\": 1,\r\n    \"showSavingOnSummary\": false,\r\n    \"emailCDRsToAccount\": false,\r\n    \"emailCDRsToBillPlan\": false,\r\n    \"emailCDRsToCLI\": false,\r\n    \"ntsClassValue\": 1,\r\n    \"ntsTypeId\": 4\r\n}"},"url":"{{mainUrl}}v2/CLI/nts","description":"<p>Updates an inbound NTS number.</p>\n","urlObject":{"path":["CLI","nts"],"host":["{{mainUrl}}v2"],"query":[],"variable":[]}},"response":[{"id":"fc3a0df3-5798-4b8f-8d29-7207eb5a147a","name":"Update NTS CLI","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"customerKey","value":"{{customerKey}}"}],"body":{"mode":"raw","raw":"{\r\n    \"telId\": 1025,\r\n    \"numberDescription\": \"Testing NTS CLI 2\",\r\n    \"costCentre\": \"000\",\r\n    \"activePeriodStartDate\": \"2011-11-11T00:00:00Z\",\r\n    \"activePeriodEndDate\": \"2012-12-12T12:12:12Z\",\r\n    \"emailAddress\": \"joebloggs@informbilling.co.uk\",\r\n    \"carrierContractStartDate\": \"2020-03-01T00:00:00Z\",\r\n    \"carrierContractEndDate\": 1,\r\n    \"carrierContractContractTypeId\": 10,\r\n    \"userContractStartDate\": \"2020-03-01T00:00:00Z\",\r\n    \"userContractLength\": 1,\r\n    \"userContractContractTypeId\": 11,\r\n    \"routingPlan\": 1,\r\n    \"destP2PNumber\": \"123\",\r\n    \"custom1\": null,\r\n    \"custom2\": null,\r\n    \"custom3\": null,\r\n    \"custom4\": null,\r\n    \"custom5\": null,\r\n    \"custom6\": null,\r\n    \"custom7\": null,\r\n    \"custom8\": null,\r\n    \"custom9\": null,\r\n    \"custom10\": null,\r\n    \"custom11\": null,\r\n    \"custom12\": null,\r\n    \"custom13\": null,\r\n    \"custom14\": null,\r\n    \"custom15\": null,\r\n    \"printSummary\": false,\r\n    \"printAnalysis\": false,\r\n    \"printItemisation\": false,\r\n    \"emailSummaryToAccount\": false,\r\n    \"emailAnalysisToAccount\": false,\r\n    \"emailItemisationToAccount\": false,\r\n    \"emailSummaryToBillPlan\": false,\r\n    \"emailAnalysisToBillPlan\": false,\r\n    \"emailItemisationToBillPlan\": null,\r\n    \"emailSummaryToCLI\": false,\r\n    \"emailAnalysisToCLI\": false,\r\n    \"emailItemisationToCLI\": false,\r\n    \"analysisStyle\": 1,\r\n    \"showSavingOnSummary\": false,\r\n    \"emailCDRsToAccount\": false,\r\n    \"emailCDRsToBillPlan\": false,\r\n    \"emailCDRsToCLI\": false,\r\n    \"ntsClassValue\": 1,\r\n    \"ntsTypeId\": 4\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}v2/CLI/nts"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a8b60004-a910-461a-8303-d2a10389b2c8"}],"id":"1ca444b8-4cb6-416a-be6f-a08ac726872a","description":"<p>This subsection contains version 2 endpoints that replace one or more existing endpoints.</p>\n","_postman_id":"1ca444b8-4cb6-416a-be6f-a08ac726872a"}],"id":"192f69e9-e611-40cc-b4d7-504b20920ec1","description":"<p>This section contains the CLI/Phone Numbers API endpoints.</p>\n","_postman_id":"192f69e9-e611-40cc-b4d7-504b20920ec1"},{"name":"Price Lists","item":[{"name":"Get all price lists","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all price lists\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"ID found\", function () {","    pm.expect(pm.response.text()).to.include(\"id\");","});","","let jdata= pm.response.json();","","//var count = 0;","pm.test(\"'Sample Price List' found\", function () ","{","    ","    var count = 0;","    ","  ","   for (let i=0; i<jdata.length; i++)","   {","     if(jdata[i].name === \"Sample Price List\")","     {","        count++;","        pm.expect(jdata[i].name).to.be.eql(\"Sample Price List\");","     }","   ","   }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","","//pick random id","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);","console.log(random_item(jdata).id);","","//postman.setNextRequest(\"Search customer by company\");","",""],"type":"text/javascript","id":"935abd8a-63e7-4a12-bec0-e5bdbd2d84a8"}}],"id":"81afc79e-873c-42e8-a439-5c4e9723b2b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}pricelists","description":"<p>Returns a collection of price list models containing all of the price lists in the system.</p>\n","urlObject":{"host":["{{mainUrl}}pricelists"],"query":[],"variable":[]}},"response":[],"_postman_id":"81afc79e-873c-42e8-a439-5c4e9723b2b2"},{"name":"Get all price list by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Return one price list\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"ca5ddd88-ed45-4a2b-8990-55d9aac20e63"}}],"id":"88db9ec9-d1e1-406f-aebc-24cc0718a033","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}pricelists/{{id}}","description":"<p>Returns a price list model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}pricelists"],"query":[],"variable":[]}},"response":[],"_postman_id":"88db9ec9-d1e1-406f-aebc-24cc0718a033"}],"id":"1add85c6-2d3f-4f1f-aa8d-618a6e0fa06c","_postman_id":"1add85c6-2d3f-4f1f-aa8d-618a6e0fa06c","description":""},{"name":"Products","item":[{"name":"V1","item":[{"name":"Get all products","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all products\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"product_id\", random_item(jdata).product_id);","pm.globals.set(\"carrier_id\", random_item(jdata).carrier_id);"],"type":"text/javascript","id":"d96777bf-51a6-4a98-a6b2-35ddad576826"}}],"id":"c45ee4e0-ce3d-4766-8086-6bd0e503316a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}products/search","description":"<p>Returns a collection of product models in the system.\nProducts are currently read-only and are used when adding a charge to the system.</p>\n","urlObject":{"path":["search"],"host":["{{mainUrl}}products"],"query":[],"variable":[]}},"response":[],"_postman_id":"c45ee4e0-ce3d-4766-8086-6bd0e503316a"},{"name":"Get product by id","event":[{"listen":"test","script":{"exec":["","pm.test(\"Product found\", function () {","    pm.expect(pm.response.text()).to.include(\"id\");","});","","","pm.globals.unset(\"product_id\");",""],"type":"text/javascript","id":"f1468c6c-28b7-4bb9-a3d7-34392db33b11"}}],"id":"e2f16f0e-8e87-46d1-b013-55889c4b53a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}products/{{product_id}}","description":"<p>Returns a product model matching the id passed.</p>\n","urlObject":{"path":["{{product_id}}"],"host":["{{mainUrl}}products"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2f16f0e-8e87-46d1-b013-55889c4b53a2"},{"name":"Search product","event":[{"listen":"test","script":{"exec":["pm.test(\"Match found\", function () {","    pm.response.to.have.status(200);","});","","","pm.globals.unset(\"searchText\");"],"type":"text/javascript","id":"716c5ef3-cb42-48fa-a010-fe1544d26c88"}},{"listen":"prerequest","script":{"exec":["var data= [\"ISDN2\",\"SEO setup fee\",\"Connection - Network Whisper Connection\", \"One Off Charge\",\"Porting Transaction\" ];","var current=data[Math.floor(Math.random()*data.length)];","","//var data1= [0,1];","//var current1=data1[Math.floor(Math.random()*data1.length)];","","//var data2= [\"BILLING\",\"HANDSET\",\"CREDIT\",\"CALL-SERVICES\",\"BBAND-RENT\",\"LINE-INSTALL\",\"BBAND-SETUP\",\"CIRCUIT-RENT\",\"CIRCUIT-SETUP\",\"SUND\",\"HARDWARE\",\"INSURANCE\",\"LINE-RENTAL\",\"INSTALLATION\"];","//var current2=data2[Math.floor(Math.random()*data2.length)];","","//var data3= [0,1,2,3,4,5,6,7,8,9];","//var current3=data3[Math.floor(Math.random()*data3.length)];","","pm.globals.set(\"searchText\", current);","//pm.globals.set(\"status\",current1);","//pm.globals.set(\"productType\",current2);","//pm.globals.set(\"carrier\",current3);"],"type":"text/javascript","id":"08c9c84e-8b29-432d-9279-1a01fe5c451c"}}],"id":"e3e5a8ed-70ce-431e-ba2f-97fa4e0c0c9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}products/search?search={{searchText}}","description":"<p>Returns a collection of product models containing zero to many results depening on the criteia passed.</p>\n\n<p>Parameters are:</p>\n<p>status</p>\n<p>productType</p>\n<p>carrier</p>\n<p>search - partial match in different fields</p>","urlObject":{"path":["search"],"host":["{{mainUrl}}products"],"query":[{"key":"search","value":"{{searchText}}"}],"variable":[]}},"response":[],"_postman_id":"e3e5a8ed-70ce-431e-ba2f-97fa4e0c0c9b"}],"id":"0dc167f0-9bf0-4f2c-b41a-e7b4b24a190b","_postman_id":"0dc167f0-9bf0-4f2c-b41a-e7b4b24a190b","description":""},{"name":"V2","item":[{"name":"Search Products Paged","id":"51d4011e-3565-4a58-9722-4d647dbbfa15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"GroupedFilterExpressions\": [\r\n        {\r\n            \"FilterExpressions\": [\r\n                {     \r\n                    \"FieldName\": \"LastUpdated\",\r\n                    \"FieldValue\": \"2022-10-17T15:00:00.000000+01:00\",\r\n                    \"FilterFunction\": 7\r\n                }\r\n            ]\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}v2/products/SearchProductsPaged","description":"<p>Allows paged searching of product records. Returns a paged collection of product models.</p>\n<p>Please view the <a href=\"#paged-endpoints\">Paged Endpoints</a> section in the introduction which details the paged search functionality.</p>\n","urlObject":{"path":["products","SearchProductsPaged"],"host":["{{mainUrl}}v2"],"query":[],"variable":[]}},"response":[{"id":"ffa4b9e8-4eed-4c03-b3cd-49353050955b","name":"Search Products Paged","originalRequest":{"method":"POST","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{      \r\n    \"FilterExpressions\":[\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"FieldValue\": 43,\r\n            \"FilterFunction\": 5\r\n        }\r\n    ],\r\n    \"SortExpressions\": [\r\n        {\r\n            \"FieldName\": \"Id\",\r\n            \"sortOrder\": 1\r\n        }\r\n    ],\r\n    \"PageNumber\": 1,\r\n    \"PageSize\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"{{mainUrl}}products/v2/SearchProductsPaged"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"currentPage\": 1,\n    \"totalPages\": 1,\n    \"totalItems\": 1,\n    \"itemsPerPage\": 10,\n    \"items\": [\n        {\n            \"id\": 43,\n            \"productCode\": \"ABSORB\",\n            \"productType\": \"SUND\",\n            \"description\": \"Absorbed Charge - do not pass on\",\n            \"buyPrice\": 0.0000,\n            \"price\": 0.0000,\n            \"statusId\": 1,\n            \"freeFormPrice\": true,\n            \"nominalCode\": \"\",\n            \"taxBandId\": 2,\n            \"defaultRepeatID\": 1,\n            \"carrierId\": 0,\n            \"isLineRental\": false,\n            \"notes\": \"\",\n            \"buyNominalCode\": \"\",\n            \"supplierPartNumber\": \"\",\n            \"createdDate\": \"2015-12-22T00:00:00Z\",\n            \"supplierChargeMarkup\": 0.00,\n            \"useSupplierChargeMarkup\": false,\n            \"lastUpdated\": \"2022-10-17T14:36:22.5297245+01:00\"\n        }\n    ]\n}"}],"_postman_id":"51d4011e-3565-4a58-9722-4d647dbbfa15"}],"id":"71b10682-8232-4346-bcd6-381288ba9b48","description":"<p>This subsection contains version 2 endpoints that replace one or more existing endpoints.</p>\n","_postman_id":"71b10682-8232-4346-bcd6-381288ba9b48"}],"id":"4f4964e3-c0b7-4963-88d7-7bc9a0e981ac","description":"<p>This section contains the Products API endpoints.</p>\n","_postman_id":"4f4964e3-c0b7-4963-88d7-7bc9a0e981ac"},{"name":"Profit and Loss by Supplier","item":[{"name":"Get profit and loss by supplier current month","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"e5d470c7-e968-428c-8eb3-f753a451fcfa"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"dbd456d8-289d-4d0e-b84b-1a6cb03eb9e0"}}],"id":"a574f7f4-6138-481a-95f4-5c7dbf888552","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}Supplier/ProfitAndLoss","description":"<p>Returns a collection of supplier profit and loss models containing profit and loss data by supplier for the current month.</p>\n","urlObject":{"path":["ProfitAndLoss"],"host":["{{mainUrl}}Supplier"],"query":[],"variable":[]}},"response":[],"_postman_id":"a574f7f4-6138-481a-95f4-5c7dbf888552"},{"name":"Get profit and loss by supplier archive month","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"8bb67a2d-d4b5-4a7b-bd98-860a10f138d5"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"a2897ba3-38b9-4c26-abf7-d306e766993a"}}],"id":"b2180f18-8c5d-4cda-b612-301f95e086b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}Supplier/ProfitAndLoss/{{achivemonthid}}","description":"<p>Returns a collection of supplier profit and loss models containing profit and loss data by supplier contained in the archive month (the archive id can be obtained by calling the Archives end point)</p>\n","urlObject":{"path":["ProfitAndLoss","{{achivemonthid}}"],"host":["{{mainUrl}}Supplier"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2180f18-8c5d-4cda-b612-301f95e086b2"}],"id":"1146cb12-4d33-4b7c-80e2-8257eeaec56a","_postman_id":"1146cb12-4d33-4b7c-80e2-8257eeaec56a","description":""},{"name":"Rating Tables","item":[{"name":"Get all sell rating tables","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all sell rating tables\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","","pm.test(\"'Standard Rates' is found\", function () ","{","    for(let i of jdata)","    {","    //console.log(i);","    if (i.name===\"Standard Rates\")","        {","         console.log(i.name);   ","        }","    }","});","","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);"],"type":"text/javascript","id":"140238af-7368-4f41-8701-a14163d3816f"}}],"id":"42ccd74b-e7ca-42d5-96ce-5b36ad4e0387","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}sellratingtables","description":"<p>Returns a collection of sell rating table models containing all sell rating tables in the system.</p>\n","urlObject":{"host":["{{mainUrl}}sellratingtables"],"query":[],"variable":[]}},"response":[],"_postman_id":"42ccd74b-e7ca-42d5-96ce-5b36ad4e0387"},{"name":"Get sell rating table by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Sell rating table found\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"f43f29cd-77c4-4ac0-9ff3-6113bf916dd6"}}],"id":"e4047de8-8e28-454d-9700-90ff59a8d650","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}sellratingtables/{{id}}","description":"<p>Returns a sell rating table model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}sellratingtables"],"query":[],"variable":[]}},"response":[],"_postman_id":"e4047de8-8e28-454d-9700-90ff59a8d650"},{"name":"Get all compare rating tables","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all compare rating tables\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","","pm.test(\"'Sample Comparison Table' is found\", function () ","{","    for(let i of jdata)","    {","    //console.log(i);","    if (i.name===\"Sample Comparison Table\")","        {","         console.log(i.name);   ","        }","    }","});","","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);"],"type":"text/javascript","id":"9f1f133a-ef3e-41fb-819d-8c04135cf113"}}],"id":"13dea927-e577-4045-a97b-a200435c6c92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}compareratingtables","description":"<p>Returns a collection of rating table models containing all compare rating tables in the system.</p>\n","urlObject":{"host":["{{mainUrl}}compareratingtables"],"query":[],"variable":[]}},"response":[],"_postman_id":"13dea927-e577-4045-a97b-a200435c6c92"},{"name":"Get compare rating table by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Buy rate table found\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"a3d6ff0c-b6cd-47e9-96c6-7366d1f34292"}}],"id":"303d658d-3530-47a1-834a-e70d607b2aae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}compareratingtables/{{id}}","description":"<p>Returns a rating table model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}compareratingtables"],"query":[],"variable":[]}},"response":[],"_postman_id":"303d658d-3530-47a1-834a-e70d607b2aae"},{"name":"Get all buy rating tables","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all buy rating tables\", function () {","    pm.response.to.have.status(200);","});","","let jdata= pm.response.json();","","pm.test(\"'Sample Buy Table' is found\", function () ","{","    for(let i of jdata)","    {","    //console.log(i);","    if (i.name===\"Sample Buy Table\")","        {","         console.log(i.name);   ","        }","    }","});","","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);"],"type":"text/javascript","id":"0cabea75-1c6f-4e5e-9377-05b1c376d248"}}],"id":"10809fc7-1107-4079-9b82-22ba3905a17d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}buyratingtables","description":"<p>Returns a collection of rating table models containing all buy rating tables in the system.</p>\n","urlObject":{"host":["{{mainUrl}}buyratingtables"],"query":[],"variable":[]}},"response":[],"_postman_id":"10809fc7-1107-4079-9b82-22ba3905a17d"},{"name":"Get buy rating table by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Buy rate table found\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"ece01a94-3ae3-4e9b-93bc-805227694562"}}],"id":"b832ebd5-cafc-404d-8ca1-64e776c9e87f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}buyratingtables/{{id}}","description":"<p>Returns a rating table model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}buyratingtables"],"query":[],"variable":[]}},"response":[],"_postman_id":"b832ebd5-cafc-404d-8ca1-64e776c9e87f"},{"name":"Get sell rating table by phone number","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"ec489977-3182-4793-afa7-27a396c3d9fc"}}],"id":"efc21907-a2d4-4ce8-b34a-9f8008356ffe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}sellratingtables/telid/{{telid}}","description":"<p>Returns a collection of rating table models containing all sell rating tables related to the phonenumber id passed.</p>\n","urlObject":{"path":["telid","{{telid}}"],"host":["{{mainUrl}}sellratingtables"],"query":[],"variable":[]}},"response":[],"_postman_id":"efc21907-a2d4-4ce8-b34a-9f8008356ffe"}],"id":"d537907c-5f7f-4cca-ad52-3e18e52506bb","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"a3377229-6993-4ac8-9dc7-083c5f3b7ae3"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"7c658f39-e2c1-485e-9a30-bb1606930b1c"}}],"_postman_id":"d537907c-5f7f-4cca-ad52-3e18e52506bb","description":""},{"name":"Tax","item":[{"name":"Get all tax bands","event":[{"listen":"test","script":{"exec":["pm.test(\"Get all tax bands\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"ID found\", function () {","    pm.expect(pm.response.text()).to.include(\"id\");","});","let jdata= pm.response.json();","","var count = 0;","pm.test(\"'UK Standard VAT' is found\", function () ","{","    ","    var count = 0;","    ","   // let jsonData = JSON.stringify(responseBody);","   for (let i=0; i<jdata.length; i++)","   {","     if(jdata[i].description === \"UK Standard VAT\")","     {","        count++;","       pm.expect(jdata[i].description).to.be.eql(\"UK Standard VAT\");","     }","   //  if(jdata[i].name === \"markv\")","   //  {","   //     count++;","   //  }","   ","   }","   //pm.expect(count).to.be.below(1);","   pm.expect(count).to.be.least(1);","//console.log(count);","      ","});","","//pick random id","function random_item(jdata)","{","  ","return jdata[Math.floor(Math.random()*jdata.length)];","     ","}","","pm.globals.set(\"id\", random_item(jdata).id);","console.log(random_item(jdata).id);"],"type":"text/javascript","id":"9bbbdf03-0ec8-475e-8d3a-c47e2c0178a5"}}],"id":"2c2b285c-b7d9-40f4-8a8b-c9d97242a8df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}taxbands","description":"<p>Returns a collection of tax band models containing all tax bands in the system.</p>\n","urlObject":{"host":["{{mainUrl}}taxbands"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c2b285c-b7d9-40f4-8a8b-c9d97242a8df"},{"name":"Get tax band by id","event":[{"listen":"test","script":{"exec":["pm.test(\"Return a tax band\", function () {","    pm.response.to.have.status(200);","});","","pm.globals.unset(\"id\");"],"type":"text/javascript","id":"1deba71a-3b90-41ac-a5fc-1860af0bfa15"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"fb95b213-ee1d-49ca-b2e6-fc8dfa43cb17"}}],"id":"1fc0f7bc-bec0-40df-954c-8d9a5d1fd5da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"customerKey","value":"{{customerKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{mainUrl}}taxbands/{{id}}","description":"<p>Returns a tax band model related to the id passed.</p>\n","urlObject":{"path":["{{id}}"],"host":["{{mainUrl}}taxbands"],"query":[],"variable":[]}},"response":[],"_postman_id":"1fc0f7bc-bec0-40df-954c-8d9a5d1fd5da"}],"id":"84d83b60-0d35-413f-98eb-d2820bb4834f","_postman_id":"84d83b60-0d35-413f-98eb-d2820bb4834f","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"76af9704-5948-4335-85c7-87be9cb36b1b"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"3b8c5417-7f81-4cdc-abf2-322ad00225cc"}}]}