{"info":{"_postman_id":"46214ca8-3fa4-4028-b60a-1c3dbe3f5f61","name":"MyCSP - API v2 (Beta)","description":"<html><head></head><body><p>MyCSP is a world-leading SaaS commerce platform that helps businesses and Cloud Service Providers procure and resell Microsoft Azure, Microsoft 365, Dynamics 365 and Azure Stack.  MyCSP API enables integration with your own system, CMS, websites, APPs and etc.</p>\n<p>For more details, please go: <a href=\"https://www.mycsp.io/\">https://www.mycsp.io/</a>.</p>\n<p>And this is a technical document for you to integrate with the MyCSP portal API.</p>\n<hr>\n<h1 id=\"how-to-integrate\">How to integrate?</h1>\n<p>Currently, we provide two ways to integrate with us:</p>\n<ul>\n<li><strong>API integration</strong>: usually for developers, you can integrate with your portal, services or program</li>\n<li><strong><img src=\"https://cdn.mycsp.io/assets/images/zapier-logo.png\" height=\"20px\"> integration</strong>: for everyone, you can setup integrations between your systems or software by using Zapier</li>\n</ul>\n<p>Before doing integration, you need to enable the feature on the MyCSP portal and get the client_id and client_secret. </p>\n<p>To obtain client_id and client_secret, please login to the MyCSP portal, go to API page, and create one.</p>\n<img src=\"https://cdn.mycsp.io/assets/images/421627598513_.pic.jpg\">\n\n<hr>\n<h1 id=\"api-integration\">API integration</h1>\n<h3 id=\"get-access-token\">Get access token</h3>\n<p>You need to create and get the client_id and client_secret first, then use our Auth API to get an access_token and send the request to our available APIs with that token.</p>\n<p>Following examples show how to use postman to simulate the integration process:</p>\n<h3 id=\"steps\">Steps</h3>\n<p>1. Get token with Client ID and Client Secret from MyCSP portal, and then invoke auth API to get the access token:\n</p><p>\n</p><p><img src=\"https://cdn.mycsp.io/assets/images/api-auth.png\" alt=\"api call\" width=\"80%\"></p>\n<p>2. Use given token for actual API endpoints</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/api-request-with-token.png\" alt=\"api call\" width=\"67%\"></p>\n\n\n<hr>\n<h1 id=\"zapier-integration\">Zapier integration</h1>\n<p>Use it with integration automation tools such as <strong>Zapier</strong>, you can connect to our Zapier first.</p>\n<p>Our Zapier: <a href=\"https://zapier.com/developer/public-invite/122144/6914d388bbc19edcd6bb2b41eb3ee321/\">https://zapier.com/developer/public-invite/122144/6914d388bbc19edcd6bb2b41eb3ee321/</a></p>\n<h3 id=\"events-trigger\">Events Trigger</h3>\n<p> 1. <strong>New Invoice</strong>: Triggers when a new invoice is created, by choosing this trigger, the all new invoice information will be fetched and ready for other integration </p>\n\n<p> 2. <strong>Updates Invoices</strong>: Triggers when an invoice is updated, by choosing this trigger, the all latest updated invoice information will be fetched and ready for other integration </p>\n\n<p> 3. <strong>Paid Invoices</strong>: Triggers when an invoice is paid, by choosing this trigger, the all latest paid invoice information will be fetched and ready for other integration </p>\n\n<p> 4. <strong>Invoices in due</strong>: Triggers when an invoice is in due, by choosing this trigger, the information of the all latest invoices in due will be fetched and ready for other integration </p>\n\n\n<h3 id=\"steps-1\">Steps</h3>\n<p>\n1. Accept zapier invitation by click above link\n</p>\n<p> \nor click `use zap` on portal integration page below to start with pre-defined zap templates.\n</p>\n<p><img src=\"https://ucbproduction.blob.core.windows.net/images/zap-templates-page.png\" alt=\"api call\"></p>\n2. Create your own zap for automatical integration\n<p></p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/create-zap.png\" alt=\"api call\"></p>\n\n<p>\n3. Get clientId and clientSecret from MyCSP portal and add auth\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-auth-to-zap.png\" alt=\"api call\" width=\"50%\"></p>\n\n<p>\n4. Select trigger you want to user and test trigger\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-trigger.png\" alt=\"api call\" width=\"67%\"></p>\n\n<p>\n5. Add actions according to your business requirement, e.g. Microsoft Teams notification\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-action.png\" alt=\"api call\" width=\"67%\"></p>\n\n\n<h5 id=\"to-be-continued-with-examples\">To be continued with Examples:</h5>\n<hr>\n<h5 id=\"microsoft-teams\">Microsoft Teams</h5>\n<p>\n6. Choose Action Event, 'Send Channel Message' for example, click continue\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-ms-team-action-event.png\" alt=\"api call\" width=\"67%\"></p>\n\n<p>\n7. Connect your Microsoft account and click continue\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-ms-team-account.png\" alt=\"api call\" width=\"67%\"></p>\n\n<p>\n8. Select Team, Channel and Message format and content &amp; template\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-ms-team-action-channel-detail.png\" alt=\"api call\" width=\"67%\"></p>\n\n<hr>\n<h5 id=\"slack\">Slack</h5>\n<p>\n6. Choose Action Event, 'Send Channel Message' for example, click continue\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-slack-action-event.png\" alt=\"api call\" width=\"67%\"></p>\n\n<p>\n7. Connect your Microsoft account and click continue\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-slack-account.png\" alt=\"api call\" width=\"67%\"></p>\n\n<p>\n8. Select Team, Channel and Message format and content &amp; template\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-slack-action-channel-detail.png\" alt=\"api call\" width=\"67%\"></p>\n\n<hr>\n<h5 id=\"xero\">Xero</h5>\n<p>\n6. Choose Action Event, 'Create Sales Invoice' for example, click continue\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-xero-action-event.png\" alt=\"api call\" width=\"67%\"></p>\n\n<p>\n7. Connect your Microsoft account and click continue\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-xero-account.png\" alt=\"api call\" width=\"67%\"></p>\n\n<p>\n8. Select Team, Channel and Message format and content &amp; template\n</p>\n<p><img src=\"https://cdn.mycsp.io/assets/images/add-zap-xero-action-channel-detail.png\" alt=\"api call\" width=\"67%\"></p>\n\n<hr>\n<h1 id=\"connectwise-manage-connector\">ConnectWise Manage Connector</h1>\n<p>\n1. New Connectors:\n\n</p><p>Connect a ConnectWise Manage account to MyCSP, by clicking Add connector button and enter the account details, so MyCSP can sync data to the ConnectWise account. Notes: check #6 to see how to generate ConnectWise API credentials.</p>\n<img src=\"https://cdn.mycsp.io/assets/images/new-connector.png\">\n<p></p>\n<p>\n2. Prepare Data:\n\n</p><p>Get new data as preview ready to sync by clicking Prepare Data button, then before sync you can delete data which you don't want to be synchronized </p>\n<img src=\"https://cdn.mycsp.io/assets/images/cw-prepare.png\">\n\n<p></p>\n<p>\n3. Sync Data:\n\n</p><p>Start to synchronize invoices related data to your ConnnectWise account by clicking Sync button.\n<img src=\"https://cdn.mycsp.io/assets/images/cw-sync.png\"></p>\n<p></p>\n<p>\n4. Sync Log:\n\n</p><p>click sync histories button to view all sync logs\n<img src=\"https://cdn.mycsp.io/assets/images/cw-sync-log.png\"></p>\n<p></p>\n<p>\n5. Check data sync in CW:\n<img src=\"https://cdn.mycsp.io/assets/images/cw-intro.png\">\n<img src=\"https://cdn.mycsp.io/assets/images/cw-invoice.png\">\n</p>\n\n<p>\n6. Generate ConnectWise API Credential\n\n</p><ul>\n<li>navigate to members page<img src=\"https://cdn.mycsp.io/assets/images/cw-api-1.png\"></li>\n<li>create an API member<img src=\"https://cdn.mycsp.io/assets/images/cw-api-2.png\"></li>\n<li>populate and save<img src=\"https://cdn.mycsp.io/assets/images/cw-api-3.png\"></li>\n<li>navigate to api<img src=\"https://cdn.mycsp.io/assets/images/cw-api-4.png\"></li>\n<li>fill description then save to generate api key and secret<img src=\"https://cdn.mycsp.io/assets/images/cw-api-5.png\"></li>\n<li>be careful to save the secret, you never see it again<img src=\"https://cdn.mycsp.io/assets/images/cw-api-6.png\">\n<p></p></li>\n</ul>\n<hr>\n<h2 id=\"contact-support\">Contact Support</h2>\n<p>Email: <a href=\"mailto:help@umbrellar.com\">help@umbrellar.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"How to integrate?","slug":"how-to-integrate"},{"content":"API integration","slug":"api-integration"},{"content":"Zapier integration","slug":"zapier-integration"},{"content":"ConnectWise Manage Connector","slug":"connectwise-manage-connector"}],"owner":"3550892","collectionId":"46214ca8-3fa4-4028-b60a-1c3dbe3f5f61","publishedId":"Tz5p5HH3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"00e37a"},"publishDate":"2021-03-16T01:02:02.000Z"},"item":[{"name":"Auth","item":[{"name":"Auth","id":"9efb58d6-b7b2-43e3-b324-6833bcefda8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"grant_type\": \"client_credentials\",\n    \"client_id\": \"<your_client_id>\",\n    \"client_secret\": \"<your_client_secret>\",\n    \"audience\": \"https://api.mycsp.io/v2/\"\n}","options":{"raw":{"language":"json"}}},"url":"https://auth.mycsp.io/oauth/token","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cec905c3-a8ea-48f4-929c-ddbcf78d742b","id":"cec905c3-a8ea-48f4-929c-ddbcf78d742b","name":"Auth","type":"folder"}},"urlObject":{"protocol":"https","path":["oauth","token"],"host":["auth","mycsp","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"9efb58d6-b7b2-43e3-b324-6833bcefda8b"}],"id":"cec905c3-a8ea-48f4-929c-ddbcf78d742b","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e6eba98a-cd83-40e7-ac5e-59da3bc110fb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"80e200b5-51bb-4be3-b380-f983ec7574e6","type":"text/javascript","exec":[""]}}],"_postman_id":"cec905c3-a8ea-48f4-929c-ddbcf78d742b","description":""},{"name":"Invoices","item":[{"name":"Invoice","item":[{"name":"Retrieves an invoice","id":"9f414de8-a9af-4023-8f0c-f662ac964cd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/invoices/{invoice_number}","urlObject":{"path":["v2","invoices","{invoice_number}"],"host":["https://api.mycsp.io"],"query":[],"variable":[]}},"response":[{"id":"2f471db7-2091-49de-a937-6c9b7abd7d95","name":"Invoice found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/invoices/{invoice_number}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": {\n            \"invoice_number\": \"INVO0O0630L\",\n            \"invoice_id\": \"2c92a00c754a9klsdfioe34742592395\",\n            \"tenant_id\": \"lo98e52c-bf2l1-486b-80sd-a08440886435\",\n            \"tenant_name\": \"Corp ABC. \",\n            \"invoice_date\": \"2020-07-31\",\n            \"billing_account_id\": \"2c92a00c754a9klsdfioe34742592395\",\n            \"currency\": \"NZD\",\n            \"balance\": 0.0,\n            \"credit_balance_adjustment_amount\": -4235.01,\n            \"amount\": 7555.89,\n            \"adjustment_amount\": 0.0,\n            \"payment_amount\": 3320.88,\n            \"tax_amount\": 985.55,\n            \"payments\": [\n                {\n                    \"date\": \"2020-10-23\",\n                    \"type\": \"External\",\n                    \"amount\": 3251.35,\n                    \"number\": \"POI-0000900\",\n                    \"status\": \"Processed\",\n                    \"paymentId\": \"2c92a00c754a9klsdfioe34742592395\"\n                },\n                {\n                    \"date\": \"2020-10-23\",\n                    \"type\": \"External\",\n                    \"amount\": 69.53,\n                    \"number\": \"Oiwe0-0000900\",\n                    \"status\": \"Processed\",\n                    \"paymentId\": \"2c92a00c754a9klsdfioe34742592395\"\n                }\n            ],\n            \"due_date\": \"2019-08-20\",\n            \"amount_without_tax\": 6570.34,\n            \"error_message\": null,\n            \"created_at\": \"2020-03-06T10:39:52.816Z\",\n            \"updated_at\": \"2020-03-06T10:39:55.391Z\"\n        },\n    \"meta\": {\n        \"message\": \"\"\n    }\n}"},{"id":"641ee4f5-5cc9-47bb-a881-63832b92b1c5","name":"invoice not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/invoices/{invoice_number}"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"Invoice Not Found\"\n    }\n}"}],"_postman_id":"9f414de8-a9af-4023-8f0c-f662ac964cd9"},{"name":"Retrieves  invoice items","id":"084656da-3d52-4275-970c-23c02a5e9133","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.mycsp.io/v2/invoices/{invoice_number}/items?page=1&items=10","description":"<p>todo check the parameters</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"c24dfa67-41b2-4ed2-8217-9df3f1c93c4b","id":"c24dfa67-41b2-4ed2-8217-9df3f1c93c4b","name":"Invoice","type":"folder"}},"urlObject":{"path":["v2","invoices","{invoice_number}","items"],"host":["https://api.mycsp.io"],"query":[{"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>items count per page (max: 100)</p>\n","type":"text/plain"},"key":"items","value":"10"}],"variable":[]}},"response":[{"id":"327a7554-cfa6-4b4f-8d8b-7cb71693e835","name":"Invoice items found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":{"raw":"https://api.mycsp.io/v2/invoices/{invoice_number}/items?page=1&per_page=10","host":["https://api.mycsp.io"],"path":["v2","invoices","{invoice_number}","items"],"query":[{"key":"page","value":"1"},{"key":"per_page","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"id\": 1999128176,\n            \"invoice_number\": \"INV0O00PO69\",\n            \"tenant_id\": \"losie52c-bffb-486b-8024-a082oww4O886435\",\n            \"tenant_name\": \"Corp ABC.\",\n            \"subscription_id\": \"ASdfs0001735\",\n            \"subscription_friendly_name\": null,\n            \"po_number\": \"\",\n            \"auto_renew\": true,\n            \"total_amount\": 37.8,\n            \"total_tax_amount\": 5.67,\n            \"charges\": [\n                {\n                    \"rrp\": \"46.12\",\n                    \"quantity\": 1.0,\n                    \"charge_id\": \"2c92a0a671c967f2owprw71cfd5652b09aa\",\n                    \"discounts\": [],\n                    \"tax_amount\": 5.67,\n                    \"unit_price\": 37.8,\n                    \"vendor_sku\": null,\n                    \"charge_name\": \"Microsoft 365 A1\",\n                    \"vendor_name\": \"Umbrellar\",\n                    \"product_name\": \"Microsoft 365\",\n                    \"charge_amount\": 37.8,\n                    \"vendor_sub_id\": \"2c92a0a671c967f20171cfd565070999\",\n                    \"unit_of_measure\": \"License\",\n                    \"service_end_date\": \"2020-10-31\",\n                    \"account_reference\": \"34049\",\n                    \"total_tax_amount\": 5.67,\n                    \"vendor_product_id\": null,\n                    \"charge_description\": \"ED92FD18-AE90-4203-B561-AF7599C6B5C4\",\n                    \"service_start_date\": \"2020-10-01\",\n                    \"total_charge_amount\": 37.8,\n                    \"total_discount_amount\": 0,\n                    \"total_discount_tax_amount\": 0\n                }\n            ],\n            \"created_at\": \"2021-03-06T12:07:15.000Z\",\n            \"updated_at\": \"2021-03-06T12:07:15.000Z\"\n        },\n        {\n            \"id\": 1999128179,\n            \"invoice_number\": \"INV0O00PO69\",\n            \"tenant_id\": \"losie52c-bffb-486b-8024-a082oww4O886435\",\n            \"tenant_name\": \"Corp ABC.\",\n            \"subscription_id\": \"ASZS00001746\",\n            \"subscription_friendly_name\": null,\n            \"po_number\": \"\",\n            \"auto_renew\": true,\n            \"total_amount\": 15.12,\n            \"total_tax_amount\": 2.268,\n            \"charges\": [\n                {\n                    \"rrp\": \"16.12\",\n                    \"quantity\": 1.0,\n                    \"charge_id\": \"2c92a0a671c9672f20171cffb0b236aa6\",\n                    \"discounts\": [],\n                    \"tax_amount\": 2.268,\n                    \"unit_price\": 15.12,\n                    \"vendor_sku\": null,\n                    \"charge_name\": \"Microsoft 365 F1\",\n                    \"vendor_name\": \"Umbrellar\",\n                    \"product_name\": \"Microsoft 365\",\n                    \"charge_amount\": 15.12,\n                    \"vendor_sub_id\": \"2c92a0a671c967f2017s1cffb0ac86a8d\",\n                    \"unit_of_measure\": \"License\",\n                    \"service_end_date\": \"2020-10-31\",\n                    \"total_tax_amount\": 2.268,\n                    \"account_reference\": \"34049\",\n                    \"vendor_product_id\": null,\n                    \"charge_description\": \"Best for businesses that need all the apps and services included in Business Standard plus advanced cyber threat protection and device management. For businesses with up to 300 employees.\",\n                    \"service_start_date\": \"2020-10-01\",\n                    \"total_charge_amount\": 15.12,\n                    \"total_discount_amount\": 0,\n                    \"total_discount_tax_amount\": 0\n                }\n            ],\n            \"created_at\": \"2021-03-06T12:07:15.188Z\",\n            \"updated_at\": \"2021-03-06T12:07:15.188Z\"\n        },\n        {\n            \"id\": 1999128201,\n            \"invoice_number\": \"INV0O00PO69\",\n            \"tenant_id\": \"losie52c-bffb-486b-8024-a082oww4O886435\",\n            \"tenant_name\": \"Corp ABC.\",\n            \"subscription_id\": \"AOSd0003901\",\n            \"subscription_friendly_name\": \"Designedvminstances\",\n            \"po_number\": \"\",\n            \"auto_renew\": true,\n            \"total_amount\": 6.88,\n            \"total_tax_amount\": 1.032,\n            \"charges\": [\n                {\n                    \"rrp\": \"7.13\",\n                    \"quantity\": 1.0,\n                    \"charge_id\": \"2c92a0a674a2d664d0174b84686610341\",\n                    \"discounts\": [\n                        {\n                            \"quantity\": 1.0,\n                            \"tax_amount\": -0.03,\n                            \"unit_price\": 3.0,\n                            \"charge_name\": \"Reserved VM Instance\",\n                            \"product_name\": \"Reseller Discounts\",\n                            \"charge_amount\": -0.2,\n                            \"unit_of_measure\": \"\"\n                        }\n                    ],\n                    \"tax_amount\": 1.002,\n                    \"unit_price\": 6.679166667,\n                    \"vendor_sku\": \"002C\",\n                    \"charge_name\": \"Reserved VM Instance, Standard_B1s, US East, 1 Year\",\n                    \"vendor_name\": \"Microsoft CSP\",\n                    \"product_name\": \"Azure Reservations\",\n                    \"charge_amount\": 6.68,\n                    \"vendor_sub_id\": \"nzRwrjuTWX791JdMnfsdjL0iQZi7UvJ-qyeW1:0\",\n                    \"unit_of_measure\": \"License\",\n                    \"service_end_date\": \"2020-10-31\",\n                    \"total_tax_amount\": 1.032,\n                    \"vendor_product_id\": \"DZH3183423d9234Z0BQ35\",\n                    \"charge_description\": \"Best for businesses that need all the apps and services included in Business Standard plus advanced cyber threat protection and device management. For businesses with up to 300 employees.\",\n                    \"service_start_date\": \"2020-10-01\",\n                    \"total_charge_amount\": 6.88,\n                    \"total_discount_amount\": -0.2,\n                    \"total_discount_tax_amount\": -0.03\n                }\n            ],\n            \"created_at\": \"2021-03-06T12:07:17.290Z\",\n            \"updated_at\": \"2021-03-06T12:07:17.290Z\"\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\",\n        \"pagination\": {\n            \"per_page\": 3,\n            \"total_count\": 3,\n            \"page\": 1,\n            \"total_pages\": 1,\n            \"first_url\": \"/v2/invoices/{invoice_number}/items?items=3&page=1\",\n            \"prev_url\": \"null\",\n            \"next_url\": \"null\",\n            \"last_url\": \"/v2/invoices/{invoice_number}/items?items=3&page=1\"\n        }\n    }\n}"},{"id":"fc0d6ccf-18d2-4ccf-bc16-59a7c2e630da","name":"Invoice not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/invoices/{invoice_number}/items"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"Invoice Not Found\"\n    }\n}"}],"_postman_id":"084656da-3d52-4275-970c-23c02a5e9133"}],"id":"c24dfa67-41b2-4ed2-8217-9df3f1c93c4b","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"686e00f9-752e-43c3-a9cf-1e58c4aeecbe","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9500598d-24e5-430c-bb5d-6ec2f7cb2da1","type":"text/javascript","exec":[""]}}],"_postman_id":"c24dfa67-41b2-4ed2-8217-9df3f1c93c4b","description":""},{"name":"Retrieves all Invoices","id":"231eb1c7-b623-4c47-8c29-5eccd9274676","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/invoices?page=1&per_page=10&sort=updated_at&sort_direction=desc&is_consolidated_pdf_file_ready=0&is_consolidated_excel_file_ready=0","urlObject":{"path":["v2","invoices"],"host":["https://api.mycsp.io"],"query":[{"description":{"content":"<p>Specifies the page number in a limited (paginated) list of invoices.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Controls the number of items per page in a limited (paginated) list of invoices (max: 100)</p>\n","type":"text/plain"},"key":"per_page","value":"10"},{"disabled":true,"description":{"content":"<p>Filter invoices by is_paid. 1 for true, 0 for false.</p>\n","type":"text/plain"},"key":"is_paid","value":"1"},{"disabled":true,"description":{"content":"<p>Filter invoices by is_in_due. 1 for true, 0 for false.</p>\n","type":"text/plain"},"key":"is_in_due","value":"1"},{"description":{"content":"<p>Field name to sort by. Note: default sort is 'invoice_number', but 'updated_at' and 'created_at' are also acceptable.</p>\n","type":"text/plain"},"key":"sort","value":"updated_at"},{"description":{"content":"<p>Sort direction. Acceptable values are: asc, desc.</p>\n","type":"text/plain"},"key":"sort_direction","value":"desc"},{"description":{"content":"<p>Filter invoices by is_consolidated_pdf_file_ready. 1 for true, 0 for false.</p>\n","type":"text/plain"},"key":"is_consolidated_pdf_file_ready","value":"0"},{"description":{"content":"<p>Filter invoices by is_consolidated_excel_file_ready. 1 for true, 0 for false.</p>\n","type":"text/plain"},"key":"is_consolidated_excel_file_ready","value":"0"},{"disabled":true,"description":{"content":"<p>Filter invoices by max invoice_date. For example 2021-06-15.</p>\n","type":"text/plain"},"key":"end_date","value":null},{"disabled":true,"description":{"content":"<p>Filter invoices by min invoice_date. For example 2020-06-15.</p>\n","type":"text/plain"},"key":"start_date","value":null},{"disabled":true,"description":{"content":"<p>Filter invoices by product categories, for multiple categories, use : to connect. For example Azure:Microsoft 365:Azure Reservations</p>\n","type":"text/plain"},"key":"product_categories","value":null},{"disabled":true,"description":{"content":"<p>Filter invoices by products, for multiple products, use : to connect. For example Office 365 Cloud App Security:Windows Server CAL - 1 Device CAL - 3 year</p>\n","type":"text/plain"},"key":"products","value":null},{"disabled":true,"description":{"content":"<p>Filter invoices by tenant_ids, for multiple tenants, use : to connect. For example 38ca6b07-27844246-8cfb-a6797c2f3e:28ca6b07-27844246-8cfb-a6797c2f3e</p>\n","type":"text/plain"},"key":"tenant_ids","value":null},{"disabled":true,"description":{"content":"<p>Filter invoices by max amount. For example 1000</p>\n","type":"text/plain"},"key":"max_amount","value":null},{"disabled":true,"description":{"content":"<p>Filter invoices by min amount. For example 10</p>\n","type":"text/plain"},"key":"min_amount","value":null}],"variable":[]}},"response":[{"id":"0f84269e-3b7b-4035-80ca-2e40dbb9a244","name":"Invoices found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/invoices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": \n    [\n        {\n        \"invoice_number\": \"INVO0O0630K\",\n            \"invoice_id\": \"2c92a00c754a9klsdfioe34742592395\",\n            \"tenant_id\": \"lo98e52c-bf2l1-486b-80sd-a08440886435\",\n            \"tenant_name\": \"Corp ABCD. \",\n            \"invoice_date\": \"2020-07-31\",\n            \"billing_account_id\": \"2c92a00c754a9klsdfioe34742592395\",\n            \"currency\": \"NZD\",\n            \"balance\": 0.0,\n            \"credit_balance_adjustment_amount\": -4235.01,\n            \"amount\": 7555.89,\n            \"adjustment_amount\": 0.0,\n            \"payment_amount\": 3320.88,\n            \"tax_amount\": 985.55,\n            \"payments\": [\n                {\n                    \"date\": \"2020-10-23\",\n                    \"type\": \"External\",\n                    \"amount\": 3251.35,\n                    \"number\": \"POI-0000900\",\n                    \"status\": \"Processed\",\n                    \"paymentId\": \"2c92a00c754a9klsdfioe34742592395\"\n                }\n            ],\n            \"due_date\": \"2019-08-20\",\n            \"amount_without_tax\": 6570.34,\n            \"pdf_url\": null,\n            \"excel_url\": null\n        },\n        {\n            \"invoice_number\": \"INVO0O0630L\",\n            \"invoice_id\": \"2c92a00c754a9klsdfioe34742592395\",\n            \"tenant_id\": \"lo98e52c-bf2l1-486b-80sd-a08440886435\",\n            \"tenant_name\": \"Corp ABC. \",\n            \"invoice_date\": \"2020-07-31\",\n            \"billing_account_id\": \"2c92a00c754a9klsdfioe34742592395\",\n            \"currency\": \"NZD\",\n            \"balance\": 0.0,\n            \"credit_balance_adjustment_amount\": -4235.01,\n            \"amount\": 7555.89,\n            \"adjustment_amount\": 0.0,\n            \"payment_amount\": 3320.88,\n            \"tax_amount\": 985.55,\n            \"payments\": [\n                {\n                    \"date\": \"2020-10-23\",\n                    \"type\": \"External\",\n                    \"amount\": 3251.35,\n                    \"number\": \"POI-0000900\",\n                    \"status\": \"Processed\",\n                    \"paymentId\": \"2c92a00c754a9klsdfioe34742592395\"\n                },\n                {\n                    \"date\": \"2020-10-23\",\n                    \"type\": \"External\",\n                    \"amount\": 69.53,\n                    \"number\": \"Oiwe0-0000900\",\n                    \"status\": \"Processed\",\n                    \"paymentId\": \"2c92a00c754a9klsdfioe34742592395\"\n                }\n            ],\n            \"due_date\": \"2019-08-20\",\n            \"amount_without_tax\": 6570.34,\n            \"pdf_url\": null,\n            \"excel_url\": null\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\",\n        \"pagination\": {\n            \"per_page\": 20,\n            \"total_count\": 57,\n            \"page\": 1,\n            \"total_pages\": 3,\n            \"first_url\": \"/v2/invoices?items=20&page=1\",\n            \"prev_url\": \"null\",\n            \"next_url\": \"/v2/invoices?items=20&page=2\",\n            \"last_url\": \"/v2/invoices?items=20&page=3\"\n        }\n    }\n}"},{"id":"558149f9-a42d-4c55-ad09-24d18da35cee","name":"Invoices not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/invoices"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"No Invoices Found\"\n    }\n}"}],"_postman_id":"231eb1c7-b623-4c47-8c29-5eccd9274676"}],"id":"b433e367-a497-49b3-975d-cccad099f2b5","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"f62a01d2-14fb-463d-8134-6989389cf0c2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"70c0a868-9be8-40c9-992c-65882a6fc106","type":"text/javascript","exec":[""]}}],"_postman_id":"b433e367-a497-49b3-975d-cccad099f2b5","description":""},{"name":"Subscriptions","item":[{"name":"subscription","item":[{"name":"Retrieves a Subscription","id":"50c7b8b3-6fc2-4386-8eb3-5d0615f2281a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers/{customer_id}/subscriptions/{subscription_number}","urlObject":{"path":["v2","customers","{customer_id}","subscriptions","{subscription_number}"],"host":["https://api.mycsp.io"],"query":[],"variable":[]}},"response":[{"id":"7987a977-3656-48af-a9d6-aeb704d2c651","name":"Subscription found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}/subscriptions/{subscription_number}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": {\n        \"subscription_number\": \"A-S00004235\",\n        \"tenant_id\": \"859fc0bd-2d83-43b5-8e5c-50e8d8fb53b1\",\n        \"billing_account_id\": \"2c92c0fa72e0ce780172ee3267e018bd\",\n        \"currency\": \"NZD\",\n        \"price\": \"1.0\",\n        \"friendly_name\": null,\n        \"billing_cycle\": \"\",\n        \"billing_type\": null,\n        \"vendor_sub_id\": null,\n        \"ms_partner_id\": null,\n        \"rrp\": \"0.0\",\n        \"description\": null,\n        \"created_at\": \"2021-09-09T01:21:22.534Z\",\n        \"updated_at\": \"2021-09-09T01:21:22.534Z\",\n        \"has_purchaseable_addons\": false,\n        \"is_trial\": false,\n        \"status\": \"active\",\n        \"offer_id\": null,\n        \"po_number\": null,\n        \"is_invoice_separately\": false,\n        \"term_duration\": null,\n        \"quantity\": 0\n    },\n    \"meta\": {\n        \"message\": \"\"\n    }\n}"},{"id":"28a2ca7c-87f6-4b5a-b4d8-73e6952d84e9","name":"subscription not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}/subscriptions/{subscription_number}"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"Subscription Not Found\"\n    }\n}"}],"_postman_id":"50c7b8b3-6fc2-4386-8eb3-5d0615f2281a"},{"name":"Retrieves  subscription addons","id":"8a5c2a7f-a1d5-4e42-9589-b117552aa005","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers/{customer_id}/subscriptions/{subscription_number}/addons?page=1&items=10","description":"<p>todo check the parameters</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"e6c6a438-e753-49af-9b9a-91a250784119","id":"e6c6a438-e753-49af-9b9a-91a250784119","name":"subscription","type":"folder"}},"urlObject":{"path":["v2","customers","{customer_id}","subscriptions","{subscription_number}","addons"],"host":["https://api.mycsp.io"],"query":[{"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>items count per page (max: 100)</p>\n","type":"text/plain"},"key":"items","value":"10"}],"variable":[]}},"response":[{"id":"e9f7b631-c7d4-4d36-b1f4-b79ab50caadd","name":"Subscription Addons found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":{"raw":"https://api.mycsp.io/v2/customers/{customer_id}/subscriptions/{subscription_number}/addons?page=1&items=10","host":["https://api.mycsp.io"],"path":["v2","customers","{customer_id}","subscriptions","{subscription_number}","addons"],"query":[{"key":"page","value":"1"},{"key":"items","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"subscription_number\": \"A-S00005311\",\n            \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n            \"billing_account_id\": \"2c92a0fd6b730d21016b772572da7fbb\",\n            \"currency\": \"NZD\",\n            \"price\": \"3.0\",\n            \"friendly_name\": \"Add-on: Office 365 Advanced Threat Protection (Plan 1)\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"recurring\",\n            \"vendor_sub_id\": \"3F2B7F53-0F8A-4D0C-BB03-B677E65512A4\",\n            \"ms_partner_id\": \"5234533\",\n            \"rrp\": \"3.0\",\n            \"description\": null,\n            \"has_purchaseable_addons\": false,\n            \"is_trial\": false,\n            \"status\": \"active\",\n            \"offer_id\": \"3F2B7F53-0F8A-4D0C-BB03-B677E65512A4\",\n            \"po_number\": null,\n            \"is_invoice_separately\": false,\n            \"term_duration\": \"P1Y\",\n            \"quantity\": 1,\n            \"discounts\": [\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"38ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Office 365\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"6.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Office 365\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"6.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Azure\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"6.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"38ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Windows 10\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"6.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Dynamics\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"6.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Azure\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"6.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Windows 10\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"6.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Umbrellar Cloud powered by Azure Stack\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"7.5\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Microsoft 365\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"6.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Microsoft 365\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"6.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Umbrellar Cloud powered by Azure Stack\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"7.5\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"SQL Database\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Dynamics\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"6.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Azure Cosmos DB\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Azure Server Software License\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                },\n                {\n                    \"subscription_number\": \"A-S00005311\",\n                    \"tenant_id\": \"t8ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n                    \"friendly_name\": \"Reserved VM Instance\",\n                    \"billing_cycle\": \"month\",\n                    \"billing_type\": \"recurring\",\n                    \"vendor_sub_id\": null,\n                    \"ms_partner_id\": null,\n                    \"discount_percentage\": \"3.0\",\n                    \"discount_amount\": \"\"\n                }\n            ]\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\",\n        \"pagination\": {\n            \"page\": 1,\n            \"per_page\": 1,\n            \"total_count\": 1,\n            \"total_pages\": 1,\n            \"first_uri\": \"/v2/customers/d598e52c-bffb-486b-8021-a08440886435/subscriptions/A-S00005311/addons?page=1\",\n            \"prev_uri\": \"null\",\n            \"next_uri\": \"null\",\n            \"last_uri\": \"/v2/customers/d598e52c-bffb-486b-8021-a08440886435/subscriptions/A-S00005311/addons?page=1\"\n        }\n    }\n}"},{"id":"841dfdd4-03ed-4c62-a94f-3bdb6e1ddb08","name":"Subscription Addons not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":{"raw":"https://api.mycsp.io/v2/customers/{customer_id}/subscriptions/{subscription_number}/addons?page=1&items=10","host":["https://api.mycsp.io"],"path":["v2","customers","{customer_id}","subscriptions","{subscription_number}","addons"],"query":[{"key":"page","value":"1"},{"key":"items","value":"10"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"Subscription Addons Not Found\"\n    }\n}"}],"_postman_id":"8a5c2a7f-a1d5-4e42-9589-b117552aa005"},{"name":"Retrieves  subscription amendments","id":"d8a2f966-69f3-4e0a-95ff-7bafc022b8a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers/{customer_id}/subscriptions/{subscription_number}/amendments?page=1&items=10","description":"<p>todo check the parameters</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"e6c6a438-e753-49af-9b9a-91a250784119","id":"e6c6a438-e753-49af-9b9a-91a250784119","name":"subscription","type":"folder"}},"urlObject":{"path":["v2","customers","{customer_id}","subscriptions","{subscription_number}","amendments"],"host":["https://api.mycsp.io"],"query":[{"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>items count per page (max: 100)</p>\n","type":"text/plain"},"key":"items","value":"10"}],"variable":[]}},"response":[{"id":"447a7e64-c811-4f41-a15e-1b4e34793b94","name":"Subscription Amendments found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":{"raw":"https://api.mycsp.io/v2/customers/{customer_id}/subscriptions/{subscription_number}/amendments?page=1&items=10","host":["https://api.mycsp.io"],"path":["v2","customers","{customer_id}","subscriptions","{subscription_number}","amendments"],"query":[{"key":"page","value":"1"},{"key":"items","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c0f972e0de600172ee4696c874e7\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c0867304d4a701730a079ee226a5\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c08673a423bb0173a9b3a2616569\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c08674352dd10174493d82291a66\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c08674dd853e0174e3cb18f01d2f\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c085754aacb10175518a9e437fd6\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c0857596f38a0175b4bc92ce008b\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c08576b7e5ae0176bdcc1de44cc7\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c086774f253c01775e091edb4060\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c08577eb89dd0177edb1800c3659\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c0947881ceaf017884734a4970f9\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c0947881ceaf017884734d29710c\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c0947881ceaf017884734f5b711f\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c0947881ceaf01788473518b7132\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c0947881ceaf0178847353ca7145\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c09479a6a0de0179aae49870785d\"\n        },\n        {\n            \"subscription_number\": \"A-S00004235\",\n            \"quantity\": \"0\",\n            \"contract_effective_date\": \"2020-06-26\",\n            \"price\": \"1.0\",\n            \"subscription_id\": \"2c92c09479a6a0de0179aae4995378a9\"\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\",\n        \"pagination\": {\n            \"page\": 1,\n            \"per_page\": 10,\n            \"total_count\": 17,\n            \"total_pages\": 2,\n            \"first_uri\": \"/v2/customers/t59fc0bd-2d83-43b5-8e5c-50e8d8fb53b1/subscriptions/A-S00004235/amendments?page=1\",\n            \"prev_uri\": \"null\",\n            \"next_uri\": \"null\",\n            \"last_uri\": \"/v2/customers/t59fc0bd-2d83-43b5-8e5c-50e8d8fb53b1/subscriptions/A-S00004235/amendments?page=1\"\n        }\n    }\n}"},{"id":"ed316f1f-266a-4724-8501-b342dcb2ac1b","name":"Subscription Amendments not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":{"raw":"https://api.mycsp.io/v2/customers/{customer_id}/subscriptions/{subscription_number}/amendments?page=1&items=10","host":["https://api.mycsp.io"],"path":["v2","customers","{customer_id}","subscriptions","{subscription_number}","amendments"],"query":[{"key":"page","value":"1"},{"key":"items","value":"10"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"Subscription Amendments Not Found\"\n    }\n}"}],"_postman_id":"d8a2f966-69f3-4e0a-95ff-7bafc022b8a6"}],"id":"e6c6a438-e753-49af-9b9a-91a250784119","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"686e00f9-752e-43c3-a9cf-1e58c4aeecbe","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9500598d-24e5-430c-bb5d-6ec2f7cb2da1","type":"text/javascript","exec":[""]}}],"_postman_id":"e6c6a438-e753-49af-9b9a-91a250784119","description":""},{"name":"Retrieves all Subscriptions","id":"55aa29e6-d4dd-40fc-91e9-6a046bfd4d5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers/subscriptions?page=1&per_page=10&sort=updated_at&sort_direction=desc","urlObject":{"path":["v2","customers","subscriptions"],"host":["https://api.mycsp.io"],"query":[{"description":{"content":"<p>Specifies the page number in a limited (paginated) list of subscription.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Controls the number of items per page in a limited (paginated) list of subscriptions (max: 100)</p>\n","type":"text/plain"},"key":"per_page","value":"10"},{"disabled":true,"description":{"content":"<p>Filter invoices by is_paid. 1 for true, 0 for false.</p>\n","type":"text/plain"},"key":"is_paid","value":"1"},{"disabled":true,"description":{"content":"<p>Filter invoices by is_in_due. 1 for true, 0 for false.</p>\n","type":"text/plain"},"key":"is_in_due","value":"1"},{"description":{"content":"<p>Field name to sort by. Note: default sort is 'subscription_number', but 'updated_at' and 'created_at' are also acceptable.</p>\n","type":"text/plain"},"key":"sort","value":"updated_at"},{"description":{"content":"<p>Sort direction. Acceptable values are: asc, desc.</p>\n","type":"text/plain"},"key":"sort_direction","value":"desc"}],"variable":[]}},"response":[{"id":"2828c236-3652-41c5-9e48-3e1310b20eb1","name":"Subscription found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"subscription_number\": \"A-S00001283\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00000676\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"CF7E12A6-AD69-439F-A9B7-C4CAFFDED291\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00006017\",\n            \"tenant_id\": \"69688b23-995f-4925-9399-d6920d634680\",\n            \"billing_account_id\": \"2c92a0087c110e45017c14d8c9cb615f\",\n            \"friendly_name\": \"Microsoft Azure Marketplace\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00005798\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Exchange Online Protection\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"recurring\",\n            \"vendor_sub_id\": \"EE74A9F3-2973-4764-B129-B65F03BA9780\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00005557\",\n            \"tenant_id\": \"38ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n            \"billing_account_id\": \"2c92a0fd6b730d21016b772572da7fbb\",\n            \"friendly_name\": \"Umbrellar Cloud Pay-As-You-Go\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00005311\",\n            \"tenant_id\": \"38ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n            \"billing_account_id\": \"2c92a0fd6b730d21016b772572da7fbb\",\n            \"friendly_name\": \"Exchange Online Protection\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"recurring\",\n            \"vendor_sub_id\": \"6C055F92-705B-4D23-8056-2EBFEFEEEA7A\",\n            \"ms_partner_id\": \"5234533\",\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00003936\",\n            \"tenant_id\": \"1a528034-58ee-413f-a8d0-71c623ed519e\",\n            \"billing_account_id\": \"2c92a0ff668ad0b60166c71905c72f97\",\n            \"friendly_name\": \"Azure Managed Service\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00003762\",\n            \"tenant_id\": \"1a8c4e14-e953-4c66-afe0-81971d17fb0d\",\n            \"billing_account_id\": \"2c92a0086ccd1028016cdb50a35f15cf\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00002477\",\n            \"tenant_id\": \"38ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n            \"billing_account_id\": \"2c92a0fd6b730d21016b772572da7fbb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"24BD0480-5D5D-47CC-AD50-866E41103D38\",\n            \"ms_partner_id\": \"5234533\",\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00001680\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"D5DF8B2E-343B-4A80-B497-8FB861CD3595\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00001668\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"15FCCDBC-6EF7-4234-AE5B-6BD8B150BB4A\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00001663\",\n            \"tenant_id\": \"1a528034-58ee-413f-a8d0-71c623ed519e\",\n            \"billing_account_id\": \"2c92a0ff668ad0b60166c71905c72f97\",\n            \"friendly_name\": \"Umbrellar Cloud Pay-As-You-Go\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00001615\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"37CC3A22-AC02-4709-BD33-81C4F6531A75\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00001288\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"947473E5-4D05-47E9-8750-1A1AE5E4AA85\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00000694\",\n            \"tenant_id\": \"1a528034-58ee-413f-a8d0-71c623ed519e\",\n            \"billing_account_id\": \"2c92a0fe6736cd69016752990b6276d2\",\n            \"friendly_name\": \"Umbrellar Cloud Pay-As-You-Go\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00003974\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00005541\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00000715\",\n            \"tenant_id\": \"1a528034-58ee-413f-a8d0-71c623ed519e\",\n            \"billing_account_id\": \"2c92a0fe6736cd69016752990b6276d2\",\n            \"friendly_name\": \"Umbrellar Cloud Pay-As-You-Go\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00005181\",\n            \"tenant_id\": \"38ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n            \"billing_account_id\": \"2c92a0fd6b730d21016b772572da7fbb\",\n            \"friendly_name\": \"Exchange Online Protection\",\n            \"billing_cycle\": \"annual\",\n            \"billing_type\": \"recurring\",\n            \"vendor_sub_id\": \"4C70F9F1-FD43-4C83-8839-18220DCA167F\",\n            \"ms_partner_id\": \"5234533\",\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00000895\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\",\n        \"pagination\": {\n            \"page\": 1,\n            \"per_page\": 20,\n            \"total_count\": 188,\n            \"total_pages\": 10,\n            \"first_uri\": \"/v2/customers/subscriptions?per_page=20&page=1\",\n            \"prev_uri\": \"null\",\n            \"next_uri\": \"/v2/customers/subscriptions?per_page=20&page=2\",\n            \"last_uri\": \"/v2/customers/subscriptions?per_page=20&page=10\"\n        }\n    }\n}"},{"id":"ea30943f-11cd-471c-b516-6a4901945eae","name":"Subscription not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/subscriptions"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"No Subscriptions Found\"\n    }\n}"}],"_postman_id":"55aa29e6-d4dd-40fc-91e9-6a046bfd4d5d"},{"name":"Retrieves all Subscriptions of A Customer","id":"9165a67d-2290-4c02-9665-3b1984d5daa7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers/{customer_id}/subscriptions?page=1&per_page=10&sort=updated_at&sort_direction=desc","urlObject":{"path":["v2","customers","{customer_id}","subscriptions"],"host":["https://api.mycsp.io"],"query":[{"description":{"content":"<p>Specifies the page number in a limited (paginated) list of subscription.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Controls the number of items per page in a limited (paginated) list of subscriptions (max: 100)</p>\n","type":"text/plain"},"key":"per_page","value":"10"},{"description":{"content":"<p>Field name to sort by. Note: default sort is 'subscription_number', but 'updated_at' and 'created_at' are also acceptable.</p>\n","type":"text/plain"},"key":"sort","value":"updated_at"},{"description":{"content":"<p>Sort direction. Acceptable values are: asc, desc.</p>\n","type":"text/plain"},"key":"sort_direction","value":"desc"}],"variable":[]}},"response":[{"id":"77bb143f-a2dc-4e13-a161-1714e36a57a5","name":"Subscription found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer-id}/subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"subscription_number\": \"A-S00001283\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00000676\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"CF7E12A6-AD69-439F-A9B7-C4CAFFDED291\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00006017\",\n            \"tenant_id\": \"69688b23-995f-4925-9399-d6920d634680\",\n            \"billing_account_id\": \"2c92a0087c110e45017c14d8c9cb615f\",\n            \"friendly_name\": \"Microsoft Azure Marketplace\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00005798\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Exchange Online Protection\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"recurring\",\n            \"vendor_sub_id\": \"EE74A9F3-2973-4764-B129-B65F03BA9780\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00005557\",\n            \"tenant_id\": \"38ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n            \"billing_account_id\": \"2c92a0fd6b730d21016b772572da7fbb\",\n            \"friendly_name\": \"Umbrellar Cloud Pay-As-You-Go\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00005311\",\n            \"tenant_id\": \"38ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n            \"billing_account_id\": \"2c92a0fd6b730d21016b772572da7fbb\",\n            \"friendly_name\": \"Exchange Online Protection\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"recurring\",\n            \"vendor_sub_id\": \"6C055F92-705B-4D23-8056-2EBFEFEEEA7A\",\n            \"ms_partner_id\": \"5234533\",\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00003936\",\n            \"tenant_id\": \"1a528034-58ee-413f-a8d0-71c623ed519e\",\n            \"billing_account_id\": \"2c92a0ff668ad0b60166c71905c72f97\",\n            \"friendly_name\": \"Azure Managed Service\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00003762\",\n            \"tenant_id\": \"1a8c4e14-e953-4c66-afe0-81971d17fb0d\",\n            \"billing_account_id\": \"2c92a0086ccd1028016cdb50a35f15cf\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00002477\",\n            \"tenant_id\": \"38ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n            \"billing_account_id\": \"2c92a0fd6b730d21016b772572da7fbb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"24BD0480-5D5D-47CC-AD50-866E41103D38\",\n            \"ms_partner_id\": \"5234533\",\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00001680\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"D5DF8B2E-343B-4A80-B497-8FB861CD3595\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00001668\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"15FCCDBC-6EF7-4234-AE5B-6BD8B150BB4A\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00001663\",\n            \"tenant_id\": \"1a528034-58ee-413f-a8d0-71c623ed519e\",\n            \"billing_account_id\": \"2c92a0ff668ad0b60166c71905c72f97\",\n            \"friendly_name\": \"Umbrellar Cloud Pay-As-You-Go\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00001615\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"37CC3A22-AC02-4709-BD33-81C4F6531A75\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00001288\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": \"947473E5-4D05-47E9-8750-1A1AE5E4AA85\",\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00000694\",\n            \"tenant_id\": \"1a528034-58ee-413f-a8d0-71c623ed519e\",\n            \"billing_account_id\": \"2c92a0fe6736cd69016752990b6276d2\",\n            \"friendly_name\": \"Umbrellar Cloud Pay-As-You-Go\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00003974\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00005541\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00000715\",\n            \"tenant_id\": \"1a528034-58ee-413f-a8d0-71c623ed519e\",\n            \"billing_account_id\": \"2c92a0fe6736cd69016752990b6276d2\",\n            \"friendly_name\": \"Umbrellar Cloud Pay-As-You-Go\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        },\n        {\n            \"subscription_number\": \"A-S00005181\",\n            \"tenant_id\": \"38ca6b07-2784-4246-8cfb-a6797c2f3e8a\",\n            \"billing_account_id\": \"2c92a0fd6b730d21016b772572da7fbb\",\n            \"friendly_name\": \"Exchange Online Protection\",\n            \"billing_cycle\": \"annual\",\n            \"billing_type\": \"recurring\",\n            \"vendor_sub_id\": \"4C70F9F1-FD43-4C83-8839-18220DCA167F\",\n            \"ms_partner_id\": \"5234533\",\n            \"status\": \"active\",\n            \"quantity\": 1\n        },\n        {\n            \"subscription_number\": \"A-S00000895\",\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"billing_account_id\": \"2c92a0fc6736cd43016752a2503629bb\",\n            \"friendly_name\": \"Microsoft Azure\",\n            \"billing_cycle\": \"month\",\n            \"billing_type\": \"usage\",\n            \"vendor_sub_id\": null,\n            \"ms_partner_id\": null,\n            \"status\": \"active\",\n            \"quantity\": 0\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\",\n        \"pagination\": {\n            \"page\": 1,\n            \"per_page\": 20,\n            \"total_count\": 188,\n            \"total_pages\": 10,\n            \"first_uri\": \"/v2/customers/subscriptions?per_page=20&page=1\",\n            \"prev_uri\": \"null\",\n            \"next_uri\": \"/v2/customers/subscriptions?per_page=20&page=2\",\n            \"last_uri\": \"/v2/customers/subscriptions?per_page=20&page=10\"\n        }\n    }\n}"},{"id":"400f3bcb-cad6-4ede-a690-9c578a4a7ed1","name":"Subscription not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer-id}/subscriptions"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"No Subscriptions Found\"\n    }\n}"}],"_postman_id":"9165a67d-2290-4c02-9665-3b1984d5daa7"}],"id":"a5e43406-3317-4386-9248-71ef351ba336","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"f62a01d2-14fb-463d-8134-6989389cf0c2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"70c0a868-9be8-40c9-992c-65882a6fc106","type":"text/javascript","exec":[""]}}],"_postman_id":"a5e43406-3317-4386-9248-71ef351ba336","description":""},{"name":"Customers","item":[{"name":"customer","item":[{"name":"Retrieves a Customer","id":"9b72cb5d-58fb-4337-96bb-dd5046dff107","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers/{customer_id}","urlObject":{"path":["v2","customers","{customer_id}"],"host":["https://api.mycsp.io"],"query":[],"variable":[]}},"response":[{"id":"17319a0b-af70-478e-9255-8c3afe997e1f","name":"customer found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": {\n        \"tenant_id\": \"t598e52c-bffb-486b-8021-a08440886435\",\n        \"commerce_id\": \"31bcb304-f7f3-4da6-bd36-01dbcb45c38b\",\n        \"custom_domains\": [\n            \"ublrjunior02.onmicrosoft.com\"\n        ],\n        \"tenant_domain\": \"ublrjunior02.onmicrosoft.com\",\n        \"relationship_to_partner\": \"reseller\",\n        \"billing_profile\": {\n            \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3\",\n            \"firstName\": \"Junior-Two\",\n            \"lastName\": \"Reseller-Two\",\n            \"email\": \"rain.lei@umbrellar.com\",\n            \"culture\": \"en-NZ\",\n            \"language\": \"en\",\n            \"companyName\": \"Umbrellar Junior 02\",\n            \"defaultAddress\": {\n                \"country\": \"NZ\",\n                \"region\": \"Auckland\",\n                \"city\": \"Auckland\",\n                \"state\": \"Auckland\",\n                \"addressLine1\": \"881 Beach Road\",\n                \"addressLine2\": \"Waiake\",\n                \"addressLine3\": \"Waiake\",\n                \"postalCode\": \"0630\",\n                \"firstName\": \"Junior-Two\",\n                \"lastName\": \"Reseller-Two\",\n                \"phoneNumber\": \"+13125201873\",\n                \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3-billing-address\"\n            },\n            \"links\": {\n                \"self\": {\n                    \"uri\": \"/customers/c598e52c-bffb-486b-8021-a08440886435/profiles/billing\",\n                    \"method\": \"GET\",\n                    \"headers\": []\n                }\n            },\n            \"attributes\": {\n                \"etag\": \"-1214180224317586413\",\n                \"objectType\": \"CustomerBillingProfile\"\n            },\n            \"additionalEmailAddresses\": \"mark.gou@umbrellar.com, harsh.patel@umbrellar.com\"\n        },\n        \"company_profile\": {\n            \"tenantId\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"domain\": \"ublrjunior02.onmicrosoft.com\",\n            \"companyName\": \"Umbrellar Junior 02\",\n            \"address\": {\n                \"country\": \"NZ\",\n                \"region\": \"Auckland\",\n                \"city\": \"Auckland\",\n                \"state\": \"Auckland\",\n                \"addressLine1\": \"Level 2, Building 4\",\n                \"postalCode\": \"0632\",\n                \"phoneNumber\": \"6439619550\",\n                \"id\": \"c598e52c-bffb-486b-8021-a08440886435-company-profile-company-address\"\n            },\n            \"email\": \"ublrjunior02@outlook.com\",\n            \"links\": {\n                \"self\": {\n                    \"uri\": \"/customers/c598e52c-bffb-486b-8021-a08440886435/profiles/company\",\n                    \"method\": \"GET\",\n                    \"headers\": []\n                }\n            },\n            \"attributes\": {\n                \"objectType\": \"CustomerCompanyProfile\"\n            },\n            \"id\": \"c598e52c-bffb-486b-8021-a08440886435-company-profile\"\n        },\n        \"links\": {\n            \"self\": {\n                \"uri\": \"/customers/c598e52c-bffb-486b-8021-a08440886435\",\n                \"method\": \"GET\",\n                \"headers\": []\n            }\n        },\n        \"allow_delegated_access\": true,\n        \"is_direct_customer\": false,\n        \"is_indirect_customer\": false,\n        \"is_indirect_reseller\": false,\n        \"parents\": [],\n        \"children\": [\n            {\n                \"tenant_id\": \"r83d4a2f-9518-4e1e-98a3-59acfb41166a\",\n                \"commerce_id\": \"a1b907e3-8ef0-49eb-adf5-2f807a7e1c42\",\n                \"custom_domains\": [\n                    \"ucv01.onmicrosoft.com\"\n                ],\n                \"tenant_domain\": \"ucv01.onmicrosoft.com\",\n                \"billing_profile\": {\n                    \"id\": \"d48c1746-0642-5688-5a3b-d3fbf9650d35\",\n                    \"firstName\": \"Mark\",\n                    \"lastName\": \"Gou\",\n                    \"email\": \"mark.gou@umbrellar.com\",\n                    \"culture\": \"en-NZ\",\n                    \"language\": \"En\",\n                    \"companyName\": \"Umbrellar Customer Verify 01\",\n                    \"defaultAddress\": {\n                        \"country\": \"NZ\",\n                        \"region\": \"Auckland\",\n                        \"city\": \"Auckland\",\n                        \"state\": \"Auckland\",\n                        \"addressLine1\": \"873A Beach Road\",\n                        \"addressLine2\": \"Waiake\",\n                        \"addressLine3\": \"Waiake\",\n                        \"postalCode\": \"0630\",\n                        \"firstName\": \"Mark\",\n                        \"lastName\": \"Gou\",\n                        \"phoneNumber\": \"023222222\",\n                        \"id\": \"d48c1746-0642-5688-5a3b-d3fbf9650d35-billing-address\"\n                    },\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/383d4a2f-9518-4e1e-98a3-59acfb41166a/profiles/billing\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"attributes\": {\n                        \"etag\": \"3715736492552680286\",\n                        \"objectType\": \"CustomerBillingProfile\"\n                    },\n                    \"invoiceReference\": \"\"\n                },\n                \"company_profile\": {\n                    \"tenantId\": \"383d4a2f-9518-4e1e-98a3-59acfb41166a\",\n                    \"domain\": \"ucv01.onmicrosoft.com\",\n                    \"companyName\": \"Umbrellar Customer Verify 01\",\n                    \"address\": {\n                        \"country\": \"NZ\",\n                        \"region\": \"Auckland\",\n                        \"city\": \"Auckland\",\n                        \"state\": \"Auckland\",\n                        \"addressLine1\": \"873A Beach Road\",\n                        \"postalCode\": \"0630\",\n                        \"phoneNumber\": \"023222222\",\n                        \"id\": \"383d4a2f-9518-4e1e-98a3-59acfb41166a-company-profile-company-address\"\n                    },\n                    \"email\": \"mark.gou@umbrellar.com\",\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/383d4a2f-9518-4e1e-98a3-59acfb41166a/profiles/company\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"attributes\": {\n                        \"objectType\": \"CustomerCompanyProfile\"\n                    },\n                    \"id\": \"383d4a2f-9518-4e1e-98a3-59acfb41166a-company-profile\"\n                },\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/383d4a2f-9518-4e1e-98a3-59acfb41166a\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"allow_delegated_access\": true,\n                \"is_direct_customer\": false,\n                \"is_indirect_customer\": false,\n                \"is_indirect_reseller\": false\n            },\n            {\n                \"tenant_id\": \"y864568a-6835-4a19-86d4-70050739c2f9\",\n                \"commerce_id\": \"f74f1460-508b-4bdc-988c-e067d35e5e5c\",\n                \"custom_domains\": [\n                    \"udcrt.onmicrosoft.com\"\n                ],\n                \"tenant_domain\": \"udcrt.onmicrosoft.com\",\n                \"billing_profile\": {\n                    \"id\": \"04adf5ea-d671-5176-a953-8b75f13981ee\",\n                    \"firstName\": \"Mark\",\n                    \"lastName\": \"Gou\",\n                    \"email\": \"mark.gou@umbrellar.com\",\n                    \"culture\": \"en-NZ\",\n                    \"language\": \"En\",\n                    \"companyName\": \"Umbrellar Direct Customer Registration Test\",\n                    \"defaultAddress\": {\n                        \"country\": \"NZ\",\n                        \"region\": \"Auckland\",\n                        \"city\": \"Auckland\",\n                        \"state\": \"Auckland\",\n                        \"addressLine1\": \"49 Parkway Drive\",\n                        \"addressLine2\": \"Rosedale\",\n                        \"addressLine3\": \"Rosedale\",\n                        \"postalCode\": \"0632\",\n                        \"firstName\": \"Mark\",\n                        \"lastName\": \"Gou\",\n                        \"phoneNumber\": \"0210542967\",\n                        \"id\": \"04adf5ea-d671-5176-a953-8b75f13981ee-billing-address\"\n                    },\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/4864568a-6835-4a19-86d4-70050739c2f9/profiles/billing\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"attributes\": {\n                        \"etag\": \"6104149814010782012\",\n                        \"objectType\": \"CustomerBillingProfile\"\n                    },\n                    \"invoiceReference\": \"\"\n                },\n                \"company_profile\": {\n                    \"tenantId\": \"4864568a-6835-4a19-86d4-70050739c2f9\",\n                    \"domain\": \"udcrt.onmicrosoft.com\",\n                    \"companyName\": \"Umbrellar Direct Customer Registration Test\",\n                    \"address\": {\n                        \"country\": \"NZ\",\n                        \"region\": \"Auckland\",\n                        \"city\": \"Auckland\",\n                        \"state\": \"Auckland\",\n                        \"addressLine1\": \"49 Parkway Drive\",\n                        \"postalCode\": \"0632\",\n                        \"phoneNumber\": \"0210542967\",\n                        \"id\": \"4864568a-6835-4a19-86d4-70050739c2f9-company-profile-company-address\"\n                    },\n                    \"email\": \"mark.gou@umbrellar.com\",\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/4864568a-6835-4a19-86d4-70050739c2f9/profiles/company\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"attributes\": {\n                        \"objectType\": \"CustomerCompanyProfile\"\n                    },\n                    \"id\": \"4864568a-6835-4a19-86d4-70050739c2f9-company-profile\"\n                },\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/4864568a-6835-4a19-86d4-70050739c2f9\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"allow_delegated_access\": true,\n                \"is_direct_customer\": false,\n                \"is_indirect_customer\": false,\n                \"is_indirect_reseller\": false\n            },\n            {\n                \"tenant_id\": \"36cf811a-3443-4ce0-88f3-3aab9051717f\",\n                \"commerce_id\": \"408f1596-8c8d-4147-9993-a82df1540c8c\",\n                \"custom_domains\": [\n                    \"ujnc1.onmicrosoft.com\"\n                ],\n                \"tenant_domain\": \"ujnc1.onmicrosoft.com\",\n                \"billing_profile\": {\n                    \"id\": \"ead763df-cc19-5d10-6174-e8f2ee31698c\",\n                    \"firstName\": \"Umbrellar\",\n                    \"lastName\": \"Test\",\n                    \"email\": \"mark.gou@umbrellar.com\",\n                    \"culture\": \"en-NZ\",\n                    \"language\": \"En\",\n                    \"companyName\": \"Umbrellar Jnr2 New Customer 1\",\n                    \"defaultAddress\": {\n                        \"country\": \"NZ\",\n                        \"region\": \"Auckland\",\n                        \"city\": \"Auckland\",\n                        \"state\": \"Auckland\",\n                        \"addressLine1\": \"873A Beach Road\",\n                        \"addressLine2\": \"Waiake\",\n                        \"addressLine3\": \"Waiake\",\n                        \"postalCode\": \"0630\",\n                        \"firstName\": \"Umbrellar\",\n                        \"lastName\": \"Test\",\n                        \"phoneNumber\": \"02134343433\",\n                        \"id\": \"ead763df-cc19-5d10-6174-e8f2ee31698c-billing-address\"\n                    },\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/e6cf811a-3443-4ce0-88f3-3aab9051717f/profiles/billing\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"attributes\": {\n                        \"etag\": \"2287475637478102040\",\n                        \"objectType\": \"CustomerBillingProfile\"\n                    },\n                    \"invoiceReference\": \"\"\n                },\n                \"company_profile\": {\n                    \"tenantId\": \"e6cf811a-3443-4ce0-88f3-3aab9051717f\",\n                    \"domain\": \"ujnc1.onmicrosoft.com\",\n                    \"companyName\": \"Umbrellar Jnr2 New Customer 1\",\n                    \"address\": {\n                        \"country\": \"NZ\",\n                        \"region\": \"Auckland\",\n                        \"city\": \"Auckland\",\n                        \"state\": \"Auckland\",\n                        \"addressLine1\": \"873A Beach Road\",\n                        \"postalCode\": \"0630\",\n                        \"phoneNumber\": \"02134343433\",\n                        \"id\": \"e6cf811a-3443-4ce0-88f3-3aab9051717f-company-profile-company-address\"\n                    },\n                    \"email\": \"mark.gou@umbrellar.com\",\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/e6cf811a-3443-4ce0-88f3-3aab9051717f/profiles/company\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"attributes\": {\n                        \"objectType\": \"CustomerCompanyProfile\"\n                    },\n                    \"id\": \"e6cf811a-3443-4ce0-88f3-3aab9051717f-company-profile\"\n                },\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/e6cf811a-3443-4ce0-88f3-3aab9051717f\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"allow_delegated_access\": true,\n                \"is_direct_customer\": false,\n                \"is_indirect_customer\": false,\n                \"is_indirect_reseller\": false\n            },\n            {\n                \"tenant_id\": \"32d30fb9-1ded-4ccc-9977-1611822b9532\",\n                \"commerce_id\": \"325fd02b-49ef-4968-b96e-1a24f1fc6310\",\n                \"custom_domains\": [\n                    \"ujncot.onmicrosoft.com\"\n                ],\n                \"tenant_domain\": \"ujncot.onmicrosoft.com\",\n                \"billing_profile\": {\n                    \"id\": \"3b0a396e-22fa-544c-0519-106459df9ae1\",\n                    \"firstName\": \"Mark\",\n                    \"lastName\": \"Test\",\n                    \"email\": \"mark.gou@umbrellar.com\",\n                    \"culture\": \"en-NZ\",\n                    \"language\": \"en\",\n                    \"companyName\": \"Umbrellar Junior02 New Customer Onboard Test\",\n                    \"defaultAddress\": {\n                        \"country\": \"NZ\",\n                        \"region\": \"Waikato\",\n                        \"city\": \"Reporoa\",\n                        \"state\": \"Waikato\",\n                        \"addressLine1\": \"873 Forest Road\",\n                        \"addressLine2\": \"\",\n                        \"addressLine3\": \"\",\n                        \"postalCode\": \"3083\",\n                        \"firstName\": \"mark.test@ublrlitware.onmicrosoft.com\",\n                        \"lastName\": \"Test\",\n                        \"phoneNumber\": \"0233224333\",\n                        \"id\": \"3b0a396e-22fa-544c-0519-106459df9ae1-billing-address\"\n                    },\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/b2d30fb9-1ded-4ccc-9977-1611822b9532/profiles/billing\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"attributes\": {\n                        \"etag\": \"8038480626789267185\",\n                        \"objectType\": \"CustomerBillingProfile\"\n                    },\n                    \"invoiceReference\": \"\"\n                },\n                \"company_profile\": {\n                    \"tenantId\": \"b2d30fb9-1ded-4ccc-9977-1611822b9532\",\n                    \"domain\": \"ujncot.onmicrosoft.com\",\n                    \"companyName\": \"Umbrellar Junior02 New Customer Onboard Test\",\n                    \"address\": {\n                        \"country\": \"NZ\",\n                        \"id\": \"b2d30fb9-1ded-4ccc-9977-1611822b9532-company-profile-company-address\"\n                    },\n                    \"email\": \"mark.test@ublrlitware.onmicrosoft.com\",\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/b2d30fb9-1ded-4ccc-9977-1611822b9532/profiles/company\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"attributes\": {\n                        \"objectType\": \"CustomerCompanyProfile\"\n                    },\n                    \"id\": \"b2d30fb9-1ded-4ccc-9977-1611822b9532-company-profile\"\n                },\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/b2d30fb9-1ded-4ccc-9977-1611822b9532\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"allow_delegated_access\": true,\n                \"is_direct_customer\": false,\n                \"is_indirect_customer\": false,\n                \"is_indirect_reseller\": false\n            }\n           \n        ]\n    },\n    \"meta\": {\n        \"message\": \"\"\n    }\n}"},{"id":"0845b3c8-810f-4499-b6a3-b5129ac644bf","name":"customer not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"Customer Not Found\"\n    }\n}"}],"_postman_id":"9b72cb5d-58fb-4337-96bb-dd5046dff107"}],"id":"12593a3f-faf8-45f8-a4a0-c8b9a8ab4857","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"686e00f9-752e-43c3-a9cf-1e58c4aeecbe","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9500598d-24e5-430c-bb5d-6ec2f7cb2da1","type":"text/javascript","exec":[""]}}],"_postman_id":"12593a3f-faf8-45f8-a4a0-c8b9a8ab4857","description":""},{"name":"Retrieves all Authorized Customers of A Customer","id":"507487bd-ca8f-4a89-8bc0-57ecb71c98c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers?page=1&per_page=10&sort=updated_at&sort_direction=desc","urlObject":{"path":["v2","customers"],"host":["https://api.mycsp.io"],"query":[{"description":{"content":"<p>Specifies the page number in a limited (paginated) list of customers.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Controls the number of items per page in a limited (paginated) list of subscriptions (max: 100)</p>\n","type":"text/plain"},"key":"per_page","value":"10"},{"description":{"content":"<p>Field name to sort by. Note: default sort is 'tenant_id', but 'updated_at' and 'created_at' are also acceptable.</p>\n","type":"text/plain"},"key":"sort","value":"updated_at"},{"description":{"content":"<p>Sort direction. Acceptable values are: asc, desc.</p>\n","type":"text/plain"},"key":"sort_direction","value":"desc"}],"variable":[]}},"response":[{"id":"46a35c76-34aa-456d-b0e1-d15178615e77","name":"customer found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"tenant_id\": \"12befcdb2-e12f-471c-8eda-75faa64ff492\",\n            \"commerce_id\": \"9f35a776-3f80-49d4-9258-08a283a6c4eb\",\n            \"custom_domains\": [\n                \"tharshtest03.onmicrosoft.com\"\n            ],\n            \"tenant_domain\": \"tharshtest03.onmicrosoft.com\",\n            \"relationship_to_partner\": \"reseller\",\n            \"billing_profile\": {\n                \"id\": \"101905db-9f31-5085-3f69-d331ed996b4d\",\n                \"firstName\": \"Harsh\",\n                \"lastName\": \"Test\",\n                \"email\": \"harshpatel2004in@yahoo.com\",\n                \"culture\": \"en-NZ\",\n                \"language\": \"En\",\n                \"companyName\": \"[T]harshtest03\",\n                \"defaultAddress\": {\n                    \"country\": \"NZ\",\n                    \"region\": \"Auckland\",\n                    \"city\": \"Auckland\",\n                    \"state\": \"Auckland\",\n                    \"addressLine1\": \"7 City Road\",\n                    \"addressLine2\": \"Grafton\",\n                    \"addressLine3\": \"Grafton\",\n                    \"postalCode\": \"1010\",\n                    \"firstName\": \"Harsh\",\n                    \"lastName\": \"Test\",\n                    \"phoneNumber\": \"0210580635\",\n                    \"id\": \"101905db-9f31-5085-3f69-d331ed996b4d-billing-address\"\n                },\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/3befcdb2-e12f-471c-8eda-75faa64ff492/profiles/billing\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"attributes\": {\n                    \"etag\": \"-1569716133121292765\",\n                    \"objectType\": \"CustomerBillingProfile\"\n                },\n                \"invoiceReference\": \"\"\n            },\n            \"company_profile\": {\n                \"tenantId\": \"21befcdb2-e12f-471c-8eda-75faa64ff492\",\n                \"domain\": \"tharshtest03.onmicrosoft.com\",\n                \"companyName\": \"[T]harshtest03\",\n                \"address\": {\n                    \"country\": \"NZ\",\n                    \"region\": \"Auckland\",\n                    \"city\": \"Auckland\",\n                    \"state\": \"Auckland\",\n                    \"addressLine1\": \"7 City Road\",\n                    \"postalCode\": \"1010\",\n                    \"phoneNumber\": \"0210580635\",\n                    \"id\": \"3befcdb2-e12f-471c-8eda-75faa64ff492-company-profile-company-address\"\n                },\n                \"email\": \"harshpatel2004in@yahoo.com\",\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/3befcdb2-e12f-471c-8eda-75faa64ff492/profiles/company\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"attributes\": {\n                    \"objectType\": \"CustomerCompanyProfile\"\n                },\n                \"id\": \"23befcdb2-e12f-471c-8eda-75faa64ff492-company-profile\"\n            },\n            \"links\": {\n                \"self\": {\n                    \"uri\": \"/customers/2befcdb2-e12f-471c-8eda-75faa64ff492\",\n                    \"method\": \"GET\",\n                    \"headers\": []\n                }\n            },\n            \"allow_delegated_access\": true,\n            \"is_direct_customer\": false,\n            \"is_indirect_customer\": false,\n            \"is_indirect_reseller\": false,\n            \"parents\": [\n                {\n                    \"tenant_id\": \"t598e52c-bffb-486b-8021-a08440886435\",\n                    \"commerce_id\": \"91bcb304-f7f3-4da6-bd36-01dbcb45c38b\",\n                    \"custom_domains\": [\n                        \"ublrjunior02.onmicrosoft.com\"\n                    ],\n                    \"tenant_domain\": \"ublrjunior02.onmicrosoft.com\",\n                    \"billing_profile\": {\n                        \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3\",\n                        \"firstName\": \"Junior-Two\",\n                        \"lastName\": \"Reseller-Two\",\n                        \"email\": \"rain.lei@umbrellar.com\",\n                        \"culture\": \"en-NZ\",\n                        \"language\": \"en\",\n                        \"companyName\": \"Umbrellar Junior 02\",\n                        \"defaultAddress\": {\n                            \"country\": \"NZ\",\n                            \"region\": \"Auckland\",\n                            \"city\": \"Auckland\",\n                            \"state\": \"Auckland\",\n                            \"addressLine1\": \"881 Beach Road\",\n                            \"addressLine2\": \"Waiake\",\n                            \"addressLine3\": \"Waiake\",\n                            \"postalCode\": \"0630\",\n                            \"firstName\": \"Junior-Two\",\n                            \"lastName\": \"Reseller-Two\",\n                            \"phoneNumber\": \"+13125201873\",\n                            \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3-billing-address\"\n                        },\n                        \"links\": {\n                            \"self\": {\n                                \"uri\": \"/customers/c598e52c-bffb-486b-8021-a08440886435/profiles/billing\",\n                                \"method\": \"GET\",\n                                \"headers\": []\n                            }\n                        },\n                        \"attributes\": {\n                            \"etag\": \"-1214180224317586413\",\n                            \"objectType\": \"CustomerBillingProfile\"\n                        },\n                        \"additionalEmailAddresses\": \"mark.gou@umbrellar.com, harsh.patel@umbrellar.com\"\n                    },\n                    \"company_profile\": {\n                        \"tenantId\": \"t598e52c-bffb-486b-8021-a08440886435\",\n                        \"domain\": \"ublrjunior02.onmicrosoft.com\",\n                        \"companyName\": \"Umbrellar Junior 02\",\n                        \"address\": {\n                            \"country\": \"NZ\",\n                            \"region\": \"Auckland\",\n                            \"city\": \"Auckland\",\n                            \"state\": \"Auckland\",\n                            \"addressLine1\": \"Level 2, Building 4\",\n                            \"postalCode\": \"0632\",\n                            \"phoneNumber\": \"6439619550\",\n                            \"id\": \"t598e52c-bffb-486b-8021-a08440886435-company-profile-company-address\"\n                        },\n                        \"email\": \"ublrjunior02@outlook.com\",\n                        \"links\": {\n                            \"self\": {\n                                \"uri\": \"/customers/t598e52c-bffb-486b-8021-a08440886435/profiles/company\",\n                                \"method\": \"GET\",\n                                \"headers\": []\n                            }\n                        },\n                        \"attributes\": {\n                            \"objectType\": \"CustomerCompanyProfile\"\n                        },\n                        \"id\": \"t598e52c-bffb-486b-8021-a08440886435-company-profile\"\n                    },\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/t598e52c-bffb-486b-8021-a08440886435\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"allow_delegated_access\": true,\n                    \"is_direct_customer\": false,\n                    \"is_indirect_customer\": false,\n                    \"is_indirect_reseller\": false\n                }\n            ],\n            \"children\": []\n        },\n        {\n            \"tenant_id\": \"t739345a-d7a5-4aa1-b0c5-731f85db8926\",\n            \"commerce_id\": \"3t8cf0c1-7bd9-426a-b30e-a8d6be988868\",\n            \"custom_domains\": [\n                \"harryidcob2.onmicrosoft.com\"\n            ],\n            \"tenant_domain\": \"harryidcob2.onmicrosoft.com\",\n            \"relationship_to_partner\": \"reseller\",\n            \"billing_profile\": {\n                \"id\": \"2c0c4a73-e174-5fcb-a9b2-e39fb2dada87\",\n                \"firstName\": \"Onboarding\",\n                \"lastName\": \"Test\",\n                \"email\": \"harry.yu@umbrellar.com\",\n                \"culture\": \"en-NZ\",\n                \"language\": \"en\",\n                \"companyName\": \"[T]harryidcob2\",\n                \"defaultAddress\": {\n                    \"country\": \"NZ\",\n                    \"region\": \"Auckland\",\n                    \"city\": \"Auckland\",\n                    \"state\": \"Auckland\",\n                    \"addressLine1\": \"12, 12 Madden Street\",\n                    \"addressLine2\": \"Auckland CBD\",\n                    \"addressLine3\": \"Auckland CBD\",\n                    \"postalCode\": \"1010\",\n                    \"firstName\": \"Onboarding\",\n                    \"lastName\": \"Test\",\n                    \"phoneNumber\": \"0212973960\",\n                    \"id\": \"tc0c4a73-e174-5fcb-a9b2-e39fb2dada87-billing-address\"\n                },\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/t4739345a-d7a5-4aa1-b0c5-731f85db8926/profiles/billing\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"attributes\": {\n                    \"etag\": \"-5331874620529134766\",\n                    \"objectType\": \"CustomerBillingProfile\"\n                },\n                \"invoiceReference\": \"\"\n            },\n            \"company_profile\": {\n                \"tenantId\": \"t4739345a-d7a5-4aa1-b0c5-731f85db8926\",\n                \"domain\": \"harryidcob2.onmicrosoft.com\",\n                \"companyName\": \"[T]harryidcob2\",\n                \"address\": {\n                    \"country\": \"NZ\",\n                    \"id\": \"4t739345a-d7a5-4aa1-b0c5-731f85db8926-company-profile-company-address\"\n                },\n                \"email\": \"harry.yu@umbrellar.com\",\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/4t739345a-d7a5-4aa1-b0c5-731f85db8926/profiles/company\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"attributes\": {\n                    \"objectType\": \"CustomerCompanyProfile\"\n                },\n                \"id\": \"tt4739345a-d7a5-4aa1-b0c5-731f85db8926-company-profile\"\n            },\n            \"links\": {\n                \"self\": {\n                    \"uri\": \"/customers/t4739345a-d7a5-4aa1-b0c5-731f85db8926\",\n                    \"method\": \"GET\",\n                    \"headers\": []\n                }\n            },\n            \"allow_delegated_access\": true,\n            \"is_direct_customer\": false,\n            \"is_indirect_customer\": false,\n            \"is_indirect_reseller\": false,\n            \"parents\": [\n                {\n                    \"tenant_id\": \"t598e52c-bffb-486b-8021-a08440886435\",\n                    \"commerce_id\": \"91bcb304-f7f3-4da6-bd36-01dbcb45c38b\",\n                    \"custom_domains\": [\n                        \"ublrjunior02.onmicrosoft.com\"\n                    ],\n                    \"tenant_domain\": \"ublrjunior02.onmicrosoft.com\",\n                    \"billing_profile\": {\n                        \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3\",\n                        \"firstName\": \"Junior-Two\",\n                        \"lastName\": \"Reseller-Two\",\n                        \"email\": \"rain.lei@umbrellar.com\",\n                        \"culture\": \"en-NZ\",\n                        \"language\": \"en\",\n                        \"companyName\": \"Umbrellar Junior 02\",\n                        \"defaultAddress\": {\n                            \"country\": \"NZ\",\n                            \"region\": \"Auckland\",\n                            \"city\": \"Auckland\",\n                            \"state\": \"Auckland\",\n                            \"addressLine1\": \"881 Beach Road\",\n                            \"addressLine2\": \"Waiake\",\n                            \"addressLine3\": \"Waiake\",\n                            \"postalCode\": \"0630\",\n                            \"firstName\": \"Junior-Two\",\n                            \"lastName\": \"Reseller-Two\",\n                            \"phoneNumber\": \"+13125201873\",\n                            \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3-billing-address\"\n                        },\n                        \"links\": {\n                            \"self\": {\n                                \"uri\": \"/customers/c598e52c-bffb-486b-8021-a08440886435/profiles/billing\",\n                                \"method\": \"GET\",\n                                \"headers\": []\n                            }\n                        },\n                        \"attributes\": {\n                            \"etag\": \"-1214180224317586413\",\n                            \"objectType\": \"CustomerBillingProfile\"\n                        },\n                        \"additionalEmailAddresses\": \"mark.gou@umbrellar.com, harsh.patel@umbrellar.com\"\n                    },\n                    \"company_profile\": {\n                        \"tenantId\": \"t598e52c-bffb-486b-8021-a08440886435\",\n                        \"domain\": \"ublrjunior02.onmicrosoft.com\",\n                        \"companyName\": \"Umbrellar Junior 02\",\n                        \"address\": {\n                            \"country\": \"NZ\",\n                            \"region\": \"Auckland\",\n                            \"city\": \"Auckland\",\n                            \"state\": \"Auckland\",\n                            \"addressLine1\": \"Level 2, Building 4\",\n                            \"postalCode\": \"0632\",\n                            \"phoneNumber\": \"6439619550\",\n                            \"id\": \"c598e52c-bffb-486b-8021-a08440886435-company-profile-company-address\"\n                        },\n                        \"email\": \"ublrjunior02@outlook.com\",\n                        \"links\": {\n                            \"self\": {\n                                \"uri\": \"/customers/c598e52c-bffb-486b-8021-a08440886435/profiles/company\",\n                                \"method\": \"GET\",\n                                \"headers\": []\n                            }\n                        },\n                        \"attributes\": {\n                            \"objectType\": \"CustomerCompanyProfile\"\n                        },\n                        \"id\": \"t598e52c-bffb-486b-8021-a08440886435-company-profile\"\n                    },\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/t598e52c-bffb-486b-8021-a08440886435\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"allow_delegated_access\": true,\n                    \"is_direct_customer\": false,\n                    \"is_indirect_customer\": false,\n                    \"is_indirect_reseller\": false\n                }\n            ],\n            \"children\": []\n        },\n        {\n            \"tenant_id\": \"t50765f8-e34b-4cac-a484-865e033a13f7\",\n            \"commerce_id\": \"77aa9990-5730-4107-95b1-0361135bbffa\",\n            \"custom_domains\": [\n                \"uto11.onmicrosoft.com\"\n            ],\n            \"tenant_domain\": \"uto11.onmicrosoft.com\",\n            \"relationship_to_partner\": \"reseller\",\n            \"billing_profile\": {\n                \"id\": \"60e14be1-b0e1-5497-ca0c-4595ae44b235\",\n                \"firstName\": \"Mark\",\n                \"lastName\": \"Test\",\n                \"email\": \"mark.gou@umbrellar.com\",\n                \"culture\": \"en-NZ\",\n                \"language\": \"en\",\n                \"companyName\": \"Umbrellar Test Onboard11\",\n                \"defaultAddress\": {\n                    \"country\": \"NZ\",\n                    \"region\": \"Wellington\",\n                    \"city\": \"Wellington\",\n                    \"state\": \"Wellington\",\n                    \"addressLine1\": \"Abel Smith Street\",\n                    \"addressLine2\": \"Te Aro\",\n                    \"addressLine3\": \"Te Aro\",\n                    \"postalCode\": \"6011\",\n                    \"firstName\": \"Mark\",\n                    \"lastName\": \"Test\",\n                    \"phoneNumber\": \"032232222\",\n                    \"id\": \"60e14be1-b0e1-5497-ca0c-4595ae44b235-billing-address\"\n                },\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/t50765f8-e34b-4cac-a484-865e033a13f7/profiles/billing\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"attributes\": {\n                    \"etag\": \"9187507801684441426\",\n                    \"objectType\": \"CustomerBillingProfile\"\n                },\n                \"invoiceReference\": \"\"\n            },\n            \"company_profile\": {\n                \"tenantId\": \"t750765f8-e34b-4cac-a484-865e033a13f7\",\n                \"domain\": \"uto11.onmicrosoft.com\",\n                \"companyName\": \"Umbrellar Test Onboard11\",\n                \"address\": {\n                    \"country\": \"NZ\",\n                    \"id\": \"t50765f8-e34b-4cac-a484-865e033a13f7-company-profile-company-address\"\n                },\n                \"email\": \"mark.test@ublrlitware.onmicrosoft.com\",\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/t50765f8-e34b-4cac-a484-865e033a13f7/profiles/company\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"attributes\": {\n                    \"objectType\": \"CustomerCompanyProfile\"\n                },\n                \"id\": \"750765f8-e34b-4cac-a484-865e033a13f7-company-profile\"\n            },\n            \"links\": {\n                \"self\": {\n                    \"uri\": \"/customers/750765f8-e34b-4cac-a484-865e033a13f7\",\n                    \"method\": \"GET\",\n                    \"headers\": []\n                }\n            },\n            \"allow_delegated_access\": true,\n            \"is_direct_customer\": false,\n            \"is_indirect_customer\": false,\n            \"is_indirect_reseller\": false,\n            \"parents\": [\n                {\n                    \"tenant_id\": \"t598e52c-bffb-486b-8021-a08440886435\",\n                    \"commerce_id\": \"91bcb304-f7f3-4da6-bd36-01dbcb45c38b\",\n                    \"custom_domains\": [\n                        \"ublrjunior02.onmicrosoft.com\"\n                    ],\n                    \"tenant_domain\": \"ublrjunior02.onmicrosoft.com\",\n                    \"billing_profile\": {\n                        \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3\",\n                        \"firstName\": \"Junior-Two\",\n                        \"lastName\": \"Reseller-Two\",\n                        \"email\": \"rain.lei@umbrellar.com\",\n                        \"culture\": \"en-NZ\",\n                        \"language\": \"en\",\n                        \"companyName\": \"Umbrellar Junior 02\",\n                        \"defaultAddress\": {\n                            \"country\": \"NZ\",\n                            \"region\": \"Auckland\",\n                            \"city\": \"Auckland\",\n                            \"state\": \"Auckland\",\n                            \"addressLine1\": \"881 Beach Road\",\n                            \"addressLine2\": \"Waiake\",\n                            \"addressLine3\": \"Waiake\",\n                            \"postalCode\": \"0630\",\n                            \"firstName\": \"Junior-Two\",\n                            \"lastName\": \"Reseller-Two\",\n                            \"phoneNumber\": \"+13125201873\",\n                            \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3-billing-address\"\n                        },\n                        \"links\": {\n                            \"self\": {\n                                \"uri\": \"/customers/t598e52c-bffb-486b-8021-a08440886435/profiles/billing\",\n                                \"method\": \"GET\",\n                                \"headers\": []\n                            }\n                        },\n                        \"attributes\": {\n                            \"etag\": \"-1214180224317586413\",\n                            \"objectType\": \"CustomerBillingProfile\"\n                        },\n                        \"additionalEmailAddresses\": \"mark.gou@umbrellar.com, harsh.patel@umbrellar.com\"\n                    },\n                    \"company_profile\": {\n                        \"tenantId\": \"t598e52c-bffb-486b-8021-a08440886435\",\n                        \"domain\": \"ublrjunior02.onmicrosoft.com\",\n                        \"companyName\": \"Umbrellar Junior 02\",\n                        \"address\": {\n                            \"country\": \"NZ\",\n                            \"region\": \"Auckland\",\n                            \"city\": \"Auckland\",\n                            \"state\": \"Auckland\",\n                            \"addressLine1\": \"Level 2, Building 4\",\n                            \"postalCode\": \"0632\",\n                            \"phoneNumber\": \"6439619550\",\n                            \"id\": \"t598e52c-bffb-486b-8021-a08440886435-company-profile-company-address\"\n                        },\n                        \"email\": \"ublrjunior02@outlook.com\",\n                        \"links\": {\n                            \"self\": {\n                                \"uri\": \"/customers/c598e52c-bffb-486b-8021-a08440886435/profiles/company\",\n                                \"method\": \"GET\",\n                                \"headers\": []\n                            }\n                        },\n                        \"attributes\": {\n                            \"objectType\": \"CustomerCompanyProfile\"\n                        },\n                        \"id\": \"c598e52c-bffb-486b-8021-a08440886435-company-profile\"\n                    },\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/t598e52c-bffb-486b-8021-a08440886435\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"allow_delegated_access\": true,\n                    \"is_direct_customer\": false,\n                    \"is_indirect_customer\": false,\n                    \"is_indirect_reseller\": false\n                }\n            ],\n            \"children\": []\n        },\n        {\n            \"tenant_id\": \"1t8c4e14-e953-4c66-afe0-81971d17fb0d\",\n            \"commerce_id\": \"c2ee5f4c-8c0f-4991-8541-0fdcf70f9b9f\",\n            \"custom_domains\": [\n                \"uronboardtest10.onmicrosoft.com\"\n            ],\n            \"tenant_domain\": \"uronboardtest10.onmicrosoft.com\",\n            \"relationship_to_partner\": \"reseller\",\n            \"billing_profile\": {\n                \"id\": \"ee37f1c3-d135-5570-de0e-5fb85c5e3139\",\n                \"firstName\": \"Umbrellar\",\n                \"lastName\": \"Reseller\",\n                \"email\": \"mark.gou@umbrellar.com\",\n                \"culture\": \"en-NZ\",\n                \"language\": \"En\",\n                \"companyName\": \"Umbrellar Reseller Onboard Customer Test 10\",\n                \"defaultAddress\": {\n                    \"country\": \"NZ\",\n                    \"region\": \"Northland\",\n                    \"city\": \"Mangawhai\",\n                    \"state\": \"Northland\",\n                    \"addressLine1\": \"56 Old Waipu Road\",\n                    \"postalCode\": \"0505\",\n                    \"firstName\": \"Umbrellar\",\n                    \"lastName\": \"Reseller\",\n                    \"phoneNumber\": \"021121212\",\n                    \"id\": \"et37f1c3-d135-5570-de0e-5fb85c5e3139-billing-address\"\n                },\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/1t8c4e14-e953-4c66-afe0-81971d17fb0d/profiles/billing\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"attributes\": {\n                    \"etag\": \"-3143200997984675267\",\n                    \"objectType\": \"CustomerBillingProfile\"\n                },\n                \"invoiceReference\": \"\"\n            },\n            \"company_profile\": {\n                \"tenantId\": \"1atc4e14-e953-4c66-afe0-81971d17fb0d\",\n                \"domain\": \"uronboardtest10.onmicrosoft.com\",\n                \"companyName\": \"Umbrellar Reseller Onboard Customer Test 10\",\n                \"address\": {\n                    \"country\": \"NZ\",\n                    \"region\": \"Northland\",\n                    \"city\": \"Mangawhai\",\n                    \"state\": \"Northland\",\n                    \"addressLine1\": \"56 Old Waipu Road\",\n                    \"postalCode\": \"0505\",\n                    \"phoneNumber\": \"021121212\",\n                    \"id\": \"1a8c4e14-e953t4c66-afe0-81971d17fb0d-company-profile-company-address\"\n                },\n                \"email\": \"mark.gou@umbrellar.com\",\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/1a8t4e14-e953-4c66-afe0-81971d17fb0d/profiles/company\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"attributes\": {\n                    \"objectType\": \"CustomerCompanyProfile\"\n                },\n                \"id\": \"1a8c4e14-e9t3-4c66-afe0-81971d17fb0d-company-profile\"\n            },\n            \"links\": {\n                \"self\": {\n                    \"uri\": \"/customers/1a8ct4e14-e953-4c66-afe0-81971d17fb0d\",\n                    \"method\": \"GET\",\n                    \"headers\": []\n                }\n            },\n            \"allow_delegated_access\": true,\n            \"is_direct_customer\": false,\n            \"is_indirect_customer\": false,\n            \"is_indirect_reseller\": false,\n            \"parents\": [\n                {\n                    \"tenant_id\": \"t598e52c-bffb-486b-8021-a08440886435\",\n                    \"commerce_id\": \"91bcb304-f7f3-4da6-bd36-01dbcb45c38b\",\n                    \"custom_domains\": [\n                        \"ublrjunior02.onmicrosoft.com\"\n                    ],\n                    \"tenant_domain\": \"ublrjunior02.onmicrosoft.com\",\n                    \"billing_profile\": {\n                        \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3\",\n                        \"firstName\": \"Junior-Two\",\n                        \"lastName\": \"Reseller-Two\",\n                        \"email\": \"rain.lei@umbrellar.com\",\n                        \"culture\": \"en-NZ\",\n                        \"language\": \"en\",\n                        \"companyName\": \"Umbrellar Junior 02\",\n                        \"defaultAddress\": {\n                            \"country\": \"NZ\",\n                            \"region\": \"Auckland\",\n                            \"city\": \"Auckland\",\n                            \"state\": \"Auckland\",\n                            \"addressLine1\": \"881 Beach Road\",\n                            \"addressLine2\": \"Waiake\",\n                            \"addressLine3\": \"Waiake\",\n                            \"postalCode\": \"0630\",\n                            \"firstName\": \"Junior-Two\",\n                            \"lastName\": \"Reseller-Two\",\n                            \"phoneNumber\": \"+13125201873\",\n                            \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3-billing-address\"\n                        },\n                        \"links\": {\n                            \"self\": {\n                                \"uri\": \"/customers/t598e52c-bffb-486b-8021-a08440886435/profiles/billing\",\n                                \"method\": \"GET\",\n                                \"headers\": []\n                            }\n                        },\n                        \"attributes\": {\n                            \"etag\": \"-1214180224317586413\",\n                            \"objectType\": \"CustomerBillingProfile\"\n                        },\n                        \"additionalEmailAddresses\": \"mark.gou@umbrellar.com, harsh.patel@umbrellar.com\"\n                    },\n                    \"company_profile\": {\n                        \"tenantId\": \"t598e52c-bffb-486b-8021-a08440886435\",\n                        \"domain\": \"ublrjunior02.onmicrosoft.com\",\n                        \"companyName\": \"Umbrellar Junior 02\",\n                        \"address\": {\n                            \"country\": \"NZ\",\n                            \"region\": \"Auckland\",\n                            \"city\": \"Auckland\",\n                            \"state\": \"Auckland\",\n                            \"addressLine1\": \"Level 2, Building 4\",\n                            \"postalCode\": \"0632\",\n                            \"phoneNumber\": \"6439619550\",\n                            \"id\": \"t598e52c-bffb-486b-8021-a08440886435-company-profile-company-address\"\n                        },\n                        \"email\": \"ublrjunior02@outlook.com\",\n                        \"links\": {\n                            \"self\": {\n                                \"uri\": \"/customers/t598e52c-bffb-486b-8021-a08440886435/profiles/company\",\n                                \"method\": \"GET\",\n                                \"headers\": []\n                            }\n                        },\n                        \"attributes\": {\n                            \"objectType\": \"CustomerCompanyProfile\"\n                        },\n                        \"id\": \"t598e52c-bffb-486b-8021-a08440886435-company-profile\"\n                    },\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/t598e52c-bffb-486b-8021-a08440886435\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"allow_delegated_access\": true,\n                    \"is_direct_customer\": false,\n                    \"is_indirect_customer\": false,\n                    \"is_indirect_reseller\": false\n                }\n            ],\n            \"children\": []\n        },\n        {\n            \"tenant_id\": \"4tt48da9-c98a-490a-a361-990b56612513\",\n            \"commerce_id\": \"420621d4-d2db-4b9c-ab7f-64f9fa007412\",\n            \"custom_domains\": [\n                \"uronboardtest06.onmicrosoft.com\"\n            ],\n            \"tenant_domain\": \"uronboardtest06.onmicrosoft.com\",\n            \"relationship_to_partner\": \"reseller\",\n            \"billing_profile\": {\n                \"id\": \"344786e7-458e-5fdd-9959-a362e4db7a56\",\n                \"firstName\": \"Mark\",\n                \"lastName\": \"Test\",\n                \"email\": \"mark.gou@umbrellar.com\",\n                \"culture\": \"en-NZ\",\n                \"language\": \"En\",\n                \"companyName\": \"Umbrellar Reseller Onboard Customer Test 06\",\n                \"defaultAddress\": {\n                    \"country\": \"NZ\",\n                    \"region\": \"Auckland\",\n                    \"city\": \"Auckland\",\n                    \"state\": \"Auckland\",\n                    \"addressLine1\": \"49 Parkway Drive\",\n                    \"addressLine2\": \"Rosedale\",\n                    \"addressLine3\": \"Rosedale\",\n                    \"postalCode\": \"0632\",\n                    \"firstName\": \"Mark\",\n                    \"lastName\": \"Test\",\n                    \"phoneNumber\": \"0210343333\",\n                    \"id\": \"3447t6e7-458e-5fdd-9959-a362e4db7a56-billing-address\"\n                },\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/4t48da9-c98a-490a-a361-990b56612513/profiles/billing\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"attributes\": {\n                    \"etag\": \"5462752746748135824\",\n                    \"objectType\": \"CustomerBillingProfile\"\n                },\n                \"invoiceReference\": \"\"\n            },\n            \"company_profile\": {\n                \"tenantId\": \"44t48da9-c98a-490a-a361-990b56612513\",\n                \"domain\": \"uronboardtest06.onmicrosoft.com\",\n                \"companyName\": \"Umbrellar Reseller Onboard Customer Test 06\",\n                \"address\": {\n                    \"country\": \"NZ\",\n                    \"region\": \"Auckland\",\n                    \"city\": \"Auckland\",\n                    \"state\": \"Auckland\",\n                    \"addressLine1\": \"49 Parkway Drive\",\n                    \"postalCode\": \"0632\",\n                    \"phoneNumber\": \"0210343333\",\n                    \"id\": \"44t548da9-c98a-490a-a361-990b56612513-company-profile-company-address\"\n                },\n                \"email\": \"mark.gou@umbrellar.com\",\n                \"links\": {\n                    \"self\": {\n                        \"uri\": \"/customers/4t548da9-c98a-490a-a361-990b56612513/profiles/company\",\n                        \"method\": \"GET\",\n                        \"headers\": []\n                    }\n                },\n                \"attributes\": {\n                    \"objectType\": \"CustomerCompanyProfile\"\n                },\n                \"id\": \"44t48da9-c98a-490a-a361-990b56612513-company-profile\"\n            },\n            \"links\": {\n                \"self\": {\n                    \"uri\": \"/customers/4t48da9-c98a-490a-a361-990b56612513\",\n                    \"method\": \"GET\",\n                    \"headers\": []\n                }\n            },\n            \"allow_delegated_access\": true,\n            \"is_direct_customer\": false,\n            \"is_indirect_customer\": false,\n            \"is_indirect_reseller\": false,\n            \"parents\": [\n                {\n                    \"tenant_id\": \"cte52c-bffb-486b-8021-a08440886435\",\n                    \"commerce_id\": \"91bcb304-f7f3-4da6-bd36-01dbcb45c38b\",\n                    \"custom_domains\": [\n                        \"ublrjunior02.onmicrosoft.com\"\n                    ],\n                    \"tenant_domain\": \"ublrjunior02.onmicrosoft.com\",\n                    \"billing_profile\": {\n                        \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3\",\n                        \"firstName\": \"Junior-Two\",\n                        \"lastName\": \"Reseller-Two\",\n                        \"email\": \"rain.lei@umbrellar.com\",\n                        \"culture\": \"en-NZ\",\n                        \"language\": \"en\",\n                        \"companyName\": \"Umbrellar Junior 02\",\n                        \"defaultAddress\": {\n                            \"country\": \"NZ\",\n                            \"region\": \"Auckland\",\n                            \"city\": \"Auckland\",\n                            \"state\": \"Auckland\",\n                            \"addressLine1\": \"881 Beach Road\",\n                            \"addressLine2\": \"Waiake\",\n                            \"addressLine3\": \"Waiake\",\n                            \"postalCode\": \"0630\",\n                            \"firstName\": \"Junior-Two\",\n                            \"lastName\": \"Reseller-Two\",\n                            \"phoneNumber\": \"+13125201873\",\n                            \"id\": \"fac33024-edfe-5e8d-2e2a-a978221f43a3-billing-address\"\n                        },\n                        \"links\": {\n                            \"self\": {\n                                \"uri\": \"/customers/c598e52c-bffb-486b-8021-a08440886435/profiles/billing\",\n                                \"method\": \"GET\",\n                                \"headers\": []\n                            }\n                        },\n                        \"attributes\": {\n                            \"etag\": \"-1214180224317586413\",\n                            \"objectType\": \"CustomerBillingProfile\"\n                        },\n                        \"additionalEmailAddresses\": \"mark.gou@umbrellar.com, harsh.patel@umbrellar.com\"\n                    },\n                    \"company_profile\": {\n                        \"tenantId\": \"t598e52c-bffb-486b-8021-a08440886435\",\n                        \"domain\": \"ublrjunior02.onmicrosoft.com\",\n                        \"companyName\": \"Umbrellar Junior 02\",\n                        \"address\": {\n                            \"country\": \"NZ\",\n                            \"region\": \"Auckland\",\n                            \"city\": \"Auckland\",\n                            \"state\": \"Auckland\",\n                            \"addressLine1\": \"Level 2, Building 4\",\n                            \"postalCode\": \"0632\",\n                            \"phoneNumber\": \"6439619550\",\n                            \"id\": \"t598e52c-bffb-486b-8021-a08440886435-company-profile-company-address\"\n                        },\n                        \"email\": \"ublrjunior02@outlook.com\",\n                        \"links\": {\n                            \"self\": {\n                                \"uri\": \"/customers/t598e52c-bffb-486b-8021-a08440886435/profiles/company\",\n                                \"method\": \"GET\",\n                                \"headers\": []\n                            }\n                        },\n                        \"attributes\": {\n                            \"objectType\": \"CustomerCompanyProfile\"\n                        },\n                        \"id\": \"c598e52c-bffb-486b-8021-a08440886435-company-profile\"\n                    },\n                    \"links\": {\n                        \"self\": {\n                            \"uri\": \"/customers/c598e52c-bffb-486b-8021-a08440886435\",\n                            \"method\": \"GET\",\n                            \"headers\": []\n                        }\n                    },\n                    \"allow_delegated_access\": true,\n                    \"is_direct_customer\": false,\n                    \"is_indirect_customer\": false,\n                    \"is_indirect_reseller\": false\n                }\n            ],\n            \"children\": []\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\",\n        \"pagination\": {\n            \"page\": 1,\n            \"per_page\": 5,\n            \"total_count\": 38,\n            \"total_pages\": 8,\n            \"first_uri\": \"/v2/customers?per_page=5&page=1\",\n            \"prev_uri\": \"null\",\n            \"next_uri\": \"/v2/customers?per_page=5&page=2\",\n            \"last_uri\": \"/v2/customers?per_page=5&page=8\"\n        }\n    }\n}"},{"id":"c9fff69f-7411-400f-b7f6-7049e5327ccf","name":"customer not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"No Subscriptions Found\"\n    }\n}"}],"_postman_id":"507487bd-ca8f-4a89-8bc0-57ecb71c98c0"}],"id":"0ccb73c2-a8d0-47d3-9c0b-0518d0bc6368","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"f62a01d2-14fb-463d-8134-6989389cf0c2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"70c0a868-9be8-40c9-992c-65882a6fc106","type":"text/javascript","exec":[""]}}],"_postman_id":"0ccb73c2-a8d0-47d3-9c0b-0518d0bc6368","description":""},{"name":"Integration","item":[],"id":"3cead19d-50f6-4a83-800a-5ef75afb26f6","_postman_id":"3cead19d-50f6-4a83-800a-5ef75afb26f6","description":""},{"name":"Orders","item":[{"name":"order","item":[{"name":"Retrieves an Order","id":"d142f058-f99f-43dd-8958-e81f091de43e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders/{order_id}","urlObject":{"path":["v2","customers","{customer_id}","orders","{order_id}"],"host":["https://api.mycsp.io"],"query":[],"variable":[]}},"response":[{"id":"5b84434d-d103-4f36-969e-24ef66381aa4","name":"Order found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders/{order_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"id\": 8,\n            \"name\": null,\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"amount\": 0.0,\n            \"quantity\": 1.0,\n            \"progress\": 100.0,\n            \"status\": \"done\",\n            \"items\": [\n                {\n                    \"id\": 7,\n                    \"order_id\": 8,\n                    \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n                    \"title\": \"\",\n                    \"sku_id\": \"0001\",\n                    \"product_id\": \"CFQ7TTC0LH33:commercial:P3Y:annual\",\n                    \"description\": null,\n                    \"ms_rrp\": null,\n                    \"status\": \"done\",\n                    \"sell_price\": null,\n                    \"buy_price\": null,\n                    \"gross_profit\": null,\n                    \"term\": null,\n                    \"billing_frequency\": null,\n                    \"quantity\": 0.0,\n                    \"progress\": 0.0,\n                    \"discount_percentage\": 0.0,\n                    \"is_pay_as_you_go\": null,\n                    \"zuora_attributes\": null,\n                    \"friendly_name\": null,\n                    \"billing_cycle\": null,\n                    \"subscription_po_number\": null\n                }\n            ]\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\"\n    }\n}"},{"id":"34cd8ad4-608a-4f41-9b1b-2686a1ba7f05","name":"order not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders/{order_id}"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"Order Not Found\"\n    }\n}"}],"_postman_id":"d142f058-f99f-43dd-8958-e81f091de43e"},{"name":"Retrieves an Order Histories","id":"3a8d32cd-e6ad-489c-8315-e8576876160d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders/{order_item_id}/histories","urlObject":{"path":["v2","customers","{customer_id}","orders","{order_item_id}","histories"],"host":["https://api.mycsp.io"],"query":[],"variable":[]}},"response":[{"id":"dc2f141a-c187-4e57-acf5-c428f6c731aa","name":"Order found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders/{order_id}/histories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"id\": 9,\n            \"tenant_name\": \"[T]MyCSP Reseller 1 customer 6\",\n            \"tenant_id\": \"6bc6ccc8-16f1-4023-8f0a-496245b8ab5b\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Microsoft Defender for Business\",\n            \"friendly_name\": \"NCEMicrosoft-Defender-for-Busi-1654bruce\",\n            \"quantity\": 1,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Previous state\",\n            \"start_date\": \"2022-06-02T00:00:00.000Z\",\n            \"end_date\": \"2022-06-02T00:00:00.000Z\",\n            \"auto_renew\": true,\n            \"csp_sell_price\": \"5.4\",\n            \"price\": \"5.08\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"5.4\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"5.4\",\n            \"sub_number\": \"A-S00007526\",\n            \"action\": \"Created\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"3a73bbc4-146c-402e-d35c-0bf597e629d0\"\n        },\n        {\n            \"id\": 10,\n            \"tenant_name\": \"[T]MyCSP Reseller 1 customer 6\",\n            \"tenant_id\": \"6bc6ccc8-16f1-4023-8f0a-496245b8ab5b\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Microsoft Defender for Business\",\n            \"friendly_name\": \"NCEMicrosoft-Defender-for-Busi-1654bruce\",\n            \"quantity\": 2,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Active\",\n            \"start_date\": \"2022-06-02T00:00:00.000Z\",\n            \"end_date\": \"2022-07-02T00:00:00.000Z\",\n            \"auto_renew\": true,\n            \"csp_sell_price\": \"5.4\",\n            \"price\": \"5.08\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"5.4\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"5.4\",\n            \"sub_number\": \"A-S00007526\",\n            \"action\": \"Increased Quantity\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"3a73bbc4-146c-402e-d35c-0bf597e629d0\"\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\",\n        \"pagination\": {\n            \"page\": 1,\n            \"per_page\": 2,\n            \"total_count\": 2,\n            \"total_pages\": 1,\n            \"first_uri\": \"/v2/customers/9a3856ee-35fb-453a-ba83-03a416fbc255/orders/852/histories?page=1\",\n            \"prev_uri\": \"null\",\n            \"next_uri\": \"null\",\n            \"last_uri\": \"/v2/customers/9a3856ee-35fb-453a-ba83-03a416fbc255/orders/852/histories?page=1\"\n        }\n    }\n}"},{"id":"8a8d8466-8072-40db-a4ad-659e0d87720e","name":"order not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders/{order_id}/histories"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"Order Not Found\"\n    }\n}"}],"_postman_id":"3a8d32cd-e6ad-489c-8315-e8576876160d"},{"name":"Create an Order","id":"25b234ff-be58-4d44-b36b-5301c86fe2e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"test order 1\",\n    \"products\": [\n        {\n            \"addons\": [],\n            \"product\": {\n                \"sku_id\": \"648BF77B-1F0A-4911-8066-CAF37D67DC72\",\n                \"is_addon\": false,\n                \"product_id\": \"C52EA49F-FE5D-4E95-93BA-1DE91D380F89\",\n                \"zuora_attributes\": {\n                    \"ChargeModel\": \"Per Unit Pricing\",\n                    \"VendorSKU__c\": \"648BF77B-1F0A-4911-8066-CAF37D67DC72\",\n                    \"ProductGroupSKU__c\": \"SKU-RESELLER-AZURE\"\n                },\n                \"dynamic_attributes\": {\n                    \"duration\": null\n                }\n            },\n            \"segment\": \"commercial\",\n            \"quantity\": 1,\n            \"billingCycle\": \"monthly\",\n            \"friendlyName\": \"Azure-Information-Protection-Premium-P1-1639535767063\",\n            \"discount_percentage\": null,\n            \"subscriptionPONumber\": \"\"\n        }\n    ],\n    \"accountKey\": \"2c92c0fa7911e35101791529d16f1451\",\n    \"executedBy\": {\n        \"id\": \"52f50ceb-0f06-4a26-a8a3-4edb0612414a\",\n        \"name\": \"Auto Test\"\n    },\n    \"tenant_id\": \"968b6ecf-aec1-4145-b7d8-e005ae8bbb40\",\n    \"is_reseller\": false,\n    \"approvalEmail\": \"\",\n    \"paymentMethodId\": \"2c92c0f87911e3c301791529cc6b3b10\",\n    \"referenceCustomerId\": \"968b6ecf-aec1-4145-b7d8-e005ae8bbb40\",\n    \"invoiceOwnerAccountKey\": \"2c92c0fa7911e35101791529d16f1451\",\n    \"referenceCustomerDomain\": \"uatdcat20210428085640.onmicrosoft.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders","description":"<p>todo check the parameters</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cb94d71c-81b6-4e5b-9934-f4fc00ee5c79","id":"cb94d71c-81b6-4e5b-9934-f4fc00ee5c79","name":"order","type":"folder"}},"urlObject":{"path":["v2","customers","{customer_id}","orders"],"host":["https://api.mycsp.io"],"query":[],"variable":[]}},"response":[{"id":"370010e4-f2d1-46b5-89ec-e4911f944212","name":"Order creation succeed","originalRequest":{"method":"POST","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": {},\n    \"meta\": {\n        \"message\": \"Order Creation is started\"\n    }\n}"},{"id":"db8ceeb6-4237-441f-b488-c815b3cbcba1","name":"order creation failed","originalRequest":{"method":"POST","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/orders"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"Validation failed: Tenant must exist\",\n        \"dev_message\": \"Error: #<ActiveRecord::RecordInvalid: Validation failed: Tenant must exist>\"\n    }\n}"}],"_postman_id":"25b234ff-be58-4d44-b36b-5301c86fe2e7"}],"id":"cb94d71c-81b6-4e5b-9934-f4fc00ee5c79","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"8f1eabc6-8497-4b7e-8aa9-b33a23b70d98","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"776510b2-894a-42d0-ae1f-c4dbd584ef0d","type":"text/javascript","exec":[""]}}],"_postman_id":"cb94d71c-81b6-4e5b-9934-f4fc00ee5c79","description":""},{"name":"Retrieves all Orders","id":"83aa7c5c-4f1e-4c59-82bb-35142e044206","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders?page=1&per_page=10&product_name=office365&sort=updated_at&sort_direction=desc&min_amount=0&max_amount=100","urlObject":{"path":["v2","customers","{customer_id}","orders"],"host":["https://api.mycsp.io"],"query":[{"description":{"content":"<p>Specifies the page number in a limited (paginated) list of orders.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Controls the number of items per page in a limited (paginated) list of orders (max: 100)</p>\n","type":"text/plain"},"key":"per_page","value":"10"},{"description":{"content":"<p>Query string</p>\n","type":"text/plain"},"key":"product_name","value":"office365"},{"description":{"content":"<p>Field name to sort by. Note: default sort is 'id', but 'updated_at' and 'created_at' are also acceptable.</p>\n","type":"text/plain"},"key":"sort","value":"updated_at"},{"description":{"content":"<p>Sort direction. Acceptable values are: asc, desc.</p>\n","type":"text/plain"},"key":"sort_direction","value":"desc"},{"description":{"content":"<p>Filter order by amount. greater than </p>\n","type":"text/plain"},"key":"min_amount","value":"0"},{"description":{"content":"<p>Filter order by amount. less than </p>\n","type":"text/plain"},"key":"max_amount","value":"100"}],"variable":[]}},"response":[{"id":"bfd894c3-abe1-4a56-ac0e-ebe713748813","name":"Order found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"id\": 13,\n            \"name\": null,\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"amount\": 0.0,\n            \"quantity\": 1.0,\n            \"progress\": 0.0,\n            \"status\": \"incomplete\",\n            \"items\": [\n                {\n                    \"id\": 10,\n                    \"order_id\": 13,\n                    \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n                    \"title\": \"\",\n                    \"sku_id\": \"0001\",\n                    \"product_id\": \"CFQ7TTC0LH33:commercial:P1Y:monthly\",\n                    \"description\": null,\n                    \"ms_rrp\": null,\n                    \"status\": \"incomplete\",\n                    \"sell_price\": null,\n                    \"buy_price\": null,\n                    \"gross_profit\": null,\n                    \"term\": null,\n                    \"billing_frequency\": null,\n                    \"quantity\": 0.0,\n                    \"progress\": 0.0,\n                    \"discount_percentage\": 0.0,\n                    \"is_pay_as_you_go\": null,\n                    \"zuora_attributes\": null,\n                    \"friendly_name\": null,\n                    \"billing_cycle\": null,\n                    \"subscription_po_number\": null\n                }\n            ]\n        },\n        {\n            \"id\": 8,\n            \"name\": null,\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"amount\": 0.0,\n            \"quantity\": 1.0,\n            \"progress\": 100.0,\n            \"status\": \"done\",\n            \"items\": [\n                {\n                    \"id\": 7,\n                    \"order_id\": 8,\n                    \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n                    \"title\": \"\",\n                    \"sku_id\": \"0001\",\n                    \"product_id\": \"CFQ7TTC0LH33:commercial:P3Y:annual\",\n                    \"description\": null,\n                    \"ms_rrp\": null,\n                    \"status\": \"done\",\n                    \"sell_price\": null,\n                    \"buy_price\": null,\n                    \"gross_profit\": null,\n                    \"term\": null,\n                    \"billing_frequency\": null,\n                    \"quantity\": 0.0,\n                    \"progress\": 0.0,\n                    \"discount_percentage\": 0.0,\n                    \"is_pay_as_you_go\": null,\n                    \"zuora_attributes\": null,\n                    \"friendly_name\": null,\n                    \"billing_cycle\": null,\n                    \"subscription_po_number\": null\n                }\n            ]\n        },\n        {\n            \"id\": 7,\n            \"name\": null,\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"amount\": 0.0,\n            \"quantity\": 1.0,\n            \"progress\": 0.0,\n            \"status\": \"incomplete\",\n            \"items\": [\n                {\n                    \"id\": 6,\n                    \"order_id\": 7,\n                    \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n                    \"title\": \"\",\n                    \"sku_id\": \"0001\",\n                    \"product_id\": \"CFQ7TTC0LH33:commercial:P1Y:monthly\",\n                    \"description\": null,\n                    \"ms_rrp\": null,\n                    \"status\": \"incomplete\",\n                    \"sell_price\": null,\n                    \"buy_price\": null,\n                    \"gross_profit\": null,\n                    \"term\": null,\n                    \"billing_frequency\": null,\n                    \"quantity\": 0.0,\n                    \"progress\": 0.0,\n                    \"discount_percentage\": 0.0,\n                    \"is_pay_as_you_go\": null,\n                    \"zuora_attributes\": null,\n                    \"friendly_name\": null,\n                    \"billing_cycle\": null,\n                    \"subscription_po_number\": null\n                }\n            ]\n        },\n        {\n            \"id\": 6,\n            \"name\": null,\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"amount\": 0.0,\n            \"quantity\": 1.0,\n            \"progress\": 100.0,\n            \"status\": \"done\",\n            \"items\": [\n                {\n                    \"id\": 5,\n                    \"order_id\": 6,\n                    \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n                    \"title\": \"\",\n                    \"sku_id\": \"0001\",\n                    \"product_id\": \"CFQ7TTC0LH33:commercial:P1Y:annual\",\n                    \"description\": null,\n                    \"ms_rrp\": null,\n                    \"status\": \"done\",\n                    \"sell_price\": null,\n                    \"buy_price\": null,\n                    \"gross_profit\": null,\n                    \"term\": null,\n                    \"billing_frequency\": null,\n                    \"quantity\": 0.0,\n                    \"progress\": 0.0,\n                    \"discount_percentage\": 0.0,\n                    \"is_pay_as_you_go\": null,\n                    \"zuora_attributes\": null,\n                    \"friendly_name\": null,\n                    \"billing_cycle\": null,\n                    \"subscription_po_number\": null\n                }\n            ]\n        },\n        {\n            \"id\": 5,\n            \"name\": null,\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"amount\": 0.0,\n            \"quantity\": 1.0,\n            \"progress\": 0.0,\n            \"status\": \"incomplete\",\n            \"items\": [\n                {\n                    \"id\": 4,\n                    \"order_id\": 5,\n                    \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n                    \"title\": \"\",\n                    \"sku_id\": \"0001\",\n                    \"product_id\": \"CFQ7TTC0LH33:commercial:P1Y:monthly\",\n                    \"description\": null,\n                    \"ms_rrp\": null,\n                    \"status\": \"incomplete\",\n                    \"sell_price\": null,\n                    \"buy_price\": null,\n                    \"gross_profit\": null,\n                    \"term\": null,\n                    \"billing_frequency\": null,\n                    \"quantity\": 0.0,\n                    \"progress\": 0.0,\n                    \"discount_percentage\": 0.0,\n                    \"is_pay_as_you_go\": null,\n                    \"zuora_attributes\": null,\n                    \"friendly_name\": null,\n                    \"billing_cycle\": null,\n                    \"subscription_po_number\": null\n                }\n            ]\n        },\n        {\n            \"id\": 4,\n            \"name\": null,\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"amount\": 0.0,\n            \"quantity\": 1.0,\n            \"progress\": 0.0,\n            \"status\": \"incomplete\",\n            \"items\": [\n                {\n                    \"id\": 3,\n                    \"order_id\": 4,\n                    \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n                    \"title\": \"\",\n                    \"sku_id\": \"0001\",\n                    \"product_id\": \"CFQ7TTC0LH33:commercial:P1Y:monthly\",\n                    \"description\": null,\n                    \"ms_rrp\": null,\n                    \"status\": \"incomplete\",\n                    \"sell_price\": null,\n                    \"buy_price\": null,\n                    \"gross_profit\": null,\n                    \"term\": null,\n                    \"billing_frequency\": null,\n                    \"quantity\": 0.0,\n                    \"progress\": 0.0,\n                    \"discount_percentage\": 0.0,\n                    \"is_pay_as_you_go\": null,\n                    \"zuora_attributes\": null,\n                    \"friendly_name\": null,\n                    \"billing_cycle\": null,\n                    \"subscription_po_number\": null\n                }\n            ]\n        },\n        {\n            \"id\": 2,\n            \"name\": null,\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"amount\": 0.0,\n            \"quantity\": 1.0,\n            \"progress\": 0.0,\n            \"status\": \"incomplete\",\n            \"items\": [\n                {\n                    \"id\": 2,\n                    \"order_id\": 2,\n                    \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n                    \"title\": \"\",\n                    \"sku_id\": \"0001\",\n                    \"product_id\": \"CFQ7TTC0LH33:commercial:P1Y:monthly\",\n                    \"description\": null,\n                    \"ms_rrp\": null,\n                    \"status\": \"incomplete\",\n                    \"sell_price\": null,\n                    \"buy_price\": null,\n                    \"gross_profit\": null,\n                    \"term\": null,\n                    \"billing_frequency\": null,\n                    \"quantity\": 0.0,\n                    \"progress\": 0.0,\n                    \"discount_percentage\": 0.0,\n                    \"is_pay_as_you_go\": null,\n                    \"zuora_attributes\": null,\n                    \"friendly_name\": null,\n                    \"billing_cycle\": null,\n                    \"subscription_po_number\": null\n                }\n            ]\n        },\n        {\n            \"id\": 1,\n            \"name\": null,\n            \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n            \"amount\": 0.0,\n            \"quantity\": 1.0,\n            \"progress\": 0.0,\n            \"status\": \"incomplete\",\n            \"items\": [\n                {\n                    \"id\": 1,\n                    \"order_id\": 1,\n                    \"tenant_id\": \"c598e52c-bffb-486b-8021-a08440886435\",\n                    \"title\": \"\",\n                    \"sku_id\": \"0001\",\n                    \"product_id\": \"CFQ7TTC0LH33:commercial:P3Y:monthly\",\n                    \"description\": null,\n                    \"ms_rrp\": null,\n                    \"status\": \"incomplete\",\n                    \"sell_price\": null,\n                    \"buy_price\": null,\n                    \"gross_profit\": null,\n                    \"term\": null,\n                    \"billing_frequency\": null,\n                    \"quantity\": 0.0,\n                    \"progress\": 0.0,\n                    \"discount_percentage\": 0.0,\n                    \"is_pay_as_you_go\": null,\n                    \"zuora_attributes\": null,\n                    \"friendly_name\": null,\n                    \"billing_cycle\": null,\n                    \"subscription_po_number\": null\n                }\n            ]\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\",\n        \"pagination\": {\n            \"page\": 1,\n            \"per_page\": 8,\n            \"total_count\": 8,\n            \"total_pages\": 1,\n            \"first_uri\": \"/v2/customers/c598e52c-bffb-486b-8021-a08440886435/orders?page=1\",\n            \"prev_uri\": \"null\",\n            \"next_uri\": \"null\",\n            \"last_uri\": \"/v2/customers/c598e52c-bffb-486b-8021-a08440886435/orders?page=1\"\n        }\n    }\n}"},{"id":"07cd0cd0-7fe1-45cf-8810-785f781883fb","name":"Order not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"No Orders Found\"\n    }\n}"}],"_postman_id":"83aa7c5c-4f1e-4c59-82bb-35142e044206"},{"name":"Retrieves all Orders Histories","id":"09c5228f-0ab1-478d-bb9e-9af9d308bfea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders/histories?page=1&per_page=10","urlObject":{"path":["v2","customers","{customer_id}","orders","histories"],"host":["https://api.mycsp.io"],"query":[{"description":{"content":"<p>Specifies the page number in a limited (paginated) list of orders.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Controls the number of items per page in a limited (paginated) list of orders (max: 100)</p>\n","type":"text/plain"},"key":"per_page","value":"10"}],"variable":[]}},"response":[{"id":"3dd0d11d-121b-4568-ab84-b4ba48863e41","name":"Order found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders/histories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"tenant_name\": \"[T]MyCSP Reseller 1\",\n            \"tenant_id\": \"9a3856ee-35fb-453a-ba83-03a416fbc255\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Exchange Online Kiosk\",\n            \"friendly_name\": \"02-03RonieTest1\",\n            \"quantity\": 1,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Previous state\",\n            \"start_date\": \"2022-03-01T00:00:00.000Z\",\n            \"end_date\": \"2022-03-01T00:00:00.000Z\",\n            \"auto_renew\": true,\n            \"csp_sell_price\": \"3.0\",\n            \"price\": \"2.82\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"3.0\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"3.0\",\n            \"sub_number\": \"A-S00006954\",\n            \"action\": \"Created\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"83f17ef1-48ec-4205-ca27-b5d8b8845a82\"\n        },\n        {\n            \"id\": 3,\n            \"tenant_name\": \"[T]MyCSP Reseller 1\",\n            \"tenant_id\": \"9a3856ee-35fb-453a-ba83-03a416fbc255\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"NCE Promotion Annual offers\",\n            \"friendly_name\": \"02-03RonieTest1\",\n            \"quantity\": 0,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Cancelled\",\n            \"start_date\": \"2022-03-01T00:00:00.000Z\",\n            \"end_date\": \"2022-03-01T00:00:00.000Z\",\n            \"auto_renew\": true,\n            \"csp_sell_price\": null,\n            \"price\": \"0.0\",\n            \"discount\": \"-\",\n            \"markup_price\": null,\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"0.0\",\n            \"sub_number\": \"A-S00006954\",\n            \"action\": \"Cancelled\",\n            \"currency\": \"NZD\",\n            \"order_id\": null\n        },\n        {\n            \"id\": 2,\n            \"tenant_name\": \"[T]MyCSP Reseller 1\",\n            \"tenant_id\": \"9a3856ee-35fb-453a-ba83-03a416fbc255\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Exchange Online Kiosk\",\n            \"friendly_name\": \"02-03RonieTest1\",\n            \"quantity\": 0,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Cancelled\",\n            \"start_date\": \"2022-03-01T00:00:00.000Z\",\n            \"end_date\": \"2022-03-01T00:00:00.000Z\",\n            \"auto_renew\": true,\n            \"csp_sell_price\": \"0.0\",\n            \"price\": \"0.0\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"0.0\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"0.0\",\n            \"sub_number\": \"A-S00006954\",\n            \"action\": \"Cancelled\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"83f17ef1-48ec-4205-ca27-b5d8b8845a82\"\n        },\n        {\n            \"id\": 4,\n            \"tenant_name\": \"[T]MyCSP Reseller 1 Customer 1\",\n            \"tenant_id\": \"7fb000e3-c0e5-480b-a51e-6401960d7ff6\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Exchange Online Kiosk\",\n            \"friendly_name\": \"NCEExchange-Online-Kiosk-1645490953568\",\n            \"quantity\": 1,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Cancelled\",\n            \"start_date\": \"2022-02-22T00:00:00.000Z\",\n            \"end_date\": \"2023-02-22T00:00:00.000Z\",\n            \"auto_renew\": true,\n            \"csp_sell_price\": \"3.0\",\n            \"price\": \"2.82\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"3.0\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"3.0\",\n            \"sub_number\": \"A-S00006759\",\n            \"action\": \"Cancelled\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"465b0f7e-818c-498c-c748-4e2c51351498\"\n        },\n        {\n            \"id\": 5,\n            \"tenant_name\": \"[T]MyCSP Reseller 1 Customer 1\",\n            \"tenant_id\": \"7fb000e3-c0e5-480b-a51e-6401960d7ff6\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"NCE Promotion Annual offers\",\n            \"friendly_name\": \"NCEExchange-Online-Kiosk-1645490953568\",\n            \"quantity\": 0,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Cancelled\",\n            \"start_date\": \"2022-02-22T00:00:00.000Z\",\n            \"end_date\": \"2023-02-22T00:00:00.000Z\",\n            \"auto_renew\": true,\n            \"csp_sell_price\": null,\n            \"price\": \"0.0\",\n            \"discount\": \"-\",\n            \"markup_price\": null,\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"0.0\",\n            \"sub_number\": \"A-S00006759\",\n            \"action\": \"Cancelled\",\n            \"currency\": \"NZD\",\n            \"order_id\": null\n        },\n        {\n            \"id\": 9,\n            \"tenant_name\": \"[T]MyCSP Reseller 1 customer 6\",\n            \"tenant_id\": \"6bc6ccc8-16f1-4023-8f0a-496245b8ab5b\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Microsoft Defender for Business\",\n            \"friendly_name\": \"NCEMicrosoft-Defender-for-Busi-1654bruce\",\n            \"quantity\": 1,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Previous state\",\n            \"start_date\": \"2022-06-02T00:00:00.000Z\",\n            \"end_date\": \"2022-06-02T00:00:00.000Z\",\n            \"auto_renew\": true,\n            \"csp_sell_price\": \"5.4\",\n            \"price\": \"5.08\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"5.4\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"5.4\",\n            \"sub_number\": \"A-S00007526\",\n            \"action\": \"Created\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"3a73bbc4-146c-402e-d35c-0bf597e629d0\"\n        },\n        {\n            \"id\": 10,\n            \"tenant_name\": \"[T]MyCSP Reseller 1 customer 6\",\n            \"tenant_id\": \"6bc6ccc8-16f1-4023-8f0a-496245b8ab5b\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Microsoft Defender for Business\",\n            \"friendly_name\": \"NCEMicrosoft-Defender-for-Busi-1654bruce\",\n            \"quantity\": 2,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Active\",\n            \"start_date\": \"2022-06-02T00:00:00.000Z\",\n            \"end_date\": \"2022-07-02T00:00:00.000Z\",\n            \"auto_renew\": true,\n            \"csp_sell_price\": \"5.4\",\n            \"price\": \"5.08\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"5.4\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"5.4\",\n            \"sub_number\": \"A-S00007526\",\n            \"action\": \"Increased Quantity\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"3a73bbc4-146c-402e-d35c-0bf597e629d0\"\n        },\n        {\n            \"id\": 11,\n            \"tenant_name\": \"[T]MyCSP Reseller 1\",\n            \"tenant_id\": \"9a3856ee-35fb-453a-ba83-03a416fbc255\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Exchange Online Kiosk\",\n            \"friendly_name\": \"01-06RonnieTest\",\n            \"quantity\": 2,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Previous state\",\n            \"start_date\": \"2022-06-01T00:00:00.000Z\",\n            \"end_date\": \"2022-06-01T00:00:00.000Z\",\n            \"auto_renew\": false,\n            \"csp_sell_price\": \"3.0\",\n            \"price\": \"2.82\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"3.0\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"3.0\",\n            \"sub_number\": \"A-S00007504\",\n            \"action\": \"Created\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"bd7d69a1-8438-4165-cb9d-a01ede76deb8\"\n        },\n        {\n            \"id\": 12,\n            \"tenant_name\": \"[T]MyCSP Reseller 1\",\n            \"tenant_id\": \"9a3856ee-35fb-453a-ba83-03a416fbc255\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Exchange Online Kiosk\",\n            \"friendly_name\": \"01-06RonnieTest\",\n            \"quantity\": 3,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Previous state\",\n            \"start_date\": \"2022-06-01T00:00:00.000Z\",\n            \"end_date\": \"2022-06-01T00:00:00.000Z\",\n            \"auto_renew\": false,\n            \"csp_sell_price\": \"3.0\",\n            \"price\": \"2.82\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"3.0\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"3.0\",\n            \"sub_number\": \"A-S00007504\",\n            \"action\": \"Increased Quantity\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"bd7d69a1-8438-4165-cb9d-a01ede76deb8\"\n        },\n        {\n            \"id\": 13,\n            \"tenant_name\": \"[T]MyCSP Reseller 1\",\n            \"tenant_id\": \"9a3856ee-35fb-453a-ba83-03a416fbc255\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Exchange Online Kiosk\",\n            \"friendly_name\": \"01-06RonnieTest\",\n            \"quantity\": 0,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Cancelled\",\n            \"start_date\": \"2022-06-01T00:00:00.000Z\",\n            \"end_date\": \"2022-06-01T00:00:00.000Z\",\n            \"auto_renew\": false,\n            \"csp_sell_price\": \"0.0\",\n            \"price\": \"0.0\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"0.0\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"0.0\",\n            \"sub_number\": \"A-S00007504\",\n            \"action\": \"Cancelled\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"bd7d69a1-8438-4165-cb9d-a01ede76deb8\"\n        },\n        {\n            \"id\": 14,\n            \"tenant_name\": \"[T]MyCSP Reseller 1 Customer 1\",\n            \"tenant_id\": \"7fb000e3-c0e5-480b-a51e-6401960d7ff6\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Exchange Online Kiosk\",\n            \"friendly_name\": \"01-06RonnieTest2\",\n            \"quantity\": 1,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Previous state\",\n            \"start_date\": \"2022-06-01T00:00:00.000Z\",\n            \"end_date\": \"2022-06-01T00:00:00.000Z\",\n            \"auto_renew\": false,\n            \"csp_sell_price\": \"3.0\",\n            \"price\": \"2.82\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"3.0\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"3.0\",\n            \"sub_number\": \"A-S00007505\",\n            \"action\": \"Created\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"4e97fdda-d9ec-4780-dca3-2209e9655f7b\"\n        },\n        {\n            \"id\": 15,\n            \"tenant_name\": \"[T]MyCSP Reseller 1 Customer 1\",\n            \"tenant_id\": \"7fb000e3-c0e5-480b-a51e-6401960d7ff6\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Exchange Online Kiosk\",\n            \"friendly_name\": \"01-06RonnieTest2\",\n            \"quantity\": 3,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Previous state\",\n            \"start_date\": \"2022-06-01T00:00:00.000Z\",\n            \"end_date\": \"2022-06-01T00:00:00.000Z\",\n            \"auto_renew\": false,\n            \"csp_sell_price\": \"3.0\",\n            \"price\": \"2.82\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"3.0\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"3.0\",\n            \"sub_number\": \"A-S00007505\",\n            \"action\": \"Increased Quantity\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"4e97fdda-d9ec-4780-dca3-2209e9655f7b\"\n        },\n        {\n            \"id\": 16,\n            \"tenant_name\": \"[T]MyCSP Reseller 1 Customer 1\",\n            \"tenant_id\": \"7fb000e3-c0e5-480b-a51e-6401960d7ff6\",\n            \"invoice_reference\": \"-\",\n            \"product_name\": \"Exchange Online Kiosk\",\n            \"friendly_name\": \"01-06RonnieTest2\",\n            \"quantity\": 0,\n            \"billing_frequency\": \"Monthly\",\n            \"status\": \"Cancelled\",\n            \"start_date\": \"2022-06-01T00:00:00.000Z\",\n            \"end_date\": \"2022-06-01T00:00:00.000Z\",\n            \"auto_renew\": false,\n            \"csp_sell_price\": \"0.0\",\n            \"price\": \"0.0\",\n            \"discount\": \"6.0\",\n            \"markup_price\": \"0.0\",\n            \"markup\": \"-\",\n            \"sell_discount\": \"-\",\n            \"sell_price\": \"0.0\",\n            \"sub_number\": \"A-S00007505\",\n            \"action\": \"Cancelled\",\n            \"currency\": \"NZD\",\n            \"order_id\": \"4e97fdda-d9ec-4780-dca3-2209e9655f7b\"\n        }\n    ],\n    \"meta\": {\n        \"message\": \"\",\n        \"pagination\": {\n            \"page\": 1,\n            \"per_page\": 13,\n            \"total_count\": 13,\n            \"total_pages\": 1,\n            \"first_uri\": \"/v2/customers/9a3856ee-35fb-453a-ba83-03a416fbc255/orders/histories?page=1\",\n            \"prev_uri\": \"null\",\n            \"next_uri\": \"null\",\n            \"last_uri\": \"/v2/customers/9a3856ee-35fb-453a-ba83-03a416fbc255/orders/histories?page=1\"\n        }\n    }\n}"},{"id":"4772a637-a15e-4188-ba7e-1d6d1ea374dc","name":"Order not found","originalRequest":{"method":"GET","header":[{"description":{"content":"Added as a part of security scheme: oauth2","type":"text/plain"},"key":"Authorization","value":"<token>"}],"url":"https://api.mycsp.io/v2/customers/{customer_id}/orders/histories"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"data\": null,\n    \"meta\": {\n        \"message\": \"No Orders Found\"\n    }\n}"}],"_postman_id":"09c5228f-0ab1-478d-bb9e-9af9d308bfea"}],"id":"d973e218-0563-480d-a096-4124fcc9d327","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"319d3b2a-1c13-41a3-9ef3-0b0fab97173b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ceac6d4b-888e-43f3-b7ba-27946f90ab25","type":"text/javascript","exec":[""]}}],"_postman_id":"d973e218-0563-480d-a096-4124fcc9d327","description":""}],"event":[{"listen":"prerequest","script":{"id":"8df1ec65-7aef-468a-b528-6aa9c0e0930a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"39ed584f-d0cc-41be-8ac0-42d037ce1c8a","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://api.mycsp.io"}]}