{"info":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","description":"<html><head></head><body><p>Connect to Licencias OnLine and automate your business.</p>\n<ol>\n<li><p>Authentication — Token</p>\n</li>\n<li><p>Catalogs — countries, states, manufacturers, products, pay methods, partner users</p>\n</li>\n<li><p>Customers — list companies/contacts, then CreateEndCustomer + CreateContactEndCustomer</p>\n</li>\n<li><p>Orders — list/get, CreateOrder, then poll OrderProvisioning<br> CreateOrder status success means the order was saved, not that Microsoft/MCA finished.</p>\n</li>\n<li><p>Subscriptions — search, get, update</p>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8213875","collectionId":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","publishedId":"SWTG7vuV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"0099DD"},"publishDate":"2020-02-07T15:26:57.000Z"},"item":[{"name":"Authentication","item":[{"name":"Token","event":[{"listen":"test","script":{"id":"5d64a7c5-e2c6-489d-9dd8-43ab10b55e83","type":"text/javascript","exec":["var value = pm.response.json();","pm.globals.set(\"bearerToken\", value.access_token);","pm.environment.set(\"bearerToken\", value.access_token);","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"access_token is defined\", function () {","    pm.expect(value.access_token).to.be.a(\"string\").and.not.empty;","});"]}}],"id":"88b1b829-a413-4ba8-963d-19891a5926a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"user","description":"<p>partner username</p>\n","type":"text"},{"key":"password","value":"password","description":"<p>password, which is used to access the smartHub</p>\n","type":"text"}]},"url":"https://api.licenciasonline.com/token","description":"<p>Run this first. The test script sets <code>{{bearerToken}}</code> for later requests.</p>\n<p>Body is <code>x-www-form-urlencoded</code> (not JSON).</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /token\n</code></pre><h3 id=\"body-urlencoded\">Body urlencoded</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>username</code></td>\n<td><code>userExample</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Partner username.</td>\n</tr>\n<tr>\n<td><code>password</code></td>\n<td><code>passwordExample</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>SmartHub password.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>HTTP <strong>200</strong>. Not the ApiGateway envelope (<code>status</code> / <code>data</code>).</p>\n<table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>access_token</code></td>\n<td><code>eyJ...</code></td>\n<td>string</td>\n<td>Bearer token. Saved as <code>{{bearerToken}}</code>.</td>\n</tr>\n</tbody>\n</table>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["token"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[{"id":"4b4c5623-e0ff-462e-a91b-373d354b608e","name":"TokenError-Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"","type":"text"},{"key":"password","value":"","type":"text"}]},"url":"api.licenciasonline.com/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 26 Feb 2020 13:48:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"\"No se encuentra su usuario\""},{"id":"e8c8b589-22a7-4dd3-b7de-748114b9d38a","name":"Token-Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"","type":"text"},{"key":"password","value":"","type":"text"}]},"url":"api.licenciasonline.com/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 12 Feb 2020 14:09:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"access_token\": \"4nL5pj4Ho3adMTlAnzi5wn7Mt1WqDrXVAiZ7wx_ngHKUdxXCQgUV8HPGTRlD41lulxHfCIsUN9aWNgwvXpayc2RKxZscFkcxVStab1IVERvmVFhv9p00vLEKhVt96zTjOUEhV1ATAXF6TUGo9WpxQRFPog-uqZlmqzAvCGTOJ5ENlameacU4YTRBvk7QBwnDaBS1zprjeIw2D2yt24VwwyW3LGYkSqyM3AVi0uZ2VkHfdheA3PQAck1nLbD5GxSdIi62g_nmRw9fCRraf_lHVPKRiZcMcHDuEyanlpv_adknJzRgLi1lqYl_jyucQRQLirKuWMfHg9aArMRi4AXT7FBZay3umcWz6vx1A6QnTjpeh2iaylqm4-nzfwi6kx9M_UoPv_ovlIR-au1zvJhYyClDni5ddPfEZDNx7QV8butahgoo5xqNbsyzWWaOQhZ9ptO58EdjQbxLimpMPNAi5iIH-8BdVTAsG6eRrNZnKfpY4_UxYZ_YZKOw3WzFnbkylJwcoPuEceZtgJqjHF8OAPX5qAarshPka6Qu2qkrK3z2vuSRkgb_SUAB_gKmmLDuIqZeblFIKhFrOvaO3KgpdK2djq3rdZvMQ7pgS9ohFQPjxOUEHH1skbqlHWNCO2wdRPPSXM22XzpIgy2T4jPuZDjbWK8oy3YQzdYoTcJ1TfXGUbS7KRzBQU5MAGWfph9B-rzkNlp54pjVlrDpyCsvhGYuIs3Y3j1RrCLjMSOWvxWvm5-PO3wK_xrG64lk91EUQ2pAQue8lTl0SEt421Ml-IMTX1rd8IQsF8LD9sz-PRpkIg8-D0FKyvmQr8ecatKzC_UKtl4GaMycS9IBjTP7vasrCcNJ_q22M4ehe_ttESMtkYCpKoo44f0SP7yxsCG_GrCyHrOffu328GIQ9bUuS4Fq423Gsxa9dFafIatnQgBebSc3HUxYRFiupy0bpVMkRytK8X-8-akV_zhK9ejpFFWUWB36Xq4RL8eNpA66pxEuk3NUdP5gC5E0eWa9nmjXuSUq5Vi5eugt4BpSnfSH541-7IDiuO0EEyyI7vDUkXz1_niQS39nkF9xz6O4xZ2mmdNJ0tLVKK46-eB2yTEsZUH-x_MPAViVvF4aEzZA7-S3s2qa_A7SDzW6VIlS9s0BZbnCkcSEtRvX_b8Xr08etsyvE61HbRpW2SJAsQM5cBsk8b5F9JAx5IAemC--OXgBwZTI6QJ3aHLrs-2PphsWtV4gn3wYxYDs_vpRbW4IAOcHuQdgd-FgCa3r6IDJk7FAcLBXYM6qoKI4N3xfwA658S_vzLTIR2-hqbgz90cyjV65QBbSj5wQkpR_2tqXwTJ8FvNh-3cd9GCuuNHz90hgqClJNy6c2XHx5BqS80rluR3Ro5rjqaFfuzal3tLV873hL1RdsO3capUQrWTlcCON7JyhZuiKO_Tdsd-qdcjtVMn_baRsyP1HZa8DjEkpjaL7GiYQfWoNuoGIuK3kF_Ey7x5oNAD-rI-gv4MSIJml_B_P8i_6rwEQo3hWmABXqV8Dk9fKwCYbACWZ1t_MM9sxr73hRhxc4iaXq85O4RiwNrHwnDhuNPSugCB8c01bTlwK51yj8mhNGzTJc5p-gOCPoZGu1c75fp45zVDI2aJpAzzGrHemhx_3nLZDiKY4zE3mb_IGoBp_giuz6sd8yFWiGdex9Sg9yj17VXbmDREwop9pgn5ZeNz7tbMStuuTGjqBOinSM6V6LeLbMK8-s_gHjuBNLiLoavxWDF9FNJghlMPJKtacA046_3hzALs7DhWB8kc35McBDTl5JBrqHw3tPtsAVDkbE10uyg6Jo0KZc2yXnH1mAsaDB-umSt0fezhHBrTtfXwrjnqGRdZM0asi-6ebMnMg6rXb9q0yl4zIjEIVrCFoooqgynhOtdl-foP30snWfutZQRg026ctdfb15BmA7mP-VctS-XyDGERmQJ6Zo48THpzEeazRfHF0ngdL_qLS_yxfDebTNLcOOaOA_cV6QJZ7Owik72m3W3cjoXu68OeLaVQ2lRUIdNLfIDyf4WbmM9_8rpAQSaEQIwyEvMNZjFA9Gm0XjYnVOwxoKDB_mEmCbn8zx3lqK7kXwKgS6JxY2p1M2ChAv494FkF6qqp1EI8ZNOQj8SoglUPV_8L_OgX0VQOXjpsxhkHzduYaNvGwUDniGbaZBUVy0zw_DtVBfYv_Do1hyO-LcA0VMPQcjYgpFUwKVzr95E-Dbv_L0Y0FP59FJoQ_sSwMbDxSgZnbQ3HvwC0El0lJrH7KKA6NYyBatGx5ccf4bHWZwLCCmc8W2SkGO1HZyCXaHzhDY5g90LfYrougCIAZ-XCkja2VsaYNV7PnlrEMYlBukXv18wIzO_EYGlGTkprXLCxVcmIginbPOQHop9kc_8V_oTS901Coa0gdtwwYbLTeLQsIX5cpPo7QRgdeqIucdf9xI3ZoZqvmOhFILaKgfcSMYIYfEBoKaKD6Pa-DFqCU89830CiA3IEieBnenvRojtOiv-xjY77PWIg_QbUDsf7P3AcEsGpVePikY7d6LlTzrjZ1UyG-z2kYR9KKkm33L3vxOILnuMP9EIoS1MwadN5iLkAZ0iVyfR-53cso_7JyQlokQybB181LLUuxvB6kUHefesAzY75kAz3foijM8q5o8F1W8XvRPkOjF-XR1BHzIEGgwU-VUFPXFE1x1cRs53cou8cHP3-vrk97QsZOHEvUPi1PNeUWyp3nIXkHWdf5iSoj-zW_lITrCsR6yhou-XyeOZhgyisa8w9p89VaK5cBSD9AjvYmPdYE1KbC-ano8PmMbgTrNYgAvSF8vACNvgaNXpqz2JK6uAo-zeb8PHEHw7vr9GzrMn8T-ZLwdK9Ph5PvvV-A-sOArJYUo8V2BynFTVAMXD2bdrNR3TeOV8UVfpw_jiKCw7bmVz4pwzCwOr8a7ObYIxu30Zn_CXBunTs2Y2Xx9z99W-b2yIdFuZUfmaDzjsFG2IdDTLcTgxuvjlEZNSkS7U84MIRa3usnB_ykkAAavot4h6fyGYN2-9M8m0NOJDscGM5uK6dl3er6nUYVUJNxALcIgNNFKRgGzqnmLKMSB4nFvP0et4Mf75D_-fpHlhda6VUyNURWR42NMYq-rcVJGu95caqfvorLZrW-gDQ7xA0\"\r\n}"}],"_postman_id":"88b1b829-a413-4ba8-963d-19891a5926a8"}],"id":"2b416428-ee6d-4231-936b-a6456360b3ab","description":"<h5>BaseURL-Testing: api-stg.licenciasonline.com</h5>\n\n<h5>BaseURL-Production: api.licenciasonline.com</h5>\n\n<p>Run Token first. Later requests inherit {{bearerToken}}.</p>\n","event":[{"listen":"prerequest","script":{"id":"843c0e93-8d19-4464-b19c-2aeed7e4b6e0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b78a0fd1-fc79-4ec3-aeee-758c0d42d5e6","type":"text/javascript","exec":[""]}}],"_postman_id":"2b416428-ee6d-4231-936b-a6456360b3ab","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}}},{"name":"Catalogs","item":[{"name":"Countries","item":[{"name":"GetCountries","event":[{"listen":"test","script":{"id":"3af4b14d-2346-4791-aa4a-986f186759c2","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"97f835d0-560d-4fbd-b724-69148a7395db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Countries/Search","description":"<h2 id=\"📝-get-countries\">📝 Get Countries</h2>\n<p>Returns the list of countries (id, ISO code, and name). This endpoint does not require request parameters.</p>\n<hr />\n<h3 id=\"📌-sample-response\">📌 Sample response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": [\n    {\n      \"id\": 39,\n      \"countryCode\": \"AI\",\n      \"name\": \"Anguilla\"\n    },\n    {\n      \"id\": 31,\n      \"countryCode\": \"AG\",\n      \"name\": \"Antigua and Barbuda\"\n    },\n    {\n      \"id\": 1,\n      \"countryCode\": \"AR\",\n      \"name\": \"Argentina\"\n    }\n  ]\n}\n\n</code></pre>\n<h3 id=\"📘-response-fields\">📘 Response fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>1</code></td>\n<td>number</td>\n<td>Country id (<code>pssId</code>). Use it as <code>countryId</code> on CreateEndCustomer / CreateContactEndCustomer.</td>\n</tr>\n<tr>\n<td><code>countryCode</code></td>\n<td><code>AR</code></td>\n<td>string</td>\n<td>2-letter ISO country code.</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td><code>Argentina</code></td>\n<td>string</td>\n<td>Country name.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","Countries","Search"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[{"id":"0dbb4f56-34b8-42ca-a0d0-c89d998fd3dd","name":"OK","originalRequest":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Countries/Search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"8669"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-07-21T19:53:44.3046198Z"},{"key":"Date","value":"Tue, 21 Jul 2020 19:53:39 GMT"},{"key":"Set-Cookie","value":"NSC_ESNS=001e5f80-483d-1f17-9678-005056992556_2277173115_3540373755_00000000000001179816; Path=/; Expires=Tue, 21-Jul-2020 19:53:54 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": [\n    {\n      \"id\": 39,\n      \"countryCode\": \"AI\",\n      \"name\": \"Anguilla\"\n    },\n    {\n      \"id\": 31,\n      \"countryCode\": \"AG\",\n      \"name\": \"Antigua and Barbuda\"\n    },\n    {\n      \"id\": 1,\n      \"countryCode\": \"AR\",\n      \"name\": \"Argentina\"\n    }\n  ]\n}"},{"id":"46cc5fc0-9f48-4a09-a00f-cdbcc01fa3c8","name":"OK filter","originalRequest":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Countries/Search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"277"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-07-21T19:54:11.8871617Z"},{"key":"Date","value":"Tue, 21 Jul 2020 19:54:06 GMT"},{"key":"Set-Cookie","value":"NSC_ESNS=0016cce6-4859-1f17-9678-005056992556_0801171323_2071974139_00000000000001180190; Path=/; Expires=Tue, 21-Jul-2020 19:54:21 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"countryCode\": \"AR\",\n      \"name\": \"Argentina\"\n    }\n  ]\n}"},{"id":"f24a8a0e-b4cb-44f7-8cdd-644663c5f761","name":"Error - token","originalRequest":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Countries/Search"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 05 Mar 2020 18:08:31 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Length","value":"16"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"WWW-Authenticate","value":"Bearer"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcanJvYmVydHNcRGVza3RvcFxib28uYXBpXExPTC5XZWIuQXBpXGFwaVxzbWhDb21wYW55XFNlYXJjaA==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-03-05T18:08:36.2559556Z"}],"cookie":[],"responseTime":null,"body":"Failed to login."}],"_postman_id":"97f835d0-560d-4fbd-b724-69148a7395db"},{"name":"GetCountryStates","id":"42f56589-de07-410a-b2a1-602e3a2fdc05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/CountryStates?countryCode=UY","description":"<p>📌 GetCountryStates</p>\n<p>Retrieve list of provinces/states by country</p>\n<p>🔗 Endpoint</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/CountryStates?countryCode={code}\n\n</code></pre><p>Returns a list of provinces or states associated with a given country code.</p>\n<p>📥 Query Parameters</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>countryCode</td>\n<td>string</td>\n<td>❌ No</td>\n<td>2-letter ISO code. If omitted or empty, returns states for all countries.</td>\n</tr>\n</tbody>\n</table>\n</div><p>📤 Response<br />Returns an array of provinces/states in the following structure:</p>\n<h3 id=\"📤-example-response\">📤 Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 84,\n        \"description\": \"ARTIGAS\"\n    },\n    {\n        \"id\": 85,\n        \"description\": \"CANELONES\"\n    },\n    {\n        \"id\": 86,\n        \"description\": \"CERRO LARGO\"\n    }\n]\n\n</code></pre>\n<h3 id=\"✅-valid-countrycode-values\">✅ Valid <code>countryCode</code> values</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Country</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>AG</td>\n<td>Antigua and Barbuda</td>\n</tr>\n<tr>\n<td>AI</td>\n<td>Anguilla</td>\n</tr>\n<tr>\n<td>AR</td>\n<td>Argentina</td>\n</tr>\n<tr>\n<td>AW</td>\n<td>Aruba</td>\n</tr>\n<tr>\n<td>BB</td>\n<td>Barbados</td>\n</tr>\n<tr>\n<td>BM</td>\n<td>Bermuda</td>\n</tr>\n<tr>\n<td>BO</td>\n<td>Bolivia</td>\n</tr>\n<tr>\n<td>BR</td>\n<td>Brazil</td>\n</tr>\n<tr>\n<td>BS</td>\n<td>Bahamas</td>\n</tr>\n<tr>\n<td>BZ</td>\n<td>Belize</td>\n</tr>\n<tr>\n<td>CL</td>\n<td>Chile</td>\n</tr>\n<tr>\n<td>CO</td>\n<td>Colombia</td>\n</tr>\n<tr>\n<td>CR</td>\n<td>Costa Rica</td>\n</tr>\n<tr>\n<td>CU</td>\n<td>Cuba</td>\n</tr>\n<tr>\n<td>CW</td>\n<td>Curaçao</td>\n</tr>\n<tr>\n<td>DM</td>\n<td>Dominica</td>\n</tr>\n<tr>\n<td>DO</td>\n<td>Dominican Republic</td>\n</tr>\n<tr>\n<td>EC</td>\n<td>Ecuador</td>\n</tr>\n<tr>\n<td>ES</td>\n<td>Spain</td>\n</tr>\n<tr>\n<td>GD</td>\n<td>Grenada</td>\n</tr>\n<tr>\n<td>GT</td>\n<td>Guatemala</td>\n</tr>\n<tr>\n<td>GY</td>\n<td>Guyana</td>\n</tr>\n<tr>\n<td>HN</td>\n<td>Honduras</td>\n</tr>\n<tr>\n<td>HT</td>\n<td>Haiti</td>\n</tr>\n<tr>\n<td>JM</td>\n<td>Jamaica</td>\n</tr>\n<tr>\n<td>KN</td>\n<td>Saint Kitts and Nevis</td>\n</tr>\n<tr>\n<td>KY</td>\n<td>Cayman Islands</td>\n</tr>\n<tr>\n<td>LC</td>\n<td>Saint Lucia</td>\n</tr>\n<tr>\n<td>MQ</td>\n<td>Martinique</td>\n</tr>\n<tr>\n<td>MX</td>\n<td>Mexico</td>\n</tr>\n<tr>\n<td>NI</td>\n<td>Nicaragua</td>\n</tr>\n<tr>\n<td>PA</td>\n<td>Panama</td>\n</tr>\n<tr>\n<td>PE</td>\n<td>Peru</td>\n</tr>\n<tr>\n<td>PR</td>\n<td>Puerto Rico</td>\n</tr>\n<tr>\n<td>PY</td>\n<td>Paraguay</td>\n</tr>\n<tr>\n<td>SR</td>\n<td>Suriname</td>\n</tr>\n<tr>\n<td>SV</td>\n<td>El Salvador</td>\n</tr>\n<tr>\n<td>TC</td>\n<td>Turks and Caicos Islands</td>\n</tr>\n<tr>\n<td>TT</td>\n<td>Trinidad and Tobago</td>\n</tr>\n<tr>\n<td>US</td>\n<td>United States</td>\n</tr>\n<tr>\n<td>UY</td>\n<td>Uruguay</td>\n</tr>\n<tr>\n<td>VC</td>\n<td>Saint Vincent and the Grenadines</td>\n</tr>\n<tr>\n<td>VE</td>\n<td>Venezuela</td>\n</tr>\n<tr>\n<td>VG</td>\n<td>British Virgin Islands</td>\n</tr>\n<tr>\n<td>VI</td>\n<td>U.S. Virgin Islands</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","CountryStates"],"host":["api","licenciasonline","com"],"query":[{"key":"countryCode","value":"UY"}],"variable":[]}},"response":[{"id":"4d6603e2-a09a-4161-a949-12021af8e962","name":"GetCountryStates","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.licenciasonline.com/v1/CountryStates?countryCode=UY","protocol":"https","host":["api","licenciasonline","com"],"path":["v1","CountryStates"],"query":[{"key":"countryCode","value":"UY"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"42f56589-de07-410a-b2a1-602e3a2fdc05"},{"name":"GetStateByCountryId","event":[{"listen":"test","script":{"id":"3af4b14d-2346-4791-aa4a-986f186759c2","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"623d3054-d4a8-4f03-82a9-8ccae7217b8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/GetStatesByCountryId/1","description":"<h2 id=\"📝-get-states-by-country-id\">📝 Get States By Country Id</h2>\n<p>Returns the states, departments, or provinces for a country. Send the country id (<code>pssId</code> from GetCountries) as the path parameter.</p>\n<h3 id=\"🔗-endpoint\">🔗 Endpoint</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/GetStatesByCountryId/{countryId}\n</code></pre><h3 id=\"📥-path-parameters\">📥 Path parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>countryId</code></td>\n<td><code>1</code></td>\n<td>number</td>\n<td>✅ Yes</td>\n<td>Country id (<code>pssId</code> from GetCountries).</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"📌-sample-response\">📌 Sample response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": [\n    {\n      \"pvsId\": 175,\n      \"pvsDescripcion\": \"ANTIOQUIA\",\n      \"pssId\": 8,\n      \"pssJurisdiccionId\": null\n    },\n    {\n      \"pvsId\": 178,\n      \"pvsDescripcion\": \"ATLANTICO\",\n      \"pssId\": 8,\n      \"pssJurisdiccionId\": null\n    },\n    {\n      \"pvsId\": 411,\n      \"pvsDescripcion\": \"BOGOTA\",\n      \"pssId\": 8,\n      \"pssJurisdiccionId\": null\n    },\n    {\n      \"pvsId\": 181,\n      \"pvsDescripcion\": \"CALDAS\",\n      \"pssId\": 8,\n      \"pssJurisdiccionId\": null\n    }\n  ]\n}\n</code></pre>\n<h3 id=\"📘-response-fields\">📘 Response fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pvsId</code></td>\n<td><code>175</code></td>\n<td>number</td>\n<td>Province / state id. Use it as <code>address.Province.pvsId</code> on CreateEndCustomer / CreateContactEndCustomer.</td>\n</tr>\n<tr>\n<td><code>pvsDescripcion</code></td>\n<td><code>ANTIOQUIA</code></td>\n<td>string</td>\n<td>Province / state name.</td>\n</tr>\n<tr>\n<td><code>pssId</code></td>\n<td><code>8</code></td>\n<td>number</td>\n<td>Country id. Must match the <code>countryId</code> used in the request.</td>\n</tr>\n<tr>\n<td><code>pssJurisdiccionId</code></td>\n<td><code>null</code></td>\n<td>number | null</td>\n<td>Jurisdiction id, if applicable.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","GetStatesByCountryId","1"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[{"id":"72eece20-3a45-4e99-b0e6-65333a70b254","name":"OK","originalRequest":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/GetStatesByCountryId/8"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"8669"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-07-21T19:53:44.3046198Z"},{"key":"Date","value":"Tue, 21 Jul 2020 19:53:39 GMT"},{"key":"Set-Cookie","value":"NSC_ESNS=001e5f80-483d-1f17-9678-005056992556_2277173115_3540373755_00000000000001179816; Path=/; Expires=Tue, 21-Jul-2020 19:53:54 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": [\n    {\n      \"pvsId\": 175,\n      \"pvsDescripcion\": \"ANTIOQUIA\",\n      \"pssId\": 8,\n      \"pssJurisdiccionId\": null\n    },\n    {\n      \"pvsId\": 178,\n      \"pvsDescripcion\": \"ATLANTICO\",\n      \"pssId\": 8,\n      \"pssJurisdiccionId\": null\n    },\n    {\n      \"pvsId\": 411,\n      \"pvsDescripcion\": \"BOGOTA\",\n      \"pssId\": 8,\n      \"pssJurisdiccionId\": null\n    },\n    {\n      \"pvsId\": 181,\n      \"pvsDescripcion\": \"CALDAS\",\n      \"pssId\": 8,\n      \"pssJurisdiccionId\": null\n    }\n  ]\n}"},{"id":"35c09b96-fdb1-4164-b33b-3b7e14cb0ffd","name":"OK filter","originalRequest":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/GetStatesByCountryId/8"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"277"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-07-21T19:54:11.8871617Z"},{"key":"Date","value":"Tue, 21 Jul 2020 19:54:06 GMT"},{"key":"Set-Cookie","value":"NSC_ESNS=0016cce6-4859-1f17-9678-005056992556_0801171323_2071974139_00000000000001180190; Path=/; Expires=Tue, 21-Jul-2020 19:54:21 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": [\n    {\n      \"pvsId\": 175,\n      \"pvsDescripcion\": \"ANTIOQUIA\",\n      \"pssId\": 8,\n      \"pssJurisdiccionId\": null\n    }\n  ]\n}"},{"id":"eb31b5cc-4424-447c-9595-f61469cb8684","name":"Error - token","originalRequest":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/GetStatesByCountryId/1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 05 Mar 2020 18:08:31 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Length","value":"16"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"WWW-Authenticate","value":"Bearer"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcanJvYmVydHNcRGVza3RvcFxib28uYXBpXExPTC5XZWIuQXBpXGFwaVxzbWhDb21wYW55XFNlYXJjaA==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-03-05T18:08:36.2559556Z"}],"cookie":[],"responseTime":null,"body":"Failed to login."}],"_postman_id":"623d3054-d4a8-4f03-82a9-8ccae7217b8f"}],"id":"17da571f-b8dd-4faa-9d77-51f69557ac23","description":"<p>GetStateByCountryId = country id. GetCountryStates = country code.</p>\n","_postman_id":"17da571f-b8dd-4faa-9d77-51f69557ac23","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}}},{"name":"Products","event":[{"listen":"test","script":{"id":"e2503be8-40ab-4ac5-91b8-2fe86bd5a75f","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"42c59055-5bd8-4b3f-baa0-a8216740c413","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Products?countryCode=CL&sku=Azure Active Directory Premium P2&manufacturerId&pageSize=40&pageId=1","description":"<h3 id=\"📌-description\">📌 Description</h3>\n<p>Returns a paged product catalog for the partner in the token and the selected country. Use <code>productId</code> from the response as <code>items[].product.id</code> on <strong>CreateOrder</strong>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/Products?countryCode={countryCode}&amp;sku={sku}&amp;manufacturerId={manufacturerId}&amp;pageSize={pageSize}&amp;pageId={pageId}\n\n</code></pre><p>Only products the authenticated partner can sell are returned. The same SKU can appear more than once with a different <code>productId</code> / <code>manufacturerName</code> (for example Microsoft CSP for VARs vs Service Providers).</p>\n<h3 id=\"🔗-query-parameters\">🔗 Query parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>countryCode</code></td>\n<td><code>CL</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>ISO country code (<code>AR</code>, <code>CL</code>, <code>UY</code>, …). Unknown or missing → <code>countryCode invalid.</code></td>\n</tr>\n<tr>\n<td><code>sku</code></td>\n<td><code>Azure Active Directory Premium P2</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Free-text filter. Matches SKU code or product description (for example <code>AAA-06290</code> or <code>Microsoft 365 Apps</code>). Empty = no text filter.</td>\n</tr>\n<tr>\n<td><code>manufacturerId</code></td>\n<td><code>8</code></td>\n<td>int</td>\n<td>❌ No</td>\n<td>Brand id from <strong>GetManufacturers</strong> (<code>brandId</code>). Empty = all manufacturers available to the partner.</td>\n</tr>\n<tr>\n<td><code>pageSize</code></td>\n<td><code>40</code></td>\n<td>int</td>\n<td>✅ Yes</td>\n<td>Records per page.</td>\n</tr>\n<tr>\n<td><code>pageId</code></td>\n<td><code>1</code></td>\n<td>int</td>\n<td>✅ Yes</td>\n<td>Page number, 1-based.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📘-response-fields\">📘 Response fields</h3>\n<p>Paging envelope inside <code>data</code>:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Results</code></td>\n<td><code>[ ... ]</code></td>\n<td>array</td>\n<td>Products in the current page. Empty when nothing matches.</td>\n</tr>\n<tr>\n<td><code>Count</code></td>\n<td><code>10</code></td>\n<td>int</td>\n<td>Total rows that match the filter (not only the current page).</td>\n</tr>\n</tbody>\n</table>\n</div><p>Each item in <code>Results</code>:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sku</code></td>\n<td><code>AAA-06290</code></td>\n<td>string</td>\n<td>Manufacturer part number.</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td><code>Azure Active Directory Premium P2</code></td>\n<td>string</td>\n<td>Product name.</td>\n</tr>\n<tr>\n<td><code>productTypeName</code></td>\n<td><code>Contratos</code></td>\n<td>string</td>\n<td>Product type.</td>\n</tr>\n<tr>\n<td><code>partnerPrice</code></td>\n<td><code>9</code></td>\n<td>number</td>\n<td>Partner unit price.</td>\n</tr>\n<tr>\n<td><code>finalPrice</code></td>\n<td><code>10.8</code></td>\n<td>number</td>\n<td>Suggested end-customer unit price.</td>\n</tr>\n<tr>\n<td><code>productId</code></td>\n<td><code>6273082</code></td>\n<td>int</td>\n<td>Internal product id. Send it as <code>items[].product.id</code> on CreateOrder.</td>\n</tr>\n<tr>\n<td><code>manufacturerName</code></td>\n<td><code>Microsoft CSP for VARs</code></td>\n<td>string</td>\n<td>Brand name.</td>\n</tr>\n<tr>\n<td><code>isNCE</code></td>\n<td><code>false</code></td>\n<td>bool</td>\n<td><code>true</code> when the SKU is a Microsoft NCE offer (<code>XXXXXXXXXXXX:0001:XXX</code>).</td>\n</tr>\n<tr>\n<td><code>FXD</code></td>\n<td><code>null</code></td>\n<td>number</td>\n<td>null</td>\n</tr>\n<tr>\n<td><code>FXDType</code></td>\n<td><code>null</code></td>\n<td>string</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📌-sample-request\">📌 Sample request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/Products?countryCode=CL&amp;sku=Azure Active Directory Premium P2&amp;manufacturerId=&amp;pageSize=40&amp;pageId=1\n\n</code></pre><h3 id=\"📌-sample-response--success\">📌 Sample response — success</h3>\n<p>HTTP 200. <code>Count</code> is the total match; <code>Results</code> is the current page.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"Results\": [\n      {\n        \"sku\": \"AAA-06290\",\n        \"description\": \"Azure Active Directory Premium P2\",\n        \"productTypeName\": \"Contratos\",\n        \"partnerPrice\": 9,\n        \"finalPrice\": 10.8,\n        \"productId\": 6273082,\n        \"manufacturerName\": \"Microsoft CSP for VARs\",\n        \"isNCE\": false,\n        \"FXD\": null,\n        \"FXDType\": null\n      },\n      {\n        \"sku\": \"AAA-06290\",\n        \"description\": \"Azure Active Directory Premium P2\",\n        \"productTypeName\": \"Contratos\",\n        \"partnerPrice\": 9,\n        \"finalPrice\": 10.8,\n        \"productId\": 6268663,\n        \"manufacturerName\": \"Microsoft CSP for Service Providers\",\n        \"isNCE\": false,\n        \"FXD\": null,\n        \"FXDType\": null\n      }\n    ],\n    \"Count\": 10\n  }\n}\n\n</code></pre>\n<h3 id=\"📌-sample-response--no-matches\">📌 Sample response — no matches</h3>\n<p>HTTP 200. Empty catalog for the filter is <strong>not</strong> an error.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"Results\": [],\n    \"Count\": 0\n  }\n}\n\n</code></pre>\n<h3 id=\"errors\">Errors</h3>\n<p>Envelope: <code>{ \"status\": \"error\", \"message\": \"\" }</code>. HTTP 200 with <code>status</code> <code>error</code> (same as the rest of ApiGateway).</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Message</th>\n<th>Cause</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>countryCode invalid.</code></td>\n<td>Unknown or missing ISO country code.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","Products"],"host":["api","licenciasonline","com"],"query":[{"key":"countryCode","value":"CL"},{"key":"sku","value":"Azure Active Directory Premium P2"},{"key":"manufacturerId","value":null},{"key":"pageSize","value":"40"},{"key":"pageId","value":"1"}],"variable":[]}},"response":[{"id":"a2182fba-f211-4933-b02a-49fd4f75291d","name":"Products","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.licenciasonline.com/v1/Products?countryCode=CL&sku=Azure Active Directory Premium P2&manufacturerId&pageSize=40&pageId=1","protocol":"https","host":["api","licenciasonline","com"],"path":["v1","Products"],"query":[{"key":"countryCode","value":"CL"},{"key":"sku","value":"Azure Active Directory Premium P2"},{"key":"manufacturerId","value":null},{"key":"pageSize","value":"40"},{"key":"pageId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"2333"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcbGxhbmRpblxTb3VyY2VcUmVwb3NcYm9vYXBpMDVcTE9MLldlYi5BcGlcYXBpXEFwaUdhdGV3YXlcUHJvZHVjdHM=?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2021-01-21T14:57:43.5965882Z"},{"key":"Date","value":"Thu, 21 Jan 2021 14:57:40 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"Results\": [\n            {\n                \"sku\": \"AAA-06290\",\n                \"description\": \"Azure Active Directory Premium P2\",\n                \"productTypeName\": \"Contratos\",\n                \"partnerPrice\": 9,\n                \"finalPrice\": 10.8,\n                \"productId\": 6273082,\n                \"manufacturerName\": \"Microsoft CSP for VARs\"\n            },\n            {\n                \"sku\": \"AAA-06290\",\n                \"description\": \"Azure Active Directory Premium P2\",\n                \"productTypeName\": \"Contratos\",\n                \"partnerPrice\": 9,\n                \"finalPrice\": 10.8,\n                \"productId\": 6268663,\n                \"manufacturerName\": \"Microsoft CSP for Service Providers\"\n            },\n            {\n                \"sku\": \"AAA-06887\",\n                \"description\": \"Azure Active Directory Premium P2 (Government Pricing)\",\n                \"productTypeName\": \"Contratos\",\n                \"partnerPrice\": 9,\n                \"finalPrice\": 10.8,\n                \"productId\": 7475125,\n                \"manufacturerName\": \"Microsoft CSP for Service Providers\"\n            },\n            {\n                \"sku\": \"AAA-06887\",\n                \"description\": \"Azure Active Directory Premium P2 (Government Pricing)\",\n                \"productTypeName\": \"Contratos\",\n                \"partnerPrice\": 9,\n                \"finalPrice\": 10.8,\n                \"productId\": 7476184,\n                \"manufacturerName\": \"Microsoft CSP for VARs\"\n            },\n            {\n                \"sku\": \"AAA-07069\",\n                \"description\": \"Azure Active Directory Premium P2 (Nonprofit Staff Pricing)\",\n                \"productTypeName\": \"Contratos\",\n                \"partnerPrice\": 1.5,\n                \"finalPrice\": 1.8,\n                \"productId\": 7810046,\n                \"manufacturerName\": \"Microsoft CSP for Service Providers\"\n            },\n            {\n                \"sku\": \"AAA-07069\",\n                \"description\": \"Azure Active Directory Premium P2 (Nonprofit Staff Pricing)\",\n                \"productTypeName\": \"Contratos\",\n                \"partnerPrice\": 1.5,\n                \"finalPrice\": 1.8,\n                \"productId\": 7810163,\n                \"manufacturerName\": \"Microsoft CSP for VARs\"\n            },\n            {\n                \"sku\": \"AAA-07217\",\n                \"description\": \"Azure Active Directory Premium P2 for Government\",\n                \"productTypeName\": \"Contratos\",\n                \"partnerPrice\": 9,\n                \"finalPrice\": 10.8,\n                \"productId\": 8085976,\n                \"manufacturerName\": \"Microsoft CSP for Service Providers\"\n            },\n            {\n                \"sku\": \"AAA-07083\",\n                \"description\": \"Azure Active Directory Premium P2 for Government\",\n                \"productTypeName\": \"Contratos\",\n                \"partnerPrice\": 9,\n                \"finalPrice\": 10.8,\n                \"productId\": 7841399,\n                \"manufacturerName\": \"Microsoft CSP for Service Providers\"\n            },\n            {\n                \"sku\": \"AAA-07083\",\n                \"description\": \"Azure Active Directory Premium P2 for Government\",\n                \"productTypeName\": \"Contratos\",\n                \"partnerPrice\": 9,\n                \"finalPrice\": 10.8,\n                \"productId\": 7841714,\n                \"manufacturerName\": \"Microsoft CSP for VARs\"\n            },\n            {\n                \"sku\": \"AAA-07217\",\n                \"description\": \"Azure Active Directory Premium P2 for Government\",\n                \"productTypeName\": \"Contratos\",\n                \"partnerPrice\": 9,\n                \"finalPrice\": 10.8,\n                \"productId\": 8084890,\n                \"manufacturerName\": \"Microsoft CSP for VARs\"\n            }\n        ],\n        \"Count\": 10\n    },\n    \"message\": null,\n    \"messageCode\": null,\n    \"status\": \"success\"\n}"}],"_postman_id":"42c59055-5bd8-4b3f-baa0-a8216740c413"},{"name":"GetPartnerUsers","id":"f93526c3-630c-496b-a723-c19664a9140c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/PartnerUsers","description":"<h3 id=\"📌-getpartnerusers\">📌 GetPartnerUsers</h3>\n<p>Retrieve list of partner users</p>\n<h3 id=\"🔗-endpoint\">🔗 Endpoint</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /v1/PartnerUsers\n\n</code></pre>\n<h3 id=\"📋-description\">📋 Description</h3>\n<p>Returns a list of users (first name, last name, and email) associated with the currently authenticated partner.</p>\n<h3 id=\"📥-query-parameters\">📥 Query Parameters</h3>\n<p>This endpoint does not require any query parameters.</p>\n<h3 id=\"📤-response\">📤 Response</h3>\n<p>Returns a list of objects in the following structure:</p>\n<h3 id=\"📦-resellerusersummarydata\">📦 ResellerUserSummaryData</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>firstName</td>\n<td>string</td>\n<td>User's first name</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>string</td>\n<td>User's last name</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>User's email</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📤-example-response\">📤 Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"firstName\": \"Laura\",\n    \"lastName\": \"González\",\n    \"email\": \"laura.gonzalez@partner.com\"\n  },\n  {\n    \"firstName\": \"Carlos\",\n    \"lastName\": \"Pérez\",\n    \"email\": \"carlos.perez@partner.com\"\n  }\n]\n\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","PartnerUsers"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f93526c3-630c-496b-a723-c19664a9140c"},{"name":"PayMethodsPartner","id":"74c0e5f4-51dd-4446-8031-3dae03df384d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/PayMethodsPartner?countryCode=AR","description":"<h3 id=\"📌-getpaymentmethodsneworder\">📌 GetPaymentMethodsNewOrder</h3>\n<p>Retrieve payment methods for a country</p>\n<h3 id=\"🔗-endpoint\">🔗 Endpoint</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /v1/PaymentMethodsNewOrder?countryCode={code}\n\n</code></pre>\n<p>Returns the available payment methods for the given country, both specific to the partner and all available options.</p>\n<h3 id=\"📥-query-parameters\">📥 Query Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>countryCode</td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>2-letter ISO country code (e.g., <code>\"AR\"</code>, <code>\"CL\"</code>, <code>\"EC\"</code>)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📤-response\">📤 Response</h3>\n<p>Returns an object with a single field:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paymentMethodsApproved</td>\n<td>array of <code>PaymentMethodApiData</code></td>\n<td>Approved payment methods for country</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📦-paymentmethodapidata\">📦 PaymentMethodApiData</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>int</td>\n<td>Payment method ID</td>\n</tr>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>Internal payment code</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Display name of the method</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📤-example-response\">📤 Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n      \"id\": 1,\n      \"code\": \"EFE\",\n      \"description\": \"EFE - Efectivo\"\n    },\n    {\n      \"id\": 2,\n      \"code\": \"CH30E\",\n      \"description\": \"CK A 30 Días Contra Entrega\"\n    }\n]\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","PayMethodsPartner"],"host":["api","licenciasonline","com"],"query":[{"key":"countryCode","value":"AR"}],"variable":[]}},"response":[],"_postman_id":"74c0e5f4-51dd-4446-8031-3dae03df384d"},{"name":"GetManufacturers","id":"ad7bca03-dab4-4d12-9671-dcccd562c37b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Manufacturers","description":"<h3 id=\"📌-getmanufacturers\">📌 GetManufacturers</h3>\n<p>Retrieve all available manufacturers</p>\n<h3 id=\"🔗-endpoint\">🔗 Endpoint</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /v1/Manufacturers\n\n</code></pre>\n<p>Returns a list of all available manufacturers (brands) for the current partner.</p>\n<h3 id=\"📥-query-parameters\">📥 Query Parameters</h3>\n<p>This endpoint does not require any query parameters.</p>\n<h3 id=\"📤-response\">📤 Response</h3>\n<p>Returns an array of objects with the following structure:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>brandId</td>\n<td>int</td>\n<td>Internal identifier of the brand</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>string</td>\n<td>Display name of the brand</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📤-example-response\">📤 Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"brandId\": 7,\n    \"brandName\": \"Checkpoint\"\n  },\n  {\n    \"brandId\": 8,\n    \"brandName\": \"Microsoft Empresas\"\n  },\n  {\n    \"brandId\": 9,\n    \"brandName\": \"Symantec\"\n  }\n]\n\n</code></pre>\n<h3 id=\"🧠-notes\">🧠 Notes</h3>\n<p>The response reflects only the brands that the current authenticated partner has access to.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","Manufacturers"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad7bca03-dab4-4d12-9671-dcccd562c37b"}],"id":"a8fe52d7-69fd-41fb-8132-fa395c173324","description":"<p>Master data for customers and orders: countries, products, manufacturers, pay methods, partner users.</p>\n","_postman_id":"a8fe52d7-69fd-41fb-8132-fa395c173324","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}}},{"name":"Customers","item":[{"name":"EndCustomer","item":[{"name":"CreateEndCustomer","event":[{"listen":"test","script":{"id":"9aa18814-4b07-4bcf-b5e2-387ea274768a","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"467b7eb3-ad78-490e-a445-9f1b58da29e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id\": null,\n  \"fictitiousName\": \"Empresa B\",\n  \"name\": \"Empresa B\",\n  \"taxId\": \"890800960-3\",\n  \"phoneNumber\": \"11223344\",\n  \"grossIncome\": \"100000\",\n  \"type\": \"EndCustomer\",\n  \"countryId\": 1,\n  \"address\": {\n    \"id\": null,\n    \"street\": \"Calle 15 # 23-54\",\n    \"Province\": {\n      \"pvsId\": 103,\n      \"pvsDescripcion\": \"\",\n      \"pssId\": 1,\n      \"pssJurisdiccionId\": \"\"\n    },\n    \"phoneNumber\": \"3235825179\",\n    \"city\": \"Buenos aires\",\n    \"postalCode\": \"123456\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/CreateEndCustomer","description":"<h2 id=\"📝-create-end-customer\">📝 Create End Customer</h2>\n<p>Creates an end customer (company).</p>\n<hr />\n<h3 id=\"📘-main-fields\">📘 Main fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>null</code></td>\n<td>number</td>\n<td>❌ No</td>\n<td>Leave <code>null</code> when creating.</td>\n</tr>\n<tr>\n<td><code>fictitiousName</code></td>\n<td><code>Empresa B</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td>Trade name. Required if <code>name</code> is missing. If one is empty, it is filled from the other.</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td><code>Empresa B</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td>Legal name. Required if <code>fictitiousName</code> is missing.</td>\n</tr>\n<tr>\n<td><code>taxId</code></td>\n<td><code>890800960-3</code></td>\n<td>string</td>\n<td>❌ No*</td>\n<td>Tax id. *Duplicate taxId + country → SMH business error.</td>\n</tr>\n<tr>\n<td><code>phoneNumber</code></td>\n<td><code>11223344</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Company phone number.</td>\n</tr>\n<tr>\n<td><code>grossIncome</code></td>\n<td><code>100000</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Gross income (optional).</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td><code>EndCustomer</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Default: <code>\"EndCustomer\"</code>.</td>\n</tr>\n<tr>\n<td><code>countryId</code></td>\n<td><code>1</code></td>\n<td>number</td>\n<td>✅ Yes</td>\n<td>Country (<code>pssId</code> from GetCountries). Must exist.</td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td><code>{ ... }</code></td>\n<td>object</td>\n<td>✅ Yes</td>\n<td>Primary address (see below).</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"📍-address-object-primary-address\">📍 <code>address</code> object (primary address)</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>null</code></td>\n<td>number</td>\n<td>❌ No</td>\n<td>Leave <code>null</code> when creating.</td>\n</tr>\n<tr>\n<td><code>street</code></td>\n<td><code>Calle 15 # 23-54</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Street / address line.</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td><code>Buenos Aires</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>City.</td>\n</tr>\n<tr>\n<td><code>postalCode</code></td>\n<td><code>123456</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Postal code.</td>\n</tr>\n<tr>\n<td><code>phoneNumber</code></td>\n<td><code>3235825179</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Address phone number.</td>\n</tr>\n<tr>\n<td><code>Province</code></td>\n<td><code>{ ... }</code></td>\n<td>object</td>\n<td>✅ Yes</td>\n<td>State / province (see below).</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📍-addressprovince-object\">📍 <code>address.Province</code> object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pvsId</code></td>\n<td><code>103</code></td>\n<td>number</td>\n<td>✅ Yes</td>\n<td>Province id (<code>GetStateByCountryId</code>). Must belong to <code>countryId</code>.</td>\n</tr>\n<tr>\n<td><code>pvsDescripcion</code></td>\n<td><code>\"\"</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Optional / may be empty.</td>\n</tr>\n<tr>\n<td><code>pssId</code></td>\n<td><code>1</code></td>\n<td>number</td>\n<td>❌ No</td>\n<td>Province country. The API sets it from <code>countryId</code>. Must match <code>countryId</code>.</td>\n</tr>\n<tr>\n<td><code>pssJurisdiccionId</code></td>\n<td><code>\"\"</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Optional / may be empty.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"validation-errors-status-error\">Validation errors (<code>status: \"error\"</code>)</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th><code>message</code></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Null / invalid body</td>\n<td><code>request invalid.</code></td>\n</tr>\n<tr>\n<td>Missing both <code>name</code> and <code>fictitiousName</code></td>\n<td><code>name required.</code></td>\n</tr>\n<tr>\n<td>Missing <code>countryId</code> or <code>&lt;= 0</code></td>\n<td><code>countryId required.</code></td>\n</tr>\n<tr>\n<td>Unknown <code>countryId</code></td>\n<td><code>countryId invalid.</code></td>\n</tr>\n<tr>\n<td>Missing <code>address</code></td>\n<td><code>address required.</code></td>\n</tr>\n<tr>\n<td>Missing <code>address.street</code></td>\n<td><code>address.street required.</code></td>\n</tr>\n<tr>\n<td>Missing <code>address.city</code></td>\n<td><code>address.city required.</code></td>\n</tr>\n<tr>\n<td>Missing <code>Province</code> or <code>pvsId</code> <code>&lt;= 0</code></td>\n<td><code>address.state required.</code></td>\n</tr>\n<tr>\n<td>Unknown <code>pvsId</code></td>\n<td><code>address.state invalid.</code></td>\n</tr>\n<tr>\n<td>Province belongs to another country</td>\n<td><code>address.state does not belong to countryId.</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-error-response\">Example error response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": null,\n  \"message\": \"countryId required.\",\n  \"messageCode\": null,\n  \"status\": \"error\"\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","CreateEndCustomer"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[{"id":"bc7203e7-9308-46da-ab37-c6370976abae","name":"CreateEndCustomer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"orderNumber\": \"\",\n    \"orderEndCustomerName\": \"\",\n    \"orderStatusId\": [],\n    \"orderDateFrom\": \"\",\n    \"orderDateTo\": \"\",\n    \"orderManufactureId\": [],\n    \"pageSize\": 40,\n    \"pageId\": 1\n}"},"url":"{{server}}/v1/Orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"2066"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2024-02-08T15:56:23.2158354Z"},{"key":"Date","value":"Thu, 08 Feb 2024 15:56:19 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"Results\": [\n            {\n                \"orderId\": 372067,\n                \"orderNumber\": \"MCP-STD-372067\",\n                \"orderDate\": \"2024-02-07T15:33:31.947\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372066,\n                \"orderNumber\": \"MCP-STD-372066\",\n                \"orderDate\": \"2024-02-07T15:05:16.103\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372065,\n                \"orderNumber\": \"MCP-STD-372065\",\n                \"orderDate\": \"2024-02-07T15:03:43.62\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372064,\n                \"orderNumber\": \"MCP-STD-372064\",\n                \"orderDate\": \"2024-02-07T12:03:05.367\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372063,\n                \"orderNumber\": \"MCP-STD-372063\",\n                \"orderDate\": \"2024-02-07T11:42:23.647\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372062,\n                \"orderNumber\": \"MCP-STD-372062\",\n                \"orderDate\": \"2024-02-07T10:55:05.267\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372061,\n                \"orderNumber\": \"MCP-STD-372061\",\n                \"orderDate\": \"2024-02-06T17:18:40.983\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372060,\n                \"orderNumber\": \"MCP-STD-372060\",\n                \"orderDate\": \"2024-02-06T14:28:33.087\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372059,\n                \"orderNumber\": \"MCP-STD-372059\",\n                \"orderDate\": \"2024-02-06T09:25:37.547\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372058,\n                \"orderNumber\": \"MCP-STD-372058\",\n                \"orderDate\": \"2024-02-05T16:16:05.75\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372057,\n                \"orderNumber\": \"MCP-STD-372057\",\n                \"orderDate\": \"2024-02-02T11:32:16.65\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372056,\n                \"orderNumber\": \"MCP-STD-372056\",\n                \"orderDate\": \"2024-02-01T16:57:53.553\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372055,\n                \"orderNumber\": \"MCP-STD-372055\",\n                \"orderDate\": \"2024-02-01T11:27:03.967\",\n                \"orderStatusId\": 7,\n                \"orderStatusName\": \"Req. Aprob. Cred.\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372054,\n                \"orderNumber\": \"MCP-STD-372054\",\n                \"orderDate\": \"2024-01-31T17:36:30.163\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372053,\n                \"orderNumber\": \"MCP-STD-372053\",\n                \"orderDate\": \"2024-01-31T17:33:01.363\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372052,\n                \"orderNumber\": \"MCP-STD-372052\",\n                \"orderDate\": \"2024-01-31T16:34:26.387\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372051,\n                \"orderNumber\": \"MCP-STD-372051\",\n                \"orderDate\": \"2024-01-31T16:19:51.397\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372048,\n                \"orderNumber\": \"MCP-STD-372048\",\n                \"orderDate\": \"2024-01-31T14:44:12.383\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372050,\n                \"orderNumber\": \"MCP-STD-372050\",\n                \"orderDate\": \"2024-01-31T13:35:12.043\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372049,\n                \"orderNumber\": \"MCP-STD-372049\",\n                \"orderDate\": \"2024-01-31T13:23:37.997\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372045,\n                \"orderNumber\": \"MCP-STD-372045\",\n                \"orderDate\": \"2024-01-31T09:46:51.183\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372047,\n                \"orderNumber\": \"MCP-STD-372047\",\n                \"orderDate\": \"2024-01-31T08:29:13.16\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372046,\n                \"orderNumber\": \"MCP-STD-372046\",\n                \"orderDate\": \"2024-01-31T08:19:26.693\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372044,\n                \"orderNumber\": \"MCP-STD-372044\",\n                \"orderDate\": \"2024-01-30T19:11:43.263\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372043,\n                \"orderNumber\": \"MCP-STD-372043\",\n                \"orderDate\": \"2024-01-30T16:51:31.277\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372042,\n                \"orderNumber\": \"MCP-STD-372042\",\n                \"orderDate\": \"2024-01-30T16:49:41.85\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372041,\n                \"orderNumber\": \"MCP-STD-372041\",\n                \"orderDate\": \"2024-01-30T16:47:23.713\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372040,\n                \"orderNumber\": \"MCP-STD-372040\",\n                \"orderDate\": \"2024-01-30T16:40:56.667\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372039,\n                \"orderNumber\": \"MCP-STD-372039\",\n                \"orderDate\": \"2024-01-30T16:36:52.033\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372038,\n                \"orderNumber\": \"MCP-STD-372038\",\n                \"orderDate\": \"2024-01-30T16:22:54.497\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372037,\n                \"orderNumber\": \"MCP-STD-372037\",\n                \"orderDate\": \"2024-01-30T15:53:19.74\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372036,\n                \"orderNumber\": \"MCP-STD-372036\",\n                \"orderDate\": \"2024-01-30T15:31:23.623\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372035,\n                \"orderNumber\": \"MCP-STD-372035\",\n                \"orderDate\": \"2024-01-30T15:14:40.173\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372034,\n                \"orderNumber\": \"MCP-STD-372034\",\n                \"orderDate\": \"2024-01-30T14:08:20.763\",\n                \"orderStatusId\": 3,\n                \"orderStatusName\": \"Aceptada\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372033,\n                \"orderNumber\": \"MCP-STD-372033\",\n                \"orderDate\": \"2024-01-22T16:43:21.623\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372032,\n                \"orderNumber\": \"MCP-STD-372032\",\n                \"orderDate\": \"2024-01-17T16:40:39.017\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 10,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Facu Andrade\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372031,\n                \"orderNumber\": \"CTX-STD-372031\",\n                \"orderDate\": \"2024-01-12T11:10:33.847\",\n                \"orderStatusId\": 1,\n                \"orderStatusName\": \"Pendiente\",\n                \"orderManufactureId\": 19,\n                \"orderManufactureName\": \"Citrix\",\n                \"orderEndCustomerId\": 123368,\n                \"orderEndCustomerName\": \"Dell SA\",\n                \"orderResellerTotal\": 500,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 158135,\n                \"orderEndCustomerCompanyName\": \"Dell SA\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372030,\n                \"orderNumber\": \"MCP-STD-372030\",\n                \"orderDate\": \"2024-01-04T16:52:05.237\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372029,\n                \"orderNumber\": \"MCP-STD-372029\",\n                \"orderDate\": \"2024-01-04T16:28:35.427\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372028,\n                \"orderNumber\": \"MCP-STD-372028\",\n                \"orderDate\": \"2024-01-04T16:20:34.543\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            }\n        ],\n        \"Count\": 40\n    },\n    \"message\": null,\n    \"messageCode\": null,\n    \"status\": \"success\"\n}"}],"_postman_id":"467b7eb3-ad78-490e-a445-9f1b58da29e9"},{"name":"CreateContactEndCustomer","event":[{"listen":"test","script":{"id":"9aa18814-4b07-4bcf-b5e2-387ea274768a","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"a023f196-a6c7-487d-8865-e5d2751baf8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id\": null,\n  \"partnerId\": null,\n  \"firstName\": \"Carlos\",\n  \"lastName\": \"Giraldo\",\n  \"email\": \"cgiraldo@licenciasonline.com\",\n  \"phoneNumber\": \"3235825179\",\n  \"companyId\": 105629,\n  \"identificationNumber\": \"9971788\",\n  \"countryId\": 8,\n  \"address\": {\n    \"id\": null,\n    \"street\": \"Calle 12\",\n    \"Province\": {\n      \"pvsId\": 181,\n      \"pvsDescripcion\": \"\",\n      \"pssId\": 8,\n      \"pssJurisdiccionId\": \"\"\n    },\n    \"phoneNumber\": \"3235825179\",\n    \"city\": \"Villamaria\",\n    \"postalCode\": \"176001\"\n  },\n  \"contactType\": \"EndCustomer\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/CreateContactEndCustomer","description":"<h2 id=\"📝-create-end-customer-contact\">📝 Create End Customer Contact</h2>\n<p>Creates a contact associated with an end customer.</p>\n<hr />\n<p><strong>Contact country (<strong><strong><code>countryId</code></strong></strong>):</strong></p>\n<ul>\n<li><p>Send an explicit <code>countryId</code> (recommended).</p>\n</li>\n<li><p>If omitted, the API tries to infer it from <code>address.Province</code> (province loaded from DB → <code>pssId</code>).</p>\n</li>\n<li><p>If no usable country is found → <code>countryId required.</code></p>\n</li>\n</ul>\n<p>Prefer <strong>camelCase</strong> in the JSON (<code>firstName</code>, <code>companyId</code>, <code>countryId</code>, <code>contactType</code>), aligned with the API contract.</p>\n<hr />\n<h3 id=\"📘-main-fields\">📘 Main fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>null</code></td>\n<td>number</td>\n<td>❌ No</td>\n<td>Leave <code>null</code> when creating.</td>\n</tr>\n<tr>\n<td><code>firstName</code></td>\n<td><code>Carlos</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>First name.</td>\n</tr>\n<tr>\n<td><code>lastName</code></td>\n<td><code>Giraldo</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Last name.</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td><code>cgiraldo@licenciasonline.com</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Valid email. Duplicate email + company + partner → SMH business error.</td>\n</tr>\n<tr>\n<td><code>phoneNumber</code></td>\n<td><code>3235825179</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Phone number.</td>\n</tr>\n<tr>\n<td><code>companyId</code></td>\n<td><code>105629</code></td>\n<td>number</td>\n<td>✅ Yes</td>\n<td>Id of the created (or existing) EndCustomer. Must exist.</td>\n</tr>\n<tr>\n<td><code>identificationNumber</code></td>\n<td><code>9971788</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Contact document / tax id.</td>\n</tr>\n<tr>\n<td><code>countryId</code></td>\n<td><code>8</code></td>\n<td>number</td>\n<td>✅ Yes*</td>\n<td>Contact country. *Required unless the province from DB supplies <code>pssId</code>. Recommended to always send it.</td>\n</tr>\n<tr>\n<td><code>contactType</code></td>\n<td><code>EndCustomer</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Default: <code>\"EndCustomer\"</code>.</td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td><code>{ ... }</code></td>\n<td>object</td>\n<td>✅ Yes</td>\n<td>Contact address (see below).</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h4 id=\"📍-address-object\">📍 <code>address</code> object</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>null</code></td>\n<td>number</td>\n<td>❌ No</td>\n<td>Leave <code>null</code> when creating.</td>\n</tr>\n<tr>\n<td><code>street</code></td>\n<td><code>Calle 12</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Street / address line.</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td><code>Villamaria</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>City.</td>\n</tr>\n<tr>\n<td><code>postalCode</code></td>\n<td><code>176001</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Postal code.</td>\n</tr>\n<tr>\n<td><code>phoneNumber</code></td>\n<td><code>3235825179</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Address phone number.</td>\n</tr>\n<tr>\n<td><code>Province</code></td>\n<td><code>{ ... }</code></td>\n<td>object</td>\n<td>✅ Yes</td>\n<td>State / province.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"📍-addressprovince-object\">📍 <code>address.Province</code> object</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pvsId</code></td>\n<td><code>181</code></td>\n<td>number</td>\n<td>✅ Yes</td>\n<td>Province id (<code>GetStateByCountryId</code>).</td>\n</tr>\n<tr>\n<td><code>pvsDescripcion</code></td>\n<td><code>\"\"</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Optional / may be empty.</td>\n</tr>\n<tr>\n<td><code>pssId</code></td>\n<td><code>8</code></td>\n<td>number</td>\n<td>Conditional</td>\n<td>Country. If root <code>countryId</code> is missing, it can be used (via the province from DB) to resolve the country. Recommended: same value as <code>countryId</code>.</td>\n</tr>\n<tr>\n<td><code>pssJurisdiccionId</code></td>\n<td><code>\"\"</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Optional / may be empty.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"validation-errors-status-error\">Validation errors (<code>status: \"error\"</code>)</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Condition</th>\n<th><code>message</code></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Null / invalid body</td>\n<td><code>request invalid.</code></td>\n</tr>\n<tr>\n<td>Missing <code>companyId</code> or <code>&lt;= 0</code></td>\n<td><code>companyId required.</code></td>\n</tr>\n<tr>\n<td>Unknown <code>companyId</code></td>\n<td><code>companyId invalid.</code></td>\n</tr>\n<tr>\n<td>Missing <code>firstName</code></td>\n<td><code>firstName required.</code></td>\n</tr>\n<tr>\n<td>Missing <code>lastName</code></td>\n<td><code>lastName required.</code></td>\n</tr>\n<tr>\n<td>Missing <code>email</code></td>\n<td><code>email required.</code></td>\n</tr>\n<tr>\n<td>Invalid email format</td>\n<td><code>email invalid.</code></td>\n</tr>\n<tr>\n<td>Missing <code>phoneNumber</code></td>\n<td><code>phoneNumber required.</code></td>\n</tr>\n<tr>\n<td>Missing <code>address</code></td>\n<td><code>address required.</code></td>\n</tr>\n<tr>\n<td>Missing <code>address.street</code></td>\n<td><code>address.street required.</code></td>\n</tr>\n<tr>\n<td>Missing <code>address.city</code></td>\n<td><code>address.city required.</code></td>\n</tr>\n<tr>\n<td>Missing <code>address.postalCode</code></td>\n<td><code>address.postalCode required.</code></td>\n</tr>\n<tr>\n<td>Missing state / <code>pvsId</code> <code>&lt;= 0</code></td>\n<td><code>address.state required.</code></td>\n</tr>\n<tr>\n<td>Unknown <code>pvsId</code></td>\n<td><code>address.state invalid.</code></td>\n</tr>\n<tr>\n<td>No country (neither <code>countryId</code> nor province with country)</td>\n<td><code>countryId required.</code></td>\n</tr>\n<tr>\n<td>Unknown <code>countryId</code></td>\n<td><code>countryId invalid.</code></td>\n</tr>\n<tr>\n<td>Duplicate contact</td>\n<td><code>El contacto ya existe para este partner</code> <em>(SMH message)</em></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-error-response\">Example error response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": null,\n  \"message\": \"email invalid.\",\n  \"messageCode\": null,\n  \"status\": \"error\"\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","CreateContactEndCustomer"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[{"id":"a815d6ce-1625-4fb3-a2ad-df1b95078bea","name":"CreateContactEndCustomer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"orderNumber\": \"\",\n    \"orderEndCustomerName\": \"\",\n    \"orderStatusId\": [],\n    \"orderDateFrom\": \"\",\n    \"orderDateTo\": \"\",\n    \"orderManufactureId\": [],\n    \"pageSize\": 40,\n    \"pageId\": 1\n}"},"url":"{{server}}/v1/Orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"2066"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2024-02-08T15:56:23.2158354Z"},{"key":"Date","value":"Thu, 08 Feb 2024 15:56:19 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"Results\": [\n            {\n                \"orderId\": 372067,\n                \"orderNumber\": \"MCP-STD-372067\",\n                \"orderDate\": \"2024-02-07T15:33:31.947\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372066,\n                \"orderNumber\": \"MCP-STD-372066\",\n                \"orderDate\": \"2024-02-07T15:05:16.103\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372065,\n                \"orderNumber\": \"MCP-STD-372065\",\n                \"orderDate\": \"2024-02-07T15:03:43.62\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372064,\n                \"orderNumber\": \"MCP-STD-372064\",\n                \"orderDate\": \"2024-02-07T12:03:05.367\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372063,\n                \"orderNumber\": \"MCP-STD-372063\",\n                \"orderDate\": \"2024-02-07T11:42:23.647\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372062,\n                \"orderNumber\": \"MCP-STD-372062\",\n                \"orderDate\": \"2024-02-07T10:55:05.267\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372061,\n                \"orderNumber\": \"MCP-STD-372061\",\n                \"orderDate\": \"2024-02-06T17:18:40.983\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372060,\n                \"orderNumber\": \"MCP-STD-372060\",\n                \"orderDate\": \"2024-02-06T14:28:33.087\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372059,\n                \"orderNumber\": \"MCP-STD-372059\",\n                \"orderDate\": \"2024-02-06T09:25:37.547\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372058,\n                \"orderNumber\": \"MCP-STD-372058\",\n                \"orderDate\": \"2024-02-05T16:16:05.75\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372057,\n                \"orderNumber\": \"MCP-STD-372057\",\n                \"orderDate\": \"2024-02-02T11:32:16.65\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372056,\n                \"orderNumber\": \"MCP-STD-372056\",\n                \"orderDate\": \"2024-02-01T16:57:53.553\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372055,\n                \"orderNumber\": \"MCP-STD-372055\",\n                \"orderDate\": \"2024-02-01T11:27:03.967\",\n                \"orderStatusId\": 7,\n                \"orderStatusName\": \"Req. Aprob. Cred.\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372054,\n                \"orderNumber\": \"MCP-STD-372054\",\n                \"orderDate\": \"2024-01-31T17:36:30.163\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372053,\n                \"orderNumber\": \"MCP-STD-372053\",\n                \"orderDate\": \"2024-01-31T17:33:01.363\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372052,\n                \"orderNumber\": \"MCP-STD-372052\",\n                \"orderDate\": \"2024-01-31T16:34:26.387\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372051,\n                \"orderNumber\": \"MCP-STD-372051\",\n                \"orderDate\": \"2024-01-31T16:19:51.397\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372048,\n                \"orderNumber\": \"MCP-STD-372048\",\n                \"orderDate\": \"2024-01-31T14:44:12.383\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372050,\n                \"orderNumber\": \"MCP-STD-372050\",\n                \"orderDate\": \"2024-01-31T13:35:12.043\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372049,\n                \"orderNumber\": \"MCP-STD-372049\",\n                \"orderDate\": \"2024-01-31T13:23:37.997\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372045,\n                \"orderNumber\": \"MCP-STD-372045\",\n                \"orderDate\": \"2024-01-31T09:46:51.183\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372047,\n                \"orderNumber\": \"MCP-STD-372047\",\n                \"orderDate\": \"2024-01-31T08:29:13.16\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372046,\n                \"orderNumber\": \"MCP-STD-372046\",\n                \"orderDate\": \"2024-01-31T08:19:26.693\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372044,\n                \"orderNumber\": \"MCP-STD-372044\",\n                \"orderDate\": \"2024-01-30T19:11:43.263\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 2,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": false,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372043,\n                \"orderNumber\": \"MCP-STD-372043\",\n                \"orderDate\": \"2024-01-30T16:51:31.277\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372042,\n                \"orderNumber\": \"MCP-STD-372042\",\n                \"orderDate\": \"2024-01-30T16:49:41.85\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372041,\n                \"orderNumber\": \"MCP-STD-372041\",\n                \"orderDate\": \"2024-01-30T16:47:23.713\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372040,\n                \"orderNumber\": \"MCP-STD-372040\",\n                \"orderDate\": \"2024-01-30T16:40:56.667\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372039,\n                \"orderNumber\": \"MCP-STD-372039\",\n                \"orderDate\": \"2024-01-30T16:36:52.033\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372038,\n                \"orderNumber\": \"MCP-STD-372038\",\n                \"orderDate\": \"2024-01-30T16:22:54.497\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372037,\n                \"orderNumber\": \"MCP-STD-372037\",\n                \"orderDate\": \"2024-01-30T15:53:19.74\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372036,\n                \"orderNumber\": \"MCP-STD-372036\",\n                \"orderDate\": \"2024-01-30T15:31:23.623\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372035,\n                \"orderNumber\": \"MCP-STD-372035\",\n                \"orderDate\": \"2024-01-30T15:14:40.173\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372034,\n                \"orderNumber\": \"MCP-STD-372034\",\n                \"orderDate\": \"2024-01-30T14:08:20.763\",\n                \"orderStatusId\": 3,\n                \"orderStatusName\": \"Aceptada\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372033,\n                \"orderNumber\": \"MCP-STD-372033\",\n                \"orderDate\": \"2024-01-22T16:43:21.623\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372032,\n                \"orderNumber\": \"MCP-STD-372032\",\n                \"orderDate\": \"2024-01-17T16:40:39.017\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 10,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Facu Andrade\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372031,\n                \"orderNumber\": \"CTX-STD-372031\",\n                \"orderDate\": \"2024-01-12T11:10:33.847\",\n                \"orderStatusId\": 1,\n                \"orderStatusName\": \"Pendiente\",\n                \"orderManufactureId\": 19,\n                \"orderManufactureName\": \"Citrix\",\n                \"orderEndCustomerId\": 123368,\n                \"orderEndCustomerName\": \"Dell SA\",\n                \"orderResellerTotal\": 500,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 158135,\n                \"orderEndCustomerCompanyName\": \"Dell SA\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372030,\n                \"orderNumber\": \"MCP-STD-372030\",\n                \"orderDate\": \"2024-01-04T16:52:05.237\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372029,\n                \"orderNumber\": \"MCP-STD-372029\",\n                \"orderDate\": \"2024-01-04T16:28:35.427\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            },\n            {\n                \"orderId\": 372028,\n                \"orderNumber\": \"MCP-STD-372028\",\n                \"orderDate\": \"2024-01-04T16:20:34.543\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 251,\n                \"orderManufactureName\": \"Microsoft CSP for VARs\",\n                \"orderEndCustomerId\": 122344,\n                \"orderEndCustomerName\": \"LautaTest\",\n                \"orderResellerTotal\": 1.3,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"UY\",\n                \"countryName\": \"Uruguay\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true,\n                \"orderEndCustomerCompanyId\": 155841,\n                \"orderEndCustomerCompanyName\": \"LautaTest\",\n                \"isCustomerDeprecated\": false,\n                \"vendorName\": \"Alex Testing\",\n                \"canPayWithAmex\": null\n            }\n        ],\n        \"Count\": 40\n    },\n    \"message\": null,\n    \"messageCode\": null,\n    \"status\": \"success\"\n}"}],"_postman_id":"a023f196-a6c7-487d-8865-e5d2751baf8a"}],"id":"72b578e4-d9f3-439e-ab1e-096e916c29bf","description":"<p>Create the company, then the contact. Country/state ids come from Catalogs.</p>\n<ol>\n<li><p>GetCountries → country id</p>\n</li>\n<li><p>GetStateByCountryId → province id</p>\n</li>\n<li><p>CreateEndCustomer (companyId null)</p>\n</li>\n<li><p>CreateContactEndCustomer → id for CreateOrder</p>\n</li>\n</ol>\n","_postman_id":"72b578e4-d9f3-439e-ab1e-096e916c29bf","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}}},{"name":"Companies","event":[{"listen":"test","script":{"id":"3af4b14d-2346-4791-aa4a-986f186759c2","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"482b2c4c-caa0-44c4-8aa7-0b0da13df351","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Companies/Search?searchValue=&pagesize=40&pageid=1","description":"<p>Lists end-customer companies of the partner in the token.</p>\n<p>Use <code>data.Results[].id</code> as <code>companyId</code> on CreateContactEndCustomer.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/Companies/Search\n</code></pre><h3 id=\"query-parameters\">Query parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>searchValue</code></td>\n<td><code>acme</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Fictitious name, legal name or taxId (<code>Contains</code>). Empty returns all.</td>\n</tr>\n<tr>\n<td><code>pagesize</code></td>\n<td><code>40</code></td>\n<td>int</td>\n<td>❌ No</td>\n<td>Page size.</td>\n</tr>\n<tr>\n<td><code>pageid</code></td>\n<td><code>1</code></td>\n<td>int</td>\n<td>❌ No</td>\n<td>1-based page.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>status</code></td>\n<td><code>success</code></td>\n<td>string</td>\n<td>Envelope: success, error, fatal.</td>\n</tr>\n<tr>\n<td><code>data.Count</code></td>\n<td><code>15</code></td>\n<td>int</td>\n<td>Total matches.</td>\n</tr>\n<tr>\n<td><code>data.Results</code></td>\n<td><code>[...]</code></td>\n<td>array</td>\n<td>Page of companies.</td>\n</tr>\n<tr>\n<td><code>data.Results[].id</code></td>\n<td><code>105629</code></td>\n<td>int</td>\n<td>Company id. Use it as <code>companyId</code> on CreateContactEndCustomer.</td>\n</tr>\n<tr>\n<td><code>data.Results[].name</code></td>\n<td><code>Acme SA</code></td>\n<td>string</td>\n<td>Legal name.</td>\n</tr>\n<tr>\n<td><code>data.Results[].fictitiousName</code></td>\n<td><code>Acme</code></td>\n<td>string</td>\n<td>Trade name.</td>\n</tr>\n<tr>\n<td><code>data.Results[].taxId</code></td>\n<td><code>890800960-3</code></td>\n<td>string</td>\n<td>Tax id.</td>\n</tr>\n</tbody>\n</table>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","Companies","Search"],"host":["api","licenciasonline","com"],"query":[{"description":{"content":"<p>fictitious name, name or taxId </p>\n","type":"text/plain"},"key":"searchValue","value":""},{"key":"pagesize","value":"40"},{"key":"pageid","value":"1"}],"variable":[]}},"response":[{"id":"6ea0d2a0-e074-4c96-a25f-25f4a7903fb5","name":"OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.licenciasonline.com/v1/Companies/Search?searchValue=acme&pagesize=40&pageid=1","protocol":"https","host":["api","licenciasonline","com"],"path":["v1","Companies","Search"],"query":[{"key":"searchValue","value":"acme","description":"fictitious name, name or taxId"},{"key":"pagesize","value":"40"},{"key":"pageid","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"8669"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-07-21T19:53:44.3046198Z"},{"key":"Date","value":"Tue, 21 Jul 2020 19:53:39 GMT"},{"key":"Set-Cookie","value":"NSC_ESNS=001e5f80-483d-1f17-9678-005056992556_2277173115_3540373755_00000000000001179816; Path=/; Expires=Tue, 21-Jul-2020 19:53:54 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"Results\": [\n      {\n        \"id\": 105629,\n        \"fictitiousName\": \"Acme\",\n        \"name\": \"Acme SA\",\n        \"taxId\": \"890800960-3\",\n        \"phoneNumber\": \"11223344\",\n        \"countryName\": \"Colombia\"\n      }\n    ],\n    \"Count\": 1\n  }\n}"},{"id":"84456ef3-7ef5-4197-8473-55f58e447d6a","name":"Empty","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.licenciasonline.com/v1/Companies/Search?searchValue=nomatch&pagesize=40&pageid=1","protocol":"https","host":["api","licenciasonline","com"],"path":["v1","Companies","Search"],"query":[{"key":"searchValue","value":"nomatch","description":"fictitious name, name or taxId"},{"key":"pagesize","value":"40"},{"key":"pageid","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"277"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-07-21T19:54:11.8871617Z"},{"key":"Date","value":"Tue, 21 Jul 2020 19:54:06 GMT"},{"key":"Set-Cookie","value":"NSC_ESNS=0016cce6-4859-1f17-9678-005056992556_0801171323_2071974139_00000000000001180190; Path=/; Expires=Tue, 21-Jul-2020 19:54:21 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"Results\": [],\n    \"Count\": 0\n  }\n}"},{"id":"b91ff0e4-8731-496c-bc71-4ef69c6f9cde","name":"Error - token","originalRequest":{"method":"GET","header":[],"url":"api.licenciasonline.com/v1/Companies/Search/*"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 05 Mar 2020 18:08:31 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Length","value":"16"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"WWW-Authenticate","value":"Bearer"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcanJvYmVydHNcRGVza3RvcFxib28uYXBpXExPTC5XZWIuQXBpXGFwaVxzbWhDb21wYW55XFNlYXJjaA==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-03-05T18:08:36.2559556Z"}],"cookie":[],"responseTime":null,"body":"Failed to login."}],"_postman_id":"482b2c4c-caa0-44c4-8aa7-0b0da13df351"},{"name":"Contacts","event":[{"listen":"test","script":{"id":"e4e5a5ab-be8c-4711-9f4b-eb74d6489a32","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"48ed907c-5467-4cb5-9966-9b3cf138809b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Contacts/Search?searchValue=&pagesize=40&pageid=1","description":"<p>Lists end-customer contacts of the partner in the token.</p>\n<p>Use <code>data.Results[].id</code> as <code>contact.id</code> on CreateOrder.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/Contacts/Search\n</code></pre><h3 id=\"query-parameters\">Query parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>searchValue</code></td>\n<td><code>juan</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>First name, last name or email (<code>Contains</code>). Empty or <code>*</code> returns all.</td>\n</tr>\n<tr>\n<td><code>pagesize</code></td>\n<td><code>40</code></td>\n<td>int</td>\n<td>❌ No</td>\n<td>Page size.</td>\n</tr>\n<tr>\n<td><code>pageid</code></td>\n<td><code>1</code></td>\n<td>int</td>\n<td>❌ No</td>\n<td>1-based page.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>status</code></td>\n<td><code>success</code></td>\n<td>string</td>\n<td>Envelope: success, error, fatal.</td>\n</tr>\n<tr>\n<td><code>data.Count</code></td>\n<td><code>15</code></td>\n<td>int</td>\n<td>Total matches (before paging).</td>\n</tr>\n<tr>\n<td><code>data.Results</code></td>\n<td><code>[...]</code></td>\n<td>array</td>\n<td>Page of contacts.</td>\n</tr>\n<tr>\n<td><code>data.Results[].id</code></td>\n<td><code>155524</code></td>\n<td>int</td>\n<td>Contact id. Use it as <code>contact.id</code> on CreateOrder.</td>\n</tr>\n<tr>\n<td><code>data.Results[].firstName</code></td>\n<td><code>Juan</code></td>\n<td>string</td>\n<td>First name.</td>\n</tr>\n<tr>\n<td><code>data.Results[].lastName</code></td>\n<td><code>Perez</code></td>\n<td>string</td>\n<td>Last name.</td>\n</tr>\n<tr>\n<td><code>data.Results[].email</code></td>\n<td><code>juan@contoso.com</code></td>\n<td>string</td>\n<td>Email.</td>\n</tr>\n<tr>\n<td><code>data.Results[].company.id</code></td>\n<td><code>84258</code></td>\n<td>int</td>\n<td>End-customer company id.</td>\n</tr>\n</tbody>\n</table>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","Contacts","Search"],"host":["api","licenciasonline","com"],"query":[{"description":{"content":"<p>first name, last name or email</p>\n","type":"text/plain"},"key":"searchValue","value":""},{"key":"pagesize","value":"40"},{"key":"pageid","value":"1"}],"variable":[]}},"response":[{"id":"886b7a98-54f1-4f4b-a0f7-01c1ba438492","name":"Error-Token","originalRequest":{"method":"GET","header":[],"url":"api.licenciasonline.com/v1/Contacts/Search/*"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 05 Mar 2020 18:07:28 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Length","value":"16"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"WWW-Authenticate","value":"Bearer"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcanJvYmVydHNcRGVza3RvcFxib28uYXBpXExPTC5XZWIuQXBpXGFwaVxzbWhDb250YWN0XFNlYXJjaA==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-03-05T18:07:33.1836488Z"}],"cookie":[],"responseTime":null,"body":"Failed to login."},{"id":"a0a185ea-f5a0-4a4b-84ef-6f211d584557","name":"Empty","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.licenciasonline.com/v1/Contacts/Search?searchValue=nomatch&pagesize=40&pageid=1","protocol":"https","host":["api","licenciasonline","com"],"path":["v1","Contacts","Search"],"query":[{"key":"searchValue","value":"nomatch","description":"first name, last name or email"},{"key":"pagesize","value":"40"},{"key":"pageid","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 05 Mar 2020 16:55:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Length","value":"86"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcanJvYmVydHNcRGVza3RvcFxib28uYXBpXExPTC5XZWIuQXBpXGFwaVxzbWhDb250YWN0XFNlYXJjaA==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-03-05T16:55:10.0616383Z"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"Results\": [],\n    \"Count\": 0\n  }\n}"},{"id":"b95b21c5-9967-42dd-a0ec-bda40ecdd925","name":"OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.licenciasonline.com/v1/Contacts/Search?searchValue=juan&pagesize=40&pageid=1","protocol":"https","host":["api","licenciasonline","com"],"path":["v1","Contacts","Search"],"query":[{"key":"searchValue","value":"juan","description":"first name, last name or email"},{"key":"pagesize","value":"40"},{"key":"pageid","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"14547"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-07-21T19:44:35.1986911Z"},{"key":"Date","value":"Tue, 21 Jul 2020 19:44:29 GMT"},{"key":"Set-Cookie","value":"NSC_ESNS=001b2bff-4618-1f17-9678-005056992556_1122066178_0375285159_00000000000001172745; Path=/; Expires=Tue, 21-Jul-2020 19:44:44 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"Results\": [\n      {\n        \"id\": 155524,\n        \"firstName\": \"Juan\",\n        \"lastName\": \"Perez\",\n        \"email\": \"juan@contoso.com\",\n        \"phoneNumber\": \"099123456\",\n        \"company\": {\n          \"id\": 105629,\n          \"fictitiousName\": \"Acme\",\n          \"name\": \"Acme SA\",\n          \"taxId\": \"890800960-3\"\n        }\n      }\n    ],\n    \"Count\": 1\n  }\n}"}],"_postman_id":"48ed907c-5467-4cb5-9966-9b3cf138809b"}],"id":"a6347ed7-deb6-42ca-9dc0-6e6e2115ff3b","description":"<p>Search companies/contacts, or create them under EndCustomer. Use Contacts id as contact.id on CreateOrder.</p>\n","event":[{"listen":"prerequest","script":{"id":"bc78fadc-cd49-4d91-b2b2-9d5f76b6149d","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"aa4fd385-e37b-4885-947e-60621edd5e9c","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"_postman_id":"a6347ed7-deb6-42ca-9dc0-6e6e2115ff3b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}}},{"name":"Orders","item":[{"name":"Orders Search","event":[{"listen":"test","script":{"id":"69e3ba1b-e9b7-439b-881e-9f0332831c1e","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"3e7129d5-bf73-42d7-859c-0da034a247e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"orderNumber\": \"\",\n\t\"orderEndCustomerName\": \"\",\n\t\"orderStatusId\": [],\n\t\"orderDateFrom\": \"\",\n\t\"orderDateTo\": \"\",\n\t\"pageSize\": 40,\n\t\"pageId\": 1\n}"},"url":"https://api.licenciasonline.com/v1/Orders","description":"<p>🔗 Endpoint</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /v1/Orders\n\n</code></pre><h3 id=\"📌-description\">📌 Description</h3>\n<p>This endpoint allows you to retrieve a list of your orders by applying optional filters such as order number, end customer name, status, and date range. Pagination is supported.</p>\n<h3 id=\"📥-request-body\">📥 Request Body</h3>\n<p>You must send a JSON object in the request body with the following fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>orderNumber</code></td>\n<td><code>\"CTX-STD-111111\"</code></td>\n<td><code>string</code></td>\n<td>Filter by the full order number (optional).</td>\n</tr>\n<tr>\n<td><code>orderEndCustomerName</code></td>\n<td><code>\"Pablo\"</code></td>\n<td><code>string</code></td>\n<td>Filter by end customer's name (optional).</td>\n</tr>\n<tr>\n<td><code>orderStatusId</code></td>\n<td><code>[1, 2]</code> or <code>[]</code></td>\n<td><code>array</code></td>\n<td>Filter by one or more order status IDs. Use <code>[]</code> to retrieve all statuses.</td>\n</tr>\n<tr>\n<td><code>orderDateFrom</code></td>\n<td><code>\"2020-02-11T00:00:00\"</code></td>\n<td><code>string</code> (ISO 8601)</td>\n<td>Start date to filter orders from (optional).</td>\n</tr>\n<tr>\n<td><code>orderDateTo</code></td>\n<td><code>\"2020-02-12T23:59:59\"</code></td>\n<td><code>string</code> (ISO 8601)</td>\n<td>End date to filter orders to (optional).</td>\n</tr>\n<tr>\n<td><code>pageSize</code></td>\n<td><code>40</code></td>\n<td><code>int</code></td>\n<td>Number of results per page.</td>\n</tr>\n<tr>\n<td><code>pageId</code></td>\n<td><code>1</code></td>\n<td><code>int</code></td>\n<td>Page number to retrieve.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📘-example-request-body\">📘 Example Request Body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"orderNumber\": \"\",\n  \"orderEndCustomerName\": \"\",\n  \"orderStatusId\": [],\n  \"orderDateFrom\": \"\",\n  \"orderDateTo\": \"\",\n  \"pageSize\": 40,\n  \"pageId\": 1\n}\n\n\n</code></pre>\n<h3 id=\"📌-order-status-codes\">📌 Order Status Codes</h3>\n<p>You can use the following status IDs in the orderStatusId filter:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status ID</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Pending</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Requires Commercial Approval</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Accepted</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Processed</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Closed</td>\n</tr>\n<tr>\n<td>6</td>\n<td>Rejected</td>\n</tr>\n<tr>\n<td>7</td>\n<td>Requires Credit Approval</td>\n</tr>\n<tr>\n<td>8</td>\n<td>Billed</td>\n</tr>\n<tr>\n<td>9</td>\n<td>Remitted</td>\n</tr>\n<tr>\n<td>10</td>\n<td>Requires Validation</td>\n</tr>\n<tr>\n<td>11</td>\n<td>RMA</td>\n</tr>\n<tr>\n<td>12</td>\n<td>Purchased</td>\n</tr>\n<tr>\n<td>13</td>\n<td>In Billing</td>\n</tr>\n<tr>\n<td>14</td>\n<td>In Remission</td>\n</tr>\n<tr>\n<td>15</td>\n<td>Activation</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","Orders"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[{"id":"a439056a-52d7-4ff6-bfbd-f131525c4bf2","name":"Orders-Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"orderNumber\": \"\",\n\t\"orderEndCustomerName\": \"\",\n\t\"orderStatusId\": [],\n\t\"orderDateFrom\": \"\",\n\t\"orderDateTo\": \"\",\n\t\"pageSize\": 40,\n\t\"pageId\": 1\n}"},"url":"api.licenciasonline.com/v1/Orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 04 Mar 2020 13:46:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Length","value":"21204"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcanJvYmVydHNcRGVza3RvcFxib28uYXBpXExPTC5XZWIuQXBpXGFwaVxzbWhPcmRlclxTZWFyY2g=?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-03-04T13:46:52.8910984Z"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"Results\": [\n            {\n                \"orderId\": 111111,\n                \"orderNumber\": \"VMW-STD-111111\",\n                \"orderDate\": \"2020-02-21T12:22:19.483\",\n                \"orderStatusId\": 1,\n                \"orderStatusName\": \"Pendiente\",\n                \"orderManufactureId\": 59,\n                \"orderManufactureName\": \"VMware\",\n                \"orderEndCustomerId\": 122184,\n                \"orderEndCustomerName\": \"Test 1\",\n                \"orderResellerTotal\": 73.78,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"CO\",\n                \"countryName\": \"Colombia\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": true,\n                \"hasBalanceToInvoice\": true\n            },\n            {\n                \"orderId\": 222222,\n                \"orderNumber\": \"PUV-STD-222222\",\n                \"orderDate\": \"2020-02-21T11:14:26.21\",\n                \"orderStatusId\": 10,\n                \"orderStatusName\": \"Req. Validación\",\n                \"orderManufactureId\": 129,\n                \"orderManufactureName\": \"LOL Educación\",\n                \"orderEndCustomerId\": 122269,\n                \"orderEndCustomerName\": \"Test 2\",\n                \"orderResellerTotal\": 3000,\n                \"orderEndCustomerTotal\": null,\n                \"countryCode\": \"AR\",\n                \"countryName\": \"Argentina\",\n                \"isStandard\": true,\n                \"isLoan\": false,\n                \"isPaid\": 0,\n                \"isLicenseAvailable\": false,\n                \"isLicenseReceived\": false,\n                \"canPayWithCreditCard\": false,\n                \"hasBalanceToInvoice\": true\n            }\n        ],\n        \"Count\": 2\n    },\n    \"message\": null,\n    \"messageCode\": null,\n    \"status\": \"success\"\n}"},{"id":"c405e1ca-53ac-4ee4-9cfb-71f3c44e1ad9","name":"Orders-TokenError-Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"orderNumber\": \"\",\n\t\"orderEndCustomerName\": \"\",\n\t\"orderStatusId\": [],\n\t\"orderDateFrom\": \"\",\n\t\"orderDateTo\": \"\",\n\t\"pageSize\": 40,\n\t\"pageId\": 1\n}"},"url":"api.licenciasonline.com/v1/Orders"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 05 Mar 2020 18:01:28 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Length","value":"16"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"WWW-Authenticate","value":"Bearer"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcanJvYmVydHNcRGVza3RvcFxib28uYXBpXExPTC5XZWIuQXBpXGFwaVxzbWhPcmRlclxTZWFyY2g=?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-03-05T18:01:28.4729289Z"}],"cookie":[],"responseTime":null,"body":"Failed to login."}],"_postman_id":"3e7129d5-bf73-42d7-859c-0da034a247e1"},{"name":"OrderById","event":[{"listen":"test","script":{"id":"66c12c6f-5aca-4a38-929d-89b11d5a07eb","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"81b2c33b-262a-47e5-8172-20238cb4c81c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Orders/:orderId","description":"<h3 id=\"🧾-get-order-details\">🧾 Get Order Details</h3>\n<p>Retrieves complete information about an order, including general data, end customer, reseller partner, delivery, payment method, products, consumptions (Azure, NCE, CSP), comments and more.</p>\n<h3 id=\"🔗-endpoint\">🔗 Endpoint</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/Orders/:orderId\n\n</code></pre><h3 id=\"🧩-path-parameters\">🧩 Path Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>orderId</code></td>\n<td>int</td>\n<td>The unique ID of the order.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"🧾response-fields\">🧾Response Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>number</code></td>\n<td><code>string</code></td>\n<td>Order number.</td>\n</tr>\n<tr>\n<td><code>brand</code></td>\n<td><code>object</code></td>\n<td>Manufacturer information (e.g. Microsoft, Adobe).</td>\n</tr>\n<tr>\n<td><code>country</code></td>\n<td><code>object</code></td>\n<td>Country details of the order.</td>\n</tr>\n<tr>\n<td><code>date</code></td>\n<td><code>string</code> (ISO 8601)</td>\n<td>Date when the order was created.</td>\n</tr>\n<tr>\n<td><code>endCustomer</code></td>\n<td><code>object</code></td>\n<td>Final customer information.</td>\n</tr>\n<tr>\n<td><code>partner</code></td>\n<td><code>object</code></td>\n<td>Partner (reseller) information.</td>\n</tr>\n<tr>\n<td><code>salesExecutive</code></td>\n<td><code>object</code></td>\n<td>Sales executive responsible for the order.</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>object</code></td>\n<td>Order status summary.</td>\n</tr>\n<tr>\n<td><code>deliveryAddress</code></td>\n<td><code>object</code></td>\n<td>Delivery instructions and shipping details.</td>\n</tr>\n<tr>\n<td><code>paymentMethod</code></td>\n<td><code>object</code></td>\n<td>Selected payment method.</td>\n</tr>\n<tr>\n<td><code>currency</code></td>\n<td><code>string</code></td>\n<td>Currency used in the order (e.g. \"USD\").</td>\n</tr>\n<tr>\n<td><code>nroAuthorization</code></td>\n<td><code>string</code></td>\n<td>Authorization number (if applicable).</td>\n</tr>\n<tr>\n<td><code>nroPurchaseOrder</code></td>\n<td><code>string</code></td>\n<td>Purchase order number from end customer.</td>\n</tr>\n<tr>\n<td><code>billedByLol</code></td>\n<td><code>boolean</code></td>\n<td>Indicates whether Licencias Online billed the customer.</td>\n</tr>\n<tr>\n<td><code>paid</code></td>\n<td><code>boolean</code></td>\n<td>Indicates whether the order is paid.</td>\n</tr>\n<tr>\n<td><code>comissionInfo</code></td>\n<td><code>object</code></td>\n<td>Commission and fee information for the partner.</td>\n</tr>\n<tr>\n<td><code>invoices</code></td>\n<td><code>array</code> of <code>object</code></td>\n<td>List of sub-orders (invoices or credits).</td>\n</tr>\n<tr>\n<td><code>comments</code></td>\n<td><code>array</code> of <code>object</code></td>\n<td>Comments and change history on the order.</td>\n</tr>\n<tr>\n<td><code>isLicenseAvailable</code></td>\n<td><code>boolean</code></td>\n<td>Indicates if licenses are available.</td>\n</tr>\n<tr>\n<td><code>priceLevel</code></td>\n<td><code>object</code></td>\n<td>Pricing level assigned to the order.</td>\n</tr>\n<tr>\n<td><code>orderLines</code></td>\n<td><code>array</code> of <code>object</code></td>\n<td>Product lines within the order.</td>\n</tr>\n<tr>\n<td><code>exchangeRate</code></td>\n<td><code>decimal</code></td>\n<td>Exchange rate used in the order.</td>\n</tr>\n<tr>\n<td><code>modifiedExchangeRate</code></td>\n<td><code>decimal</code></td>\n<td>Modified exchange rate (if any).</td>\n</tr>\n<tr>\n<td><code>surchargePercentage</code></td>\n<td><code>decimal</code></td>\n<td>Surcharge percentage applied.</td>\n</tr>\n<tr>\n<td><code>modifiedSurchargePercentage</code></td>\n<td><code>decimal</code></td>\n<td>Modified surcharge percentage.</td>\n</tr>\n<tr>\n<td><code>partnerTotal</code></td>\n<td><code>decimal</code></td>\n<td>Total amount for the partner.</td>\n</tr>\n<tr>\n<td><code>surchargeTotal</code></td>\n<td><code>decimal</code></td>\n<td>Total surcharge amount.</td>\n</tr>\n<tr>\n<td><code>total</code></td>\n<td><code>decimal</code></td>\n<td>Final total to be paid by the customer.</td>\n</tr>\n<tr>\n<td><code>azureConsumption</code></td>\n<td><code>array</code> of <code>object</code></td>\n<td>Microsoft Azure usage consumption items.</td>\n</tr>\n<tr>\n<td><code>azurePlanConsumption</code></td>\n<td><code>array</code> of <code>object</code></td>\n<td>Azure Plan usage items.</td>\n</tr>\n<tr>\n<td><code>nceConsumption</code></td>\n<td><code>object</code></td>\n<td>New Commerce Experience (NCE) subscription usage.</td>\n</tr>\n<tr>\n<td><code>cspOfficeConsumption</code></td>\n<td><code>array</code> of <code>object</code></td>\n<td>Office 365 consumption items under CSP.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"✅-success-response\">✅ Success Response</h3>\n<h4 id=\"code-200-ok\">Code: 200 OK</h4>\n<p>Content:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"number\": \"ORD-0001\",\n  \"brand\": {\n    \"name\": \"Microsoft\"\n  },\n  \"country\": {\n    \"description\": \"Argentina\",\n    \"code\": \"AR\"\n  },\n  \"date\": \"2024-08-20T00:00:00\",\n  \"endCustomer\": {\n    \"name\": \"ACME Corp\",\n    \"email\": \"cliente@acme.com\",\n    \"cuit\": \"30-12345678-9\",\n    \"phone\": \"+54 11 1234 5678\",\n    \"contactName\": \"Juan Pérez\",\n    \"address\": {\n      \"dmcId\": 1,\n      \"dmcPaisId\": 1,\n      \"dmcDomicilio1\": \"Av. Siempreviva 742\",\n      \"dmcDomicilio2\": null,\n      \"dmcDomicilio3\": null,\n      \"dmcCodigoPostal\": \"1000\",\n      \"dmcCiudad\": \"Buenos Aires\",\n      \"dmcProvincia\": \"Buenos Aires\",\n      \"dmcProvinciaId\": 1,\n      \"dmcLocalidadId\": 10\n    }\n  },\n  \"partner\": {\n    \"customerNumber\": \"RES-001\",\n    \"name\": \"Reseller SA\",\n    \"taxId\": \"30-98765432-1\",\n    \"country\": \"Argentina\",\n    \"countryCode\": \"AR\",\n    \"email\": \"ventas@reseller.com\",\n    \"phoneNumber\": \"+54 11 4321 9876\",\n    \"city\": \"Buenos Aires\",\n    \"province\": \"Buenos Aires\",\n    \"address\": \"Av. Corrientes 123\"\n  },\n  \"salesExecutive\": {\n    \"firstName\": \"Lucía\",\n    \"lastName\": \"Rodríguez\",\n    \"email\": \"lucia@reseller.com\"\n  },\n  \"status\": {\n    \"description\": \"Approved\"\n  },\n  \"deliveryAddress\": {\n    \"deliverySchedule\": \"9:00 to 18:00\",\n    \"deliveryDays\": \"Monday to Friday\",\n    \"contactDelivery\": \"Pedro Gómez\",\n    \"transport\": {\n      \"businessName\": \"OCA\",\n      \"erpCode\": \"TRN001\",\n      \"trackingPage\": \"http://tracking.oca.com/TRN001\"\n    }\n  },\n  \"paymentMethod\": {\n    \"description\": \"Bank Transfer\"\n  },\n  \"currency\": \"USD\",\n  \"nroAuthorization\": \"AUTH-123\",\n  \"nroPurchaseOrder\": \"PO-456\",\n  \"billedByLol\": true,\n  \"paid\": false,\n  \"comissionInfo\": {\n    \"endUserPrice\": 1000.0,\n    \"resellerPrice\": 800.0,\n    \"grossIncome\": 200.0,\n    \"feePercentage\": 10.0,\n    \"feeAmount\": 20.0,\n    \"netIncome\": 180.0,\n    \"endUserCollectionDate\": \"2024-08-30T00:00:00\",\n    \"paymentDate\": \"2024-09-05T00:00:00\"\n  },\n  \"invoices\": [\n    {\n      \"subOrderId\": 1,\n      \"invoiceNumber\": \"INV-001\",\n      \"tipoCambioFacturacion\": 920.0,\n      \"creditNumber\": \"NC-001\",\n      \"invoiceFileAvailable\": true,\n      \"creditFileAvailable\": false,\n      \"statusId\": 2,\n      \"statusName\": \"Invoiced\",\n      \"invoiceDate\": \"2024-08-25T00:00:00\",\n      \"paymentDate\": \"2024-08-28T00:00:00\",\n      \"exchangeRates\": []\n    }\n  ],\n  \"comments\": [\n    {\n      \"date\": \"2024-08-22T15:00:00\",\n      \"status\": \"Approved\",\n      \"userName\": \"admin@lol.com\",\n      \"comment\": \"Confirmed with provider\",\n      \"onRemito\": false,\n      \"onInvoice\": true\n    }\n  ],\n  \"isLicenseAvailable\": true,\n  \"priceLevel\": {\n    \"description\": \"Gold Tier\"\n  },\n  \"orderLines\": [\n    {\n      \"lineId\": 1,\n      \"product\": {\n        \"productId\": 1001,\n        \"sku\": \"MS-365-BUS\",\n        \"description\": \"Microsoft 365 Business\",\n        \"type\": \"Subscription\",\n        \"idManufacturer\": 1\n      },\n      \"quantity\": 10,\n      \"resellerPrice\": 80.0,\n      \"customerPrice\": 100.0,\n      \"surcharge\": 5.0,\n      \"subTotal\": 1000.0\n    }\n  ],\n  \"exchangeRate\": 920.0,\n  \"modifiedExchangeRate\": 925.0,\n  \"surchargePercentage\": 5.0,\n  \"modifiedSurchargePercentage\": 6.0,\n  \"partnerTotal\": 800.0,\n  \"surchargeTotal\": 50.0,\n  \"total\": 1000.0,\n  \"azureConsumption\": [],\n  \"azurePlanConsumption\": [],\n  \"nceConsumption\": {\n    \"orderId\": 1,\n    \"items\": []\n  },\n  \"cspOfficeConsumption\": []\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","Orders",":orderId"],"host":["api","licenciasonline","com"],"query":[],"variable":[{"description":{"content":"<p>Order id Lol</p>\n","type":"text/plain"},"type":"string","value":"897720","key":"orderId"}]}},"response":[{"id":"062b765c-b0c4-4599-a6a7-14b46a1a4f06","name":"OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api-stg.licenciasonline.com/v1/Orders/:orderId","protocol":"https","host":["api-stg","licenciasonline","com"],"path":["v1","Orders",":orderId"],"variable":[{"key":"orderId","value":"363114","description":"Order id Lol"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"1777"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-07-21T19:35:13.6216095Z"},{"key":"Date","value":"Tue, 21 Jul 2020 19:35:08 GMT"},{"key":"Set-Cookie","value":"NSC_ESNS=0017e91e-43e7-1f17-9678-005056992556_4112545356_2711560369_00000000000001163018; Path=/; Expires=Tue, 21-Jul-2020 19:35:23 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"number\": \"ISV-STD-363114\",\n        \"brand\": {\n            \"name\": \"Microsoft ISV\"\n        },\n        \"country\": {\n            \"description\": \"Argentina\",\n            \"code\": \"AR\"\n        },\n        \"date\": \"2020-02-19T10:17:27.903\",\n        \"endCustomer\": {\n            \"name\": \"CUSTOMER NAME\",\n            \"email\": \"email@customer.com\",\n            \"cuit\": \"xxxxxxxx\",\n            \"phone\": \"xxx-xxxxx\",\n            \"contactName\": \"John Smith\",\n            \"address\": null\n        },\n        \"partner\": {\n            \"customerNumber\": \"3535\",\n            \"name\": \"FERNANDEZ DAMIAN\",\n            \"taxId\": \"20-21111119-7\",\n            \"country\": \"Argentina\",\n            \"countryCode\": \"AR\",\n            \"email\": \"email@partner.com\",\n            \"phoneNumber\": \"1111-1111\",\n            \"city\": \"CIUDAD AUTONOMA DE BUENOS AIRES\",\n            \"province\": \"CIUDAD AUTÓNOMA DE BUENOS AIRES\",\n            \"address\": \"Av 9 de Julio 1000\"\n        },\n        \"salesExecutive\": {\n            \"firstName\": \"Nombre\",\n            \"lastName\": \"Apellido\",\n            \"email\": \"email@empresa.com\"\n        },\n        \"status\": {\n            \"description\": \"Req. Validación\"\n        },\n        \"deliveryAddress\": null,\n        \"paymentMethod\": {\n            \"description\": \"EFE - Efectivo\"\n        },\n        \"currency\": \"Dolar\",\n        \"nroAuthorization\": \"\",\n        \"nroPurchaseOrder\": \"\",\n        \"billedByLol\": false,\n        \"paid\": false,\n        \"comissionInfo\": null,\n        \"invoices\": [],\n        \"comments\": [\n            {\n                \"date\": \"2020-02-19T10:17:58.247\",\n                \"status\": \"Req. Validación\",\n                \"userName\": \"xxxxxx\",\n                \"comment\": \"\",\n                \"onRemito\": false,\n                \"onInvoice\": false\n            },\n            {\n                \"date\": \"2020-02-19T10:17:27.903\",\n                \"status\": \"Pendiente\",\n                \"userName\": \"xxxxxxx\",\n                \"comment\": \"Alta de Orden\",\n                \"onRemito\": false,\n                \"onInvoice\": false\n            }\n        ],\n        \"isLicenseAvailable\": false,\n        \"priceLevel\": {\n            \"description\": \"No Level\"\n        },\n        \"orderLines\": [\n            {\n                \"lineId\": 789800,\n                \"product\": {\n                    \"productId\": 6880337,\n                    \"sku\": \"NL7-00044\",\n                    \"description\": \"VSEnt 2017 ALNG Emb MVL ISV\",\n                    \"type\": \"Licencia Nueva\"\n                },\n                \"quantity\": 5,\n                \"resellerPrice\": 5164.79,\n                \"customerPrice\": 0,\n                \"surcharge\": 0,\n                \"subTotal\": 25823.95\n            }\n        ],\n        \"exchangeRate\": 0,\n        \"modifiedExchangeRate\": 0,\n        \"surchargePercentage\": 0,\n        \"modifiedSurchargePercentage\": 0,\n        \"partnerTotal\": 25823.95,\n        \"surchargeTotal\": 0,\n        \"total\": 25823.95\n    },\n    \"message\": null,\n    \"messageCode\": null,\n    \"status\": \"success\"\n}"},{"id":"6af94082-e697-4992-bad6-a2409e8a47d3","name":"Error-Token","originalRequest":{"method":"GET","header":[],"url":"https://api-stg.licenciasonline.com/v1/Orders/363114"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"16"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"WWW-Authenticate","value":"Bearer"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-07-21T19:32:42.7437716Z"},{"key":"Date","value":"Tue, 21 Jul 2020 19:32:37 GMT"},{"key":"Set-Cookie","value":"NSC_ESNS=00136c81-4350-1f17-9678-005056992556_1826359800_0946030196_00000000000001160814; Path=/; Expires=Tue, 21-Jul-2020 19:32:52 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"Failed to login."},{"id":"18b53b5b-a804-4364-bb48-c42f5ed76573","name":"Error-OrdenNotExist","originalRequest":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Orders/363"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"95"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-07-21T19:31:48.9116539Z"},{"key":"Date","value":"Tue, 21 Jul 2020 19:31:43 GMT"},{"key":"Set-Cookie","value":"NSC_ESNS=00160e64-431a-1f17-9678-005056992556_1721124866_0841576457_00000000000001160068; Path=/; Expires=Tue, 21-Jul-2020 19:31:58 GMT"},{"key":"Strict-Transport-Security","value":"max-age=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": null,\n    \"message\": \"La orden no pertenece al partner.\",\n    \"messageCode\": null,\n    \"status\": \"error\"\n}"}],"_postman_id":"81b2c33b-262a-47e5-8172-20238cb4c81c"},{"name":"CreateOrder","event":[{"listen":"test","script":{"id":"2b676991-2e22-4367-bb43-8241a0fadaee","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"9b68739a-1744-424f-b1d4-2f4709df9ee5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"countryCode\": \"UY\",\r\n  \"salesMan\": \"sales@partner.com\",\r\n  \"contact\": {\r\n    \"id\": 12345\r\n  },\r\n  \"billing\": {\r\n    \"authorizationNumber\": \"\",\r\n    \"isThirdPartyBilling\": false,\r\n    \"paymentMethodId\": 1,\r\n    \"purchaseOrderNumber\": \"PO-001\"\r\n  },\r\n  \"csp\": {\r\n    \"customer\": {\r\n      \"domain\": \"contoso.onmicrosoft.com\"\r\n    }\r\n  },\r\n  \"items\": [\r\n    {\r\n      \"quantity\": 1,\r\n      \"cspBillingCycle\": 2,\r\n      \"product\": {\r\n        \"id\": 10000001\r\n      }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/CreateOrder","description":"<h3 id=\"📌-description\">📌 Description</h3>\n<p>Creates a new order in the system. This includes general order info, contact, billing, optional CSP customer info, and a list of items.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>countryCode</code></td>\n<td><code>UY</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>ISO country code (e.g., <code>AR</code>, <code>UY</code>).</td>\n</tr>\n<tr>\n<td><code>salesMan</code></td>\n<td><code>sales@partner.com</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Salesperson email or identifier.</td>\n</tr>\n<tr>\n<td><code>contact</code></td>\n<td><code>{ \"id\": 12345 }</code></td>\n<td>object</td>\n<td>✅ Yes</td>\n<td>If <code>id</code> is provided, it reuses the existing contact. If <code>id</code> is null, full contact data is required.</td>\n</tr>\n<tr>\n<td><code>billing</code></td>\n<td><code>{ ... }</code></td>\n<td>object</td>\n<td>✅ Yes</td>\n<td>Billing information.</td>\n</tr>\n<tr>\n<td><code>csp</code></td>\n<td><code>{ \"customer\": { \"domain\": \"contoso.onmicrosoft.com\" } }</code></td>\n<td>object</td>\n<td>❌ No</td>\n<td>Required only if the order is for CSP; supports existing tenant by <code>domain</code>/<code>customerId</code> or creation with full data.</td>\n</tr>\n<tr>\n<td><code>items</code></td>\n<td><code>[...]</code></td>\n<td>array</td>\n<td>✅ Yes</td>\n<td>At least one item with valid quantity and product id.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📇-contact-object\">📇 Contact object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>12345</code></td>\n<td>int?</td>\n<td>❌ Optional</td>\n<td>If present, the system loads that contact and its company; other fields can be omitted.</td>\n</tr>\n<tr>\n<td><code>countryCode</code></td>\n<td><code>UY</code></td>\n<td>string</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>companyName</code></td>\n<td><code>Acme SA</code></td>\n<td>string</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td>Required when creating contact/company.</td>\n</tr>\n<tr>\n<td><code>taxId</code></td>\n<td><code>890800960-3</code></td>\n<td>string</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td>Tax/VAT id for the company when creating.</td>\n</tr>\n<tr>\n<td><code>contactName</code></td>\n<td><code>Juan</code></td>\n<td>string</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>contactLastName</code></td>\n<td><code>Perez</code></td>\n<td>string</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td><code>juan@contoso.com</code></td>\n<td>string</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>stateId</code></td>\n<td><code>181</code></td>\n<td>int</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td>Must match a valid province/state id.</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td><code>Montevideo</code></td>\n<td>string</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td><code>Calle 12</code></td>\n<td>string</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>zipCode</code></td>\n<td><code>11000</code></td>\n<td>string</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>phone</code></td>\n<td><code>099123456</code></td>\n<td>string</td>\n<td>✅ Yes (if <code>id</code> is null)</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"💳-billing-object\">💳 Billing object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>authorizationNumber</code></td>\n<td><code>\"\"</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Can be empty string.</td>\n</tr>\n<tr>\n<td><code>isThirdPartyBilling</code></td>\n<td><code>false</code></td>\n<td>bool</td>\n<td>✅ Yes</td>\n<td>true or false.</td>\n</tr>\n<tr>\n<td><code>paymentMethodId</code></td>\n<td><code>1</code></td>\n<td>int</td>\n<td>✅ Yes</td>\n<td>ID of the selected payment method.</td>\n</tr>\n<tr>\n<td><code>purchaseOrderNumber</code></td>\n<td><code>PO-001</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>External PO number.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"☁️-csp-object-optional\">☁️ CSP object (optional)</h3>\n<p>Existing tenant: csp.customer.domain only. New tenant: full customer.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>customer</code></td>\n<td><code>{ \"domain\": \"contoso.onmicrosoft.com\" }</code></td>\n<td>object</td>\n<td>✅ Yes (if <code>csp</code> is sent)</td>\n<td>See <strong>CSP Customer</strong> below.</td>\n</tr>\n<tr>\n<td><code>emailSendCredentials</code></td>\n<td><code>admin@contoso.com</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Email where credentials will be sent (if applicable).</td>\n</tr>\n<tr>\n<td><code>showCredentials</code></td>\n<td><code>false</code></td>\n<td>bool</td>\n<td>❌ No</td>\n<td>Show generated credentials in response (if applicable).</td>\n</tr>\n</tbody>\n</table>\n</div><p>CSP Customer (MsCspCustomerData)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>domain</code></td>\n<td><code>contoso.onmicrosoft.com</code></td>\n<td>string</td>\n<td>✅ Yes (use/create)</td>\n<td>For default domain, accept <code>prefix</code> or <code>prefix.onmicrosoft.com</code>.</td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td><code>Calle 12</code></td>\n<td>string</td>\n<td>✅ Yes (create only)</td>\n<td>Required only if creating.</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td><code>Montevideo</code></td>\n<td>string</td>\n<td>✅ Yes (create only)</td>\n<td>Required only if creating.</td>\n</tr>\n<tr>\n<td><code>companyName</code></td>\n<td><code>Contoso</code></td>\n<td>string</td>\n<td>✅ Yes (create only)</td>\n<td>Required only if creating.</td>\n</tr>\n<tr>\n<td><code>countryCode</code></td>\n<td><code>UY</code></td>\n<td>string</td>\n<td>✅ Yes (create only)</td>\n<td>Required only if creating.</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td><code>admin@contoso.com</code></td>\n<td>string</td>\n<td>✅ Yes (create only)</td>\n<td>Required only if creating.</td>\n</tr>\n<tr>\n<td><code>firstName</code></td>\n<td><code>Juan</code></td>\n<td>string</td>\n<td>✅ Yes (create only)</td>\n<td>Required only if creating.</td>\n</tr>\n<tr>\n<td><code>lastName</code></td>\n<td><code>Perez</code></td>\n<td>string</td>\n<td>✅ Yes (create only)</td>\n<td>Required only if creating.</td>\n</tr>\n<tr>\n<td><code>phoneNumber</code></td>\n<td><code>099123456</code></td>\n<td>string</td>\n<td>✅ Yes (create only)</td>\n<td>Required only if creating.</td>\n</tr>\n<tr>\n<td><code>postalCode</code></td>\n<td><code>11000</code></td>\n<td>string</td>\n<td>✅ Yes (create only)</td>\n<td>Required only if creating.</td>\n</tr>\n<tr>\n<td><code>state</code></td>\n<td><code>Montevideo</code></td>\n<td>string</td>\n<td>✅ Yes (create only)</td>\n<td>Required only if creating.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📦-items-array\">📦 Items array</h3>\n<p>Each item must have:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>quantity</code></td>\n<td><code>1</code></td>\n<td>int</td>\n<td>✅ Yes</td>\n<td>Must be &gt; 0.</td>\n</tr>\n<tr>\n<td><code>product.id</code></td>\n<td><code>10000001</code></td>\n<td>int</td>\n<td>✅ Yes</td>\n<td>Product identifier.</td>\n</tr>\n<tr>\n<td><code>partnerPrice</code></td>\n<td><code>10.50</code></td>\n<td>decimal</td>\n<td>❌ No</td>\n<td>Optional price override.</td>\n</tr>\n<tr>\n<td><code>finalPrice</code></td>\n<td><code>12.00</code></td>\n<td>decimal</td>\n<td>❌ No</td>\n<td>Optional price override.</td>\n</tr>\n<tr>\n<td><code>cspBillingCycle</code></td>\n<td><code>2</code></td>\n<td>int</td>\n<td>❌ No</td>\n<td>Required only for CSP products.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📘-response\">📘 Response</h3>\n<p>HTTP is usually <strong>200</strong>. Business result is the envelope <code>status</code>: <code>success</code> | <code>error</code> | <code>fatal</code>.<br /><code>success</code> means the <strong>order was persisted</strong>. It does <strong>not</strong> mean the Microsoft tenant, MCA, or subscriptions are ready.</p>\n<p>CreateOrder <strong>never</strong> returns <code>\"status\": \"pending\"</code>. Poll provisioning with:</p>\n<p><code>GET /v1/OrderProvisioning?orderNumber={data.orders[0].number}</code></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>status</code></td>\n<td><code>success</code></td>\n<td>string</td>\n<td>Envelope only: <code>success</code>, <code>error</code>, <code>fatal</code>.</td>\n</tr>\n<tr>\n<td><code>message</code></td>\n<td><code>null</code></td>\n<td>string</td>\n<td>null</td>\n</tr>\n<tr>\n<td><code>data.orders[].number</code></td>\n<td><code>MCP-STD-1053345</code></td>\n<td>string</td>\n<td>BOO order number. Use it on OrderProvisioning.</td>\n</tr>\n<tr>\n<td><code>data.orders[].statusId</code></td>\n<td><code>10</code></td>\n<td>int</td>\n<td>BOO order status (e.g. <code>10</code> = Requires Validation).</td>\n</tr>\n<tr>\n<td><code>data.orders[].manufacturer</code></td>\n<td><code>Microsoft CSP for VARs</code></td>\n<td>string</td>\n<td>Brand of the order.</td>\n</tr>\n<tr>\n<td><code>data.orders[].subscriptions</code></td>\n<td><code>[...]</code></td>\n<td>array</td>\n<td>CSP lines. Empty or <code>id: null</code> while Microsoft has not created the subscription yet.</td>\n</tr>\n<tr>\n<td><code>data.orders[].subscriptions[].id</code></td>\n<td><code>null</code></td>\n<td>guid</td>\n<td>null</td>\n</tr>\n<tr>\n<td><code>data.orders[].subscriptions[].sku</code></td>\n<td><code>CFQ7TTC0LHSF:0001:P1M</code></td>\n<td>string</td>\n<td>Offer sku.</td>\n</tr>\n<tr>\n<td><code>data.orders[].subscriptions[].offerName</code></td>\n<td><code>Power BI Pro</code></td>\n<td>string</td>\n<td>Offer name.</td>\n</tr>\n<tr>\n<td><code>data.orders[].subscriptions[].quantity</code></td>\n<td><code>1</code></td>\n<td>int</td>\n<td>Quantity.</td>\n</tr>\n<tr>\n<td><code>data.userCredentials</code></td>\n<td><code>null</code></td>\n<td>object</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","CreateOrder"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[{"id":"14e8dd44-3f21-4d29-af0e-d1dec32ee6b8","name":"CreateOrder Other manufacturer - Existing contact","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"countryCode\": \"UY\",\r\n  \"salesMan\": \"sales@partner.com\",\r\n  \"contact\": { \"id\": 12345 },\r\n  \"billing\": {\r\n    \"authorizationNumber\": \"\",\r\n    \"isThirdPartyBilling\": false,\r\n    \"paymentMethodId\": 1,\r\n    \"purchaseOrderNumber\": \"PO-001\"\r\n  },\r\n  \"items\": [\r\n    { \"quantity\": 1, \"product\": { \"id\": 20000001 } }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/CreateOrder"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"131"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcbGxhbmRpblxTb3VyY2VcUmVwb3NcYm9vYXBpMDVcTE9MLldlYi5BcGlcYXBpXEFwaUdhdGV3YXlcQ3JlYXRlT3JkZXI=?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-12-04T18:20:00.4385665Z"},{"key":"Date","value":"Fri, 04 Dec 2020 18:20:04 GMT"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orders\": [\n      {\n        \"number\": \"AUT-STD-1000001\",\n        \"statusId\": 10,\n        \"manufacturer\": \"Autodesk\",\n        \"subscriptions\": [\n          {\n            \"id\": null,\n            \"sku\": \"C1RK1-WW9331-L162\",\n            \"offername\": \"AutoCAD Commercial New Single-user Annual Subscription\",\n            \"quantity\": 1\n          }\n        ]\n      }\n    ],\n    \"userCredentials\": null\n  }\n}"},{"id":"8ce30f7d-cc2b-46ff-b394-426363ea46a5","name":"CreateOrder Microsoft — existing tenant","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"countryCode\": \"UY\",\r\n  \"salesMan\": \"sales@partner.com\",\r\n  \"contact\": { \"id\": 12345 },\r\n  \"billing\": {\r\n    \"authorizationNumber\": \"\",\r\n    \"isThirdPartyBilling\": false,\r\n    \"paymentMethodId\": 1,\r\n    \"purchaseOrderNumber\": \"PO-001\"\r\n  },\r\n  \"csp\": {\r\n    \"customer\": { \"domain\": \"contoso.onmicrosoft.com\" }\r\n  },\r\n  \"items\": [\r\n    {\r\n      \"quantity\": 1,\r\n      \"cspBillingCycle\": 2,\r\n      \"product\": { \"id\": 10000001 }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/CreateOrder"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"131"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcbGxhbmRpblxTb3VyY2VcUmVwb3NcYm9vYXBpMDVcTE9MLldlYi5BcGlcYXBpXEFwaUdhdGV3YXlcQ3JlYXRlT3JkZXI=?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-12-04T18:20:00.4385665Z"},{"key":"Date","value":"Fri, 04 Dec 2020 18:20:04 GMT"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orders\": [\n      {\n        \"number\": \"XXX-STD-1000001\",\n        \"statusId\": 10,\n        \"manufacturer\": \"Microsoft CSP for VARs\",\n        \"subscriptions\": [\n          {\n            \"id\": null,\n            \"sku\": \"CFQ7TTC0LHSF:0001:P1M\",\n            \"offername\": \"Power BI Pro\",\n            \"quantity\": 1\n          }\n        ]\n      }\n    ],\n    \"userCredentials\": null\n  }\n}"},{"id":"a1211dab-888c-4ca8-8bee-91ed1e446d3d","name":"CreateOrder Csp New Contact + New Domain","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"countryCode\": \"UY\",\r\n  \"salesMan\": \"sales@partner.com\",\r\n  \"contact\": {\r\n    \"id\": null,\r\n    \"countryCode\": \"UY\",\r\n    \"companyName\": \"Contoso SRL\",\r\n    \"taxId\": \"123456789012\",\r\n    \"contactName\": \"John\",\r\n    \"contactLastName\": \"Doe\",\r\n    \"email\": \"john.doe@contoso.com\",\r\n    \"stateId\": 1,\r\n    \"city\": \"Montevideo\",\r\n    \"address\": \"Example 1234\",\r\n    \"zipCode\": \"11000\",\r\n    \"phone\": \"29001234\"\r\n  },\r\n  \"billing\": {\r\n    \"authorizationNumber\": \"\",\r\n    \"isThirdPartyBilling\": false,\r\n    \"paymentMethodId\": 1,\r\n    \"purchaseOrderNumber\": \"PO-001\"\r\n  },\r\n  \"csp\": {\r\n    \"customer\": {\r\n      \"domain\": \"contoso.onmicrosoft.com\",\r\n      \"address\": \"Example 1234\",\r\n      \"city\": \"Montevideo\",\r\n      \"companyName\": \"Contoso SRL\",\r\n      \"countryCode\": \"UY\",\r\n      \"email\": \"admin@contoso.com\",\r\n      \"firstName\": \"John\",\r\n      \"lastName\": \"Doe\",\r\n      \"phoneNumber\": \"29001234\",\r\n      \"postalCode\": \"11000\",\r\n      \"state\": \"Montevideo\"\r\n    },\r\n    \"emailSendCredentials\": \"admin@contoso.com\",\r\n    \"showCredentials\": true\r\n  },\r\n  \"items\": [\r\n    {\r\n      \"quantity\": 1,\r\n      \"cspBillingCycle\": 2,\r\n      \"product\": { \"id\": 10000001 }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/CreateOrder"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"131"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcbGxhbmRpblxTb3VyY2VcUmVwb3NcYm9vYXBpMDVcTE9MLldlYi5BcGlcYXBpXEFwaUdhdGV3YXlcQ3JlYXRlT3JkZXI=?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2020-12-04T18:20:00.4385665Z"},{"key":"Date","value":"Fri, 04 Dec 2020 18:20:04 GMT"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orders\": [\n      {\n        \"number\": \"XXX-STD-1000001\",\n        \"statusId\": 10,\n        \"manufacturer\": \"Microsoft CSP for VARs\",\n        \"subscriptions\": [\n          {\n            \"id\": null,\n            \"sku\": \"CFQ7TTC0LHSF:0001:P1M\",\n            \"offername\": \"Power BI Pro\",\n            \"quantity\": 1\n          }\n        ]\n      }\n    ],\n    \"userCredentials\": null\n  }\n}"}],"_postman_id":"9b68739a-1744-424f-b1d4-2f4709df9ee5"},{"name":"OrderProvisioning","event":[{"script":{"id":"1e423d2a-54f5-4498-961c-fa01c76e850c","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}},"listen":"test"}],"id":"ac97d92b-b102-0fca-7f0b-6969d78619c5","request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/OrderProvisioning?orderNumber=MCP-STD-1052177","description":"<h3 id=\"📌-description\">📌 Description</h3>\n<p>Returns the CSP provisioning status of an order for the partner in the token.</p>\n<p>Use this after <strong>CreateOrder</strong> when <code>data.orders[].subscriptions</code> is still empty. CreateOrder can return success <strong>before</strong> the Microsoft tenant and subscriptions exist.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/OrderProvisioning?orderNumber={orderNumber}\n\n</code></pre><p>Do not call <code>/v1/Orders/Provisioning</code> or <code>/v1/Orders/{id}/Provisioning</code>. Those paths collide with <code>GET /v1/Orders/{id}</code>.</p>\n<h3 id=\"🔗-query-parameters\">🔗 Query parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>orderNumber</code></td>\n<td><code>MCP-STD-1052177</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Full BOO order number (<code>OrdNumero</code>). Scoped to the partner in the token.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"📘-response-fields\">📘 Response fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>orderNumber</code></td>\n<td><code>MCP-STD-1052177</code></td>\n<td>string</td>\n<td>Same number sent in the query.</td>\n</tr>\n<tr>\n<td><code>orderId</code></td>\n<td><code>1052177</code></td>\n<td>int</td>\n<td>Internal BOO order id.</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>Pending</code></td>\n<td>string</td>\n<td>Only <code>Pending</code> or <code>Provisioned</code>.</td>\n</tr>\n<tr>\n<td><code>pendingReason</code></td>\n<td><code>CustomerNotCreated</code></td>\n<td>string</td>\n<td>null</td>\n</tr>\n<tr>\n<td><code>subscriptions</code></td>\n<td><code>[]</code></td>\n<td>array</td>\n<td>CSP rows already created for the order. Empty while provisioning is still pending.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Each item in <code>subscriptions</code>:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>subscriptionId</code></td>\n<td><code>a1b2c3d4-1111-2222-3333-444455556666</code></td>\n<td>guid</td>\n<td>Microsoft subscription id.</td>\n</tr>\n<tr>\n<td><code>sku</code></td>\n<td><code>CFQ7TTC0LH18:0001</code></td>\n<td>string</td>\n<td>Offer sku (<code>offerId</code>).</td>\n</tr>\n<tr>\n<td><code>offerName</code></td>\n<td><code>Microsoft 365 Business Basic</code></td>\n<td>string</td>\n<td>Offer name.</td>\n</tr>\n<tr>\n<td><code>quantity</code></td>\n<td><code>5</code></td>\n<td>int</td>\n<td>Licensed seats.</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>Active</code></td>\n<td>string</td>\n<td>Subscription status in PascalCase (<code>Active</code>, <code>Suspended</code>, <code>Deleted</code>, <code>Expired</code>, <code>Pending</code>).</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"⏳-status-values\">⏳ <code>status</code> values</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Value</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Pending</code></td>\n<td>The order exists but CSP subscriptions are not fully provisioned yet.</td>\n</tr>\n<tr>\n<td><code>Provisioned</code></td>\n<td>CSP subscriptions were created (includes manually provisioned orders).</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"🧭-pendingreason-values-only-when-status-is-pending\">🧭 <code>pendingReason</code> values (only when <code>status</code> is <code>Pending</code>)</h3>\n<p>Evaluated in this order. MCA is <strong>not</strong> checked if the Microsoft customer is not created.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Value</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>CustomerNotCreated</code></td>\n<td>The Microsoft tenant is not created yet (still pending, rejected, or missing <code>CustomerId</code>). This is <strong>not</strong> an MCA error. Do not send the customer to accept the Microsoft Customer Agreement.</td>\n</tr>\n<tr>\n<td><code>McaNotAccepted</code></td>\n<td>The tenant exists in Microsoft (<code>Created</code>) and the Microsoft Customer Agreement is not accepted.</td>\n</tr>\n<tr>\n<td><code>PendingOperations</code></td>\n<td>The tenant exists and MCA is accepted. Provisioning is waiting on other operations (credit, Task Center job, Azure/perpetual, supply, review).</td>\n</tr>\n</tbody>\n</table>\n</div><p>An empty <code>subscriptions</code> list with <code>status</code> <code>Pending</code> is expected. To list CSP rows once they exist, use <strong>Subscriptions Search</strong> with the same <code>orderNumber</code>.</p>\n<h3 id=\"📌-sample-request\">📌 Sample request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/OrderProvisioning?orderNumber=MCP-STD-1052177\n\n</code></pre><h3 id=\"📌-sample-response--pending-customernotcreated\">📌 Sample response — Pending (<code>CustomerNotCreated</code>)</h3>\n<p>HTTP 200. Typical right after CreateOrder for a <strong>new</strong> tenant, or if the customer was rejected in Microsoft. Not an MCA error.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Pending\",\n    \"pendingReason\": \"CustomerNotCreated\",\n    \"subscriptions\": []\n  }\n}\n\n</code></pre>\n<h3 id=\"📌-sample-response--pending-mcanotaccepted\">📌 Sample response — Pending (<code>McaNotAccepted</code>)</h3>\n<p>HTTP 200. The Microsoft tenant exists; the agreement is still pending.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Pending\",\n    \"pendingReason\": \"McaNotAccepted\",\n    \"subscriptions\": []\n  }\n}\n\n</code></pre>\n<h3 id=\"📌-sample-response--pending-pendingoperations\">📌 Sample response — Pending (<code>PendingOperations</code>)</h3>\n<p>HTTP 200. Tenant and MCA are OK; the order is still waiting on other operations.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Pending\",\n    \"pendingReason\": \"PendingOperations\",\n    \"subscriptions\": []\n  }\n}\n\n</code></pre>\n<h3 id=\"📌-sample-response--provisioned\">📌 Sample response — Provisioned</h3>\n<p>HTTP 200. <code>pendingReason</code> is <code>null</code>. <code>subscriptions</code> is filled when CSP rows already exist.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Provisioned\",\n    \"pendingReason\": null,\n    \"subscriptions\": [\n      {\n        \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n        \"sku\": \"CFQ7TTC0LH18:0001\",\n        \"offerName\": \"Microsoft 365 Business Basic\",\n        \"quantity\": 5,\n        \"status\": \"Active\"\n      }\n    ]\n  }\n}\n\n</code></pre>\n<h3 id=\"errors\">Errors</h3>\n<p>Envelope: <code>{ \"status\": \"error\", \"message\": \"\" }</code>. HTTP 200 with <code>status</code> <code>error</code> (same as the rest of ApiGateway).</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Message</th>\n<th>Cause</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>orderNumber required.</code></td>\n<td>Query empty or missing.</td>\n</tr>\n<tr>\n<td><code>orderNumber invalid.</code></td>\n<td>Unknown number or another partner's order.</td>\n</tr>\n<tr>\n<td><code>order has no provisioning.</code></td>\n<td>The order exists but is not a provisionable CSP order.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","OrderProvisioning"],"host":["api","licenciasonline","com"],"query":[{"description":{"content":"<p>Full BOO order number (OrdNumero). Required.</p>\n","type":"text/plain"},"key":"orderNumber","value":"MCP-STD-1052177"}],"variable":[]}},"response":[{"id":"a02f35d9-d7d9-fe0e-3846-eaa8c2b419dd","name":"Provisioned","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.licenciasonline.com/v1/OrderProvisioning?orderNumber=MCP-STD-1052177","protocol":"https","host":["api","licenciasonline","com"],"path":["v1","OrderProvisioning"],"query":[{"key":"orderNumber","value":"MCP-STD-1052177","description":"Full BOO order number (OrdNumero). Required."}]},"description":"### 📌 Description\n\nReturns the CSP provisioning status of an order for the partner in the token.\n\nUse this after **CreateOrder** when `data.orders[].subscriptions` is still empty. CreateOrder can return success **before** the Microsoft tenant and subscriptions exist.\n\n```\nGET /v1/OrderProvisioning?orderNumber={orderNumber}\n\n ```\n\nDo not call `/v1/Orders/Provisioning` or `/v1/Orders/{id}/Provisioning`. Those paths collide with `GET /v1/Orders/{id}`.\n\n### 🔗 Query parameters\n\n| Field | Sample | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| `orderNumber` | `MCP-STD-1052177` | string | ✅ Yes | Full BOO order number (`OrdNumero`). Scoped to the partner in the token. |\n\n### 📘 Response fields\n\n| Field | Sample | Type | Description |\n| --- | --- | --- | --- |\n| `orderNumber` | `MCP-STD-1052177` | string | Same number sent in the query. |\n| `orderId` | `1052177` | int | Internal BOO order id. |\n| `status` | `Pending` | string | Only `Pending` or `Provisioned`. |\n| `pendingReason` | `CustomerNotCreated` | string | null | `null` when `status` is `Provisioned`. When `Pending`: `CustomerNotCreated`, `McaNotAccepted`, or `PendingOperations`. |\n| `subscriptions` | `[]` | array | CSP rows already created for the order. Empty while provisioning is still pending. |\n\nEach item in `subscriptions`:\n\n| Field | Sample | Type | Description |\n| --- | --- | --- | --- |\n| `subscriptionId` | `a1b2c3d4-1111-2222-3333-444455556666` | guid | Microsoft subscription id. |\n| `sku` | `CFQ7TTC0LH18:0001` | string | Offer sku (`offerId`). |\n| `offerName` | `Microsoft 365 Business Basic` | string | Offer name. |\n| `quantity` | `5` | int | Licensed seats. |\n| `status` | `Active` | string | Subscription status in PascalCase (`Active`, `Suspended`, `Deleted`, `Expired`, `Pending`). |\n\n### ⏳ `status` values\n\n| Value | Meaning |\n| --- | --- |\n| `Pending` | The order exists but CSP subscriptions are not fully provisioned yet. |\n| `Provisioned` | CSP subscriptions were created (includes manually provisioned orders). |\n\n### 🧭 `pendingReason` values (only when `status` is `Pending`)\n\nEvaluated in this order. MCA is **not** checked if the Microsoft customer is not created.\n\n| Value | Meaning |\n| --- | --- |\n| `CustomerNotCreated` | The Microsoft tenant is not created yet (still pending, rejected, or missing `CustomerId`). This is **not** an MCA error. Do not send the customer to accept the Microsoft Customer Agreement. |\n| `McaNotAccepted` | The tenant exists in Microsoft (`Created`) and the Microsoft Customer Agreement is not accepted. |\n| `PendingOperations` | The tenant exists and MCA is accepted. Provisioning is waiting on other operations (credit, Task Center job, Azure/perpetual, supply, review). |\n\nAn empty `subscriptions` list with `status` `Pending` is expected. To list CSP rows once they exist, use **Subscriptions Search** with the same `orderNumber`.\n\n### 📌 Sample request\n\n```\nGET /v1/OrderProvisioning?orderNumber=MCP-STD-1052177\n\n ```\n\n### 📌 Sample response — Pending (`CustomerNotCreated`)\n\nHTTP 200. Typical right after CreateOrder for a **new** tenant, or if the customer was rejected in Microsoft. Not an MCA error.\n\n``` json\n{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Pending\",\n    \"pendingReason\": \"CustomerNotCreated\",\n    \"subscriptions\": []\n  }\n}\n\n ```\n\n### 📌 Sample response — Pending (`McaNotAccepted`)\n\nHTTP 200. The Microsoft tenant exists; the agreement is still pending.\n\n``` json\n{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Pending\",\n    \"pendingReason\": \"McaNotAccepted\",\n    \"subscriptions\": []\n  }\n}\n\n ```\n\n### 📌 Sample response — Pending (`PendingOperations`)\n\nHTTP 200. Tenant and MCA are OK; the order is still waiting on other operations.\n\n``` json\n{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Pending\",\n    \"pendingReason\": \"PendingOperations\",\n    \"subscriptions\": []\n  }\n}\n\n ```\n\n### 📌 Sample response — Provisioned\n\nHTTP 200. `pendingReason` is `null`. `subscriptions` is filled when CSP rows already exist.\n\n``` json\n{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Provisioned\",\n    \"pendingReason\": null,\n    \"subscriptions\": [\n      {\n        \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n        \"sku\": \"CFQ7TTC0LH18:0001\",\n        \"offerName\": \"Microsoft 365 Business Basic\",\n        \"quantity\": 5,\n        \"status\": \"Active\"\n      }\n    ]\n  }\n}\n\n ```\n\n### Errors\n\nEnvelope: `{ \"status\": \"error\", \"message\": \"\" }`. HTTP 200 with `status` `error` (same as the rest of ApiGateway).\n\n| Message | Cause |\n| --- | --- |\n| `orderNumber required.` | Query empty or missing. |\n| `orderNumber invalid.` | Unknown number or another partner's order. |\n| `order has no provisioning.` | The order exists but is not a provisionable CSP order. |"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"value":"application/json; charset=utf-8","key":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Provisioned\",\n    \"pendingReason\": null,\n    \"subscriptions\": [\n      {\n        \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n        \"sku\": \"CFQ7TTC0LH18:0001\",\n        \"offerName\": \"Microsoft 365 Business Basic\",\n        \"quantity\": 5,\n        \"status\": \"Active\"\n      }\n    ]\n  }\n}"},{"id":"ca18f003-eb02-d1f3-63c6-89544c4cc933","name":"Pending — MCA not accepted","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.licenciasonline.com/v1/OrderProvisioning?orderNumber=MCP-STD-1052177","protocol":"https","host":["api","licenciasonline","com"],"path":["v1","OrderProvisioning"],"query":[{"key":"orderNumber","value":"MCP-STD-1052177","description":"Full BOO order number (OrdNumero). Required."}]},"description":"### 📌 Description\n\nReturns the CSP provisioning status of an order for the partner in the token.\n\nUse this after **CreateOrder** when `data.orders[].subscriptions` is still empty. CreateOrder can return success **before** the Microsoft tenant and subscriptions exist.\n\n```\nGET /v1/OrderProvisioning?orderNumber={orderNumber}\n\n ```\n\nDo not call `/v1/Orders/Provisioning` or `/v1/Orders/{id}/Provisioning`. Those paths collide with `GET /v1/Orders/{id}`.\n\n### 🔗 Query parameters\n\n| Field | Sample | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| `orderNumber` | `MCP-STD-1052177` | string | ✅ Yes | Full BOO order number (`OrdNumero`). Scoped to the partner in the token. |\n\n### 📘 Response fields\n\n| Field | Sample | Type | Description |\n| --- | --- | --- | --- |\n| `orderNumber` | `MCP-STD-1052177` | string | Same number sent in the query. |\n| `orderId` | `1052177` | int | Internal BOO order id. |\n| `status` | `Pending` | string | Only `Pending` or `Provisioned`. |\n| `pendingReason` | `CustomerNotCreated` | string | null | `null` when `status` is `Provisioned`. When `Pending`: `CustomerNotCreated`, `McaNotAccepted`, or `PendingOperations`. |\n| `subscriptions` | `[]` | array | CSP rows already created for the order. Empty while provisioning is still pending. |\n\nEach item in `subscriptions`:\n\n| Field | Sample | Type | Description |\n| --- | --- | --- | --- |\n| `subscriptionId` | `a1b2c3d4-1111-2222-3333-444455556666` | guid | Microsoft subscription id. |\n| `sku` | `CFQ7TTC0LH18:0001` | string | Offer sku (`offerId`). |\n| `offerName` | `Microsoft 365 Business Basic` | string | Offer name. |\n| `quantity` | `5` | int | Licensed seats. |\n| `status` | `Active` | string | Subscription status in PascalCase (`Active`, `Suspended`, `Deleted`, `Expired`, `Pending`). |\n\n### ⏳ `status` values\n\n| Value | Meaning |\n| --- | --- |\n| `Pending` | The order exists but CSP subscriptions are not fully provisioned yet. |\n| `Provisioned` | CSP subscriptions were created (includes manually provisioned orders). |\n\n### 🧭 `pendingReason` values (only when `status` is `Pending`)\n\nEvaluated in this order. MCA is **not** checked if the Microsoft customer is not created.\n\n| Value | Meaning |\n| --- | --- |\n| `CustomerNotCreated` | The Microsoft tenant is not created yet (still pending, rejected, or missing `CustomerId`). This is **not** an MCA error. Do not send the customer to accept the Microsoft Customer Agreement. |\n| `McaNotAccepted` | The tenant exists in Microsoft (`Created`) and the Microsoft Customer Agreement is not accepted. |\n| `PendingOperations` | The tenant exists and MCA is accepted. Provisioning is waiting on other operations (credit, Task Center job, Azure/perpetual, supply, review). |\n\nAn empty `subscriptions` list with `status` `Pending` is expected. To list CSP rows once they exist, use **Subscriptions Search** with the same `orderNumber`.\n\n### 📌 Sample request\n\n```\nGET /v1/OrderProvisioning?orderNumber=MCP-STD-1052177\n\n ```\n\n### 📌 Sample response — Pending (`CustomerNotCreated`)\n\nHTTP 200. Typical right after CreateOrder for a **new** tenant, or if the customer was rejected in Microsoft. Not an MCA error.\n\n``` json\n{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Pending\",\n    \"pendingReason\": \"CustomerNotCreated\",\n    \"subscriptions\": []\n  }\n}\n\n ```\n\n### 📌 Sample response — Pending (`McaNotAccepted`)\n\nHTTP 200. The Microsoft tenant exists; the agreement is still pending.\n\n``` json\n{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Pending\",\n    \"pendingReason\": \"McaNotAccepted\",\n    \"subscriptions\": []\n  }\n}\n\n ```\n\n### 📌 Sample response — Pending (`PendingOperations`)\n\nHTTP 200. Tenant and MCA are OK; the order is still waiting on other operations.\n\n``` json\n{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Pending\",\n    \"pendingReason\": \"PendingOperations\",\n    \"subscriptions\": []\n  }\n}\n\n ```\n\n### 📌 Sample response — Provisioned\n\nHTTP 200. `pendingReason` is `null`. `subscriptions` is filled when CSP rows already exist.\n\n``` json\n{\n  \"status\": \"success\",\n  \"message\": null,\n  \"messageCode\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Provisioned\",\n    \"pendingReason\": null,\n    \"subscriptions\": [\n      {\n        \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n        \"sku\": \"CFQ7TTC0LH18:0001\",\n        \"offerName\": \"Microsoft 365 Business Basic\",\n        \"quantity\": 5,\n        \"status\": \"Active\"\n      }\n    ]\n  }\n}\n\n ```\n\n### Errors\n\nEnvelope: `{ \"status\": \"error\", \"message\": \"\" }`. HTTP 200 with `status` `error` (same as the rest of ApiGateway).\n\n| Message | Cause |\n| --- | --- |\n| `orderNumber required.` | Query empty or missing. |\n| `orderNumber invalid.` | Unknown number or another partner's order. |\n| `order has no provisioning.` | The order exists but is not a provisionable CSP order. |"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"value":"application/json; charset=utf-8","key":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"orderNumber\": \"MCP-STD-1052177\",\n    \"orderId\": 1052177,\n    \"status\": \"Pending\",\n    \"pendingReason\": \"McaNotAccepted\",\n    \"subscriptions\": []\n  }\n}"}],"_postman_id":"ac97d92b-b102-0fca-7f0b-6969d78619c5"}],"id":"64609b84-e2ed-4b0e-955e-72960d8405f1","description":"<p>CreateOrder success = order saved. Then poll OrderProvisioning with <code>data.orders[0].number</code>.</p>\n","event":[{"listen":"prerequest","script":{"id":"964ac8e5-338d-4864-9c1a-9fa789f5fff9","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"63f5cd94-a3a3-416d-9a4d-a2af1508b3bd","type":"text/javascript","requests":{},"exec":[""]}}],"_postman_id":"64609b84-e2ed-4b0e-955e-72960d8405f1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}}},{"name":"Subscriptions","item":[{"name":"Subscriptions Search","event":[{"listen":"test","script":{"id":"e2b39224-18e7-4c93-8c3f-0202d89532ec","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"c790057d-ffea-4c85-9789-f0544b180642","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"pageId\": 1,\r\n  \"pageSize\": 20,\r\n  \"countryCode\": \"UY\",\r\n  \"status\": [\"Active\", \"Suspended\"],\r\n  \"renewalStateFilter\": \"AutoRenewEnabledRenewToExtendedServiceTerm\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/Subscriptions","description":"<p>Returns only subscriptions for the Partner in the token. Empty filters are not applied.</p>\n<h3 id=\"request-body\">Request body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pageId</code></td>\n<td><code>1</code></td>\n<td>number</td>\n<td>✅ Yes</td>\n<td>Page number, 1-based.</td>\n</tr>\n<tr>\n<td><code>pageSize</code></td>\n<td><code>20</code></td>\n<td>number</td>\n<td>✅ Yes</td>\n<td>Number of records per page.</td>\n</tr>\n<tr>\n<td><code>searchValue</code></td>\n<td><code>MCP-STD-1052177</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Free-text search: order id, customer name, domain, or offer.</td>\n</tr>\n<tr>\n<td><code>customerName</code></td>\n<td><code>CUSTOMER TEST</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>End-customer name.</td>\n</tr>\n<tr>\n<td><code>customerDomain</code></td>\n<td><code>company.onmicrosoft.com</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Tenant domain.</td>\n</tr>\n<tr>\n<td><code>subscriptionId</code></td>\n<td><code>a1b2c3d4-...</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Microsoft subscription id.</td>\n</tr>\n<tr>\n<td><code>orderId</code></td>\n<td><code>1052177</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>BOO order id.</td>\n</tr>\n<tr>\n<td>orderNumber</td>\n<td>MCP-STD-<code>1052177</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>BOO order Number</td>\n</tr>\n<tr>\n<td><code>offerName</code></td>\n<td><code>Microsoft 365 Business Basic</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Offer name.</td>\n</tr>\n<tr>\n<td><code>countryCode</code></td>\n<td><code>UY</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>ISO country code.</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>[\"Active\"]</code></td>\n<td>string[]</td>\n<td>❌ No</td>\n<td>Statuses in PascalCase: <code>Active</code>, <code>Suspended</code>, <code>Deleted</code>, <code>Expired</code>, <code>Pending</code>. Integers are not accepted.</td>\n</tr>\n<tr>\n<td><code>subscriptionActive</code></td>\n<td><code>true</code></td>\n<td>boolean</td>\n<td>❌ No</td>\n<td>Filters by active subscriptions.</td>\n</tr>\n<tr>\n<td><code>isAnnual</code></td>\n<td><code>true</code></td>\n<td>boolean</td>\n<td>❌ No</td>\n<td>Filters by annual term.</td>\n</tr>\n<tr>\n<td><code>isBlocked</code></td>\n<td><code>false</code></td>\n<td>boolean</td>\n<td>❌ No</td>\n<td>Filters by blocked subscriptions.</td>\n</tr>\n<tr>\n<td><code>renewalStateFilter</code></td>\n<td><code>AutoRenewEnabledRenewToExtendedServiceTerm</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Filters by auto-renew state. See values below.</td>\n</tr>\n<tr>\n<td><code>showDeletedSubscriptions</code></td>\n<td><code>false</code></td>\n<td>boolean</td>\n<td>❌ No</td>\n<td>Includes deleted subscriptions.</td>\n</tr>\n<tr>\n<td><code>from</code> / <code>to</code></td>\n<td><code>2026-01-01</code></td>\n<td>date</td>\n<td>❌ No</td>\n<td>Range by subscription end date.</td>\n</tr>\n<tr>\n<td><code>fromStartDate</code> / <code>toStartDate</code></td>\n<td><code>2026-01-01</code></td>\n<td>date</td>\n<td>❌ No</td>\n<td>Range by start date.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Valid <code>renewalStateFilter</code> values:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Value</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>AutoRenewDisabled</code></td>\n<td>Auto-renew is off. The subscription will not renew at term end (equivalent to <code>scheduledActions</code> empty / <code>Cancel</code>).</td>\n</tr>\n<tr>\n<td><code>AutoRenewEnabledRenewToNewTerm</code></td>\n<td>Auto-renew is on and the subscription renews to the <strong>same term</strong> (<code>scheduledActions = RenewToNewTerm</code>).</td>\n</tr>\n<tr>\n<td><code>AutoRenewEnabledRenewToExtendedServiceTerm</code></td>\n<td>Auto-renew is on and the subscription renews to <strong>EST</strong> — Extended Service Term (<code>scheduledActions = RenewToExtendedServiceTerm</code>).</td>\n</tr>\n</tbody>\n</table>\n</div><p>Any other value returns <code>renewalStateFilter invalid.</code></p>\n<h3 id=\"sample-request\">Sample request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"pageId\": 1,\n  \"pageSize\": 20,\n  \"countryCode\": \"UY\",\n  \"status\": [\"Active\", \"Suspended\"],\n  \"renewalStateFilter\": \"AutoRenewEnabledRenewToExtendedServiceTerm\"\n}\n\n</code></pre>\n<h3 id=\"sample-response\">Sample response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"count\": 1,\n    \"results\": [\n      {\n        \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n        \"customerName\": \"Company TEST\",\n        \"customerDomain\": \"customer.onmicrosoft.com\",\n        \"customerId\": \"11111111-2222-3333-4444-555555555555\",\n        \"offerName\": \"Microsoft 365 Business Basic\",\n        \"offerId\": \"CFQ7TTC0LH18:0001\",\n        \"offerFriendlyName\": \"M365 BB - Company\",\n        \"quantity\": 5,\n        \"status\": \"Active\",\n        \"isBlocked\": false,\n        \"cancellationPending\": false,\n        \"subscriptionStartDate\": \"2026-02-01T00:00:00\",\n        \"subscriptionEndDate\": \"2027-01-31T00:00:00\",\n        \"remainingDays\": 180,\n        \"countryCode\": \"UY\",\n        \"billingCycleType\": \"annual\",\n        \"termDuration\": \"P1Y\",\n        \"autoRenewEnabled\": true,\n        \"scheduledActions\": \"RenewToExtendedServiceTerm\",\n        \"orderId\": 1052177,\n        \"renewalOfferName\": \"Microsoft 365 Business Basic\",\n        \"renewalQuantity\": 5,\n        \"renewalBillingCycleType\": \"annual\"\n      }\n    ]\n  }\n}\n\n</code></pre>\n<h3 id=\"errors\">Errors</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Message</th>\n<th>Cause</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>request invalid.</code></td>\n<td>Empty or unparsable body.</td>\n</tr>\n<tr>\n<td><code>pageId required.</code></td>\n<td><code>pageId</code> missing or less than 1.</td>\n</tr>\n<tr>\n<td><code>pageSize required.</code></td>\n<td><code>pageSize</code> missing or less than 1.</td>\n</tr>\n<tr>\n<td><code>renewalStateFilter invalid. Allowed values: ...</code></td>\n<td>Value outside the allowed list.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","Subscriptions"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[{"id":"0873178f-4137-47dc-ac94-ebe549d700c7","name":"Subscriptions","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"pageId\": 1,\r\n  \"pageSize\": 20,\r\n  \"countryCode\": \"UY\",\r\n  \"status\": [\"Active\", \"Suspended\"],\r\n  \"renewalStateFilter\": \"AutoRenewEnabledRenewToExtendedServiceTerm\",\r\n  \"isAnnual\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/Subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"949"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcbGxhbmRpblxTb3VyY2VcUmVwb3NcYm9vYXBpMTRcTE9MLldlYi5BcGlcYXBpXFNNSFN1YnNjcmlwdGlvblxTdWJzY3JpcHRpb25zU2VhcmNo?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2024-04-22T15:48:53.3612041Z"},{"key":"Date","value":"Mon, 22 Apr 2024 15:48:49 GMT"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"count\": 1,\n    \"results\": [\n      {\n        \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n        \"customerName\": \"Company TEST\",\n        \"customerDomain\": \"customer.onmicrosoft.com\",\n        \"customerId\": \"11111111-2222-3333-4444-555555555555\",\n        \"offerName\": \"Microsoft 365 Business Basic\",\n        \"offerId\": \"CFQ7TTC0LH18:0001\",\n        \"offerFriendlyName\": \"M365 BB - Company\",\n        \"quantity\": 5,\n        \"status\": \"Active\",\n        \"isBlocked\": false,\n        \"cancellationPending\": false,\n        \"subscriptionStartDate\": \"2026-02-01T00:00:00\",\n        \"subscriptionEndDate\": \"2027-01-31T00:00:00\",\n        \"remainingDays\": 180,\n        \"countryCode\": \"UY\",\n        \"billingCycleType\": \"annual\",\n        \"termDuration\": \"P1Y\",\n        \"autoRenewEnabled\": true,\n        \"scheduledActions\": \"RenewToExtendedServiceTerm\",\n        \"orderId\": 1052177,\n        \"renewalOfferName\": \"Microsoft 365 Business Basic\",\n        \"renewalQuantity\": 5,\n        \"renewalBillingCycleType\": \"annual\"\n      }\n    ]\n  }\n}"}],"_postman_id":"c790057d-ffea-4c85-9789-f0544b180642"},{"name":"Subscriptions ID","event":[{"listen":"test","script":{"id":"e2b39224-18e7-4c93-8c3f-0202d89532ec","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"3e349ca8-ebf0-4cd9-828c-a0fb557a83c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Subscriptions/9234aa20-b008-4504-d3ac-34811f041e0f","description":"<p>Returns the detail of a single Microsoft CSP subscription for the authenticated Partner.</p>\n<h3 id=\"response-fields\">Response fields</h3>\n<p>ApiGateway-owned contract. Does not include Partner Center plumbing (<code>links</code>, <code>attributes</code>, <code>actions</code>, <code>creditStatus</code>, etc.).</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>a1b2c3d4-...</code></td>\n<td>Microsoft subscription id.</td>\n</tr>\n<tr>\n<td><code>entitlementId</code></td>\n<td><code>...</code></td>\n<td>Associated entitlement.</td>\n</tr>\n<tr>\n<td><code>orderId</code></td>\n<td><code>1052177</code></td>\n<td>Originating BOO order.</td>\n</tr>\n<tr>\n<td><code>customerId</code></td>\n<td><code>...</code></td>\n<td>Microsoft customer id.</td>\n</tr>\n<tr>\n<td><code>domain</code></td>\n<td><code>customer.onmicrosoft.com</code></td>\n<td>Tenant domain.</td>\n</tr>\n<tr>\n<td><code>countryCode</code></td>\n<td><code>UY</code></td>\n<td>Country.</td>\n</tr>\n<tr>\n<td><code>offerId</code></td>\n<td><code>CFQ7TTC0LH18:0001</code></td>\n<td>Offer id.</td>\n</tr>\n<tr>\n<td><code>offerName</code></td>\n<td><code>Microsoft 365 Business Basic</code></td>\n<td>Offer name.</td>\n</tr>\n<tr>\n<td><code>friendlyName</code></td>\n<td><code>M365 BB - Customer</code></td>\n<td>Subscription alias.</td>\n</tr>\n<tr>\n<td><code>quantity</code></td>\n<td><code>5</code></td>\n<td>Current license quantity.</td>\n</tr>\n<tr>\n<td><code>unitType</code></td>\n<td><code>Licenses</code></td>\n<td>Unit type.</td>\n</tr>\n<tr>\n<td><code>productType</code></td>\n<td><code>{ ... }</code></td>\n<td>Product type/subtype.</td>\n</tr>\n<tr>\n<td><code>termDuration</code></td>\n<td><code>P1Y</code></td>\n<td>Current term duration.</td>\n</tr>\n<tr>\n<td><code>renewalTermDuration</code></td>\n<td><code>P1Y</code></td>\n<td>Renewal term duration.</td>\n</tr>\n<tr>\n<td><code>billingCycle</code></td>\n<td><code>annual</code></td>\n<td>Billing cycle.</td>\n</tr>\n<tr>\n<td><code>billingType</code></td>\n<td><code>license</code></td>\n<td>Partner Center billing type.</td>\n</tr>\n<tr>\n<td><code>isTrial</code></td>\n<td><code>false</code></td>\n<td>Whether the subscription is a trial.</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>Active</code></td>\n<td>PascalCase: <code>Active</code>, <code>Suspended</code>, <code>Deleted</code>, <code>Expired</code>, <code>Pending</code>.</td>\n</tr>\n<tr>\n<td><code>autoRenewEnabled</code></td>\n<td><code>true</code></td>\n<td>Current auto-renew state reported by Partner Center.</td>\n</tr>\n<tr>\n<td><code>scheduledActions</code></td>\n<td><code>RenewToExtendedServiceTerm</code></td>\n<td>Action scheduled at term end. Empty is equivalent to <code>AutoRenewDisabled</code>.</td>\n</tr>\n<tr>\n<td><code>scheduledNextTermInstructions</code></td>\n<td><code>{ ... }</code></td>\n<td>Product, quantity, and coterm scheduled for the next term.</td>\n</tr>\n<tr>\n<td><code>isBlocked</code></td>\n<td><code>false</code></td>\n<td>Blocked subscription: updates are not allowed.</td>\n</tr>\n<tr>\n<td><code>cancellationPending</code></td>\n<td><code>false</code></td>\n<td>Cancellation accepted by Partner Center and not yet reflected in <code>status</code>.</td>\n</tr>\n<tr>\n<td><code>suspensionReasons</code></td>\n<td><code>[\"...\"]</code></td>\n<td>Suspension reasons, if any.</td>\n</tr>\n<tr>\n<td><code>effectiveStartDate</code> / <code>commitmentEndDate</code> / <code>endDate</code> / <code>createDate</code></td>\n<td>dates</td>\n<td>Term lifecycle dates.</td>\n</tr>\n<tr>\n<td><code>cancellationAllowedUntilDate</code></td>\n<td><code>2026-02-08T00:00:00</code></td>\n<td>Deadline to cancel with refund.</td>\n</tr>\n<tr>\n<td><code>remainingDays</code></td>\n<td><code>180</code></td>\n<td>Days remaining in the term.</td>\n</tr>\n<tr>\n<td><code>refundableQuantity</code> / <code>refundOptions</code></td>\n<td><code>{ ... }</code></td>\n<td>Refundable quantity and options.</td>\n</tr>\n<tr>\n<td><code>emailPartnerActive</code> / <code>emailPartner</code></td>\n<td>...</td>\n<td>Partner notification settings.</td>\n</tr>\n<tr>\n<td><code>emailEndUserActive</code> / <code>emailEndUser</code></td>\n<td>...</td>\n<td>End-customer notification settings.</td>\n</tr>\n<tr>\n<td><code>promotionId</code></td>\n<td><code>...</code></td>\n<td>Associated promotion, if any.</td>\n</tr>\n<tr>\n<td><code>parentSubscriptionId</code></td>\n<td><code>...</code></td>\n<td>Parent subscription (addons), if applicable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>cancellationPending</code> distinguishes an in-flight cancellation from a failure: Partner Center may accept the cancellation and take time to reflect it in <code>status</code>.</p>\n<h3 id=\"errors\">Errors</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Message</th>\n<th>Cause</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>subscriptionId required.</code></td>\n<td>Id missing from the URL.</td>\n</tr>\n<tr>\n<td><code>subscriptionId invalid.</code></td>\n<td>Not a valid GUID, or it does not exist.</td>\n</tr>\n<tr>\n<td><code>subscriptionId not related to partner.</code></td>\n<td>The subscription belongs to another Partner.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"sample-response\">Sample response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"id\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n    \"entitlementId\": \"b2c3d4e5-2222-3333-4444-555566667777\",\n    \"orderId\": \"1052177\",\n    \"customerId\": \"11111111-2222-3333-4444-555555555555\",\n    \"domain\": \"contoso.onmicrosoft.com\",\n    \"countryCode\": \"UY\",\n    \"offerId\": \"CFQ7TTC0LH18:0001\",\n    \"offerName\": \"Microsoft 365 Business Basic\",\n    \"friendlyName\": \"M365 Business Basic\",\n    \"quantity\": 5,\n    \"unitType\": \"Licenses\",\n    \"productType\": {\n      \"id\": \"OnlineServicesNCE\",\n      \"displayName\": \"OnlineServicesNCE\",\n      \"subType\": null\n    },\n    \"termDuration\": \"P1Y\",\n    \"renewalTermDuration\": \"P1Y\",\n    \"billingCycle\": \"annual\",\n    \"billingType\": \"license\",\n    \"isTrial\": false,\n    \"status\": \"Active\",\n    \"autoRenewEnabled\": true,\n    \"scheduledActions\": \"RenewToExtendedServiceTerm\",\n    \"scheduledNextTermInstructions\": {\n      \"product\": {\n        \"productId\": \"CFQ7TTC0LH18\",\n        \"skuId\": \"0001\",\n        \"availabilityId\": \"DZH318Z0BPS6\",\n        \"billingCycle\": \"annual\",\n        \"termDuration\": \"P1Y\"\n      },\n      \"quantity\": 5,\n      \"customTermEndDate\": null\n    },\n    \"isBlocked\": false,\n    \"cancellationPending\": false,\n    \"suspensionReasons\": [],\n    \"effectiveStartDate\": \"2026-02-01T00:00:00\",\n    \"commitmentEndDate\": \"2027-01-31T00:00:00\",\n    \"endDate\": \"2027-01-31T00:00:00\",\n    \"createDate\": \"2026-02-01T12:30:00\",\n    \"cancellationAllowedUntilDate\": \"2026-02-08T00:00:00\",\n    \"remainingDays\": 180,\n    \"refundableQuantity\": {\n      \"totalQuantity\": 5,\n      \"details\": [\n        {\n          \"quantity\": 5,\n          \"allowedUntilDateTime\": \"2026-02-08T00:00:00\"\n        }\n      ]\n    },\n    \"refundOptions\": [\n      {\n        \"type\": \"Full\",\n        \"expiresAfter\": \"2026-02-08T00:00:00\"\n      }\n    ],\n    \"emailPartnerActive\": true,\n    \"emailPartner\": \"notificaciones@partner.com\",\n    \"emailEndUserActive\": false,\n    \"emailEndUser\": \"admin@contoso.com\",\n    \"promotionId\": null,\n    \"parentSubscriptionId\": null\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","Subscriptions","9234aa20-b008-4504-d3ac-34811f041e0f"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[{"id":"3c0bf110-71fa-453f-bfe3-df72f96e7c28","name":"Subscriptions ID","originalRequest":{"method":"GET","header":[],"url":"{{server}}/v1/Subscriptions/9234aa20-b008-4504-d3ac-34811f041e0f"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"2099"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcVXNlcnNcbGxhbmRpblxTb3VyY2VcUmVwb3NcYm9vYXBpMTRcTE9MLldlYi5BcGlcYXBpXE1zQ3NwUGFydG5lckNlbnRlclxHZXRTdWJzY3JpcHRpb24=?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Rate-Limit-Limit","value":"5s"},{"key":"X-Rate-Limit-Remaining","value":"0"},{"key":"X-Rate-Limit-Reset","value":"2024-04-22T15:47:38.6609456Z"},{"key":"Date","value":"Mon, 22 Apr 2024 15:47:42 GMT"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"id\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n    \"entitlementId\": \"b2c3d4e5-2222-3333-4444-555566667777\",\n    \"orderId\": \"1052177\",\n    \"customerId\": \"11111111-2222-3333-4444-555555555555\",\n    \"domain\": \"contoso.onmicrosoft.com\",\n    \"countryCode\": \"UY\",\n    \"offerId\": \"CFQ7TTC0LH18:0001\",\n    \"offerName\": \"Microsoft 365 Business Basic\",\n    \"friendlyName\": \"M365 Business Basic\",\n    \"quantity\": 5,\n    \"unitType\": \"Licenses\",\n    \"productType\": {\n      \"id\": \"OnlineServicesNCE\",\n      \"displayName\": \"OnlineServicesNCE\",\n      \"subType\": null\n    },\n    \"termDuration\": \"P1Y\",\n    \"renewalTermDuration\": \"P1Y\",\n    \"billingCycle\": \"annual\",\n    \"billingType\": \"license\",\n    \"isTrial\": false,\n    \"status\": \"Active\",\n    \"autoRenewEnabled\": true,\n    \"scheduledActions\": \"RenewToExtendedServiceTerm\",\n    \"scheduledNextTermInstructions\": {\n      \"product\": {\n        \"productId\": \"CFQ7TTC0LH18\",\n        \"skuId\": \"0001\",\n        \"availabilityId\": \"DZH318Z0BPS6\",\n        \"billingCycle\": \"annual\",\n        \"termDuration\": \"P1Y\"\n      },\n      \"quantity\": 5,\n      \"customTermEndDate\": null\n    },\n    \"isBlocked\": false,\n    \"cancellationPending\": false,\n    \"suspensionReasons\": [],\n    \"effectiveStartDate\": \"2026-02-01T00:00:00\",\n    \"commitmentEndDate\": \"2027-01-31T00:00:00\",\n    \"endDate\": \"2027-01-31T00:00:00\",\n    \"createDate\": \"2026-02-01T12:30:00\",\n    \"cancellationAllowedUntilDate\": \"2026-02-08T00:00:00\",\n    \"remainingDays\": 180,\n    \"refundableQuantity\": {\n      \"totalQuantity\": 5,\n      \"details\": [\n        {\n          \"quantity\": 5,\n          \"allowedUntilDateTime\": \"2026-02-08T00:00:00\"\n        }\n      ]\n    },\n    \"refundOptions\": [\n      {\n        \"type\": \"Full\",\n        \"expiresAfter\": \"2026-02-08T00:00:00\"\n      }\n    ],\n    \"emailPartnerActive\": true,\n    \"emailPartner\": \"notificaciones@partner.com\",\n    \"emailEndUserActive\": false,\n    \"emailEndUser\": \"admin@contoso.com\",\n    \"promotionId\": null,\n    \"parentSubscriptionId\": null\n  }\n}"}],"_postman_id":"3e349ca8-ebf0-4cd9-828c-a0fb557a83c0"},{"name":"Subscriptions Update","event":[{"listen":"test","script":{"id":"9ede8623-9fc7-4107-adc0-c6f4a92fcf88","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Data is defined\", function() {","    const order = pm.response.json().data;","    return pm.expect(order !== null).to.be.true; ","});","","pm.test(\"Message is not fatal || error\", function() {","    const order = pm.response.json().status;","    return pm.expect(order !== \"error\" && order !== \"fatal\").to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"a8b0809d-3bb1-45de-b0d9-548712d1ca70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"d296cb15-98fb-4a40-a894-251fa9d2cb0c\",\r\n  \"quantity\": 18\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/UpdateSubscription","description":"<p>Applies changes against Partner Center, persists them in LOL, and records the event in the subscription history.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>PUT /v1/UpdateSubscription\n\n</code></pre><p>Do not call <code>/v1/SubscriptionsUpdate</code> or <code>PUT /v1/Subscriptions/{id}</code>. Those paths are not routed. <code>GET /v1/Subscriptions/{id}</code> is get-by-id only.</p>\n<h3 id=\"request-body\">Request body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>subscriptionId</code></td>\n<td><code>a1b2c3d4-...</code></td>\n<td>string (GUID)</td>\n<td>✅ Yes</td>\n<td>Subscription to update.</td>\n</tr>\n<tr>\n<td><code>quantity</code></td>\n<td><code>10</code></td>\n<td>number</td>\n<td>❌ No</td>\n<td>New license quantity. <code>0</code> or omitted = no change.</td>\n</tr>\n<tr>\n<td><code>friendlyName</code></td>\n<td><code>M365 BB - Arya</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>New alias. Empty or omitted = no change.</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>Suspended</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>New status in PascalCase: <code>Active</code>, <code>Suspended</code>, <code>Deleted</code>, <code>Expired</code>, <code>Pending</code>. Omitted or null = no change. Integers are not accepted.</td>\n</tr>\n<tr>\n<td><code>scheduledActions</code></td>\n<td><code>RenewToExtendedServiceTerm</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Renewal policy. See <a href=\"#auto-renew-and-est\">Auto-renew and EST</a>. If omitted on a <code>quantity</code>/<code>friendlyName</code> change while auto-renew is active, ApiGateway re-injects the current policy so Partner Center does not reset it.</td>\n</tr>\n<tr>\n<td><code>scheduledNextTermInstructions</code></td>\n<td><code>{ ... }</code></td>\n<td>object</td>\n<td>❌ No</td>\n<td>Changes scheduled for the next term.</td>\n</tr>\n<tr>\n<td><code>emailPartnerActive</code></td>\n<td><code>true</code></td>\n<td>boolean</td>\n<td>❌ No</td>\n<td>Enables Partner notification. Omitted = no change.</td>\n</tr>\n<tr>\n<td><code>emailPartner</code></td>\n<td><code>notifications@gcn.com</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td>Required when <code>emailPartnerActive</code> is <code>true</code>. Omitted/<code>null</code> = no change (ApiGateway re-injects the current value). <code>\"\"</code> clears the email.</td>\n</tr>\n<tr>\n<td><code>emailEndUserActive</code></td>\n<td><code>false</code></td>\n<td>boolean</td>\n<td>❌ No</td>\n<td>Enables end-customer notification. Omitted = no change.</td>\n</tr>\n<tr>\n<td><code>emailEndUser</code></td>\n<td><code>customer@domain.com</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td>Required when <code>emailEndUserActive</code> is <code>true</code>. Omitted/<code>null</code> = no change (ApiGateway re-injects the current value). <code>\"\"</code> clears the email.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"schedulednextterminstructions-object\"><code>scheduledNextTermInstructions</code> object</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>product.productId</code></td>\n<td><code>CFQ7TTC0LH18</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Product to renew to.</td>\n</tr>\n<tr>\n<td><code>product.skuId</code></td>\n<td><code>0001</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Target SKU.</td>\n</tr>\n<tr>\n<td><code>product.availabilityId</code></td>\n<td><code>DZH318Z0BQ3Q</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Target availability.</td>\n</tr>\n<tr>\n<td><code>product.billingCycle</code></td>\n<td><code>annual</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td><code>monthly</code>, <code>annual</code>, <code>triennial</code>, <code>biennial</code>, <code>oneTime</code>, <code>none</code>.</td>\n</tr>\n<tr>\n<td><code>product.termDuration</code></td>\n<td><code>P1Y</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td><code>P1M</code>, <code>P1Y</code>, or <code>P3Y</code>.</td>\n</tr>\n<tr>\n<td><code>quantity</code></td>\n<td><code>5</code></td>\n<td>number</td>\n<td>✅ Yes</td>\n<td>Quantity for the next term (<code>&gt; 0</code>). Required when <code>scheduledNextTermInstructions</code> is sent.</td>\n</tr>\n<tr>\n<td><code>customTermEndDate</code></td>\n<td><code>2027-03-31</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Coterm date. Obtain from <code>GET /v1/CustomTermEndDates</code> using a <code>termDuration</code> allowed by the product (see TransitionProducts).</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"sample-request--enable-est\">Sample request — enable EST</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n  \"scheduledActions\": \"RenewToExtendedServiceTerm\"\n}\n\n</code></pre>\n<h3 id=\"sample-request--disable-auto-renew\">Sample request — disable auto-renew</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n  \"scheduledActions\": \"Cancel\"\n}\n\n</code></pre>\n<h3 id=\"sample-request--next-term-change-with-coterm\">Sample request — next-term change with coterm</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n  \"scheduledActions\": \"RenewToNewTerm\",\n  \"scheduledNextTermInstructions\": {\n    \"product\": {\n      \"productId\": \"CFQ7TTC0LH18\",\n      \"skuId\": \"0001\",\n      \"availabilityId\": \"DZH318Z0BQ3Q\",\n      \"billingCycle\": \"annual\",\n      \"termDuration\": \"P1Y\"\n    },\n    \"quantity\": 5,\n    \"customTermEndDate\": \"2027-03-31\"\n  }\n}\n\n</code></pre>\n<h3 id=\"sample-response\">Sample response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"success\": true,\n    \"partnerCenterSubmitted\": true,\n    \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n    \"countryCode\": \"UY\",\n    \"oldQuantity\": 5,\n    \"newQuantity\": 10,\n    \"oldFriendlyName\": \"M365 BB\",\n    \"friendlyName\": \"M365 BB - Company\",\n    \"oldStatus\": \"Active\",\n    \"status\": \"Active\",\n    \"oldScheduledActions\": \"RenewToNewTerm\",\n    \"scheduledActions\": \"RenewToExtendedServiceTerm\",\n    \"oldAutoRenewEnabled\": true,\n    \"autoRenewEnabled\": true,\n    \"emailPartner\": \"notifications@gcn.com\",\n    \"emailEndUser\": \"customer@domain.com\",\n    \"emailPartnerActive\": true,\n    \"emailEndUserActive\": false\n  }\n}\n\n</code></pre>\n<p>Useful response fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>oldQuantity</code> / <code>newQuantity</code></td>\n<td>Quantity before / after.</td>\n</tr>\n<tr>\n<td><code>oldFriendlyName</code> / <code>friendlyName</code></td>\n<td>Alias before / after.</td>\n</tr>\n<tr>\n<td><code>oldScheduledActions</code> / <code>scheduledActions</code></td>\n<td>Renewal policy before / after. Values: <code>RenewToNewTerm</code>, <code>RenewToExtendedServiceTerm</code>, <code>Cancel</code>.</td>\n</tr>\n<tr>\n<td><code>oldAutoRenewEnabled</code> / <code>autoRenewEnabled</code></td>\n<td>Auto-renew before / after, as reported by Partner Center.</td>\n</tr>\n<tr>\n<td><code>emailPartner</code> / <code>emailEndUser</code></td>\n<td>Notification emails after the update (LOL local settings).</td>\n</tr>\n<tr>\n<td><code>emailPartnerActive</code> / <code>emailEndUserActive</code></td>\n<td>Notification flags after the update.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"combination-rules\">Combination rules</h3>\n<p>Each request should represent a single intent. The API rejects these combinations:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Rule</th>\n<th>Message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Quantity and status together</td>\n<td><code>quantity and status cannot be updated in the same request.</code></td>\n</tr>\n<tr>\n<td>Suspend together with any other change</td>\n<td><code>suspend cannot be combined with other changes.</code></td>\n</tr>\n<tr>\n<td>Cancel together with a quantity change</td>\n<td><code>cancel cannot be combined with a quantity change.</code></td>\n</tr>\n<tr>\n<td>Cancel together with a friendlyName change</td>\n<td><code>cancel cannot be combined with a friendlyName change.</code></td>\n</tr>\n<tr>\n<td>Cancel together with next-term instructions</td>\n<td><code>scheduledNextTermInstructions cannot be sent when scheduledActions is Cancel.</code></td>\n</tr>\n<tr>\n<td>Next term without active auto-renew</td>\n<td><code>scheduledNextTermInstructions requires an active auto renew (scheduledActions RenewToNewTerm or RenewToExtendedServiceTerm).</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"other-errors\">Other errors</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Message</th>\n<th>Cause</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>subscriptionId required.</code> / <code>subscriptionId invalid.</code></td>\n<td>Missing, malformed, or non-existent id.</td>\n</tr>\n<tr>\n<td><code>subscriptionId not related to partner.</code></td>\n<td>The subscription belongs to another Partner.</td>\n</tr>\n<tr>\n<td><code>subscription is blocked.</code></td>\n<td>The subscription is blocked (for example, due to debt). Only LOL can unlock it.</td>\n</tr>\n<tr>\n<td><code>subscription was updated recently. Retry in a few minutes.</code></td>\n<td>Cooldown between manual updates: 1 minute for quantity changes, 10 minutes after a cancellation.</td>\n</tr>\n<tr>\n<td><code>quantity invalid.</code></td>\n<td>Negative quantity.</td>\n</tr>\n<tr>\n<td><code>status invalid. Allowed values: Active, Suspended, Deleted, Expired, Pending.</code></td>\n<td>Status outside the allowed list, or sent as a number (<code>1</code>, <code>\"1\"</code>).</td>\n</tr>\n<tr>\n<td><code>scheduledActions invalid. Allowed values: ...</code></td>\n<td>Unrecognized renewal action.</td>\n</tr>\n<tr>\n<td><code>emailPartner required.</code> / <code>emailEndUser required.</code></td>\n<td>Notification flag is active and the address is missing.</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Cooldown window:</strong> when certifying the flow, remember that two consecutive updates on the same subscription are rejected until the cooldown expires. This is not a malformed request. </p>\n</blockquote>\n<hr />\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","UpdateSubscription"],"host":["api","licenciasonline","com"],"query":[],"variable":[]}},"response":[{"id":"d51edbb4-18f2-b8b1-c409-c2a2e03b7f36","name":"Change quantity","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\r\n  \"quantity\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/UpdateSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"success\": true,\n    \"partnerCenterSubmitted\": true,\n    \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n    \"countryCode\": \"UY\",\n    \"oldQuantity\": 5,\n    \"newQuantity\": 10,\n    \"oldFriendlyName\": \"M365 BB\",\n    \"friendlyName\": \"M365 BB\",\n    \"oldStatus\": \"Active\",\n    \"status\": \"Active\",\n    \"oldScheduledActions\": \"RenewToNewTerm\",\n    \"scheduledActions\": \"RenewToNewTerm\",\n    \"oldAutoRenewEnabled\": true,\n    \"autoRenewEnabled\": true,\n    \"emailPartner\": \"notifications@gcn.com\",\n    \"emailEndUser\": \"customer@domain.com\",\n    \"emailPartnerActive\": true,\n    \"emailEndUserActive\": false\n  }\n}"},{"id":"7b7c9c27-72a8-3a78-64d8-8e4c726848b5","name":"Change friendlyName","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\r\n  \"friendlyName\": \"M365 BB - Contoso\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/UpdateSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"success\": true,\n    \"partnerCenterSubmitted\": true,\n    \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n    \"countryCode\": \"UY\",\n    \"oldQuantity\": 5,\n    \"newQuantity\": 5,\n    \"oldFriendlyName\": \"M365 BB\",\n    \"friendlyName\": \"M365 BB - Contoso\",\n    \"oldStatus\": \"Active\",\n    \"status\": \"Active\",\n    \"oldScheduledActions\": \"RenewToNewTerm\",\n    \"scheduledActions\": \"RenewToNewTerm\",\n    \"oldAutoRenewEnabled\": true,\n    \"autoRenewEnabled\": true,\n    \"emailPartner\": \"notifications@gcn.com\",\n    \"emailEndUser\": \"customer@domain.com\",\n    \"emailPartnerActive\": true,\n    \"emailEndUserActive\": false\n  }\n}"},{"id":"413c8af9-5502-6a60-7888-cdc0bdce6e14","name":"Suspend","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\r\n  \"status\": \"Suspended\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/UpdateSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"success\": true,\n    \"partnerCenterSubmitted\": true,\n    \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n    \"countryCode\": \"UY\",\n    \"oldQuantity\": 5,\n    \"newQuantity\": 5,\n    \"oldFriendlyName\": \"M365 BB\",\n    \"friendlyName\": \"M365 BB\",\n    \"oldStatus\": \"Active\",\n    \"status\": \"Suspended\",\n    \"oldScheduledActions\": \"RenewToNewTerm\",\n    \"scheduledActions\": \"RenewToNewTerm\",\n    \"oldAutoRenewEnabled\": true,\n    \"autoRenewEnabled\": true,\n    \"emailPartner\": \"notifications@gcn.com\",\n    \"emailEndUser\": \"customer@domain.com\",\n    \"emailPartnerActive\": true,\n    \"emailEndUserActive\": false\n  }\n}"},{"id":"0de9b46e-9469-b6e7-1d7f-2f9a4af12946","name":"Cancel now","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\r\n  \"status\": \"Deleted\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/UpdateSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"success\": true,\n    \"partnerCenterSubmitted\": true,\n    \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n    \"countryCode\": \"UY\",\n    \"oldQuantity\": 5,\n    \"newQuantity\": 5,\n    \"oldFriendlyName\": \"M365 BB\",\n    \"friendlyName\": \"M365 BB\",\n    \"oldStatus\": \"Active\",\n    \"status\": \"Deleted\",\n    \"oldScheduledActions\": \"RenewToNewTerm\",\n    \"scheduledActions\": \"RenewToNewTerm\",\n    \"oldAutoRenewEnabled\": true,\n    \"autoRenewEnabled\": true,\n    \"emailPartner\": \"notifications@gcn.com\",\n    \"emailEndUser\": \"customer@domain.com\",\n    \"emailPartnerActive\": true,\n    \"emailEndUserActive\": false\n  }\n}"},{"id":"a140697b-a941-2a0d-65d6-1d08185214e1","name":"Enable EST","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\r\n  \"scheduledActions\": \"RenewToExtendedServiceTerm\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/UpdateSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"success\": true,\n    \"partnerCenterSubmitted\": true,\n    \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n    \"countryCode\": \"UY\",\n    \"oldQuantity\": 5,\n    \"newQuantity\": 5,\n    \"oldFriendlyName\": \"M365 BB\",\n    \"friendlyName\": \"M365 BB\",\n    \"oldStatus\": \"Active\",\n    \"status\": \"Active\",\n    \"oldScheduledActions\": \"RenewToNewTerm\",\n    \"scheduledActions\": \"RenewToExtendedServiceTerm\",\n    \"oldAutoRenewEnabled\": true,\n    \"autoRenewEnabled\": true,\n    \"emailPartner\": \"notifications@gcn.com\",\n    \"emailEndUser\": \"customer@domain.com\",\n    \"emailPartnerActive\": true,\n    \"emailEndUserActive\": false\n  }\n}"},{"id":"7dde5231-800d-b30a-9be5-ea07e2af03fe","name":"Cancel at end of term","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\r\n  \"scheduledActions\": \"Cancel\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/UpdateSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"success\": true,\n    \"partnerCenterSubmitted\": true,\n    \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n    \"countryCode\": \"UY\",\n    \"oldQuantity\": 5,\n    \"newQuantity\": 5,\n    \"oldFriendlyName\": \"M365 BB\",\n    \"friendlyName\": \"M365 BB\",\n    \"oldStatus\": \"Active\",\n    \"status\": \"Active\",\n    \"oldScheduledActions\": \"RenewToNewTerm\",\n    \"scheduledActions\": \"Cancel\",\n    \"oldAutoRenewEnabled\": true,\n    \"autoRenewEnabled\": false,\n    \"emailPartner\": \"notifications@gcn.com\",\n    \"emailEndUser\": \"customer@domain.com\",\n    \"emailPartnerActive\": true,\n    \"emailEndUserActive\": false\n  }\n}"},{"id":"4eab061c-a3c0-5204-7ead-8e9201e0d63d","name":"Next-term with coterm","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\r\n  \"scheduledActions\": \"RenewToNewTerm\",\r\n  \"scheduledNextTermInstructions\": {\r\n    \"product\": {\r\n      \"productId\": \"CFQ7TTC0LH18\",\r\n      \"skuId\": \"0001\",\r\n      \"availabilityId\": \"DZH318Z0BQ3Q\",\r\n      \"billingCycle\": \"annual\",\r\n      \"termDuration\": \"P1Y\"\r\n    },\r\n    \"quantity\": 5,\r\n    \"customTermEndDate\": \"2027-03-31\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/UpdateSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"success\": true,\n    \"partnerCenterSubmitted\": true,\n    \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\n    \"countryCode\": \"UY\",\n    \"oldQuantity\": 5,\n    \"newQuantity\": 5,\n    \"oldFriendlyName\": \"M365 BB\",\n    \"friendlyName\": \"M365 BB\",\n    \"oldStatus\": \"Active\",\n    \"status\": \"Active\",\n    \"oldScheduledActions\": \"RenewToNewTerm\",\n    \"scheduledActions\": \"RenewToNewTerm\",\n    \"oldAutoRenewEnabled\": true,\n    \"autoRenewEnabled\": true,\n    \"emailPartner\": \"notifications@gcn.com\",\n    \"emailEndUser\": \"customer@domain.com\",\n    \"emailPartnerActive\": true,\n    \"emailEndUserActive\": false\n  }\n}"},{"id":"03b21b86-9489-f8e5-5f2c-f2dfc030bf67","name":"Error - quantity and status together","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"a1b2c3d4-1111-2222-3333-444455556666\",\r\n  \"quantity\": 18,\r\n  \"status\": \"Suspended\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.licenciasonline.com/v1/UpdateSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"message\": \"quantity and status cannot be updated in the same request.\",\n  \"messageCode\": null,\n  \"data\": null\n}"}],"_postman_id":"a8b0809d-3bb1-45de-b0d9-548712d1ca70"},{"name":"Subscription Transition Products","id":"62ac4a57-00d9-4ad4-bd41-1dd1c4db6dda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Subscriptions/:subscriptionId/TransitionProducts","description":"<p>Returns products eligible to schedule the subscription’s <strong>next term</strong>, including the <strong>term durations and billing cycles</strong> each product allows.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/Subscriptions/{subscriptionId}/TransitionProducts\n\n</code></pre><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>subscriptionId</code></td>\n<td><code>a1b2c3d4-...</code></td>\n<td>string (GUID)</td>\n<td>✅ Yes</td>\n<td>Source subscription.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"sample-response\">Sample response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"count\": 2,\n    \"items\": [\n      {\n        \"productId\": \"CFQ7TTC0LFLX\",\n        \"skuId\": \"0001\",\n        \"availabilityId\": \"CFQ7TTC13LDS\",\n        \"title\": \"Microsoft 365 E3\",\n        \"quantity\": 1,\n        \"terms\": [\n          {\n            \"termDuration\": \"P1M\",\n            \"billingCycles\": [\"monthly\"]\n          }\n        ]\n      },\n      {\n        \"productId\": \"CFQ7TTC0LHSF\",\n        \"skuId\": \"0001\",\n        \"availabilityId\": \"CFQ7TTC0MP59\",\n        \"title\": \"Power BI Pro\",\n        \"quantity\": 1,\n        \"terms\": [\n          {\n            \"termDuration\": \"P1M\",\n            \"billingCycles\": [\"monthly\"]\n          }\n        ]\n      }\n    ]\n  }\n}\n\n</code></pre>\n<h3 id=\"response-fields\">Response fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>count</code></td>\n<td>Number of mapped products.</td>\n</tr>\n<tr>\n<td><code>items[].productId</code> / <code>skuId</code> / <code>availabilityId</code></td>\n<td>Identifiers for <code>scheduledNextTermInstructions.product</code>.</td>\n</tr>\n<tr>\n<td><code>items[].title</code></td>\n<td>Product name.</td>\n</tr>\n<tr>\n<td><code>items[].quantity</code></td>\n<td>Suggested quantity.</td>\n</tr>\n<tr>\n<td><code>items[].terms[].termDuration</code></td>\n<td><code>P1M</code>, <code>P1Y</code>, or <code>P3Y</code>.</td>\n</tr>\n<tr>\n<td><code>items[].terms[].billingCycles</code></td>\n<td>Allowed cycles: <code>monthly</code>, <code>annual</code>, <code>triennial</code>, <code>biennial</code>, <code>oneTime</code>, <code>none</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p>Only use a <code>termDuration</code> that appears in <code>terms</code> for the chosen product. Then call <code>CustomTermEndDates</code> with that same duration. </p>\n</blockquote>\n<h3 id=\"errors\">Errors</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Message</th>\n<th>Cause</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>subscriptionId required.</code> / <code>subscriptionId invalid.</code></td>\n<td>Id missing or malformed.</td>\n</tr>\n<tr>\n<td><code>subscriptionId not related to partner.</code></td>\n<td>The subscription belongs to another Partner.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","Subscriptions",":subscriptionId","TransitionProducts"],"host":["api","licenciasonline","com"],"query":[],"variable":[{"type":"any","key":"subscriptionId"}]}},"response":[{"id":"bf688ecd-763a-46de-923a-a88966f587b8","name":"Subscription Transition Products","originalRequest":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/Subscriptions/9f6a7385-4b08-4660-bfbc-87fb35e1fc42/TransitionProducts"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n  \"status\": \"success\",\r\n  \"message\": null,\r\n  \"data\": {\r\n    \"count\": 2,\r\n    \"items\": [\r\n      {\r\n        \"productId\": \"CFQ7TTC0LFLX\",\r\n        \"skuId\": \"0001\",\r\n        \"availabilityId\": \"CFQ7TTC13LDS\",\r\n        \"title\": \"Microsoft 365 E3\",\r\n        \"quantity\": 1,\r\n        \"terms\": [\r\n          {\r\n            \"termDuration\": \"P1M\",\r\n            \"billingCycles\": [\"monthly\"]\r\n          }\r\n        ]\r\n      },\r\n      {\r\n        \"productId\": \"CFQ7TTC0LHSF\",\r\n        \"skuId\": \"0001\",\r\n        \"availabilityId\": \"CFQ7TTC0MP59\",\r\n        \"title\": \"Power BI Pro\",\r\n        \"quantity\": 1,\r\n        \"terms\": [\r\n          {\r\n            \"termDuration\": \"P1M\",\r\n            \"billingCycles\": [\"monthly\"]\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  }\r\n}"}],"_postman_id":"62ac4a57-00d9-4ad4-bd41-1dd1c4db6dda"},{"name":"CustomTermEndDates","id":"45647ba5-6a88-4f45-85ec-1ab68b939b2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.licenciasonline.com/v1/CustomTermEndDates?termDuration=P1Y&subscriptionId=","description":"<p>Returns custom term end dates to <strong>align with other subscriptions for the same customer</strong> (or with the calendar), for the requested duration.</p>\n<p><code>allowedCustomTermEndDate</code> is exposed as <strong><code>YYYY-MM-DD</code></strong> (same format accepted by <code>customTermEndDate</code> on Update).</p>\n<blockquote>\n<p><strong>Important:</strong> this endpoint <strong>does not validate the product</strong>.<br /><code>subscriptionId</code> anchors the customer and the next-term start date.<br /><code>termDuration</code> must be one allowed by the <strong>target product</strong> (obtain it from TransitionProducts).<br />Requesting <code>P3Y</code> for a product that only sells <code>P1Y</code> may return dates that later fail on Update. </p>\n</blockquote>\n<h3 id=\"query-params\">Query params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Sample</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>termDuration</code></td>\n<td><code>P1Y</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Term duration to schedule: <code>P1M</code>, <code>P1Y</code>, or <code>P3Y</code>. Must match a <code>terms[].termDuration</code> of the target product.</td>\n</tr>\n<tr>\n<td><code>subscriptionId</code></td>\n<td><code>a1b2c3d4-...</code></td>\n<td>string (GUID)</td>\n<td>✅ Yes</td>\n<td>Reference subscription (customer + next-term start).</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"sample-response\">Sample response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"success\",\n  \"message\": null,\n  \"data\": {\n    \"totalCount\": 2,\n    \"customTermEndDateItems\": [\n      {\n        \"allowedCustomTermEndDateType\": \"aligned\",\n        \"allowedCustomTermEndDate\": \"2027-03-31\",\n        \"termDuration\": \"P1Y\",\n        \"cotermSubscriptionIds\": [ \"b2c3d4e5-...\" ]\n      }\n    ]\n  }\n}\n\n</code></pre>\n<h3 id=\"errors\">Errors</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Message</th>\n<th>Cause</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>termDuration required.</code></td>\n<td>Parameter missing.</td>\n</tr>\n<tr>\n<td><code>termDuration invalid. Allowed values: P1M, P1Y, P3Y.</code></td>\n<td>Value not allowed.</td>\n</tr>\n<tr>\n<td><code>subscriptionId required.</code></td>\n<td>Parameter missing or empty GUID.</td>\n</tr>\n<tr>\n<td><code>subscriptionId invalid.</code></td>\n<td>The subscription does not exist.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","CustomTermEndDates"],"host":["api","licenciasonline","com"],"query":[{"description":{"content":"<p>Required. Allowed values: P1M, P1Y, P3Y.</p>\n","type":"text/plain"},"key":"termDuration","value":"P1Y"},{"description":{"content":"<p>Required. Microsoft subscription GUID.</p>\n","type":"text/plain"},"key":"subscriptionId","value":""}],"variable":[]}},"response":[{"id":"6cdf7096-b802-4006-b91a-67b0f9bf07b5","name":"CustomTermEndDates","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.licenciasonline.com/v1/CustomTermEndDates?termDuration=P1Y&subscriptionId=9f6a7385-4b08-4660-bfbc-87fb35e1fc42","protocol":"https","host":["api","licenciasonline","com"],"path":["v1","CustomTermEndDates"],"query":[{"key":"termDuration","value":"P1Y"},{"key":"subscriptionId","value":"9f6a7385-4b08-4660-bfbc-87fb35e1fc42"}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n  \"status\": \"success\",\r\n  \"message\": null,\r\n  \"data\": {\r\n    \"totalCount\": 2,\r\n    \"customTermEndDateItems\": [\r\n      {\r\n        \"allowedCustomTermEndDateType\": \"aligned\",\r\n        \"allowedCustomTermEndDate\": \"2027-03-31\",\r\n        \"termDuration\": \"P1Y\",\r\n        \"cotermSubscriptionIds\": [ \"b2c3d4e5-...\" ]\r\n      }\r\n    ]\r\n  }\r\n}\r\n"}],"_postman_id":"45647ba5-6a88-4f45-85ec-1ab68b939b2f"}],"id":"d3330920-0ac5-4ecc-ad99-e1137aa740a6","description":"<p>Search / get, then Update one intent at a time. Use the saved examples.</p>\n","event":[{"listen":"prerequest","script":{"id":"afb13da8-a2dd-420d-991b-b6b6cd796d61","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d2a8e67e-818c-4fe1-8e83-026f23a834d0","type":"text/javascript","exec":[""]}}],"_postman_id":"d3330920-0ac5-4ecc-ad99-e1137aa740a6","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","id":"8a2e26e4-d5a8-46ef-801f-9be7d0bcafd8","name":"Documentation api.licenciasonline.com","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]}},"event":[{"listen":"prerequest","script":{"id":"9117ecd3-75d6-4fec-aa80-0a81fae982d6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7361c3a6-e16d-475f-beb4-84015903f4c5","type":"text/javascript","exec":[""]}}],"variable":[{"key":"username","value":""},{"key":"password","value":""}]}