{"info":{"_postman_id":"5b40c707-8ad8-410c-9ad6-98fb0dd28e68","name":"NoChannel Customer APIs","description":"<html><head></head><body><h1 id=\"getting-started\">Getting Started</h1>\n<p> <strong>TODO : Complete this section some time soon</strong></p>\n<h1 id=\"understanding-terms\">Understanding Terms</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Term</th>\n<th>Definition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>User</td>\n<td>A backend application user, typically a service agent or a catalog manager</td>\n</tr>\n<tr>\n<td>Customer</td>\n<td>an end user of the system - typically a consumer</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"required-for-all-calls\">Required For All Calls...</h1>\n<h2 id=\"http-headers\">HTTP Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>header name</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>this is the identifier for the tenant that you are creating requests for (provided by UpStart when your account was set up).  This is required on ALL API calls</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"authentication\">Authentication</h1>\n<p>There are 4 levels of authentication in our APIs.</p>\n<ol>\n<li>Totally Anonymous</li>\n<li>Partially Anonymouns</li>\n<li>Logged in via auth credentials</li>\n<li>Logged in via token</li>\n</ol>\n<h2 id=\"totally-anonymous\">Totally Anonymous</h2>\n<p>This state has very limited functionality.  There are only a couple of calls that can be made with total anonymity and these calls are really only there to allow for the transition to another level on authentications</p>\n<h2 id=\"partially-anonymous\">Partially Anonymous</h2>\n<p>The first call should be to obtain an Anonymous Token (Fetch Anonymous Token).  This will allow for subsequent calls to pass the most basic of authnetication.  This token never expires and should be stored persistently.</p>\n<h2 id=\"logged-in-via-auth-credentials\">Logged in via auth credentials</h2>\n<p>This means that the request has been (recently) authorized using a login and password and that the auth token and/or the refresh token are both current and valid</p>\n<h2 id=\"logged-in-via-token\">Logged in via Token</h2>\n<p>This indicates that at some point in the pass the request was authorized with a login and password, an auth token and a refresh token were generated and they have, since, expired.</p>\n<h1 id=\"authorization\">Authorization</h1>\n<p>Authorization is a role based system.  Roles are included as part of the JWT auth token.</p>\n<h1 id=\"using-the-examples\">Using the Examples</h1>\n<p>  <strong>TODO : Complete this Section</strong></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Getting Started","slug":"getting-started"},{"content":"Understanding Terms","slug":"understanding-terms"},{"content":"Required For All Calls...","slug":"required-for-all-calls"},{"content":"Authentication","slug":"authentication"},{"content":"Authorization","slug":"authorization"},{"content":"Using the Examples","slug":"using-the-examples"}],"owner":"5291356","collectionId":"5b40c707-8ad8-410c-9ad6-98fb0dd28e68","publishedId":"S11By2Ai","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-07-15T14:29:24.000Z"},"item":[{"name":"customer","item":[{"name":"Address","item":[{"name":"Unset default billing address","id":"7f86c827-ef12-44b5-ac3c-dd52b5067482","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/profile/addresses/default/billing","description":"<p>This call removes the default billing address for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","addresses","default","billing"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"58a43f29-1df4-4204-83d3-b4e364c567c8","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FwaS51cHN0YXJ0Y29tbWVyY2UuY29tIiwiaWF0IjoxNTM4NTc4MzIyLCJ1c2VySWQiOiIxNDcyMTM3Yi1iODVmLTRkMDktODYxYi1iZDRiNjY2NWI2NzUiLCJsb2dpbiI6InRlc3QiLCJ0ZW5hbnRNYXAiOnsiZGVudmVybWF0dHJlc3MiOnsicm9sZXMiOlsibG9jYXRpb24ubWFuYWdlIiwicHJpY2luZy5tYW5hZ2UiLCJpbnZlbnRvcnkubWFuYWdlIiwiY3VzdG9tZXIuZGVmYXVsdCIsInByb2R1Y3QubWFuYWdlIiwicHJvZHVjdC5wdWJsaXNoIl19fX0.Bhu4nwW-mzUg51uY1n7lLdQtxvVMrYGYrBOimnfxuck"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{api_host}}/v1/customer/:customerId/addresses/default/shipping","host":["{{api_host}}"],"path":["v1","customer",":customerId","addresses","default","shipping"],"variable":[{"key":"customerId","value":"{{customer_id}}","description":"ID of the customer"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:28:22 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"6ac44413-855f-4ee0-a697-c24c76df7ffa","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{api_host}}/v1/customer/:customerId/addresses/default/shipping","host":["{{api_host}}"],"path":["v1","customer",":customerId","addresses","default","shipping"],"variable":[{"key":"customerId","value":"{{customer_id}}","description":"ID of the customer"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:28:39 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"d74d1434-a6df-431e-a904-f9e44fc3575e","name":"Customer doesn't exist","originalRequest":{"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{api_host}}/v1/customer/:customerId/addresses/default/shipping","host":["{{api_host}}"],"path":["v1","customer",":customerId","addresses","default","shipping"],"variable":[{"key":"customerId","value":"{{customer_id}}","description":"ID of the customer"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:10:02 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"}],"_postman_id":"7f86c827-ef12-44b5-ac3c-dd52b5067482"},{"name":"Set default shipping address","id":"c9754794-7482-4b8a-8e1a-fb736c111eee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/profile/addresses/default/shipping/:label","description":"<p>This call sets the default shipping address by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>Address with a given label does not exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","addresses","default","shipping",":label"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"c8866103-2cd8-4be4-9591-b60081bc28b3","description":{"content":"<p>Label of the address to be set as default shipping address</p>\n","type":"text/plain"},"type":"string","value":"{{address_label}}","key":"label"}]}},"response":[{"id":"59084d5b-bc6b-45cd-ba83-03341296f4d5","name":"Customer doesn't exist","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{api_host}}/v1/customer/addresses/default/shipping/:label","host":["{{api_host}}"],"path":["v1","customer","addresses","default","shipping",":label"],"variable":[{"key":"label","value":"{{address_label}}","description":"Label of the address to be set as default shipping address"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:09:50 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"a07a7517-c475-4120-9b91-1e0c71ae4270","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{auth_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/addresses/default/shipping/dba"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:26:03 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"e8e2cc35-0cbe-4308-b6f3-22e95b1d9850","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{auth_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/addresses/default/shipping/dba"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:25:50 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"f14dea35-069e-42e4-950c-b4a38d0a44fd","name":"Unknown address","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{auth_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/addresses/default/shipping/db"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:26:21 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unknown address: Some(db)\",\n    \"code\": \"COR-002\"\n}"}],"_postman_id":"c9754794-7482-4b8a-8e1a-fb736c111eee"},{"name":"Set default billing address","id":"0b8413cb-fc08-4321-810a-9c256fa9da58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/profile/addresses/default/billing/:label","description":"<p>This call sets the default billing address by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>Address with a given label does not exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","addresses","default","billing",":label"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"63dc14ca-d108-4341-989a-1b510baced05","description":{"content":"<p>Label of the address to be set as default billing address</p>\n","type":"text/plain"},"type":"string","value":"{{address_label}}","key":"label"}]}},"response":[{"id":"3fadb975-5e4a-4f60-9180-95ac22d90d97","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/addresses/default/billing/address1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:19:15 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"4d9d85cc-e6a2-4efa-bda6-f0d041acb925","name":"Customer doesn't exist","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{api_host}}/v1/customer/addresses/default/billing/:label","host":["{{api_host}}"],"path":["v1","customer","addresses","default","billing",":label"],"variable":[{"key":"label","value":"{{address_label}}","description":"Label of the address to be set as default billing address"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:09:37 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"729a4f39-2766-4112-9f2a-c9b339401cf0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/addresses/default/billing/address1"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:21:30 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"815254d4-50f5-440a-8582-b97340570021","name":"Unknown address","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/addresses/default/billing/address1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:19:01 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unknown address: address1\",\n    \"code\": \"COR-002\"\n}"}],"_postman_id":"0b8413cb-fc08-4321-810a-9c256fa9da58"},{"name":"Remove address","id":"a87f4526-4112-437f-9e79-bf9afaad14a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/profile/addresses/:label","description":"<p>This call deletes an address by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>Attempt to delete default address</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>Attempt to delete non-existent address</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","addresses",":label"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"43ba12e9-b757-4c07-a549-cc82e0c01761","description":{"content":"<p>Label of the address to be removed</p>\n","type":"text/plain"},"type":"string","value":"{{address_label}}","key":"label"}]}},"response":[{"id":"08eafbde-98b5-4903-9b9d-2fb9cf28f4b7","name":"Customer doesn't exist","originalRequest":{"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{api_host}}/v1/customer/addresses/:label","host":["{{api_host}}"],"path":["v1","customer","addresses",":label"],"variable":[{"key":"label","value":"{{address_label}}","description":"Label of the address to be removed"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:09:21 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"3474dea8-ff19-499f-9442-c5c24b530f2e","name":"Unknown address","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/addresses/aaa"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:14:32 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"48"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unknown address: aaa\",\n    \"code\": \"COR-002\"\n}"},{"id":"48576819-a9c1-43c1-8e14-527b6c121ab2","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{api_host}}/v1/customer/addresses/:label","host":["{{api_host}}"],"path":["v1","customer","addresses",":label"],"variable":[{"key":"label","value":"{{address_label}}","description":"Label of the address to be removed"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:20:24 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"739c267a-aaae-4cb1-aa78-c1fd7d430693","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/addresses/a1"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:14:55 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a87f4526-4112-437f-9e79-bf9afaad14a6"},{"name":"Set address","id":"0904a38b-0e60-4848-861e-5d755ac77ef7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customer_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"address2\",\n  \"name\" : {\n  \t\"first\" : \"Thorin\",\n  \t\"last\" : \"Oakenshield\"\n  },\n  \"street1\": \"54 Wall St\",\n  \"street2\": \"s2\",\n  \"county\": \"c\",\n  \"postalCode\": \"10005\",\n  \"city\": \"New York\",\n  \"stateOrRegion\": \"NY\",\n  \"country\": \"US\",\n  \"phoneNumber\" : \"+1234567890\"\n}"},"url":"{{api_host}}/v1/customer/profile/addresses","description":"<p>This call sets an address by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"post-body\">Post Body</h3>\n<h6 id=\"address\">address</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>true</td>\n<td>per-user unique identifier for this address (aka nickname)</td>\n</tr>\n<tr>\n<td>name</td>\n<td>name*</td>\n<td>conditional</td>\n<td>name structure, mandatory if poBox flag is not set</td>\n</tr>\n<tr>\n<td>businessName</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>street1</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>street2</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>county</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>stateOrRegion</td>\n<td>string</td>\n<td>true</td>\n<td>Two-letter US state code</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>true</td>\n<td>ISO 3166-1 alpha-2 country code</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>string</td>\n<td>true</td>\n<td>Phone number in the international format (+1234567890)</td>\n</tr>\n<tr>\n<td>poBox</td>\n<td>boolean</td>\n<td>false</td>\n<td>Flag indicating whether the address is a PO box address, false by default</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"name\">name</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>salutation</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>first</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>middleInitial</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>last</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>suffix</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation error</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","addresses"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"451b5dab-abf7-4a75-9bf4-8d37155027a2","name":"Validation errors","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"address1\",\n  \"street1\": \"\",\n  \"street2\": \"s2\",\n  \"county\": \"\",\n  \"postalCode\": \"zip\",\n  \"city\": \"city\",\n  \"stateOrRegion\": \"M\",\n  \"country\": \"S\"\n}"},"url":"{{api_host}}/v1/customer/addresses"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 14:20:36 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"491"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"street1\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"Attribute street1 can`t be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"country\",\n            \"errors\": [\n                {\n                    \"id\": \"isoCountry\",\n                    \"message\": \"Attribute country: S is not a valid ISO 3166-1 alpha-2 country code.\"\n                }\n            ]\n        },\n        {\n            \"path\": \"county\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"Attribute county can`t be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"stateOrRegion\",\n            \"errors\": [\n                {\n                    \"id\": \"stateCode\",\n                    \"message\": \"Attribute stateOrRegion: M is not a valid state code.\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"57baa331-35b5-4b3e-a8ff-581a47c4e5b9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"address1\",\n  \"street1\": \"street1\",\n  \"street2\": \"s2\",\n  \"county\": \"c\",\n  \"postalCode\": \"zip\",\n  \"city\": \"city\",\n  \"stateOrRegion\": \"MS\",\n  \"country\": \"US\"\n}"},"url":"{{api_host}}/v1/customer/addresses"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 15 Nov 2018 14:15:07 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"84e9ca40-6d32-45cb-b7ec-b2b4fa060ddd","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"address1\",\n  \"street1\": \"street1\",\n  \"street2\": \"s2\",\n  \"county\": \"c\",\n  \"postalCode\": \"zip\",\n  \"city\": \"city\",\n  \"stateOrRegion\": \"MS\",\n  \"country\": \"US\"\n}"},"url":"{{api_host}}/v1/customer/addresses"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 14:21:18 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"d2412e33-1987-44d3-b0a5-537838a8fdb8","name":"Customer doesn't exist","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"address1\",\n  \"street1\": \"street1\",\n  \"street2\": \"s2\",\n  \"county\": \"c\",\n  \"postalCode\": \"zip\",\n  \"city\": \"city\",\n  \"stateOrRegion\": \"MS\",\n  \"country\": \"US\"\n}"},"url":"{{api_host}}/v1/customer/addresses"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:12:15 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"}],"_postman_id":"0904a38b-0e60-4848-861e-5d755ac77ef7"}],"id":"0a458add-4727-4385-a1f1-ae33d2b5f535","_postman_id":"0a458add-4727-4385-a1f1-ae33d2b5f535","description":""},{"name":"Credit Card","item":[{"name":"Set credit card","id":"9f233094-9a38-41ca-8129-45bafe0db745","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"c2\",\n  \"token\": \"token\",\n  \"cardNumber\": \"2356\",\n  \"expirationYear\" : \"1234\",\n  \"expirationMonth\": \"01\",\n  \"cardType\": \"Visa\"\n}"},"url":"{{api_host}}/v1/customer/profile/creditcards/cards","description":"<p>This call sets a credit card by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"post-body\">Post Body</h3>\n<h6 id=\"creditcard\">creditCard</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>true</td>\n<td>per-user unique identifier for this credit card (aka nickname)</td>\n</tr>\n<tr>\n<td>cardType</td>\n<td>string</td>\n<td>true</td>\n<td>credit card type, one of \"AmericanExpress\", \"Discover\", \"MasterCard\" or \"Visa\"</td>\n</tr>\n<tr>\n<td>expirationMonth</td>\n<td>string</td>\n<td>true</td>\n<td>expiration month in MM format</td>\n</tr>\n<tr>\n<td>expirationYear</td>\n<td>string</td>\n<td>true</td>\n<td>expiration year in YYYY format</td>\n</tr>\n<tr>\n<td>token</td>\n<td>string</td>\n<td>true</td>\n<td>API token from an external system</td>\n</tr>\n<tr>\n<td>cardNumber</td>\n<td>string</td>\n<td>true</td>\n<td>last 4 digits of the card's number</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation errors</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","creditcards","cards"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"05a54dbe-6748-4f78-9664-c5c0635fdb6f","name":"Customer doesn't exist","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"c2\",\n  \"token\": \"token\",\n  \"cardNumber\": \"2356\",\n  \"expirationYear\" : \"1234\",\n  \"expirationMonth\": \"01\",\n  \"cardType\": \"Visa\"\n}"},"url":"{{api_host}}/v1/customer/creditcards/cards"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:13:08 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"6f35249b-42f8-4b1a-b622-f47f7be69489","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"c2\",\n  \"token\": \"token\",\n  \"cardNumber\": \"3456\",\n  \"expirationYear\" : \"1234\",\n  \"expirationMonth\": \"01\",\n  \"cardType\": \"Visa\"\n}"},"url":"{{api_host}}/v1/customer/creditcards/cards"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:40:46 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"887dc30e-8e2f-4f85-b0c5-649244638c68","name":"Validation errors","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"c2\",\n  \"token\": \"\",\n  \"cardNumber\": \"356\",\n  \"expirationYear\" : \"234\",\n  \"expirationMonth\": \"1\",\n  \"cardType\": \"Vis\"\n}"},"url":"{{api_host}}/v1/customer/creditcards/cards"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:41:05 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"915"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"token\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"Attribute token can`t be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"expirationMonth\",\n            \"errors\": [\n                {\n                    \"id\": \"regExp\",\n                    \"message\": \"Attribute expirationMonth doesn't match regular expression: ^(0[1-9])|(1[0-2])$ \",\n                    \"configuration\": {\n                        \"regExp\": \"^(0[1-9])|(1[0-2])$\"\n                    }\n                }\n            ]\n        },\n        {\n            \"path\": \"cardNumber\",\n            \"errors\": [\n                {\n                    \"id\": \"regExp\",\n                    \"message\": \"Attribute cardNumber doesn't match regular expression: ^[0-9]{4}$ \",\n                    \"configuration\": {\n                        \"regExp\": \"^[0-9]{4}$\"\n                    }\n                }\n            ]\n        },\n        {\n            \"path\": \"expirationYear\",\n            \"errors\": [\n                {\n                    \"id\": \"regExp\",\n                    \"message\": \"Attribute expirationYear doesn't match regular expression: ^[0-9]{4}$ \",\n                    \"configuration\": {\n                        \"regExp\": \"^[0-9]{4}$\"\n                    }\n                }\n            ]\n        },\n        {\n            \"path\": \"cardType\",\n            \"errors\": [\n                {\n                    \"id\": \"inArray\",\n                    \"message\": \"Attribute cardType: Vis is not in {AmericanExpress, Discover, MasterCard, Visa}.\",\n                    \"configuration\": {\n                        \"array\": \"[\\\"AmericanExpress\\\", \\\"Discover\\\", \\\"MasterCard\\\", \\\"Visa\\\"]\"\n                    }\n                }\n            ]\n        }\n    ]\n}"},{"id":"ac3f403f-fac8-421e-994e-12126ccc22e7","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"c2\",\n  \"token\": \"token\",\n  \"cardNumber\": \"356\",\n  \"expirationYear\" : \"1234\",\n  \"expirationMonth\": \"01\",\n  \"cardType\": \"Visa\"\n}"},"url":"{{api_host}}/v1/customer/creditcards/cards"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:42:06 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"}],"_postman_id":"9f233094-9a38-41ca-8129-45bafe0db745"},{"name":"Set default credit card","id":"9a07f5ec-cb44-4a6d-bcca-b05a58e1a77f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/profile/creditcards/default/:label","description":"<p>This call sets the default credit card by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>Credit card with a given label does not exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","creditcards","default",":label"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"a5015a01-8f16-4a8b-b776-0e680b4ae051","type":"string","value":"{{card_label}}","key":"label"}]}},"response":[{"id":"0a656aad-5578-4567-b399-fa57c8cdf22e","name":"Customer doesn't exist","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{api_host}}/v1/customer/creditcards/default/:label","host":["{{api_host}}"],"path":["v1","customer","creditcards","default",":label"],"variable":[{"key":"label","value":"{{card_label}}","description":"Label of the credit card to be set as default"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:13:31 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"6712d33a-d3ff-452e-9e34-f7e9986a5bce","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/creditcards/default/c123"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:49:46 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"9d476c16-f5eb-4b1b-a98d-e4705ec3af49","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/creditcards/default/c2"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:50:15 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"fabe4110-9a9b-45ed-bc8e-94b78172add7","name":"Unknown card","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/creditcards/default/c123"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:49:20 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unknown credit card: c123\",\n    \"code\": \"COR-002\"\n}"}],"_postman_id":"9a07f5ec-cb44-4a6d-bcca-b05a58e1a77f"},{"name":"Remove credit card","id":"3f8aa98b-600f-4429-aa6b-fc4c85b01eda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/profile/creditcards/cards/:label","description":"<p>This call deletes a credit card by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>Credit card not found</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","creditcards","cards",":label"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"e37591a3-dbe8-40db-a1e4-11c353e4bf81","description":{"content":"<p>the customer-defined label for this card (i.e \"Chase Card\")</p>\n","type":"text/plain"},"type":"string","value":"{{card_label}}","key":"label"}]}},"response":[{"id":"4a594d6a-ea63-4cad-9344-5fda7bddef1f","name":"Card not found","originalRequest":{"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/creditcards/cards/c2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:47:41 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"64"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unknown credit card: c2\",\n    \"code\": \"COR-002\"\n}"},{"id":"bce8a46c-cabc-49f5-b892-38a88a625b35","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","value":"{{customer_default_token}}","type":"text","disabled":true}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/creditcards/cards/c2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:45:38 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"bf1d6f18-11e4-4408-899a-bdbf42d65d88","name":"Customer doesn't exist","originalRequest":{"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/creditcards/cards/c2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:13:22 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"efb70540-b2ae-46ad-b285-54282e0c03b7","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","value":"{{customer_default_token}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/creditcards/cards/c123"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:45:52 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3f8aa98b-600f-4429-aa6b-fc4c85b01eda"}],"id":"5ce82b52-d19e-4af2-82db-fcf8ddff21c4","_postman_id":"5ce82b52-d19e-4af2-82db-fcf8ddff21c4","description":""},{"name":"Email","item":[{"name":"Set email","id":"498ec4a2-c377-4cea-b5d2-16b334d087d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"email1\",\n\t\"address\": \"email@provider.com\"\n}"},"url":"{{api_host}}/v1/customer/profile/emails","description":"<p>This call sets an address by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"post-body\">Post Body</h3>\n<h6 id=\"emailaddress\">emailAddress</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>true</td>\n<td>per-user unique identifier for this address (aka nickname)</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>true</td>\n<td>valid email address</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation error</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","emails"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"1b113cef-67f9-4eb2-90ba-07df5592d511","name":"Validation errors","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"\",\n\t\"address\": \"emailprovider.com\"\n}"},"url":"{{api_host}}/v1/customer/emails"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:05:48 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"238"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"label\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"Attribute label can`t be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"address\",\n            \"errors\": [\n                {\n                    \"id\": \"email\",\n                    \"message\": \"Attribute address is not valid email\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"2f6b3a43-39ee-4c9d-b2d7-7c663234f8f1","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"default\",\n\t\"address\": \"email@provider.com\"\n}"},"url":"{{api_host}}/v1/customer/emails"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:04:56 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"4c65bda3-a3fa-4ed8-bdf1-2e19dd61a844","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}","disabled":true}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"default\",\n\t\"address\": \"email@provider.com\"\n}"},"url":"{{api_host}}/v1/customer/emails"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:05:28 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"733a2159-cd5f-45cf-ad43-12f921d233f5","name":"Customer doesn't exist","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"default\",\n\t\"address\": \"email@provider.com\"\n}"},"url":"{{api_host}}/v1/customer/emails"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:13:43 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"}],"_postman_id":"498ec4a2-c377-4cea-b5d2-16b334d087d7"},{"name":"Remove email address","id":"6fc36833-f638-4223-8fa0-9130f90f8388","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/profile/emails/:label","description":"<p>This call deletes the email address by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>Attempt to delete default email address</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>Attempt to delete non-existent email address</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","emails",":label"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"919fd953-45e6-46b8-ba1a-ac0706387462","description":{"content":"<p>Label of the email to be removed</p>\n","type":"text/plain"},"type":"string","value":"{{email_label}}","key":"label"}]}},"response":[{"id":"3d5fbd16-4acc-442b-be5a-e57ffd5811eb","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FwaS51cHN0YXJ0Y29tbWVyY2UuY29tIiwiaWF0IjoxNTM4NTc4MzIyLCJ1c2VySWQiOiIxNDcyMTM3Yi1iODVmLTRkMDktODYxYi1iZDRiNjY2NWI2NzUiLCJsb2dpbiI6InRlc3QiLCJ0ZW5hbnRNYXAiOnsiZGVudmVybWF0dHJlc3MiOnsicm9sZXMiOlsibG9jYXRpb24ubWFuYWdlIiwicHJpY2luZy5tYW5hZ2UiLCJpbnZlbnRvcnkubWFuYWdlIiwiY3VzdG9tZXIuZGVmYXVsdCIsInByb2R1Y3QubWFuYWdlIiwicHJvZHVjdC5wdWJsaXNoIl19fX0.Bhu4nwW-mzUg51uY1n7lLdQtxvVMrYGYrBOimnfxuck"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"default\",\n\t\"address\": \"email@provider.com\"\n}"},"url":"{{api_host}}/v1/customer/emails/email1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:20:34 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"862e08b6-8692-4120-b90d-fbb53c34ca99","name":"Unknown email","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/emails/email1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:22:01 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unknown address: email1\",\n    \"code\": \"COR-002\"\n}"},{"id":"b7609c18-6ad0-4a04-a7c5-44068d920d81","name":"Customer doesn't exist","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"default\",\n\t\"address\": \"email@provider.com\"\n}"},"url":"{{api_host}}/v1/customer/emails/email1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:21:15 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"db1ec71e-947e-4ccb-8833-189372394bf2","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/emails/email1"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:21:49 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"db3dffcb-34f2-4da8-bca1-08acdc6dc301","name":"Attempt to remove default email","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/emails/email2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:22:32 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Can't remove default email: email2\",\n    \"code\": \"COR-002\"\n}"}],"_postman_id":"6fc36833-f638-4223-8fa0-9130f90f8388"},{"name":"Set default email","id":"f94032ac-3008-46ff-ba35-8256a1298459","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/profile/emails/default/:label","description":"<p>This call sets the default email address by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>Email address with a given label does not exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","emails","default",":label"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"e5003cf3-744a-446e-8fc7-4e9acabfe8e4","description":{"content":"<p>Label of the email address to be set as default</p>\n","type":"text/plain"},"type":"string","value":"{{email_label}}","key":"label"}]}},"response":[{"id":"059a55a9-0bf0-400f-aad1-aa7ecfa51bd2","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{auth_token}}"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"default\",\n\t\"address\": \"email@provider.com\"\n}"},"url":"{{api_host}}/v1/customer/emails/default/default"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:25:50 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Unauthorized for tenant denvermattress\"\n}"},{"id":"109a4b77-1b95-4743-95d0-54318800ea7f","name":"Customer doesn't exist","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"default\",\n\t\"address\": \"email@provider.com\"\n}"},"url":"{{api_host}}/v1/customer/emails/default/default"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:33:07 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"5ce722ff-3e15-45c6-86eb-ab34fa37615a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"default\",\n\t\"address\": \"email@provider.com\"\n}"},"url":"{{api_host}}/v1/customer/emails/default/default"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:39:02 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"fd977a75-90e6-4b73-aa49-ae38abc336b0","name":"Unknown email address","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","type":"text","value":"{{customer_default_token}}"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"default\",\n\t\"address\": \"email@provider.com\"\n}"},"url":"{{api_host}}/v1/customer/emails/default/default"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:27:39 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"50"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unknown email: default\",\n    \"code\": \"COR-002\"\n}"}],"_postman_id":"f94032ac-3008-46ff-ba35-8256a1298459"}],"id":"fd5ed8dd-d2f2-4461-9c52-07f2e515dcb6","_postman_id":"fd5ed8dd-d2f2-4461-9c52-07f2e515dcb6","description":""},{"name":"Subscription","item":[{"name":"Remove address catalog subscription","id":"9759036a-f176-4577-9b8f-bd658e90a37f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/subscriptions/addresscatalogs/:label","description":"<p>Remove a email catalog subscription for a given customer</p>\n","urlObject":{"path":["v1","customer","subscriptions","addresscatalogs",":label"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"a14bf054-354d-4913-aaac-c16182d550bc","description":{"content":"<p>Label of the subscription to be removed</p>\n","type":"text/plain"},"type":"string","value":"{{subscription_label}}","key":"label"}]}},"response":[{"id":"09da19b6-1ce9-4e8a-8072-17435c9c1cd8","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"url":"{{api_host}}/v1/customer/subscriptions/addresscatalogs/s"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 12:29:45 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"1d4c4fd8-ff46-41ed-a404-0bd99780c6c1","name":"Customer doesn't exist","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"url":"{{api_host}}/v1/customer/subscriptions/addresscatalogs/s"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 12:32:11 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"e14d5c56-8605-494b-a7be-1f33d1f8c3ea","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FwaS51cHN0YXJ0Y29tbWVyY2UuY29tIiwiaWF0IjoxNTM4NDcxOTcwLCJ1c2VySWQiOiIxNDcyMTM3Yi1iODVmLTRkMDktODYxYi1iZDRiNjY2NWI2NzUiLCJsb2dpbiI6InRlc3QiLCJ0ZW5hbnRNYXAiOltbeyJ0ZW5hbnQiOiJkZW52ZXJtYXR0cmVzcyIsImRvbWFpbiI6ImRlbnZlcm1hdHRyZXNzLmNvbSJ9LHsicm9sZXMiOlsiaW52ZW50b3J5IiwibG9jYXRpb24iLCJjdXN0b21lciIsInVzZXIiLCJwcm9kdWN0Il19XSxbeyJ0ZW5hbnQiOiJkZW52ZXJtYXR0cmVzcyIsImRvbWFpbiI6ImxvY2FsaG9zdCJ9LHsicm9sZXMiOlsiaW52ZW50b3J5IiwibG9jYXRpb24iLCJjdXN0b21lciIsInVzZXIiLCJwcm9kdWN0Il19XV19.T0CK3PEKIjqog_OBCrpluKzV11nkM19FSjtFbSwTZaY"},{"key":"Origin","value":"denvermattress.com"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"url":"{{api_host}}/v1/customer/subscriptions/addresscatalogs/s1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 12:29:20 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"}],"_postman_id":"9759036a-f176-4577-9b8f-bd658e90a37f"},{"name":"Set address catalog subscription","id":"405f0f9e-f3d3-4c82-a408-e984c7bef2cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customer_default_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"s1\",\n  \"address\": {\n    \"label\": \"a1\",\n    \"name\" : {\n    \t\"first\" : \"Lúthien\",\n    \t\"last\" : \"Tinúviel\"\n    },\n    \"street1\": \"52 Wall St\",\n    \"street2\": \"s2\",\n    \"city\": \"New York\",\n    \"county\": \"Orange\",\n    \"stateOrRegion\": \"NY\",\n    \"country\": \"US\",\n    \"postalCode\" : \"10005\",\n      \"phoneNumber\" : \"+1234567890\"\n  }\n}"},"url":"{{api_host}}/v1/customer/profile/subscriptions/addresscatalogs","description":"<p>This call sets the address catalog subscription by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"post-body\">Post Body</h3>\n<p>Starred datatypes (*) refer to nested structures</p>\n<h6 id=\"address\">address</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>true</td>\n<td>per-user unique identifier for this address (aka nickname)</td>\n</tr>\n<tr>\n<td>name</td>\n<td>name*</td>\n<td>conditional</td>\n<td>name structure, mandatory if poBox flag is not set</td>\n</tr>\n<tr>\n<td>businessName</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>street1</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>street2</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>county</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>stateOrRegion</td>\n<td>string</td>\n<td>true</td>\n<td>Two-letter US state code</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>true</td>\n<td>ISO 3166-1 alpha-2 country code</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>string</td>\n<td>true</td>\n<td>Phone number in the international format (+1234567890)</td>\n</tr>\n<tr>\n<td>poBox</td>\n<td>boolean</td>\n<td>false</td>\n<td>Flag indicating whether the address is a PO box address, false by default</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"addresssubscription\">addressSubscription</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>true</td>\n<td>per-user unique identifier for this credit card (aka nickname)</td>\n</tr>\n<tr>\n<td>address</td>\n<td>address*</td>\n<td>false</td>\n<td>see address structure above</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation errors</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","subscriptions","addresscatalogs"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"047305be-8908-4deb-aa14-d843ce8e0f7f","name":"Unauthorized","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{auth_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"s1\",\n  \"address\": {\n    \"label\": \"a1\",\n    \"street1\": \"s1\",\n    \"street2\": \"s2\",\n    \"number\": \"n\",\n    \"zip\": \"zip\",\n    \"city\": \"city\",\n    \"county\": \"Orange\",\n    \"stateOrRegion\": \"MS\",\n    \"country\": \"US\",\n    \"postalCode\" : \"123-45\"\n  }\n}"},"url":"{{api_host}}/v1/customer/subscriptions/addresscatalogs"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 11:35:57 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"48875f1f-79ba-49f9-95c3-c5953940c93c","name":"Validation errors","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{auth_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"s1\",\n  \"address\": {\n    \"label\": \"\",\n    \"street1\": \"s1\",\n    \"street2\": \"s2\",\n    \"number\": \"n\",\n    \"zip\": \"zip\",\n    \"city\": \"city\",\n    \"county\": \"Orange\",\n    \"stateOrRegion\": \"M\",\n    \"country\": \"U\",\n    \"postalCode\" : \"123-45\"\n  }\n}"},"url":"{{api_host}}/v1/customer/subscriptions/addresscatalogs"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 11:36:35 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"447"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"address/label\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"Attribute label\\\\address can`t be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"address/country\",\n            \"errors\": [\n                {\n                    \"id\": \"isoCountry\",\n                    \"message\": \"Attribute country\\\\address: U is not a valid ISO 3166-1 alpha-2 country code.\"\n                }\n            ]\n        },\n        {\n            \"path\": \"address/stateOrRegion\",\n            \"errors\": [\n                {\n                    \"id\": \"stateCode\",\n                    \"message\": \"Attribute stateOrRegion\\\\address: M is not a valid state code.\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"80866325-9ef6-4221-8912-0e7d2833ab99","name":"Customer doesn't exist","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{auth_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"s1\",\n  \"address\": {\n    \"label\": \"a1\",\n    \"street1\": \"s1\",\n    \"street2\": \"s2\",\n    \"number\": \"n\",\n    \"zip\": \"zip\",\n    \"city\": \"city\",\n    \"county\": \"Orange\",\n    \"stateOrRegion\": \"MS\",\n    \"country\": \"US\",\n    \"postalCode\" : \"123-45\"\n  }\n}"},"url":"{{api_host}}/v1/customer/subscriptions/addresscatalogs"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:06:37 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"b0284319-0ef5-4388-9fd2-313157880ce1","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{auth_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"s1\",\n  \"address\": {\n    \"label\": \"a1\",\n    \"street1\": \"s1\",\n    \"street2\": \"s2\",\n    \"number\": \"n\",\n    \"zip\": \"zip\",\n    \"city\": \"city\",\n    \"county\": \"Orange\",\n    \"stateOrRegion\": \"MS\",\n    \"country\": \"US\",\n    \"postalCode\" : \"123-45\"\n  }\n}"},"url":"{{api_host}}/v1/customer/subscriptions/addresscatalogs"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 11:37:07 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"405f0f9e-f3d3-4c82-a408-e984c7bef2cd"},{"name":"Remove catalog subscription","id":"b6472dc2-f2e3-4ede-a97d-8091b0da871b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/subscriptions/emailcatalogs/:label","description":"<p>This call deletes the email catalog subscription by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","subscriptions","emailcatalogs",":label"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"e510b359-f2ee-46b0-802f-67475e6847c3","description":{"content":"<p>Label of the subscriptions to be removed</p>\n","type":"text/plain"},"type":"string","value":"{{subscription_label}}","key":"label"}]}},"response":[{"id":"c3d23318-008d-4f14-a674-a674f12624ba","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{auth_token}}"},{"key":"Origin","value":"denvermattress.com"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/subscriptions/emailcatalogs/s1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:50:54 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Unauthorized for tenant denvermattress\"\n}"},{"id":"f3c214e8-d56e-4ae1-934c-84bceeba6a77","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"Origin","value":"denvermattress.com"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/subscriptions/emailcatalogs/s1"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:54:42 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"fe8df3fe-5780-4d19-a160-a48c1c53a0d5","name":"Customer doesn't exist","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/subscriptions/emailcatalogs/s1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:59:08 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"}],"_postman_id":"b6472dc2-f2e3-4ede-a97d-8091b0da871b"},{"name":"Set email catalog subscription","id":"cd9688cb-b7cc-46c0-b7fa-edbfc68a890c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"label\": \"s1\"\n}"},"url":"{{api_host}}/v1/customer/profile/subscriptions/emailcatalogs","description":"<p>This call sets an email catalog subscription by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"post-body\">Post Body</h3>\n<h6 id=\"emailsubscription\">emailSubscription</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>true</td>\n<td>per-user unique identifier for this subscription (aka nickname)</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>false</td>\n<td>valid email address</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation errors</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","subscriptions","emailcatalogs"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"2ea88073-eb47-4033-909d-17b12e835baf","name":"Customer doesn't exist","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{auth_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"label\": \"s1\"\n}"},"url":"{{api_host}}/v1/customer/subscriptions/emailcatalogs"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:06:18 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"cbb5d3c7-3f37-4b2f-82e6-a97170747084","name":"Unauthorized","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{auth_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"label\": \"s1\"\n}"},"url":"{{api_host}}/v1/customer/subscriptions/emailcatalogs"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:47:25 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"d42bbbbf-eb51-481c-9cb4-12a1c1e9df6b","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"label\": \"s1\"\n}"},"url":"{{api_host}}/v1/customer/subscriptions/emailcatalogs"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:47:56 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"fc14afee-60af-49cd-ae7f-5194b5d0116c","name":"Validation errors","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"label\": \"s1\",\n    \"email\": \"123\"\n}"},"url":"{{api_host}}/v1/customer/subscriptions/emailcatalogs"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:49:26 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"145"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"email\",\n            \"errors\": [\n                {\n                    \"id\": \"email\",\n                    \"message\": \"Attribute email is not valid email\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"cd9688cb-b7cc-46c0-b7fa-edbfc68a890c"},{"name":"Remove email newsletter subscription","id":"387ab0d0-e31d-4fcf-b343-16f2ff8d3502","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/subscriptions/emailnewsletters/:label","description":"<p>This call deletes the email newsletter subscription by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","subscriptions","emailnewsletters",":label"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"ffb7dfb7-e9a2-429b-9d78-1aa70b4d0a22","description":{"content":"<p>Label of the subscription to be deleted</p>\n","type":"text/plain"},"type":"string","value":"{{newsletter_label}}","key":"label"}]}},"response":[{"id":"2785dab1-8299-4c9d-b9b0-bed3053c8267","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{customer_default_token}}","disabled":true},{"key":"Origin","value":"denvermattress.com"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"url":"{{api_host}}/v1/customer/subscriptions/emailnewsletters/s1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:23:02 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"831505b8-0cd6-43d4-94f0-3ecc57818c93","name":"Customer doesn't exist","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"url":"{{api_host}}/v1/customer/subscriptions/emailnewsletters/s1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:26:23 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"9fb4ebef-54e9-4222-bf12-785a7707905d","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{auth_token}}"},{"key":"Origin","value":"denvermattress.com"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"url":"{{api_host}}/v1/customer/subscriptions/emailnewsletters/s1"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:22:23 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"387ab0d0-e31d-4fcf-b343-16f2ff8d3502"},{"name":"Set email newsletter subscription","id":"e5f10868-7a17-4fe1-9f1d-56e3115c12dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"s1\",\n\t\"email\": \"koksonews@kokso.com\"\n}"},"url":"{{api_host}}/v1/customer/profile/subscriptions/emailnewsletters","description":"<p>This call sets an email newsletter subscription by label for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"post-body\">Post Body</h3>\n<h6 id=\"emailsubscription\">emailSubscription</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>true</td>\n<td>per-user unique identifier for this subscription (aka nickname)</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>false</td>\n<td>valid email address</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation errors</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","subscriptions","emailnewsletters"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"18bcc12b-e5b1-48ec-821b-3d002d2a7dc4","name":"Unauthorized","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{customer_default_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"s1\",\n\t\"email\": \"koksonews@kokso.com\"\n}"},"url":"{{api_host}}/v1/customer/subscriptions/emailnewsletters"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:08:44 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"1fdf51f4-81b2-481b-bf1d-c8e8838c7125","name":"Customer doesn't exist","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"s1\",\n\t\"email\": \"koksonews@kokso.com\"\n}"},"url":"{{api_host}}/v1/customer/subscriptions/emailnewsletters"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:05:19 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"53d91dc2-31ee-432a-aa4e-0abbf61a7a8e","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"s1\",\n\t\"email\": \"koksonews@kokso.com\"\n}"},"url":"{{api_host}}/v1/customer/subscriptions/emailnewsletters"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:09:40 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"ff39b9d4-0dfe-4da5-b417-2037e1ee942c","name":"Validation errors","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{customer_default_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"\",\n\t\"email\": \"koksonewskokso.com\"\n}"},"url":"{{api_host}}/v1/customer/subscriptions/emailnewsletters"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 09:09:15 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"234"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"label\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"Attribute label can`t be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"email\",\n            \"errors\": [\n                {\n                    \"id\": \"email\",\n                    \"message\": \"Attribute email is not valid email\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"e5f10868-7a17-4fe1-9f1d-56e3115c12dc"}],"id":"89d8cbdc-1c8f-4552-ba2b-c5fc4fa1c332","_postman_id":"89d8cbdc-1c8f-4552-ba2b-c5fc4fa1c332","description":""},{"name":"Login anonymous","event":[{"listen":"test","script":{"id":"458f1081-85c1-44e9-9941-97312a3c2832","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","//parse the response","var jsonData = pm.response.json();","","//define the schema for the expected response object","var schema = {","  \"type\": \"object\",","  \"properties\": {","    \"accessToken\": {","        \"type\": \"string\"","    }","  },","\"required\": [\"accessToken\"]  ","}","","//import the schema validation framework","var Ajv = require('ajv');","//setup the logging frameworking ","var ajv = new Ajv({logger: console});","//compile the above schema","var schemaValidator = ajv.compile(schema);","pm.test(\"Response Schema is valid\", function() {","    pm.expect(schemaValidator(pm.response.json())).to.be.true","})","","postman.setEnvironmentVariable(\"anonymous_access_token\", jsonData.accessToken);","postman.setEnvironmentVariable(\"current_access_token\", jsonData.accessToken);","postman.setEnvironmentVariable(\"auth_token\", jsonData.accessToken);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"2e91a026-3651-47b8-ba90-5e0d4ce50c52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"pimforever"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/customer/login/anonymous/token","description":"<p>This call generates a anonymous user token.  </p>\n<p><strong>required roles</strong> : none</p>\n<h3 id=\"error-codes-none\">Error Codes: none</h3>\n","urlObject":{"path":["customer","login","anonymous","token"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"5da79da6-cf69-46eb-92b6-114e43d21270","name":"Authenticate Customer (login) (success)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"password\":\"Password1234\",\n\t\"login\":\"kokso\"\n}"},"url":"{{api_host}}/v1/customer/login/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"authToken\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDE2MTU5NDEsImlhdCI6MTU0MTYxMjM0MSwidXNlcklkIjoiYTljOTcwNzgtNDE0OC00YjQyLWIyODUtMTlhMzU4MDI0NDk0IiwibG9naW4iOiJqb2huZG9lIiwidGVuYW50TWFwIjp7ImRlbnZlcm1hdHRyZXNzIjp7InJvbGVzIjpbImN1c3RvbWVyLmRlZmF1bHQiXX19LCJpc0Fub255bW91cyI6ZmFsc2V9.OiYDnK-zHslZONQlZhog2PMI_70ZEnN_jP_Clf04p10\"\n}"}],"_postman_id":"2e91a026-3651-47b8-ba90-5e0d4ce50c52"},{"name":"Register Customer","event":[{"listen":"test","script":{"id":"b6e7f56e-6e6a-4560-bc7f-e597cd6cf09d","exec":["","//parse the response","pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([201,202]);","});","","var jsonData = pm.response.json();","","//TODO : define the schema for the expected response object and validate it","//var schema = {","//  \"type\": \"object\",","//  \"properties\": {","//    \"accessToken\": {","//        \"type\": \"string\"","//    }","//  },","//\"required\": [\"accessToken\"]  ","//}","//import the schema validation framework","//var Ajv = require('ajv');","//setup the logging frameworking ","//var ajv = new Ajv({logger: console});","//compile the above schema","//var schemaValidator = ajv.compile(schema);","//pm.test(\"Response Schema is valid\", function() {","//    pm.expect(schemaValidator(pm.response.json())).to.be.true","//})","","pm.environment.set(\"customer_uuid\", jsonData.id)"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"2e377c43-ed28-4fb4-9782-dba5fc25fc27","exec":["var now = Date.now();","","pm.environment.set(\"customer_login\", \"johndoe\" + now);","pm.environment.set(\"customer_password\", \"Password1234\");","pm.environment.set(\"customer_email\", \"example\" + now + \"@example.com\");",""],"type":"text/javascript"}}],"id":"de45d0aa-3956-40b4-b89e-ebda2f6c0f05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{anonymous_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"login\": \"{{customer_login}}\",\n        \"name\": {\n            \"first\": \"John\",\n            \"last\": \"Jameson\",\n            \"suffix\": \"Jr.\"\n        },\n        \"emailAddresses\": {\n            \"default\": {\n                \"label\": \"email2\",\n                \"address\": \"jwgcooke@gmail.com\"\n            },\n            \"addresses\": []\n        },\n        \"addresses\": {\n            \"defaultBilling\": {\n                \"label\": \"dba1\",\n                \"name\": {\n                    \"first\": \"Arwen\",\n                    \"last\": \"Undomiel\"\n                },\n                \"street1\": \"1087 Elm St\",\n                \"city\": \"Manchester\",\n                \"stateOrRegion\": \"NH\",\n                \"country\": \"US\",\n                \"postalCode\": \"03101\",\n                \"phoneNumber\": \"+1234567890\"\n            },\n            \"defaultShipping\": {\n                \"label\": \"dba\",\n                \"name\": {\n                    \"first\": \"Arwen\",\n                    \"last\": \"Undomiel\"\n                },\n                \"street1\": \"1087 Elm St\",\n                \"city\": \"Manchester\",\n                \"stateOrRegion\": \"NH\",\n                \"country\": \"US\",\n                \"postalCode\": \"03101\",\n                \"phoneNumber\": \"+1234567890\"\n            },\n            \"addresses\": [\n                {\n                    \"label\": \"a1\",\n                    \"name\": {\n                        \"first\": \"Barliman\",\n                        \"last\": \"Butterbur\"\n                    },\n                \"street1\": \"1087 Elm St\",\n                \"city\": \"Manchester\",\n                \"stateOrRegion\": \"NH\",\n                \"country\": \"US\",\n                \"postalCode\": \"03101\",\n                    \"phoneNumber\": \"+1234567890\"\n                }\n            ]\n        },\n        \"gender\": \"m\",\n        \"birthDate\": \"2018-09-05\"\n    },\n    \"password\": \"{{customer_password}}\"\n}"},"url":"{{api_host}}/v1/customer/create","description":"<p>This call creates a new entry for a given customer (aka registration)</p>\n<p><strong>required roles</strong> : customer.anonymous</p>\n<h3 id=\"post-body\">Post Body</h3>\n<p>Starred datatypes (*) refer to nested structures</p>\n<h6 id=\"customer\">customer</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>login</td>\n<td>string</td>\n<td>true</td>\n<td>the unique login for this user</td>\n</tr>\n<tr>\n<td>name</td>\n<td>name*</td>\n<td>true</td>\n<td>the structured name of this user</td>\n</tr>\n<tr>\n<td>emailAddresses</td>\n<td>emailAddresses*</td>\n<td>true</td>\n<td>structured set of email addresses to include in the registration</td>\n</tr>\n<tr>\n<td>addresses</td>\n<td>addresses*</td>\n<td>false</td>\n<td>see structure of address below</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>string</td>\n<td>false</td>\n<td>\"m\" or \"f\" only</td>\n</tr>\n<tr>\n<td>birthDate</td>\n<td>date</td>\n<td>false</td>\n<td>formatted date of birth (YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>true</td>\n<td>unencrypted password</td>\n</tr>\n<tr>\n<td>registrationDate</td>\n<td>timestamp</td>\n<td>false</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"name\">name</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>salutation</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>first</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>middleInitial</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>last</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>suffix</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"emailaddresses\">emailAddresses</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>default</td>\n<td>emailAddress*</td>\n<td>true</td>\n<td>wrapper around initital (and default) email address</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"emailaddress\">emailAddress</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>true</td>\n<td>unique in this profile label to identify this email address (i.e. \"home\")</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>true</td>\n<td>properly formatted email address</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"addresses\">addresses</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>defaultBilling</td>\n<td>address*</td>\n<td>true</td>\n<td>the billing address to use</td>\n</tr>\n<tr>\n<td>defaultShipping</td>\n<td>address*</td>\n<td>false</td>\n<td>the shipping  address to use</td>\n</tr>\n<tr>\n<td>addresses</td>\n<td>address[]*</td>\n<td>true</td>\n<td>a list of addresses the customer has stored -  the minimal set here is an empty array</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"address\">address</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>true</td>\n<td>per-user unique identifier for this address (aka nickname)</td>\n</tr>\n<tr>\n<td>name</td>\n<td>name*</td>\n<td>conditional</td>\n<td>name structure, mandatory if poBox flag is not set</td>\n</tr>\n<tr>\n<td>businessName</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>street1</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>street2</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>county</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>stateOrRegion</td>\n<td>string</td>\n<td>true</td>\n<td>Two-letter US state code</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>true</td>\n<td>ISO 3166-1 alpha-2 country code</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>string</td>\n<td>true</td>\n<td>Phone number in the international format (+1234567890)</td>\n</tr>\n<tr>\n<td>poBox</td>\n<td>boolean</td>\n<td>false</td>\n<td>Flag indicating whether the address is a PO box address, false by default</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Reason Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>COR-001</td>\n<td>Default email already exists</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>COR-002</td>\n<td>Login already exists</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>COR-003</td>\n<td>Both default email and login already exist</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td></td>\n<td>Validation errors</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td></td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","create"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"6ac65c96-d88d-4410-aa61-5f75122e443a","name":"Register Customer (duplicate login)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"login\": \"johndoe\",\n        \"name\": {\n            \"first\": \"John\",\n            \"last\": \"Jameson\",\n            \"suffix\": \"Jr.\"\n        },\n        \"emailAddresses\": {\n            \"default\": {\n                \"label\": \"email2\",\n                \"address\": \"jwgcooke@gmail.com\"\n            },\n            \"addresses\": []\n        },\n        \"addresses\": {\n            \"defaultBilling\": {\n                \"label\": \"dba\",\n                \"name\": {\n                    \"first\": \"Arwen\",\n                    \"last\": \"Undomiel\"\n                },\n                \"street1\": \"Street\",\n                \"city\": \"Glasgow\",\n                \"county\": \"Worchestershire\",\n                \"stateOrRegion\": \"MS\",\n                \"country\": \"US\",\n                \"postalCode\": \"123\",\n                \"phoneNumber\": \"+1234567890\"\n            },\n            \"addresses\": [\n                {\n                    \"label\": \"a1\",\n                    \"name\": {\n                        \"first\": \"Barliman\",\n                        \"last\": \"Butterbur\"\n                    },\n                    \"street1\": \"Street\",\n                    \"city\": \"Glasgow\",\n                    \"county\": \"Worchestershire\",\n                    \"stateOrRegion\": \"NH\",\n                    \"country\": \"US\",\n                    \"postalCode\": \"123\",\n                    \"phoneNumber\": \"+1234567890\"\n                }\n            ]\n        },\n        \"gender\": \"m\",\n        \"birthDate\": \"2018-09-05\"\n    },\n    \"password\": \"Password1234\"\n}"},"url":"{{api_host}}/customer/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Can't create customer\",\n    \"code\": \"COR-002\",\n    \"detail\": \"Can't create customer, tenant: denvermattress - customer with login johndoe already exist\"\n}"},{"id":"962b9bec-ae64-4fd4-907d-37ded8ef59f0","name":"Register Customer (success)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"login\": \"johndoe011\",\n        \"name\": {\n            \"first\": \"John\",\n            \"last\": \"Jameson\",\n            \"suffix\": \"Jr.\"\n        },\n        \"emailAddresses\": {\n            \"default\": {\n                \"label\": \"email2\",\n                \"address\": \"jwgcooke@gmail.com\"\n            },\n            \"addresses\": []\n        },\n        \"addresses\": {\n            \"defaultBilling\": {\n                \"label\": \"dba\",\n                \"name\": {\n                    \"first\": \"Arwen\",\n                    \"last\": \"Undomiel\"\n                },\n                \"street1\": \"Street\",\n                \"city\": \"Glasgow\",\n                \"county\": \"Worchestershire\",\n                \"stateOrRegion\": \"MS\",\n                \"country\": \"US\",\n                \"postalCode\": \"123\",\n                \"phoneNumber\": \"+1234567890\"\n            },\n            \"addresses\": [\n                {\n                    \"label\": \"a1\",\n                    \"name\": {\n                        \"first\": \"Barliman\",\n                        \"last\": \"Butterbur\"\n                    },\n                    \"street1\": \"Street\",\n                    \"city\": \"Glasgow\",\n                    \"county\": \"Worchestershire\",\n                    \"stateOrRegion\": \"NH\",\n                    \"country\": \"US\",\n                    \"postalCode\": \"123\",\n                    \"phoneNumber\": \"+1234567890\"\n                }\n            ]\n        },\n        \"gender\": \"m\",\n        \"birthDate\": \"2018-09-05\"\n    },\n    \"password\": \"Password1234\"\n}"},"url":"{{api_host}}/customer/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"customer\": {\n        \"login\": \"johndoe011\",\n        \"name\": {\n            \"first\": \"John\",\n            \"last\": \"Jameson\",\n            \"suffix\": \"Jr.\"\n        },\n        \"emailAddresses\": {\n            \"default\": {\n                \"label\": \"email2\",\n                \"address\": \"jwgcooke@gmail.com\"\n            },\n            \"addresses\": []\n        },\n        \"addresses\": {\n            \"defaultBilling\": {\n                \"label\": \"dba\",\n                \"name\": {\n                    \"first\": \"Arwen\",\n                    \"last\": \"Undomiel\"\n                },\n                \"street1\": \"Street\",\n                \"city\": \"Glasgow\",\n                \"county\": \"Worchestershire\",\n                \"stateOrRegion\": \"MS\",\n                \"country\": \"US\",\n                \"postalCode\": \"123\",\n                \"phoneNumber\": \"+1234567890\"\n            },\n            \"addresses\": [\n                {\n                    \"label\": \"a1\",\n                    \"name\": {\n                        \"first\": \"Barliman\",\n                        \"last\": \"Butterbur\"\n                    },\n                    \"street1\": \"Street\",\n                    \"city\": \"Glasgow\",\n                    \"county\": \"Worchestershire\",\n                    \"stateOrRegion\": \"NH\",\n                    \"country\": \"US\",\n                    \"postalCode\": \"123\",\n                    \"phoneNumber\": \"+1234567890\"\n                }\n            ]\n        },\n        \"gender\": \"m\",\n        \"birthDate\": \"2018-09-05\"\n    },\n    \"password\": \"Password1234\"\n}"},{"id":"c268df1f-af94-4930-8236-838f482ef0d3","name":"Register Customer (validation error)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"login\": \"johndoe\",\n        \"name\": {\n            \"first\": \"John\",\n            \"suffix\": \"Jr.\"\n        },\n        \"emailAddresses\": {\n            \"default\": {\n                \"label\": \"email2\",\n                \"address\": \"jwgcooke@gmail.com\",\n                \"isValidated\": false\n            },\n            \"addresses\": []\n        },\n        \"addresses\": {\n            \"defaultBilling\": {\n                \"label\": \"dba\",\n                \"name\": {\n                    \"first\": \"Barliman\",\n                    \"last\": \"Butterbur\"\n                },\n                \"street1\": \"Street\",\n                \"city\": \"Glasgow\",\n                \"county\": \"Worchestershire\",\n                \"stateOrRegion\": \"MS\",\n                \"country\": \"S\",\n                \"postalCode\": \"123\",\n                \"phoneNumber\": \"+1234567890\"\n            },\n            \"addresses\": [\n                {\n                    \"label\": \"a1\",\n                    \"name\": {\n                        \"first\": \"Barliman\",\n                        \"last\": \"Butterbur\"\n                    },\n                    \"street1\": \"Street\",\n                    \"city\": \"Glasgow\",\n                    \"county\": \"Worchestershire\",\n                    \"stateOrRegion\": \"NH\",\n                    \"country\": \"US\",\n                    \"postalCode\": \"123\",\n                    \"phoneNumber\": \"+1234567890\"\n                }\n            ]\n        },\n        \"gender\": \"na\",\n        \"birthDate\": \"2018-09-05\"\n    },\n    \"password\": \"Password\"\n}"},"url":"{{api_host}}/customer/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"customer/name/last\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"Attribute last\\\\name\\\\customer can`t be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"customer/addresses/addresses/0/country\",\n            \"errors\": [\n                {\n                    \"id\": \"isoCountry\",\n                    \"message\": \"Attribute country\\\\0\\\\addresses\\\\addresses\\\\customer: S is not a valid ISO 3166-1 alpha-2 country code.\"\n                }\n            ]\n        },\n        {\n            \"path\": \"customer/gender\",\n            \"errors\": [\n                {\n                    \"id\": \"inArray\",\n                    \"message\": \"Attribute gender\\\\customer: l is not in {m, f}.\",\n                    \"configuration\": {\n                        \"array\": \"[\\\"m\\\", \\\"f\\\"]\"\n                    }\n                }\n            ]\n        },\n        {\n            \"path\": \"password\",\n            \"errors\": [\n                {\n                    \"id\": \"regExp\",\n                    \"message\": \"Attribute password doesn't match regular expression: ^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).*$ \",\n                    \"configuration\": {\n                        \"regExp\": \"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).*$\"\n                    }\n                }\n            ]\n        }\n    ]\n}"},{"id":"f342adf1-220d-4346-a778-20c94ef99a66","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"login\": \"johndoe00111\",\n        \"name\": {\n            \"first\": \"John\",\n            \"last\": \"Jameson\",\n            \"suffix\": \"Jr.\"\n        },\n        \"emailAddresses\": {\n            \"default\": {\n                \"label\": \"email2\",\n                \"address\": \"mayank.verma@upstartcommerce.com\"\n            },\n            \"addresses\": []\n        },\n        \"addresses\": {\n            \"defaultBilling\": {\n                \"label\": \"dba\",\n                \"name\": {\n                    \"first\": \"Arwen\",\n                    \"last\": \"Undomiel\"\n                },\n                \"street1\": \"Street\",\n                \"city\": \"Glasgow\",\n                \"county\": \"Worchestershire\",\n                \"stateOrRegion\": \"MS\",\n                \"country\": \"US\",\n                \"postalCode\": \"123\",\n                \"phoneNumber\": \"+1234567890\"\n            },\n            \"defaultShipping\": {\n                \"label\": \"dba\",\n                \"name\": {\n                    \"first\": \"Arwen\",\n                    \"last\": \"Undomiel\"\n                },\n                \"street1\": \"Street\",\n                \"city\": \"Glasgow\",\n                \"county\": \"Worchestershire\",\n                \"stateOrRegion\": \"MS\",\n                \"country\": \"US\",\n                \"postalCode\": \"123\",\n                \"phoneNumber\": \"+1234567890\"\n            },\n            \"addresses\": [\n                {\n                    \"label\": \"a1\",\n                    \"name\": {\n                        \"first\": \"Barliman\",\n                        \"last\": \"Butterbur\"\n                    },\n                    \"street1\": \"Street\",\n                    \"city\": \"Glasgow\",\n                    \"county\": \"Worchestershire\",\n                    \"stateOrRegion\": \"NH\",\n                    \"country\": \"US\",\n                    \"postalCode\": \"123\",\n                    \"phoneNumber\": \"+1234567890\"\n                }\n            ]\n        },\n        \"gender\": \"m\",\n        \"birthDate\": \"2018-09-05\"\n    },\n    \"password\": \"Password1234\"\n}"},"url":"{{api_host}}/v1/customer/create"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 27 Dec 2018 10:17:31 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"}],"_postman_id":"de45d0aa-3956-40b4-b89e-ebda2f6c0f05"},{"name":"Login","event":[{"listen":"test","script":{"id":"458f1081-85c1-44e9-9941-97312a3c2832","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"customer_access_token\", jsonData.accessToken);","postman.setEnvironmentVariable(\"customer_refresh_token\", jsonData.refreshToken);","postman.setEnvironmentVariable(\"current_access_token\", jsonData.accessToken);",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"b01411f2-3bea-45c7-abab-09cc575d9f49","exec":["","if (pm.environment.get(\"customer_login\") === null) {","    pm.environment.set(\"customer_login\", \"johndoe\")","}","","if(pm.environment.get(\"customer_password\") === null){","    pm.environment.set(\"customer_password\", \"someReallyHardPassw0rd!\")","}"],"type":"text/javascript"}}],"id":"289f8c5a-77c9-4bf9-97a8-ccfda3649952","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"password\":\"{{customer_password}}\",\n  \"login\":\"{{customer_login}}\"\n}"},"url":"{{api_host}}/v1/customer/login/token","description":"<p>This call authenticates the provided login and password combination and returns a JWT token with the relevant authorization credentials.</p>\n<p><strong>required roles</strong> : customer.anonymous</p>\n<h3 id=\"post-body\">Post Body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>login</td>\n<td>string</td>\n<td>true</td>\n<td>The users login</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>true</td>\n<td>the password to validate against (plain text)</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>accessToken</td>\n<td>string</td>\n<td>token for ordinary access</td>\n</tr>\n<tr>\n<td>refreshToken</td>\n<td>string</td>\n<td>token used in refresh token operation</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-001</td>\n<td>The provided login was not found</td>\n</tr>\n<tr>\n<td>CUS-002</td>\n<td>The provided password does not match the login</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","login","token"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"49a926aa-32ed-4bfc-9157-c2dd35eb9a14","name":"Login (bad password)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"password\":\"no bueno\",\n\t\"login\":\"johndoe\"\n}"},"url":"{{api_host}}/v1/customer/login/token"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.13.9"},{"key":"Date","value":"Wed, 07 Nov 2018 17:48:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"98"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Incorrect password\",\n    \"code\": \"CUS-002\",\n    \"detail\": \"Provided username or password is invalid\"\n}"},{"id":"7449c646-7ed5-4da1-b535-e995e3aae9bd","name":"Login (username not found) ","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"password\":\"Password124\",\n\t\"login\":\"johndo\"\n}"},"url":"{{api_host}}/v1/customer/login/token"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.13.9"},{"key":"Date","value":"Wed, 07 Nov 2018 17:48:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"122"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer not found\",\n    \"code\": \"COR-001\",\n    \"detail\": \"Customer with tenant: denvermattress and  login johndo not found\"\n}"},{"id":"eec944a7-8b3a-4647-af4a-477b81964fae","name":"Authenticate Customer (login) (success)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"password\":\"Password1234\",\n\t\"login\":\"jwgcooke@gmail.com\"\n}"},"url":"{{api_host}}/v1/customer/login/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 07 Dec 2018 12:21:44 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"695"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDQxODg5MDQsImlhdCI6MTU0NDE4NTMwNCwidXNlcklkIjoiNmJhZTYzOTItNzhmNi00NDRkLWFlYTUtMGU3ZGY2YjI2NDliIiwibG9naW4iOiJqd2djb29rZUBnbWFpbC5jb20iLCJ0ZW5hbnRNYXAiOnsiZGVudmVybWF0dHJlc3MiOnsicm9sZXMiOlsiY3VzdG9tZXIuZGVmYXVsdCJdfX0sImlzQW5vbnltb3VzIjpmYWxzZSwidHBlIjoiQUNDRVNTIn0.gQ-baa7wMUnfbe_ZPwk1f9MFesGiEO_CToG47zscofU\",\n    \"refreshToken\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDQxOTI1MDQsImlhdCI6MTU0NDE4NTMwNCwidXNlcklkIjoiNmJhZTYzOTItNzhmNi00NDRkLWFlYTUtMGU3ZGY2YjI2NDliIiwibG9naW4iOiJqd2djb29rZUBnbWFpbC5jb20iLCJ0ZW5hbnRNYXAiOnt9LCJpc0Fub255bW91cyI6ZmFsc2UsInRwZSI6IlJFRlJFU0gifQ.kLULILdnrvTGmjFc-8EwqXRAGM35sVQPOpzXju_X7UM\"\n}"}],"_postman_id":"289f8c5a-77c9-4bf9-97a8-ccfda3649952"},{"name":"Login forgotten","event":[{"listen":"test","script":{"id":"458f1081-85c1-44e9-9941-97312a3c2832","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"e3e6ee59-5efc-4de9-ba11-7e79729b2079","exec":["if( pm.environment.get(\"customer_email\" !== null ))"," pm.variables.set(\"customer_email\", \"example@example.com\");"," "],"type":"text/javascript"}}],"id":"cc302b3b-6166-41a5-9731-b3ce7f886498","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{anonymous_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"{{customer_email}}\"\n}"},"url":"{{api_host}}/v1/customer/login/forgotten","description":"<h1 id=\"post\">POST</h1>\n<p><strong>required roles</strong> : none</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDIzNzYzNjAsImlhdCI6MTU0MjM3Mjc2MCwidXNlcklkIjoiNTViMGM2ZjctNDFlZC00MzkxLWI1MTItYzdmNDY5OGUzNzM5IiwibG9naW4iOiJhZG1pbiIsInRlbmFudE1hcCI6eyJ1cHN0YXJ0Y29tbWVyY2UiOnsicm9sZXMiOlsib3BlcmF0b3IuZGVmYXVsdCJdfX0sImlzQW5vbnltb3VzIjpmYWxzZX0.tznhXv2JMpC9Ut8DWIU4WxkAHTWVnyZTBu6PY9kX2KU</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Remark</strong> :in Authorization header must be expired,token that was created in pair with the refresh token</p>\n<h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">POST body</h3>\n<h6 id=\"email\">email</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>true</td>\n<td>email where we send login nam e info</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-001</td>\n<td>User not found</td>\n</tr>\n<tr>\n<td>USR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","login","forgotten"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"52e6d7d7-6fd2-4017-a7ac-3c9c7e44e3d4","name":"Login forgotten - not exists","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"jakoass@upstartcommerce.com\"\n}"},"url":"{{api_host}}/v1/customer/login/forgotten"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 08 Jan 2019 10:22:07 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"141"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"String not found\",\n    \"code\": \"COR-001\",\n    \"detail\": \"Customer with tenant: denvermattress and  login jakoass@upstartcommerce.com not found\"\n}"},{"id":"68db7b07-cad7-493f-82ab-2a3d45c11c41","name":"Login forgotten - ok","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"juraj.burian@upstartcommerce.com\"\n}"},"url":"{{api_host}}/v1/customer/login/forgotten"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 08 Jan 2019 10:14:46 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null},{"id":"eb32361f-689e-4eba-9e5b-449be0d61473","name":"Login forgotten - not authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"jakoass@upstartcommerce.com\"\n}"},"url":"{{api_host}}/v1/customer/login/forgotten"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 08 Jan 2019 11:02:00 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"}],"_postman_id":"cc302b3b-6166-41a5-9731-b3ce7f886498"},{"name":"Get logged-in profile","id":"2e8a8ac6-89a5-4698-a72a-815ed2ef816c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"url":"{{api_host}}/v1/customer/profile","description":"<p>Get the data for the currently logged in customer (based on the content of the JWT token)</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"696d29fc-3f69-48a5-bc0f-bac871f5329a","name":"Customer not found","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{api_host}}/v1/customer/profile"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Nov 2018 09:34:36 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"148"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer not found\",\n    \"code\": \"COR-001\",\n    \"detail\": \"Customer with tenant: denvermattress and id 1472137b-b85f-4d09-861b-bd4b6665b675 not found\"\n}"},{"id":"8514f5c8-2810-4870-9aa9-cf5a98490048","name":"Get logged-in profile (success)","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{api_host}}/v1/customer/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.13.9"},{"key":"Date","value":"Mon, 12 Nov 2018 18:26:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"f0d81165-41f4-4000-b3e7-8b794327c3f9\",\n    \"login\": \"johndoe\",\n    \"name\": {\n        \"first\": \"John\",\n        \"last\": \"Jameson\",\n        \"suffix\": \"Jr.\"\n    },\n    \"gender\": \"m\",\n    \"birthDate\": \"2018-09-05\",\n    \"registrationDate\": \"2018-11-12T17:39:16.245Z\",\n    \"emailAddresses\": {\n        \"default\": {\n            \"label\": \"email2\",\n            \"address\": \"jwgcooke@gmail.com\"\n        },\n        \"addresses\": []\n    },\n    \"addresses\": {\n        \"defaultBilling\": {\n            \"label\": \"dba\",\n            \"street1\": \"Street\",\n            \"city\": \"Glasgow\",\n            \"county\": \"Worchestershire\",\n            \"stateOrRegion\": \"MS\",\n            \"country\": \"US\",\n            \"postalCode\": \"123\"\n        },\n        \"addresses\": [\n            {\n                \"label\": \"a1\",\n                \"street1\": \"Street\",\n                \"city\": \"Glasgow\",\n                \"county\": \"Worchestershire\",\n                \"stateOrRegion\": \"NH\",\n                \"country\": \"US\",\n                \"postalCode\": \"123\"\n            }\n        ]\n    }\n}"},{"id":"b2138f2f-7ea7-4f05-ba89-9acb709b04bc","name":"Unauthorized","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{api_host}}/v1/customer/profile"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Nov 2018 09:34:16 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"}],"_postman_id":"2e8a8ac6-89a5-4698-a72a-815ed2ef816c"},{"name":"Verify Customer Email","id":"dbce42c1-9a8a-4fb7-8e18-40e90791aed4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"url":"{{api_host}}/v1/customer/verify/:verificationToken","description":"<p>This call takes a token, generated by the sytem and delivered by email to a specified address and and flags the email as verified if the token is consistent with the submitted data</p>\n<p><strong>required roles</strong> : none</p>\n","urlObject":{"path":["v1","customer","verify",":verificationToken"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"d02eb561-f51e-4eee-98eb-21fd62d7a985","description":{"content":"<p>token generated by the system at the time an email address is created or modified</p>\n","type":"text/plain"},"type":"string","value":"{{verification_token}}","key":"verificationToken"}]}},"response":[{"id":"7ad55f30-8dc4-4e12-99b0-4ad321498fd1","name":"Verify Customer Email (token invalid)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"url":"{{api_host}}/customer/verify/ayJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDE1NTIxOTcsImlhdCI6MTU0MTU0ODU5NywidGVuYW50IjoiZGVudmVybWF0dHJlc3MiLCJpZCI6IjE0NzIxMzdiLWI4NWYtNGQwOS04NjFiLWJkNGI2NjY1YjY4NiIsImVtYWlsIjoiandnY29va2VAZ21haWwuY29tIn0.VHAXqjoogNdNjF8E9k9PcxYNqzc4mvjfps-PmCBYkc0"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Verification token invalid\",\n    \"code\": \"CUS-004\"\n}"},{"id":"ae5ff6e2-6fc2-478d-91c9-48e649152d83","name":"VerifyCustomer (success)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"url":"{{api_host}}/customer/verify/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDA5MTQ3MjAsImlhdCI6MTU0MDkxMTEyMCwidGVuYW50IjoiZGVudmVybWF0dHJlc3MiLCJpZCI6IjE0NzIxMzdiLWI4NWYtNGQwOS04NjFiLWJkNGI2NjY1YjY3NSIsImVtYWlsIjoidXBzdGFydGNvbW1lcmNlQGdtYWlsLmNvbSJ9.dsqSBnSzsc_oa73OSaUJsHVziegAsXJ0G2Is4-xu1Zc"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"b83ad0be-da9a-4413-a15a-9c4047e4dcd9","name":"VerifyCustomer (token expired)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"url":"{{api_host}}/customer/verify/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDA5MTQ3MjAsImlhdCI6MTU0MDkxMTEyMCwidGVuYW50IjoiZGVudmVybWF0dHJlc3MiLCJpZCI6IjE0NzIxMzdiLWI4NWYtNGQwOS04NjFiLWJkNGI2NjY1YjY3NSIsImVtYWlsIjoidXBzdGFydGNvbW1lcmNlQGdtYWlsLmNvbSJ9.dsqSBnSzsc_oa73OSaUJsHVziegAsXJ0G2Is4-xu1Zc"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Verification token invalid\",\n    \"code\": \"CUS-004\",\n    \"detail\": \"Provided token has expired\"\n}"}],"_postman_id":"dbce42c1-9a8a-4fb7-8e18-40e90791aed4"},{"name":"Execute password reset","id":"0ebf9c51-50ff-4aa6-8292-715cb1084a1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"password\": \"Password1234\"\n}"},"url":"{{api_host}}/v1/customer/password/reset/:token","description":"<p>This call sets the password for a given customer, based on the token, receieved in the reset password email.</p>\n<p><strong>required roles</strong> : none</p>\n<h3 id=\"put-body\">PUT Body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>true</td>\n<td>new password (plain text)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CUS-003</td>\n<td>Validation errors</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","password","reset",":token"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"3c2d16dd-c88a-4ca2-bfa3-95afa0f870bf","description":{"content":"<p>Reset password token, received in the email</p>\n","type":"text/plain"},"type":"string","value":"{{reset_password_token}}","key":"token"}]}},"response":[{"id":"4e0a51f0-e9e0-495e-8cc7-cafc00a5667e","name":"Validation errors","originalRequest":{"method":"PUT","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"a\"\n}"},"url":"{{api_host}}/v1/customer/password/reset/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDIzNzQxMTAsImlhdCI6MTU0MjM3MDUxMCwidGVuYW50IjoiZGVudmVybWF0dHJlc3MiLCJsb2dpbiI6Imtva3NvIiwiaWQiOiIxNDcyMTM3Yi1iODVmLTRkMDktODYxYi1iZDRiNjY2NWI2NzUiLCJwYXNzd29yZCI6ImM0NzRmNGZjLTIyZWEtNGU3MS05NWRjLTFjM2UxZTgyZjc3YyJ9.-g0Xr30R_nFza0-a7wkQbBCYQXaZ78qlRUQ_ktoMNIE"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 12:18:06 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"279"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"newPassword\",\n            \"errors\": [\n                {\n                    \"id\": \"regExp\",\n                    \"message\": \"Attribute newPassword doesn't match regular expression: ^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).*$ \",\n                    \"configuration\": {\n                        \"regExp\": \"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).*$\"\n                    }\n                }\n            ]\n        }\n    ]\n}"},{"id":"90112c60-73ae-445b-8cba-9b0596949110","name":"Invalid token","originalRequest":{"method":"PUT","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"Password3456\"\n}"},"url":"{{api_host}}/v1/customer/password/reset/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9eyJleHAiOjE1Mzg2NjA5OTIsImlhdCI6MTUzODY1NzM5MiwidGVuYW50IjoiZGVudmVybWF0dHJlc3MiLCJsb2dpbiI6Imtva3NvIiwiaWQiOiIxNDcyMTM3Yi1iODVmLTRkMDktODYxYi1iZDRiNjY2NWI2NzUiLCJwYXNzd29yZCI6IjVjMjYxNTdiLWYwYTMtNGJjNy1iNjZjLWM1MTk1NzhhNTc3YiJ9.RURGBxM3AMKH9WE4-A2ZgXzE0SI7VxWeb2FsyZJaIfs"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 11:54:52 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"85"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize, token is invalid\"\n}"},{"id":"ac9aa1b9-abd2-4f10-b682-a7d57b950d57","name":"Token timeout","originalRequest":{"method":"PUT","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"Password3456\"\n}"},"url":"{{api_host}}/v1/customer/password/reset/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1Mzg2NjA5OTIsImlhdCI6MTUzODY1NzM5MiwidGVuYW50IjoiZGVudmVybWF0dHJlc3MiLCJsb2dpbiI6Imtva3NvIiwiaWQiOiIxNDcyMTM3Yi1iODVmLTRkMDktODYxYi1iZDRiNjY2NWI2NzUiLCJwYXNzd29yZCI6IjVjMjYxNTdiLWYwYTMtNGJjNy1iNjZjLWM1MTk1NzhhNTc3YiJ9.RURGBxM3AMKH9WE4-A2ZgXzE0SI7VxWeb2FsyZJaIfs"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 11:49:09 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"100"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Customer password execute reset timeout exceeded\"\n}"},{"id":"fe40d93f-3288-49e7-b449-75cfb3352dfb","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"Password1234\"\n}"},"url":"{{api_host}}/v1/customer/password/reset/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDIzNzQxMTAsImlhdCI6MTU0MjM3MDUxMCwidGVuYW50IjoiZGVudmVybWF0dHJlc3MiLCJsb2dpbiI6Imtva3NvIiwiaWQiOiIxNDcyMTM3Yi1iODVmLTRkMDktODYxYi1iZDRiNjY2NWI2NzUiLCJwYXNzd29yZCI6ImM0NzRmNGZjLTIyZWEtNGU3MS05NWRjLTFjM2UxZTgyZjc3YyJ9.-g0Xr30R_nFza0-a7wkQbBCYQXaZ78qlRUQ_ktoMNIE"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 12:18:38 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"0ebf9c51-50ff-4aa6-8292-715cb1084a1a"},{"name":"Update personal details","id":"a54e1cbb-bd1a-4fdf-b63e-f27dcf07dbc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": {\n    \t\"salutation\" : \"Mr.\",\n      \"first\": \"Arnold\",\n      \"middleInitial\": \"L\",\n      \"last\": \"Schwarzenegger\",\n      \"suffix\": \"Sr.\"\n    },\n  \n    \"gender\": \"m\",\n    \"birthDate\": \"2098-09-05\"\n  }"},"url":"{{api_host}}/v1/customer/profile","description":"<p>This call updates customer's personal details</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"post-body\">Post Body</h3>\n<p>Starred datatypes (*) refer to nested structures</p>\n<h6 id=\"customer\">customer</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>name*</td>\n<td>true</td>\n<td>the structured name of this user</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>string</td>\n<td>false</td>\n<td>\"m\" or \"f\" only</td>\n</tr>\n<tr>\n<td>birthDate</td>\n<td>date</td>\n<td>false</td>\n<td>formatted date of birth (YYYY-MM-DD)</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"name\">name</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>salutation</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>first</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>middleInitial</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n<tr>\n<td>last</td>\n<td>string</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>suffix</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-003</td>\n<td>Validation error</td>\n</tr>\n<tr>\n<td>COR-002</td>\n<td>Customer with an ID provided in the token does not exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"04f4350f-4f4b-4643-ba02-8a9501052a2e","name":"Validation errors","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","value":"{{operator_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": {\n    \t\"salutation\" : \"Mr.\",\n      \"first\": \"\",\n      \"middleInitial\": \"L\",\n      \"last\": \"Schwarzenegger\",\n      \"suffix\": \"Sr.\"\n    },\n  \n    \"gender\": \"s\",\n    \"birthDate\": \"2098-09-05\"\n  }"},"url":"{{api_host}}/v1/customer/profile"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 11:00:24 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"294"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"name/first\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"Attribute first\\\\name can`t be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"gender\",\n            \"errors\": [\n                {\n                    \"id\": \"inArray\",\n                    \"message\": \"Attribute gender: s is not in {m, f}.\",\n                    \"configuration\": {\n                        \"array\": \"[\\\"m\\\", \\\"f\\\"]\"\n                    }\n                }\n            ]\n        }\n    ]\n}"},{"id":"40a6e501-c7bb-4a9f-9af7-c5073fa9c549","name":"Bad field format","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n    \"name\": {\n    \t\"salutation\" : \"Mr.\",\n      \"first\": \"Arnold\",\n      \"middleInitial\": \"L\",\n      \"last\": \"Schwarzenegger\",\n      \"suffix\": \"Sr.\"\n    },\n  \n    \"gender\": 1,\n    \"birthDate\": \"2098-09-05\"\n  }"},"url":"{{api_host}}/v1/customer/profile"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Nov 2018 09:45:37 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"170"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Malformed request\",\n    \"code\": \"COR-008\",\n    \"detail\": \"JsResultException(errors:List((/gender,List(JsonValidationError(List(error.expected.jsstring),WrappedArray())))))\"\n}"},{"id":"4bc183d7-6e1f-491f-b721-20eb7afbef87","name":"Doesn't exist","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","value":"{{operator_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": {\n    \t\"salutation\" : \"Mr.\",\n      \"first\": \"Arnold\",\n      \"middleInitial\": \"L\",\n      \"last\": \"Schwarzenegger\",\n      \"suffix\": \"Sr.\"\n    },\n  \n    \"gender\": \"f\",\n    \"birthDate\": \"2098-09-05\"\n  }"},"url":"{{api_host}}/v1/customer/profile"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 11:02:35 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"4c53db53-ecec-4a30-8cfd-49f116024108","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","value":"{{operator_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": {\n    \t\"salutation\" : \"Mr.\",\n      \"first\": \"Arnold\",\n      \"middleInitial\": \"L\",\n      \"last\": \"Schwarzenegger\",\n      \"suffix\": \"Sr.\"\n    },\n  \n    \"gender\": \"f\",\n    \"birthDate\": \"2098-09-05\"\n  }"},"url":"{{api_host}}/v1/customer/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 10:59:54 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"719"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1472137b-b85f-4d09-861b-bd4b6665b675\",\n    \"login\": \"kokso\",\n    \"name\": {\n        \"salutation\": \"Mr.\",\n        \"first\": \"Arnold\",\n        \"middleInitial\": \"L\",\n        \"last\": \"Schwarzenegger\",\n        \"suffix\": \"Sr.\"\n    },\n    \"gender\": \"f\",\n    \"birthDate\": \"2098-09-05\",\n    \"registrationDate\": \"2018-09-05T11:01:57.722Z\",\n    \"emailAddresses\": {\n        \"default\": {\n            \"label\": \"email2\",\n            \"address\": \"upstartcommerce@gmail.com\"\n        },\n        \"addresses\": [\n            {\n                \"label\": \"email1\",\n                \"address\": \"upstartcommerce1@gmail.com\"\n            }\n        ]\n    },\n    \"addresses\": {\n        \"defaultBilling\": {\n            \"label\": \"dba\",\n            \"street1\": \"Street\",\n            \"city\": \"Glasgow\",\n            \"county\": \"Worchestershire\",\n            \"stateOrRegion\": \"MS\",\n            \"country\": \"US\",\n            \"postalCode\": \"123\"\n        },\n        \"addresses\": [\n            {\n                \"label\": \"a1\",\n                \"street1\": \"Street\",\n                \"city\": \"Glasgow\",\n                \"county\": \"Worchestershire\",\n                \"stateOrRegion\": \"NH\",\n                \"country\": \"US\",\n                \"postalCode\": \"123\"\n            }\n        ]\n    }\n}"},{"id":"5f6bab82-25a1-47fc-8d3e-3b85315b923c","name":"Unauthorized","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Authorization","value":"{{operator_token}}","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"name\": {\n    \t\"salutation\" : \"Mr.\",\n      \"first\": \"\",\n      \"middleInitial\": \"L\",\n      \"last\": \"Schwarzenegger\",\n      \"suffix\": \"Sr.\"\n    },\n    \"gender\": \"s\",\n    \"birthDate\": \"2098-09-05\"\n  }"},"url":"{{api_host}}/v1/customer/profile"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 11:01:03 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"}],"_postman_id":"a54e1cbb-bd1a-4fdf-b63e-f27dcf07dbc0"},{"name":"Refresh token","event":[{"listen":"test","script":{"id":"be412112-181a-4cf6-8fcb-fc9adf0b2a7e","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"auth_token\", jsonData.accessToken);","postman.setEnvironmentVariable(\"refresh_token\", jsonData.refreshToken);"],"type":"text/javascript"}}],"id":"38e2f25e-4282-4841-83e1-69353578758b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Cache-Control","value":"no-cache","type":"text"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"refreshToken\": \"{{customer_refresh_token}}\"\n}"},"url":"{{api_host}}/v1/customer/profile/refresh/token","description":"<h1 id=\"put\">PUT</h1>\n<p><strong>required roles</strong> : none</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDIzNzYzNjAsImlhdCI6MTU0MjM3Mjc2MCwidXNlcklkIjoiNTViMGM2ZjctNDFlZC00MzkxLWI1MTItYzdmNDY5OGUzNzM5IiwibG9naW4iOiJhZG1pbiIsInRlbmFudE1hcCI6eyJ1cHN0YXJ0Y29tbWVyY2UiOnsicm9sZXMiOlsib3BlcmF0b3IuZGVmYXVsdCJdfX0sImlzQW5vbnltb3VzIjpmYWxzZX0.tznhXv2JMpC9Ut8DWIU4WxkAHTWVnyZTBu6PY9kX2KU</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Remark</strong> :in Authorization header must be expired,token that was created in pair with the refresh token</p>\n<h1 id=\"request\">Request</h1>\n<h3 id=\"put-body\">PUT body</h3>\n<h6 id=\"updateuser\">updateUser</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>refreshToken</td>\n<td>string</td>\n<td>true</td>\n<td>refresh token</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>accessToken</td>\n<td>string</td>\n<td>token for ordinary access</td>\n</tr>\n<tr>\n<td>refreshToken</td>\n<td>string</td>\n<td>token used in refresh token operation</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-001</td>\n<td>User not found</td>\n</tr>\n<tr>\n<td>USR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","refresh","token"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"5f019f29-a5a3-460d-8522-db48056f01f9","name":"Refresh token","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Cache-Control","value":"no-cache","type":"text"},{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"},{"key":"Authorization","value":"{{auth_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"refreshToken\": \"{{refresh_token}}\"\n}"},"url":"{{api_host}}/v1/customer/profile/refresh/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 07 Dec 2018 12:22:46 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"695"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDQxODg5NjYsImlhdCI6MTU0NDE4NTM2NiwidXNlcklkIjoiNmJhZTYzOTItNzhmNi00NDRkLWFlYTUtMGU3ZGY2YjI2NDliIiwibG9naW4iOiJqd2djb29rZUBnbWFpbC5jb20iLCJ0ZW5hbnRNYXAiOnsiZGVudmVybWF0dHJlc3MiOnsicm9sZXMiOlsiY3VzdG9tZXIuZGVmYXVsdCJdfX0sImlzQW5vbnltb3VzIjpmYWxzZSwidHBlIjoiQUNDRVNTIn0.O0UYpXocJruEVBgIbXP_cg3aJqPeET_FaFo-Y-Dm4hc\",\n    \"refreshToken\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDQxOTI1NjYsImlhdCI6MTU0NDE4NTM2NiwidXNlcklkIjoiNmJhZTYzOTItNzhmNi00NDRkLWFlYTUtMGU3ZGY2YjI2NDliIiwibG9naW4iOiJqd2djb29rZUBnbWFpbC5jb20iLCJ0ZW5hbnRNYXAiOnt9LCJpc0Fub255bW91cyI6ZmFsc2UsInRwZSI6IlJFRlJFU0gifQ.VIxu6eJ_do-0HfDZ3RkIT7gDcj2cFQO0kQtQ5luV3R8\"\n}"}],"_postman_id":"38e2f25e-4282-4841-83e1-69353578758b"},{"name":"Reset Password","id":"ff0233b4-84b0-47d1-b65b-618a507d5d1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{anonymous_access_token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"login\" : \"{{customer_login}}\"\n}"},"url":"{{api_host}}/v1/customer/password/reset","description":"<p>This call send email containing link to the application. Link contains jwt token on parameter paths.\nToken contains temporary generated password hash that is valid for a while (30 minutes is default value).\nToken is used in call: Customer password execute reset method.</p>\n<p><strong>required roles</strong> : customer.anonymous</p>\n<h3 id=\"put-body\">PUT Body</h3>\n<h6 id=\"customer\">customer</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>login</td>\n<td>string</td>\n<td>true</td>\n<td>the unique login for this user</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CUS-001</td>\n<td>Customer not verified</td>\n</tr>\n<tr>\n<td>COR-001</td>\n<td>Customer not found</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","password","reset"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"2cd6597c-564f-42fb-a1a7-5ab33310bb01","name":"customer password reset - ok","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FwaS51cHN0YXJ0Y29tbWVyY2UuY29tIiwiaWF0IjoxNTM4NDcxOTcwLCJ1c2VySWQiOiIxNDcyMTM3Yi1iODVmLTRkMDktODYxYi1iZDRiNjY2NWI2NzUiLCJsb2dpbiI6InRlc3QiLCJ0ZW5hbnRNYXAiOltbeyJ0ZW5hbnQiOiJkZW52ZXJtYXR0cmVzcyIsImRvbWFpbiI6ImRlbnZlcm1hdHRyZXNzLmNvbSJ9LHsicm9sZXMiOlsiaW52ZW50b3J5IiwibG9jYXRpb24iLCJjdXN0b21lciIsInVzZXIiLCJwcm9kdWN0Il19XSxbeyJ0ZW5hbnQiOiJkZW52ZXJtYXR0cmVzcyIsImRvbWFpbiI6ImxvY2FsaG9zdCJ9LHsicm9sZXMiOlsiaW52ZW50b3J5IiwibG9jYXRpb24iLCJjdXN0b21lciIsInVzZXIiLCJwcm9kdWN0Il19XV19.T0CK3PEKIjqog_OBCrpluKzV11nkM19FSjtFbSwTZaY","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"login\" : \"kokso\"\n}"},"url":"{{api_host}}/v1/customer/password/reset"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 16 Nov 2018 13:05:25 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"794dc36b-36b3-4e87-b4eb-09762aad1643","name":"customer password reset - not found","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FwaS51cHN0YXJ0Y29tbWVyY2UuY29tIiwiaWF0IjoxNTM4NDcxOTcwLCJ1c2VySWQiOiIxNDcyMTM3Yi1iODVmLTRkMDktODYxYi1iZDRiNjY2NWI2NzUiLCJsb2dpbiI6InRlc3QiLCJ0ZW5hbnRNYXAiOltbeyJ0ZW5hbnQiOiJkZW52ZXJtYXR0cmVzcyIsImRvbWFpbiI6ImRlbnZlcm1hdHRyZXNzLmNvbSJ9LHsicm9sZXMiOlsiaW52ZW50b3J5IiwibG9jYXRpb24iLCJjdXN0b21lciIsInVzZXIiLCJwcm9kdWN0Il19XSxbeyJ0ZW5hbnQiOiJkZW52ZXJtYXR0cmVzcyIsImRvbWFpbiI6ImxvY2FsaG9zdCJ9LHsicm9sZXMiOlsiaW52ZW50b3J5IiwibG9jYXRpb24iLCJjdXN0b21lciIsInVzZXIiLCJwcm9kdWN0Il19XV19.T0CK3PEKIjqog_OBCrpluKzV11nkM19FSjtFbSwTZaY","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"login\" : \"kokso2\"\n}"},"url":"{{api_host}}/v1/customer/password/reset"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 13:06:18 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"137"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer not found\",\n    \"code\": \"COR-001\",\n    \"detail\": \"Customer with tenant: denvermattress and  login CustomerLogin(kokso2) not found\"\n}"},{"id":"df2f0873-e48a-44b6-968f-ef699dea4835","name":"Unauthorized","originalRequest":{"method":"PUT","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"login\" : \"kokso2\"\n}"},"url":"{{api_host}}/v1/customer/password/reset"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 27 Dec 2018 10:28:04 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"df4040a1-5c4d-43dd-8309-187c0f6086dc","name":"customer password reset - not verified","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FwaS51cHN0YXJ0Y29tbWVyY2UuY29tIiwiaWF0IjoxNTM4NDcxOTcwLCJ1c2VySWQiOiIxNDcyMTM3Yi1iODVmLTRkMDktODYxYi1iZDRiNjY2NWI2NzUiLCJsb2dpbiI6InRlc3QiLCJ0ZW5hbnRNYXAiOltbeyJ0ZW5hbnQiOiJkZW52ZXJtYXR0cmVzcyIsImRvbWFpbiI6ImRlbnZlcm1hdHRyZXNzLmNvbSJ9LHsicm9sZXMiOlsiaW52ZW50b3J5IiwibG9jYXRpb24iLCJjdXN0b21lciIsInVzZXIiLCJwcm9kdWN0Il19XSxbeyJ0ZW5hbnQiOiJkZW52ZXJtYXR0cmVzcyIsImRvbWFpbiI6ImxvY2FsaG9zdCJ9LHsicm9sZXMiOlsiaW52ZW50b3J5IiwibG9jYXRpb24iLCJjdXN0b21lciIsInVzZXIiLCJwcm9kdWN0Il19XV19.T0CK3PEKIjqog_OBCrpluKzV11nkM19FSjtFbSwTZaY","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"}],"body":{"mode":"raw","raw":"{\n\t\"login\" : \"kokso\"\n}"},"url":"{{api_host}}/v1/customer/password/reset"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 12:43:07 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"144"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer not verified\",\n    \"code\": \"CUS-001\",\n    \"detail\": \"Customer with tenant: denvermattress and login CustomerLogin(kokso) is not verified\"\n}"}],"_postman_id":"ff0233b4-84b0-47d1-b65b-618a507d5d1c"},{"name":"DEPRECATED Update password","id":"3f130a33-3f3e-449f-8877-28d6a29479c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"oldPassword\":\"Password1234\",\n\t\"newPassword\":\"Password2345\"\n}"},"url":"{{api_host}}/v1/customer/:id/password","description":"<p>Set authorization header from login</p>\n","urlObject":{"path":["v1","customer",":id","password"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"3f8a9d82-ca03-4d89-8cf3-a7d15e824257","description":{"content":"<p>The User id for the profile whose password it getting changed</p>\n","type":"text/plain"},"type":"string","value":"{{logged_in_user_id}}","key":"id"}]}},"response":[],"_postman_id":"3f130a33-3f3e-449f-8877-28d6a29479c0"},{"name":"Update password","id":"c543566e-c446-4f30-9165-c37acf7e0efd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"oldPassword\":\"Password1234\",\n\t\"newPassword\":\"Password2345\"\n}"},"url":"{{api_host}}/v1/customer/profile/password","description":"<p>Set authorization header from login</p>\n","urlObject":{"path":["v1","customer","profile","password"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c543566e-c446-4f30-9165-c37acf7e0efd"},{"name":"Set default location","id":"a31bae46-e792-4682-a5d0-69c1e048c7c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"\"100077\""},"url":"{{api_host}}/v1/customer/profile/defaultlocation","description":"<p>This call sets the default location ID for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"post-body\">Post Body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UUID</td>\n<td>Location ID</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","defaultlocation"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"2c834739-f55d-4193-9820-35c058ef02cd","name":"Customer doesn't exist","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"\"1472137b-b85f-4d09-861b-bd4b6665b675\""},"url":"{{api_host}}/v1/customer/defaultlocation"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:12:42 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"},{"id":"797bbbec-24b3-4f24-8328-7baee0dd47aa","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}","type":"text","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\"1472137b-b85f-4d09-861b-bd4b6665b675\""},"url":"{{api_host}}/v1/customer/defaultlocation"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:33:34 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"ea7af103-87ba-48eb-8448-e2b028578314","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{customer_default_token}}","type":"text"},{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\"1472137b-b85f-4d09-861b-bd4b6665b675\""},"url":"{{api_host}}/v1/customer/defaultlocation"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:32:38 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a31bae46-e792-4682-a5d0-69c1e048c7c9"},{"name":"Remove default location","id":"7d0566b0-1d70-445f-89fb-30c4fa566826","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/profile/defaultlocation","description":"<p>This call removes the default location ID for a given customer</p>\n<p><strong>required roles</strong> : customer.default</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-002</td>\n<td>Customer doesn't exist</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customer","profile","defaultlocation"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"83074f36-f6ae-4e91-b167-417c1fbf8e0f","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"{{auth_token}}","disabled":true},{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/defaultlocation"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:37:14 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"9dff1bd7-ac37-4325-b518-a3e3d6207553","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"{{auth_token}}"},{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/defaultlocation"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 15 Nov 2018 15:37:03 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""},{"id":"9f7e4413-04fa-4f20-b698-6d76491dc4b8","name":"Customer doesn't exist","originalRequest":{"method":"DELETE","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"}],"body":{"mode":"raw","raw":""},"url":"{{api_host}}/v1/customer/defaultlocation"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 08:12:55 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Customer does not exist\",\n    \"code\": \"COR-002\"\n}"}],"_postman_id":"7d0566b0-1d70-445f-89fb-30c4fa566826"},{"name":"Reset Password Token and New Password","id":"3cb121c3-1000-498a-bb96-ba653a41d1da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"password\":\"Password1234\"\n}"},"url":"{{api_host}}/v1/customer/password/reset/:token","urlObject":{"path":["v1","customer","password","reset",":token"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"293f007e-c9f0-477c-83e2-fd10d0a6682d","type":"string","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDY4NTkwMTYsImlhdCI6MTU0Njg1NTQxNiwidGVuYW50IjoiZGVudmVybWF0dHJlc3MiLCJsb2dpbiI6ImpvaG5kb2UwMDExMSIsImlkIjoiOTkxMDEwZDktNTUxMS00ODA3LThlMDAtNzIxOTdiZWRjMzcxIiwicGFzc3dvcmQiOiJkZDk2YWFlZi03MWJjLTRmMDItOGViYi0zNjFhYzU2NTRhYTQifQ.1KIVOEyQlrEVNufj7XGJAbic2CuBXrMEwTDIqeH6HYc","key":"token"}]}},"response":[],"_postman_id":"3cb121c3-1000-498a-bb96-ba653a41d1da"}],"id":"23468b81-faec-41b6-926a-f27fc384b3ea","_postman_id":"23468b81-faec-41b6-926a-f27fc384b3ea","description":""},{"name":"location","item":[{"name":"Get location by id","event":[{"listen":"prerequest","script":{"id":"c813cf8b-efcc-4d80-9019-ba8e636617d0","exec":["pm.variables.set(\"location_id\", \"07d678c2-4e3f-485c-9c24-0e905aeb9d02\");",""],"type":"text/javascript"}}],"id":"eca3c0af-cc18-45c2-9d34-5f1047a903e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"}],"url":"{{api_host}}/v1/location/:id","description":"<p>retrieves a given location based on the provided id.  </p>\n<p><strong>optionalRoles</strong> : </p>\n<ol>\n<li>server.operator</li>\n<li>operator.default</li>\n<li>customer.default</li>\n<li>customer.anonymous</li>\n</ol>\n<h4 id=\"url-params\">URL PARAMS</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID formatted string</td>\n<td>true</td>\n<td>the id of the location</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-003</td>\n<td>Validation error - field can`t be empty</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation error -not a valid ISO 3166-1 alpha-2 country code.</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation error -Attribute latitude\\coordinates: 95.25873535185436 ∉ &lt;-90.0, 90.0&gt;</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation error -not a valid state code.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","location",":id"],"host":["{{api_host}}"],"query":[],"variable":[{"description":{"content":"<p>the UUID of the  location [locaton id which is present the reponse of create Location Call ]</p>\n","type":"text/plain"},"type":"string","value":"100077","key":"id"}]}},"response":[{"id":"0f5384ea-bf45-44b8-8967-a55dcd34f949","name":"Get Location By Id (Success)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"}],"url":{"raw":"{{api_host}}/v1/location/:id","host":["{{api_host}}"],"path":["v1","location",":id"],"variable":[{"key":"id","value":"51ac00ef-5911-4bdf-a613-bfef6c2448af"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 14:09:39 GMT","description":""},{"key":"Server","value":"akka-http/10.0.13","description":""},{"key":"Content-Type","value":"application/json","description":""},{"key":"Content-Length","value":"2199","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"51ac00ef-5911-4bdf-a613-bfef6c2448af\",\n    \"name\": \"store in mall\",\n    \"locationType\": \"store\",\n    \"public\": true,\n    \"operational\": true,\n    \"address\": {\n        \"street1\": \"123 Main st.\",\n        \"street2\": \"maybe blank, maybe not\",\n        \"city\": \"Anytown\",\n        \"county\": \"King\",\n        \"stateOrRegion\": \"New Hampshire\",\n        \"country\": \"USA\",\n        \"postalCode\": \"03101\"\n    },\n    \"coordinates\": {\n        \"latitude\": 40.258735351854355,\n        \"longitude\": -74.7425581220703\n    },\n    \"contactInformation\": {\n        \"primaryPhone\": \"867-5309\",\n        \"emailAddress\": \"someone@somewhere.com\",\n        \"fax\": \"903-5768\"\n    },\n    \"hoursOfOperation\": [\n        {\n            \"day\": \"MONDAY\",\n            \"isOpen\": true,\n            \"open\": \"10:00:00\",\n            \"closed\": \"19:00:00\"\n        },\n        {\n            \"day\": \"TUESDAY\",\n            \"isOpen\": true,\n            \"open\": \"10:00:00\",\n            \"closed\": \"19:00:00\"\n        },\n        {\n            \"day\": \"WEDNESDAY\",\n            \"isOpen\": true,\n            \"open\": \"10:00:00\",\n            \"closed\": \"19:00:00\"\n        },\n        {\n            \"day\": \"THURSDAY\",\n            \"isOpen\": true,\n            \"open\": \"10:00:00\",\n            \"closed\": \"19:00:00\"\n        },\n        {\n            \"day\": \"FRIDAY\",\n            \"isOpen\": true,\n            \"open\": \"10:00:00\",\n            \"closed\": \"21:00:00\"\n        },\n        {\n            \"day\": \"SATURDAY\",\n            \"isOpen\": true,\n            \"open\": \"10:00:00\",\n            \"closed\": \"19:00:00\"\n        },\n        {\n            \"day\": \"SUNDAY\",\n            \"isOpen\": false\n        }\n    ],\n    \"operationHoursExceptions\": [\n        {\n            \"exceptionType\": \"holiday\",\n            \"name\": \"Memorial Day\",\n            \"isOpen\": false\n        },\n        {\n            \"exceptionType\": \"holiday\",\n            \"name\": \"Labor Day\",\n            \"isOpen\": false\n        },\n        {\n            \"exceptionType\": \"holiday\",\n            \"name\": \"Christmas Day\",\n            \"isOpen\": false\n        },\n        {\n            \"exceptionType\": \"holiday\",\n            \"name\": \"New Years Day\",\n            \"isOpen\": false\n        },\n        {\n            \"exceptionType\": \"holiday\",\n            \"name\": \"Black Friday\",\n            \"isOpen\": true,\n            \"open\": \"04:00:00\",\n            \"closed\": \"23:00:00\"\n        }\n    ],\n    \"dateOriginallyOpened\": \"2000-01-01\",\n    \"remodelDates\": [\n        \"2010-01-01\",\n        \"2012-01-01\"\n    ],\n    \"media\": {\n        \"smallStoreFront\": \"https://some.url/to/some/image\",\n        \"largeStoreFront\": \"https://some.url/to/some/other/image\",\n        \"smallInterior\": \"https://some.url/to/some/other/other/image\"\n    },\n    \"directionsSummary\": \"make a left after the big building, it is on your right\",\n    \"externalApplicationReferences\": {\n        \"facebookPageManagement\": \"ASDFASKLHFSD9883YU894TTHH\",\n        \"googleApiKey\": \"ASDFASKLHFSD9883YU894TTHH\"\n    },\n    \"content\": [\n        {\n            \"identifier\": \"some key or id to uniquely identify this content\",\n            \"content\": \"some large or small body of text\",\n            \"startDateTime\": \"2018-10-02T13:47:59.562Z\",\n            \"endDateTime\": \"2019-10-02T13:47:59.562Z\"\n        }\n    ],\n    \"dynamicProperties\": [\n        {\n            \"nickname\": \"Headquarters\"\n        },\n        {\n            \"reviewsAndRatings\": {\n                \"rating1\": \"some really complicated JSON structure with reviews and ratings included\"\n            }\n        },\n        {\n            \"averageRating\": 4.75\n        }\n    ]\n}"}],"_postman_id":"eca3c0af-cc18-45c2-9d34-5f1047a903e0"},{"name":"Get locations by ids","id":"3bbac2aa-eec6-42ec-9131-077cc93ae0c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"}],"body":{"mode":"raw","raw":"[\"100077\"]"},"url":"{{api_host}}/v1/location/list","description":"<p>get a location based on the ids provided.  </p>\n<p><strong>allowedlRoles</strong> : </p>\n<ol>\n<li>server.operator</li>\n<li>operator.default</li>\n<li>customer.default</li>\n<li>customer.anonymous</li>\n</ol>\n<h4 id=\"request-body\">Request Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>N/A</td>\n<td>array[string]</td>\n<td>true</td>\n<td>the ids of the location</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-003</td>\n<td>Validation error - field can`t be empty</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation error -not a valid ISO 3166-1 alpha-2 country code.</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation error -Attribute latitude\\coordinates: 95.25873535185436 ∉ &lt;-90.0, 90.0&gt;</td>\n</tr>\n<tr>\n<td>COR-003</td>\n<td>Validation error -not a valid state code.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","location","list"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3bbac2aa-eec6-42ec-9131-077cc93ae0c8"},{"name":"Get location state of a sku","id":"8621e408-2008-4ab2-a69b-26a1cc56d543","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"}],"url":"{{api_host}}/internal/v1/location/:id/state","description":"<p>get a location state based on the sku id provided.  </p>\n<p><strong>allowedlRoles</strong> : </p>\n<ol>\n<li>server.operator</li>\n<li>operator.default</li>\n<li>customer.default</li>\n<li>customer.anonymous</li>\n</ol>\n<h4 id=\"request-body\">Request Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>N/A</td>\n<td>array[string]</td>\n<td>true</td>\n<td>the ids of the location</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["internal","v1","location",":id","state"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"8d5e2fac-b972-45b1-9607-ad0e0a29144c","description":{"content":"<p>the UUID of the  location [locaton id which is present the reponse of create Location Call ]</p>\n","type":"text/plain"},"type":"string","value":"","key":"id"}]}},"response":[{"id":"63cc7ee5-0f7c-4914-b290-d4ae47f2ee7a","name":"Get location state","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{auth_token}}"},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Origin","value":"localhost"}],"url":{"raw":"{{api_host}}/internal/v1/location/:id/state","host":["{{api_host}}"],"path":["internal","v1","location",":id","state"],"variable":[{"key":"id","value":"496accf9-573f-45ca-8806-a23ba904b869"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 14:53:15 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2673"}],"cookie":[],"responseTime":null,"body":"{\n    \"tenant\": \"denvermattress\",\n    \"location\": {\n        \"id\": \"496accf9-573f-45ca-8806-a23ba904b869\",\n        \"name\": \"store in mall\",\n        \"locationType\": \"store\",\n        \"public\": true,\n        \"operational\": true,\n        \"address\": {\n            \"street1\": \"123 Main st.\",\n            \"street2\": \"maybe blank, maybe not\",\n            \"city\": \"Anytown\",\n            \"county\": \"New Hampshire\",\n            \"stateOrRegion\": \"NH\",\n            \"country\": \"US\",\n            \"postalCode\": \"03101\"\n        },\n        \"coordinates\": {\n            \"latitude\": -1,\n            \"longitude\": 1\n        },\n        \"contactInformation\": {\n            \"primaryPhone\": \"12345\",\n            \"fax\": \"903-5768\",\n            \"emailAddress\": \"someone@somewhere.com\"\n        },\n        \"hoursOfOperation\": [\n            {\n                \"day\": \"MONDAY\",\n                \"isOpen\": true,\n                \"open\": \"10:00:00\",\n                \"closed\": \"19:00:00\"\n            },\n            {\n                \"day\": \"TUESDAY\",\n                \"isOpen\": true,\n                \"open\": \"10:00:00\",\n                \"closed\": \"19:00:00\"\n            },\n            {\n                \"day\": \"WEDNESDAY\",\n                \"isOpen\": true,\n                \"open\": \"10:00:00\",\n                \"closed\": \"19:00:00\"\n            },\n            {\n                \"day\": \"WEDNESDAY\",\n                \"isOpen\": true,\n                \"open\": \"10:00:00\",\n                \"closed\": \"07:00:00\"\n            },\n            {\n                \"day\": \"THURSDAY\",\n                \"isOpen\": true,\n                \"open\": \"10:00:00\",\n                \"closed\": \"19:00:00\"\n            },\n            {\n                \"day\": \"THURSDAY\",\n                \"isOpen\": false\n            },\n            {\n                \"day\": \"FRIDAY\",\n                \"isOpen\": true,\n                \"open\": \"10:00:00\",\n                \"closed\": \"21:00:00\"\n            },\n            {\n                \"day\": \"SATURDAY\",\n                \"isOpen\": true,\n                \"open\": \"10:00:00\",\n                \"closed\": \"19:00:00\"\n            },\n            {\n                \"day\": \"SUNDAY\",\n                \"isOpen\": false\n            }\n        ],\n        \"operationHoursExceptions\": [\n            {\n                \"exceptionType\": \"holiday\",\n                \"name\": \"Memorial Day\",\n                \"isOpen\": false\n            },\n            {\n                \"exceptionType\": \"holiday\",\n                \"name\": \"Labor Day\",\n                \"isOpen\": false\n            },\n            {\n                \"exceptionType\": \"holiday\",\n                \"name\": \"Christmas Day\",\n                \"isOpen\": false\n            },\n            {\n                \"exceptionType\": \"holiday\",\n                \"name\": \"New Years Day\",\n                \"isOpen\": false\n            },\n            {\n                \"exceptionType\": \"holiday\",\n                \"name\": \"Black Friday\",\n                \"isOpen\": true,\n                \"open\": \"04:00:00\",\n                \"closed\": \"23:00:00\"\n            }\n        ],\n        \"dateOriginallyOpened\": \"2000-01-01\",\n        \"remodelDates\": [\n            \"2018-10-10\",\n            \"2010-01-01\",\n            \"2012-01-01\"\n        ],\n        \"media\": {\n            \"smallStoreFront\": \"https://some.url/to/some/image\",\n            \"largeStoreFront\": \"https://some.url/to/some/other/image\",\n            \"smallInterior\": \"https://some.url/to/some/other/other/image\"\n        },\n        \"directionsSummary\": \"make a left after the big building, it is on your right\",\n        \"externalApplicationReferences\": {\n            \"googleApiKey\": \"ASDFASKLHFSD9883YU894TTHH\",\n            \"facebookPageManagement\": \"ASDFASKLHFSD9883YU894TTHH\"\n        },\n        \"content\": [\n            {\n                \"identifier\": \"some key or id to uniquely identify this content\",\n                \"content\": \"some large or small body of text\",\n                \"startDateTime\": \"2018-10-02T13:47:59.562Z\",\n                \"endDateTime\": \"2019-10-02T13:47:59.562Z\"\n            }\n        ],\n        \"dynamicProperties\": [\n            {\n                \"nickname\": \"Headquarters\"\n            },\n            {\n                \"reviewsAndRatings\": {\n                    \"rating1\": \"some really complicated JSON structure with reviews and ratings included\"\n                }\n            },\n            {\n                \"averageRating\": 4.75\n            }\n        ]\n    },\n    \"audits\": {\n        \"created\": {\n            \"byId\": \"1472137b-b85f-4d09-861b-bd4b6665b675\",\n            \"by\": \"test\",\n            \"byAnonymous\": false,\n            \"at\": \"2018-11-16T14:33:21.133Z\",\n            \"traceId\": \"cf69df52-f907-4401-8302-e3894dbfac8f\"\n        },\n        \"modified\": {\n            \"byId\": \"1472137b-b85f-4d09-861b-bd4b6665b675\",\n            \"by\": \"test\",\n            \"byAnonymous\": false,\n            \"at\": \"2018-11-16T14:49:56.560Z\",\n            \"traceId\": \"3a028447-f3a9-40c8-b75e-145aa85e98e8\"\n        }\n    }\n}"}],"_postman_id":"8621e408-2008-4ab2-a69b-26a1cc56d543"},{"name":"Suggest locations","id":"5ce511dc-3c15-46d1-a1b5-07a6218442dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"York\",\n  \"properties\": [\"name\"]\n}"},"url":"{{api_host}}/v1/location/suggest","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the suggest locations API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns suggest result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/suggest</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>query</td>\n<td>String</td>\n<td>true</td>\n<td>query</td>\n</tr>\n<tr>\n<td>properties</td>\n<td>String[]</td>\n<td>false</td>\n<td>properties for query</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<h3 id=\"response-body\">Response body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>items</td>\n<td>PropertySuggestions[]</td>\n<td>true</td>\n<td>property suggestions</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"propertysuggestions\">PropertySuggestions</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>property</td>\n<td>String</td>\n<td>true</td>\n<td>property</td>\n</tr>\n<tr>\n<td>suggestions</td>\n<td>Suggestion[]</td>\n<td>true</td>\n<td>suggestions</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"suggestion\">Suggestion</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>String</td>\n<td>true</td>\n<td>suggested value</td>\n</tr>\n<tr>\n<td>weight</td>\n<td>Int</td>\n<td>true</td>\n<td>weight</td>\n</tr>\n<tr>\n<td>payload</td>\n<td>String</td>\n<td>false</td>\n<td>NOT SPECIFIED NOW</td>\n</tr>\n</tbody>\n</table>\n</div><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations suggest result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","suggest"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"1ac7dd4d-0900-4fe5-ad6a-e6976fbc6b25","name":"Suggest locations - Failure Unauthorized","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"Zab\",\n  \"properties\": [\"name\"]\n}"},"url":"{{api_host}}/v1/location/suggest"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 21 Dec 2018 09:04:37 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"390f259c-ddd2-48a4-bb39-45db074a5842","name":"Suggest locations - Failure Bad Request","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"Zab\",\n  \"properties\": [\"name3\"]\n}"},"url":"{{api_host}}/v1/location/suggest"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 21 Dec 2018 09:04:02 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"170"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Suggest Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"properties/name3\",\n            \"errors\": [\n                {\n                    \"id\": \"unknownSuggestProperty\",\n                    \"message\": \"Unknown property: name3\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"a56a13ee-04d0-43f6-b459-26188f92c5c3","name":"Suggest locations","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"query\": \"Zab\",\n  \"properties\": [\"name\"]\n}"},"url":"{{api_host}}/v1/location/suggest"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 21 Dec 2018 09:03:03 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"139"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"property\": \"name\",\n            \"suggestions\": [\n                {\n                    \"term\": \"Zabars\",\n                    \"weight\": 0,\n                    \"payload\": \"\"\n                },\n                {\n                    \"term\": \"Zabars Private\",\n                    \"weight\": 0,\n                    \"payload\": \"\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"5ce511dc-3c15-46d1-a1b5-07a6218442dc"},{"name":"Search locations","id":"0f8f3550-99d2-45c1-a875-1b7eebd69c34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"filter\": {\n\t\t\"and\": [ \n\t\t\t{\n\t\t\t  \"cond\": {\n\t\t\t\t\"property\": \"public\",\n\t\t\t\t\"comparator\": \"eq\",\n\t\t\t\t\"value\": \"false\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t\"page\": 0,\n\t\"pageSize\": 10,\n\t\"orders\": [\n\t\t{\n\t\t\t\"property\":\"name\",\n\t\t    \"asc\": false\n\t\t\t\n\t\t}\n\t]\n}"},"url":"{{api_host}}/v1/location/search","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><p>#Request</p>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>query</td>\n<td>String</td>\n<td>false</td>\n<td>search query</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>Term</td>\n<td>false</td>\n<td>term structure described later</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"400ca6cc-597e-4a47-9c30-87754a02f14f","name":"Search locations - Failure Bad Request","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"{{auth_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"filter\": {\n\t\t\"and\": [ \n\t\t\t{\n\t\t\t  \"cond\": {\n\t\t\t\t\"property\": \"name3\",\n\t\t\t\t\"comparator\": \"like\",\n\t\t\t\t\"value\": \"Zabars\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t  \"cond\": {\n\t\t\t\t\"property\": \"public\",\n\t\t\t\t\"comparator\": \"eq\",\n\t\t\t\t\"value\": \"false\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t\"page\": 0,\n\t\"pageSize\": 10,\n\t\"orders\": [\n\t\t{\n\t\t\t\"property\":\"name\",\n\t\t    \"asc\": false\n\t\t\t\n\t\t}\n\t]\n}"},"url":"{{api_host}}/v1/location/search"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 21 Dec 2018 09:00:42 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"181"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Search Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"filter/and/cond/property/name3\",\n            \"errors\": [\n                {\n                    \"id\": \"unknownQueryProperty\",\n                    \"message\": \"Unknown property: name3\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"727d80ff-15ce-4c05-aaec-890038e1bc1b","name":"Search locations - Failure Unauthorized","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"filter\": {\n\t\t\"and\": [ \n\t\t\t{\n\t\t\t  \"cond\": {\n\t\t\t\t\"property\": \"name\",\n\t\t\t\t\"comparator\": \"like\",\n\t\t\t\t\"value\": \"Zabars\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t  \"cond\": {\n\t\t\t\t\"property\": \"public\",\n\t\t\t\t\"comparator\": \"eq\",\n\t\t\t\t\"value\": \"false\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t\"page\": 0,\n\t\"pageSize\": 10,\n\t\"orders\": [\n\t\t{\n\t\t\t\"property\":\"name\",\n\t\t    \"asc\": false\n\t\t\t\n\t\t}\n\t]\n}"},"url":"{{api_host}}/v1/location/search"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 21 Dec 2018 09:01:56 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"f731b81d-e376-4e94-934b-14ccc8a1017f","name":"Search locations","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"{{auth_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"filter\": {\n\t\t\"and\": [ \n\t\t\t{\n\t\t\t  \"cond\": {\n\t\t\t\t\"property\": \"name\",\n\t\t\t\t\"comparator\": \"like\",\n\t\t\t\t\"value\": \"Zabars\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t  \"cond\": {\n\t\t\t\t\"property\": \"public\",\n\t\t\t\t\"comparator\": \"eq\",\n\t\t\t\t\"value\": \"false\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t\"page\": 0,\n\t\"pageSize\": 10,\n\t\"orders\": [\n\t\t{\n\t\t\t\"property\":\"name\",\n\t\t    \"asc\": false\n\t\t\t\n\t\t}\n\t]\n}"},"url":"{{api_host}}/v1/location/search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 21 Dec 2018 08:51:44 GMT","description":""},{"key":"Server","value":"akka-http/10.0.13","description":""},{"key":"Content-Type","value":"application/json","description":""},{"key":"Content-Length","value":"2817","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"id\": \"7d7629c8-2c1b-4ad0-8352-3082ae221360\",\n            \"name\": \"Zabars Private\",\n            \"locationType\": \"store\",\n            \"public\": false,\n            \"operational\": true,\n            \"address\": {\n                \"street1\": \"2245 Brodway\",\n                \"street2\": \"\",\n                \"city\": \"New York\",\n                \"county\": \"NY\",\n                \"stateOrRegion\": \"NY\",\n                \"country\": \"US\",\n                \"postalCode\": \"10024\"\n            },\n            \"coordinates\": {\n                \"latitude\": 40.784999,\n                \"longitude\": -73.979724\n            },\n            \"contactInformation\": {\n                \"primaryPhone\": \"867-5309\",\n                \"emailAddress\": \"someone@somewhere.com\",\n                \"fax\": \"903-5768\"\n            },\n            \"hoursOfOperation\": [\n                {\n                    \"day\": \"MONDAY\",\n                    \"isOpen\": false\n                },\n                {\n                    \"day\": \"TUESDAY\",\n                    \"isOpen\": false\n                },\n                {\n                    \"day\": \"WEDNESDAY\",\n                    \"isOpen\": false\n                },\n                {\n                    \"day\": \"THURSDAY\",\n                    \"isOpen\": false\n                },\n                {\n                    \"day\": \"FRIDAY\",\n                    \"isOpen\": false\n                },\n                {\n                    \"day\": \"SATURDAY\",\n                    \"isOpen\": true,\n                    \"open\": \"10:00:00\",\n                    \"closed\": \"19:00:00\"\n                },\n                {\n                    \"day\": \"SUNDAY\",\n                    \"isOpen\": true,\n                    \"open\": \"10:00:00\",\n                    \"closed\": \"19:00:00\"\n                }\n            ],\n            \"operationHoursExceptions\": [\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Memorial Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Labor Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Christmas Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"New Years Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Black Friday\",\n                    \"isOpen\": true,\n                    \"open\": \"04:00:00\",\n                    \"closed\": \"23:00:00\"\n                }\n            ],\n            \"dateOriginallyOpened\": \"2000-01-01\",\n            \"remodelDates\": [\n                \"2010-01-01\",\n                \"2012-01-01\"\n            ],\n            \"media\": {\n                \"smallStoreFront\": \"https://some.url/to/some/image\",\n                \"largeStoreFront\": \"https://some.url/to/some/other/image\",\n                \"smallInterior\": \"https://some.url/to/some/other/other/image\"\n            },\n            \"directionsSummary\": \"make a left after the big building, it is on your right\",\n            \"externalApplicationReferences\": {\n                \"facebookPageManagement\": \"ASDFASKLHFSD9883YU894TTHH\",\n                \"googleApiKey\": \"ASDFASKLHFSD9883YU894TTHH\"\n            },\n            \"content\": [\n                {\n                    \"identifier\": \"some key or id to uniquely identify this content\",\n                    \"content\": \"some large or small body of text\",\n                    \"startDateTime\": \"2018-10-02T13:47:59.562Z\",\n                    \"endDateTime\": \"2019-10-02T13:47:59.562Z\"\n                }\n            ],\n            \"dynamicProperties\": [\n                {\n                    \"nickname\": \"Headquarters\"\n                },\n                {\n                    \"reviewsAndRatings\": {\n                        \"rating1\": \"some really complicated JSON structure with reviews and ratings included\"\n                    }\n                },\n                {\n                    \"averageRating\": 4.75\n                }\n            ]\n        }\n    ],\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"count\": 1,\n    \"facetCounts\": {\n        \"properties\": [\n            {\n                \"property\": \"operational\",\n                \"counts\": [\n                    {\n                        \"value\": \"true\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"public\",\n                \"counts\": [\n                    {\n                        \"value\": \"false\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"address.stateOrRegion\",\n                \"counts\": [\n                    {\n                        \"value\": \"NY\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"address.city\",\n                \"counts\": [\n                    {\n                        \"value\": \"New York\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"hoursOfOperation.day\",\n                \"counts\": [\n                    {\n                        \"value\": \"FRIDAY\",\n                        \"count\": 1\n                    },\n                    {\n                        \"value\": \"MONDAY\",\n                        \"count\": 1\n                    },\n                    {\n                        \"value\": \"SATURDAY\",\n                        \"count\": 1\n                    },\n                    {\n                        \"value\": \"SUNDAY\",\n                        \"count\": 1\n                    },\n                    {\n                        \"value\": \"THURSDAY\",\n                        \"count\": 1\n                    },\n                    {\n                        \"value\": \"TUESDAY\",\n                        \"count\": 1\n                    },\n                    {\n                        \"value\": \"WEDNESDAY\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"address.county\",\n                \"counts\": [\n                    {\n                        \"value\": \"NY\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"locationType\",\n                \"counts\": [\n                    {\n                        \"value\": \"store\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"address.country\",\n                \"counts\": [\n                    {\n                        \"value\": \"US\",\n                        \"count\": 1\n                    }\n                ]\n            }\n        ],\n        \"ranges\": []\n    }\n}"}],"_postman_id":"0f8f3550-99d2-45c1-a875-1b7eebd69c34"},{"name":"Search locations by address","id":"9a1c9531-57b7-48a6-9d88-fd162d65ca25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"filter\": {\n        \"address\": \"10024 USA\",\n        \"distance\": {\n            \"value\": 2000,\n            \"unit\": \"mi\"\n        },\n        \"term\": {\n            \"and\": [\n                {\n                    \"cond\": {\n                        \"property\": \"locationType\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"storeCluster\"\n                    }\n                },\n                {\n                    \"cond\": {\n                        \"property\": \"dynamicProperties.stores.brandId\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"DMC\"\n                    }\n                }\n            ]\n        }\n    },\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"orders\": []\n}"},"url":"{{api_host}}/v1/location/search/address","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by address API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/address</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>AddressFilter</td>\n<td>true</td>\n<td>address filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"addressfilter\">AddressFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>address</td>\n<td>String</td>\n<td>true</td>\n<td>address query</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>address query</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search by address result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","address"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"d7d5673c-618b-4843-832f-4af1b4c3d6c4","name":"Search locations by address","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"filter\": {\n\t\t\"address\":\"10024 USA\",\n\t\t\"distance\": {\n\t\t\t\"value\": 20,\n\t\t\t\"unit\": \"mi\"\n\t\t}\n\t},\n\t\"page\": 0,\n\t\"pageSize\": 10,\n\t\"orders\": [\n\t]\n}"},"url":"{{api_host}}/v1/location/search/address"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 31 Dec 2018 10:04:52 GMT","description":""},{"key":"Server","value":"akka-http/10.0.13","description":""},{"key":"Content-Type","value":"application/json","description":""},{"key":"Content-Length","value":"4986","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"id\": \"485bfe68-3ee4-4442-981c-42b7a4400a52\",\n            \"name\": \"Zabars\",\n            \"locationType\": \"store\",\n            \"public\": true,\n            \"operational\": true,\n            \"address\": {\n                \"street1\": \"2245 Brodway\",\n                \"street2\": \"\",\n                \"city\": \"New York\",\n                \"county\": \"NY\",\n                \"stateOrRegion\": \"NY\",\n                \"country\": \"US\",\n                \"postalCode\": \"10024\"\n            },\n            \"coordinates\": {\n                \"latitude\": 40.784999,\n                \"longitude\": -73.979724\n            },\n            \"contactInformation\": {\n                \"primaryPhone\": \"867-5309\",\n                \"emailAddress\": \"someone@somewhere.com\",\n                \"fax\": \"903-5768\"\n            },\n            \"hoursOfOperation\": [\n                {\n                    \"day\": \"MONDAY\",\n                    \"isOpen\": true,\n                    \"open\": \"10:00:00\",\n                    \"closed\": \"19:00:00\"\n                },\n                {\n                    \"day\": \"TUESDAY\",\n                    \"isOpen\": true,\n                    \"open\": \"10:00:00\",\n                    \"closed\": \"19:00:00\"\n                },\n                {\n                    \"day\": \"WEDNESDAY\",\n                    \"isOpen\": true,\n                    \"open\": \"10:00:00\",\n                    \"closed\": \"19:00:00\"\n                },\n                {\n                    \"day\": \"THURSDAY\",\n                    \"isOpen\": true,\n                    \"open\": \"10:00:00\",\n                    \"closed\": \"19:00:00\"\n                },\n                {\n                    \"day\": \"FRIDAY\",\n                    \"isOpen\": true,\n                    \"open\": \"10:00:00\",\n                    \"closed\": \"21:00:00\"\n                },\n                {\n                    \"day\": \"SATURDAY\",\n                    \"isOpen\": true,\n                    \"open\": \"10:00:00\",\n                    \"closed\": \"19:00:00\"\n                },\n                {\n                    \"day\": \"SUNDAY\",\n                    \"isOpen\": false\n                }\n            ],\n            \"operationHoursExceptions\": [\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Memorial Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Labor Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Christmas Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"New Years Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Black Friday\",\n                    \"isOpen\": true,\n                    \"open\": \"04:00:00\",\n                    \"closed\": \"23:00:00\"\n                }\n            ],\n            \"dateOriginallyOpened\": \"2000-01-01\",\n            \"remodelDates\": [\n                \"2010-01-01\",\n                \"2012-01-01\"\n            ],\n            \"media\": {\n                \"smallStoreFront\": \"https://some.url/to/some/image\",\n                \"largeStoreFront\": \"https://some.url/to/some/other/image\",\n                \"smallInterior\": \"https://some.url/to/some/other/other/image\"\n            },\n            \"directionsSummary\": \"make a left after the big building, it is on your right\",\n            \"externalApplicationReferences\": {\n                \"facebookPageManagement\": \"ASDFASKLHFSD9883YU894TTHH\",\n                \"googleApiKey\": \"ASDFASKLHFSD9883YU894TTHH\"\n            },\n            \"content\": [\n                {\n                    \"identifier\": \"some key or id to uniquely identify this content\",\n                    \"content\": \"some large or small body of text\",\n                    \"startDateTime\": \"2018-10-02T13:47:59.562Z\",\n                    \"endDateTime\": \"2019-10-02T13:47:59.562Z\"\n                }\n            ],\n            \"dynamicProperties\": [\n                {\n                    \"nickname\": \"Headquarters\"\n                },\n                {\n                    \"reviewsAndRatings\": {\n                        \"rating1\": \"some really complicated JSON structure with reviews and ratings included\"\n                    }\n                },\n                {\n                    \"averageRating\": 4.75\n                }\n            ]\n        },\n        {\n            \"id\": \"7d7629c8-2c1b-4ad0-8352-3082ae221360\",\n            \"name\": \"Zabars Private\",\n            \"locationType\": \"store\",\n            \"public\": false,\n            \"operational\": true,\n            \"address\": {\n                \"street1\": \"2245 Brodway\",\n                \"street2\": \"\",\n                \"city\": \"New York\",\n                \"county\": \"NY\",\n                \"stateOrRegion\": \"NY\",\n                \"country\": \"US\",\n                \"postalCode\": \"10024\"\n            },\n            \"coordinates\": {\n                \"latitude\": 40.784999,\n                \"longitude\": -73.979724\n            },\n            \"contactInformation\": {\n                \"primaryPhone\": \"867-5309\",\n                \"emailAddress\": \"someone@somewhere.com\",\n                \"fax\": \"903-5768\"\n            },\n            \"hoursOfOperation\": [\n                {\n                    \"day\": \"MONDAY\",\n                    \"isOpen\": false\n                },\n                {\n                    \"day\": \"TUESDAY\",\n                    \"isOpen\": false\n                },\n                {\n                    \"day\": \"WEDNESDAY\",\n                    \"isOpen\": false\n                },\n                {\n                    \"day\": \"THURSDAY\",\n                    \"isOpen\": false\n                },\n                {\n                    \"day\": \"FRIDAY\",\n                    \"isOpen\": false\n                },\n                {\n                    \"day\": \"SATURDAY\",\n                    \"isOpen\": true,\n                    \"open\": \"10:00:00\",\n                    \"closed\": \"19:00:00\"\n                },\n                {\n                    \"day\": \"SUNDAY\",\n                    \"isOpen\": true,\n                    \"open\": \"10:00:00\",\n                    \"closed\": \"19:00:00\"\n                }\n            ],\n            \"operationHoursExceptions\": [\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Memorial Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Labor Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Christmas Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"New Years Day\",\n                    \"isOpen\": false\n                },\n                {\n                    \"exceptionType\": \"holiday\",\n                    \"name\": \"Black Friday\",\n                    \"isOpen\": true,\n                    \"open\": \"04:00:00\",\n                    \"closed\": \"23:00:00\"\n                }\n            ],\n            \"dateOriginallyOpened\": \"2000-01-01\",\n            \"remodelDates\": [\n                \"2010-01-01\",\n                \"2012-01-01\"\n            ],\n            \"media\": {\n                \"smallStoreFront\": \"https://some.url/to/some/image\",\n                \"largeStoreFront\": \"https://some.url/to/some/other/image\",\n                \"smallInterior\": \"https://some.url/to/some/other/other/image\"\n            },\n            \"directionsSummary\": \"make a left after the big building, it is on your right\",\n            \"externalApplicationReferences\": {\n                \"facebookPageManagement\": \"ASDFASKLHFSD9883YU894TTHH\",\n                \"googleApiKey\": \"ASDFASKLHFSD9883YU894TTHH\"\n            },\n            \"content\": [\n                {\n                    \"identifier\": \"some key or id to uniquely identify this content\",\n                    \"content\": \"some large or small body of text\",\n                    \"startDateTime\": \"2018-10-02T13:47:59.562Z\",\n                    \"endDateTime\": \"2019-10-02T13:47:59.562Z\"\n                }\n            ],\n            \"dynamicProperties\": [\n                {\n                    \"nickname\": \"Headquarters\"\n                },\n                {\n                    \"reviewsAndRatings\": {\n                        \"rating1\": \"some really complicated JSON structure with reviews and ratings included\"\n                    }\n                },\n                {\n                    \"averageRating\": 4.75\n                }\n            ]\n        }\n    ],\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"count\": 2,\n    \"facetCounts\": {\n        \"properties\": [\n            {\n                \"property\": \"operational\",\n                \"counts\": [\n                    {\n                        \"value\": \"true\",\n                        \"count\": 2\n                    }\n                ]\n            },\n            {\n                \"property\": \"public\",\n                \"counts\": [\n                    {\n                        \"value\": \"false\",\n                        \"count\": 1\n                    },\n                    {\n                        \"value\": \"true\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"address.stateOrRegion\",\n                \"counts\": [\n                    {\n                        \"value\": \"NY\",\n                        \"count\": 2\n                    }\n                ]\n            },\n            {\n                \"property\": \"address.city\",\n                \"counts\": [\n                    {\n                        \"value\": \"New York\",\n                        \"count\": 2\n                    }\n                ]\n            },\n            {\n                \"property\": \"hoursOfOperation.day\",\n                \"counts\": [\n                    {\n                        \"value\": \"FRIDAY\",\n                        \"count\": 2\n                    },\n                    {\n                        \"value\": \"MONDAY\",\n                        \"count\": 2\n                    },\n                    {\n                        \"value\": \"SATURDAY\",\n                        \"count\": 2\n                    },\n                    {\n                        \"value\": \"SUNDAY\",\n                        \"count\": 2\n                    },\n                    {\n                        \"value\": \"THURSDAY\",\n                        \"count\": 2\n                    },\n                    {\n                        \"value\": \"TUESDAY\",\n                        \"count\": 2\n                    },\n                    {\n                        \"value\": \"WEDNESDAY\",\n                        \"count\": 2\n                    }\n                ]\n            },\n            {\n                \"property\": \"address.county\",\n                \"counts\": [\n                    {\n                        \"value\": \"NY\",\n                        \"count\": 2\n                    }\n                ]\n            },\n            {\n                \"property\": \"locationType\",\n                \"counts\": [\n                    {\n                        \"value\": \"store\",\n                        \"count\": 2\n                    }\n                ]\n            },\n            {\n                \"property\": \"address.country\",\n                \"counts\": [\n                    {\n                        \"value\": \"US\",\n                        \"count\": 2\n                    }\n                ]\n            }\n        ],\n        \"ranges\": []\n    }\n}"}],"_postman_id":"9a1c9531-57b7-48a6-9d88-fd162d65ca25"},{"name":"Search locations by coordinates","id":"b97b35d3-1d94-4ae6-acc0-a5a31fb510f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"filter\": {\n        \"coordinates\": {\n            \"latitude\": 39.975484,\n            \"longitude\": -76.767875\n        },\n        \"distance\": {\n            \"value\": 200,\n            \"unit\": \"mi\"\n        },\n        \"term\": {\n            \"and\": [\n                {\n                    \"cond\": {\n                        \"property\": \"locationType\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"storeCluster\"\n                    }\n                },\n                {\n                    \"cond\": {\n                        \"property\": \"dynamicProperties.stores.brandId\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"DMC\"\n                    }\n                }\n            ]\n        }\n    },\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"orders\": []\n}"},"url":"{{api_host}}/v1/location/search/coordinates","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by coordinates API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/coordinates</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>CoordinatesFilter</td>\n<td>true</td>\n<td>coordinates filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinatesfilter\">CoordinatesFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>coordinates</td>\n<td>Coordinates</td>\n<td>true</td>\n<td>coordinates query</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinates\">Coordinates</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>latitude</td>\n<td>Double</td>\n<td>true</td>\n<td>latitude</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Double</td>\n<td>true</td>\n<td>longitude</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","coordinates"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b97b35d3-1d94-4ae6-acc0-a5a31fb510f0"},{"name":"Get location by postal code","id":"09216044-a960-45ce-92ca-850c70ea850c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"country\": \"US\",\n    \"postalCode\": \"00501\",\n    \"distance\": {\n        \"value\": 2000,\n        \"unit\": \"mi\"\n    },\n    \"term\": {\n        \"and\": [\n            {\n                \"cond\": {\n                    \"property\": \"locationType\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"storeCluster\"\n                }\n            },\n            {\n                \"cond\": {\n                    \"property\": \"dynamicProperties.stores.brandId\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"DMC\"\n                }\n            }\n        ]\n    }\n}"},"url":"{{api_host}}/v1/location/info/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the get location by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/info/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Postal Code location info result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","info","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"09216044-a960-45ce-92ca-850c70ea850c"},{"name":"Search locations by postal code","id":"faa27800-fccf-437d-a809-8ebd5eba46de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"filter\": {\n    \"country\":\"US\",\n    \"postalCode\": \"26416\",\n    \"distance\": {\n      \"value\": 200,\n      \"unit\": \"mi\"\n    }\n  },\n  \"page\": 0,\n  \"pageSize\": 10,\n  \"orders\": [\n  ]\n}"},"url":"{{api_host}}/v1/location/search/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>PostalCodeFilter</td>\n<td>true</td>\n<td>postal code filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"postalcodefilter\">PostalCodeFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search by address result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"faa27800-fccf-437d-a809-8ebd5eba46de"},{"name":"Search locations by coordinates","id":"8fdcc36f-289d-48cc-97ca-2732208fcd49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"filter\": {\n        \"coordinates\": {\n            \"latitude\": 39.975484,\n            \"longitude\": -76.767875\n        },\n        \"distance\": {\n            \"value\": 200,\n            \"unit\": \"mi\"\n        },\n        \"term\": {\n            \"and\": [\n                {\n                    \"cond\": {\n                        \"property\": \"locationType\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"storeCluster\"\n                    }\n                },\n                {\n                    \"cond\": {\n                        \"property\": \"dynamicProperties.stores.brandId\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"DMC\"\n                    }\n                }\n            ]\n        }\n    },\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"orders\": []\n}"},"url":"{{api_host}}/v1/location/search/coordinates","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by coordinates API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/coordinates</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>CoordinatesFilter</td>\n<td>true</td>\n<td>coordinates filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinatesfilter\">CoordinatesFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>coordinates</td>\n<td>Coordinates</td>\n<td>true</td>\n<td>coordinates query</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinates\">Coordinates</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>latitude</td>\n<td>Double</td>\n<td>true</td>\n<td>latitude</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Double</td>\n<td>true</td>\n<td>longitude</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","coordinates"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8fdcc36f-289d-48cc-97ca-2732208fcd49"},{"name":"Get location by postal code","id":"2512e436-978f-4936-a203-c8fa6c0930d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"country\": \"US\",\n    \"postalCode\": \"00501\",\n    \"distance\": {\n        \"value\": 2000,\n        \"unit\": \"mi\"\n    },\n    \"term\": {\n        \"and\": [\n            {\n                \"cond\": {\n                    \"property\": \"locationType\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"storeCluster\"\n                }\n            },\n            {\n                \"cond\": {\n                    \"property\": \"dynamicProperties.stores.brandId\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"DMC\"\n                }\n            }\n        ]\n    }\n}"},"url":"{{api_host}}/v1/location/info/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the get location by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/info/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Postal Code location info result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","info","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2512e436-978f-4936-a203-c8fa6c0930d9"},{"name":"Search locations by postal code","id":"9afef0d5-b284-4a8e-9646-30bd19b0586b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"filter\": {\n    \"country\":\"US\",\n    \"postalCode\": \"26416\",\n    \"distance\": {\n      \"value\": 200,\n      \"unit\": \"mi\"\n    }\n  },\n  \"page\": 0,\n  \"pageSize\": 10,\n  \"orders\": [\n  ]\n}"},"url":"{{api_host}}/v1/location/search/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>PostalCodeFilter</td>\n<td>true</td>\n<td>postal code filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"postalcodefilter\">PostalCodeFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search by address result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9afef0d5-b284-4a8e-9646-30bd19b0586b"},{"name":"Search locations by coordinates","id":"1c1b9553-ada8-4d0a-a7b5-c543dbe2c744","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"filter\": {\n        \"coordinates\": {\n            \"latitude\": 39.975484,\n            \"longitude\": -76.767875\n        },\n        \"distance\": {\n            \"value\": 200,\n            \"unit\": \"mi\"\n        },\n        \"term\": {\n            \"and\": [\n                {\n                    \"cond\": {\n                        \"property\": \"locationType\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"storeCluster\"\n                    }\n                },\n                {\n                    \"cond\": {\n                        \"property\": \"dynamicProperties.stores.brandId\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"DMC\"\n                    }\n                }\n            ]\n        }\n    },\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"orders\": []\n}"},"url":"{{api_host}}/v1/location/search/coordinates","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by coordinates API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/coordinates</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>CoordinatesFilter</td>\n<td>true</td>\n<td>coordinates filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinatesfilter\">CoordinatesFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>coordinates</td>\n<td>Coordinates</td>\n<td>true</td>\n<td>coordinates query</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinates\">Coordinates</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>latitude</td>\n<td>Double</td>\n<td>true</td>\n<td>latitude</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Double</td>\n<td>true</td>\n<td>longitude</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","coordinates"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c1b9553-ada8-4d0a-a7b5-c543dbe2c744"},{"name":"Get location by postal code","id":"0e512e41-7f4f-4286-a848-e800342a9be7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"country\": \"US\",\n    \"postalCode\": \"00501\",\n    \"distance\": {\n        \"value\": 2000,\n        \"unit\": \"mi\"\n    },\n    \"term\": {\n        \"and\": [\n            {\n                \"cond\": {\n                    \"property\": \"locationType\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"storeCluster\"\n                }\n            },\n            {\n                \"cond\": {\n                    \"property\": \"dynamicProperties.stores.brandId\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"DMC\"\n                }\n            }\n        ]\n    }\n}"},"url":"{{api_host}}/v1/location/info/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the get location by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/info/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Postal Code location info result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","info","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e512e41-7f4f-4286-a848-e800342a9be7"},{"name":"Search locations by postal code","id":"0b01cfc5-d687-44f0-85d3-876f9d13f973","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"filter\": {\n    \"country\":\"US\",\n    \"postalCode\": \"26416\",\n    \"distance\": {\n      \"value\": 200,\n      \"unit\": \"mi\"\n    }\n  },\n  \"page\": 0,\n  \"pageSize\": 10,\n  \"orders\": [\n  ]\n}"},"url":"{{api_host}}/v1/location/search/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>PostalCodeFilter</td>\n<td>true</td>\n<td>postal code filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"postalcodefilter\">PostalCodeFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search by address result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b01cfc5-d687-44f0-85d3-876f9d13f973"},{"name":"Search locations by coordinates","id":"ac5166dd-199f-4783-88de-1f5af88b1cb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"filter\": {\n        \"coordinates\": {\n            \"latitude\": 39.975484,\n            \"longitude\": -76.767875\n        },\n        \"distance\": {\n            \"value\": 200,\n            \"unit\": \"mi\"\n        },\n        \"term\": {\n            \"and\": [\n                {\n                    \"cond\": {\n                        \"property\": \"locationType\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"storeCluster\"\n                    }\n                },\n                {\n                    \"cond\": {\n                        \"property\": \"dynamicProperties.stores.brandId\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"DMC\"\n                    }\n                }\n            ]\n        }\n    },\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"orders\": []\n}"},"url":"{{api_host}}/v1/location/search/coordinates","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by coordinates API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/coordinates</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>CoordinatesFilter</td>\n<td>true</td>\n<td>coordinates filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinatesfilter\">CoordinatesFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>coordinates</td>\n<td>Coordinates</td>\n<td>true</td>\n<td>coordinates query</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinates\">Coordinates</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>latitude</td>\n<td>Double</td>\n<td>true</td>\n<td>latitude</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Double</td>\n<td>true</td>\n<td>longitude</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","coordinates"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac5166dd-199f-4783-88de-1f5af88b1cb5"},{"name":"Get location by postal code","id":"30a1a715-2b4d-4f95-aa7e-b7d7b345eb1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"country\": \"US\",\n    \"postalCode\": \"00501\",\n    \"distance\": {\n        \"value\": 2000,\n        \"unit\": \"mi\"\n    },\n    \"term\": {\n        \"and\": [\n            {\n                \"cond\": {\n                    \"property\": \"locationType\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"storeCluster\"\n                }\n            },\n            {\n                \"cond\": {\n                    \"property\": \"dynamicProperties.stores.brandId\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"DMC\"\n                }\n            }\n        ]\n    }\n}"},"url":"{{api_host}}/v1/location/info/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the get location by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/info/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Postal Code location info result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","info","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"30a1a715-2b4d-4f95-aa7e-b7d7b345eb1c"},{"name":"Search locations by postal code","id":"c310e464-b6bd-4324-b1c3-e3d71d885b22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"filter\": {\n    \"country\":\"US\",\n    \"postalCode\": \"26416\",\n    \"distance\": {\n      \"value\": 200,\n      \"unit\": \"mi\"\n    }\n  },\n  \"page\": 0,\n  \"pageSize\": 10,\n  \"orders\": [\n  ]\n}"},"url":"{{api_host}}/v1/location/search/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>PostalCodeFilter</td>\n<td>true</td>\n<td>postal code filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"postalcodefilter\">PostalCodeFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search by address result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c310e464-b6bd-4324-b1c3-e3d71d885b22"},{"name":"Search locations by coordinates","id":"501054d8-d40b-42fa-856e-b03c94736c54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"filter\": {\n        \"coordinates\": {\n            \"latitude\": 39.975484,\n            \"longitude\": -76.767875\n        },\n        \"distance\": {\n            \"value\": 200,\n            \"unit\": \"mi\"\n        },\n        \"term\": {\n            \"and\": [\n                {\n                    \"cond\": {\n                        \"property\": \"locationType\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"storeCluster\"\n                    }\n                },\n                {\n                    \"cond\": {\n                        \"property\": \"dynamicProperties.stores.brandId\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"DMC\"\n                    }\n                }\n            ]\n        }\n    },\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"orders\": []\n}"},"url":"{{api_host}}/v1/location/search/coordinates","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by coordinates API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/coordinates</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>CoordinatesFilter</td>\n<td>true</td>\n<td>coordinates filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinatesfilter\">CoordinatesFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>coordinates</td>\n<td>Coordinates</td>\n<td>true</td>\n<td>coordinates query</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinates\">Coordinates</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>latitude</td>\n<td>Double</td>\n<td>true</td>\n<td>latitude</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Double</td>\n<td>true</td>\n<td>longitude</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","coordinates"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"501054d8-d40b-42fa-856e-b03c94736c54"},{"name":"Get location by postal code","id":"b6bfce95-ae33-4d53-b289-4fb6fad84c1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"country\": \"US\",\n    \"postalCode\": \"00501\",\n    \"distance\": {\n        \"value\": 2000,\n        \"unit\": \"mi\"\n    },\n    \"term\": {\n        \"and\": [\n            {\n                \"cond\": {\n                    \"property\": \"locationType\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"storeCluster\"\n                }\n            },\n            {\n                \"cond\": {\n                    \"property\": \"dynamicProperties.stores.brandId\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"DMC\"\n                }\n            }\n        ]\n    }\n}"},"url":"{{api_host}}/v1/location/info/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the get location by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/info/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Postal Code location info result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","info","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6bfce95-ae33-4d53-b289-4fb6fad84c1e"},{"name":"Search locations by postal code","id":"5df4f852-2245-42c4-9b09-1b7d7e03de59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"filter\": {\n    \"country\":\"US\",\n    \"postalCode\": \"26416\",\n    \"distance\": {\n      \"value\": 200,\n      \"unit\": \"mi\"\n    }\n  },\n  \"page\": 0,\n  \"pageSize\": 10,\n  \"orders\": [\n  ]\n}"},"url":"{{api_host}}/v1/location/search/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>PostalCodeFilter</td>\n<td>true</td>\n<td>postal code filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"postalcodefilter\">PostalCodeFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search by address result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5df4f852-2245-42c4-9b09-1b7d7e03de59"},{"name":"Search locations by coordinates","id":"72f98398-0b39-497b-a093-b7952393d4c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"filter\": {\n        \"coordinates\": {\n            \"latitude\": 39.975484,\n            \"longitude\": -76.767875\n        },\n        \"distance\": {\n            \"value\": 200,\n            \"unit\": \"mi\"\n        },\n        \"term\": {\n            \"and\": [\n                {\n                    \"cond\": {\n                        \"property\": \"locationType\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"storeCluster\"\n                    }\n                },\n                {\n                    \"cond\": {\n                        \"property\": \"dynamicProperties.stores.brandId\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"DMC\"\n                    }\n                }\n            ]\n        }\n    },\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"orders\": []\n}"},"url":"{{api_host}}/v1/location/search/coordinates","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by coordinates API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/coordinates</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>CoordinatesFilter</td>\n<td>true</td>\n<td>coordinates filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinatesfilter\">CoordinatesFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>coordinates</td>\n<td>Coordinates</td>\n<td>true</td>\n<td>coordinates query</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinates\">Coordinates</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>latitude</td>\n<td>Double</td>\n<td>true</td>\n<td>latitude</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Double</td>\n<td>true</td>\n<td>longitude</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","coordinates"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"72f98398-0b39-497b-a093-b7952393d4c6"},{"name":"Get location by postal code","id":"250f5e0f-beb0-49ac-b390-b869ce2abb7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"country\": \"US\",\n    \"postalCode\": \"00501\",\n    \"distance\": {\n        \"value\": 2000,\n        \"unit\": \"mi\"\n    },\n    \"term\": {\n        \"and\": [\n            {\n                \"cond\": {\n                    \"property\": \"locationType\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"storeCluster\"\n                }\n            },\n            {\n                \"cond\": {\n                    \"property\": \"dynamicProperties.stores.brandId\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"DMC\"\n                }\n            }\n        ]\n    }\n}"},"url":"{{api_host}}/v1/location/info/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the get location by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/info/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Postal Code location info result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","info","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"250f5e0f-beb0-49ac-b390-b869ce2abb7d"},{"name":"Search locations by postal code","id":"f40531be-6b55-45ff-8382-24c757d87644","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"filter\": {\n    \"country\":\"US\",\n    \"postalCode\": \"26416\",\n    \"distance\": {\n      \"value\": 200,\n      \"unit\": \"mi\"\n    }\n  },\n  \"page\": 0,\n  \"pageSize\": 10,\n  \"orders\": [\n  ]\n}"},"url":"{{api_host}}/v1/location/search/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>PostalCodeFilter</td>\n<td>true</td>\n<td>postal code filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"postalcodefilter\">PostalCodeFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search by address result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f40531be-6b55-45ff-8382-24c757d87644"},{"name":"Search locations by coordinates","id":"453ea0a3-a837-4e29-bf5e-a52e79d2514a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"filter\": {\n        \"coordinates\": {\n            \"latitude\": 39.975484,\n            \"longitude\": -76.767875\n        },\n        \"distance\": {\n            \"value\": 200,\n            \"unit\": \"mi\"\n        },\n        \"term\": {\n            \"and\": [\n                {\n                    \"cond\": {\n                        \"property\": \"locationType\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"storeCluster\"\n                    }\n                },\n                {\n                    \"cond\": {\n                        \"property\": \"dynamicProperties.stores.brandId\",\n                        \"comparator\": \"eq\",\n                        \"value\": \"DMC\"\n                    }\n                }\n            ]\n        }\n    },\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"orders\": []\n}"},"url":"{{api_host}}/v1/location/search/coordinates","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by coordinates API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/coordinates</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>CoordinatesFilter</td>\n<td>true</td>\n<td>coordinates filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinatesfilter\">CoordinatesFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>coordinates</td>\n<td>Coordinates</td>\n<td>true</td>\n<td>coordinates query</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"coordinates\">Coordinates</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>latitude</td>\n<td>Double</td>\n<td>true</td>\n<td>latitude</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Double</td>\n<td>true</td>\n<td>longitude</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","coordinates"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"453ea0a3-a837-4e29-bf5e-a52e79d2514a"},{"name":"Get location by postal code","id":"58ca6069-e312-4944-883c-408d2b26990e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"country\": \"US\",\n    \"postalCode\": \"00501\",\n    \"distance\": {\n        \"value\": 2000,\n        \"unit\": \"mi\"\n    },\n    \"term\": {\n        \"and\": [\n            {\n                \"cond\": {\n                    \"property\": \"locationType\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"storeCluster\"\n                }\n            },\n            {\n                \"cond\": {\n                    \"property\": \"dynamicProperties.stores.brandId\",\n                    \"comparator\": \"eq\",\n                    \"value\": \"DMC\"\n                }\n            }\n        ]\n    }\n}"},"url":"{{api_host}}/v1/location/info/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the get location by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/info/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Postal Code location info result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","info","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"58ca6069-e312-4944-883c-408d2b26990e"},{"name":"Search locations by postal code","id":"c3285e62-69e0-4746-95f9-510b1b699083","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"filter\": {\n    \"country\":\"US\",\n    \"postalCode\": \"26416\",\n    \"distance\": {\n      \"value\": 200,\n      \"unit\": \"mi\"\n    }\n  },\n  \"page\": 0,\n  \"pageSize\": 10,\n  \"orders\": [\n  ]\n}"},"url":"{{api_host}}/v1/location/search/postalcode","description":"<h1 id=\"post\">POST</h1>\n<ol>\n<li>API calls the search locations by postal code API endpoint</li>\n<li>System validates the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>System returns search result</li>\n</ol>\n</li>\n<li>Request is incorrect:<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>POST: {{api_host}}/v1/location/search/postalcode</code></p>\n<p><strong>required roles</strong> : customer.default,customer.anonymous,service.operator,operator.default</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>filter</td>\n<td>PostalCodeFilter</td>\n<td>true</td>\n<td>postal code filter</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of order definitions - default order by geodist</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"postalcodefilter\">PostalCodeFilter</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>term</td>\n<td>Term</td>\n<td>false</td>\n<td>additional filtering</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>true</td>\n<td>country</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>true</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>distance</td>\n<td>Distance</td>\n<td>false</td>\n<td>distance</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"distance\">Distance</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>distance</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>Enum</td>\n<td>false</td>\n<td>unit value (mi, km), default - mi</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Locations search by address result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","location","search","postalcode"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3285e62-69e0-4746-95f9-510b1b699083"}],"id":"48ca1bac-70f7-406d-97c6-9c5394cb9d80","event":[{"listen":"prerequest","script":{"id":"930e6b50-ded6-48e6-8e2b-ce9cbbf30668","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4013b911-9de9-42cc-bdaf-4d0515153ff5","type":"text/javascript","exec":[""]}}],"_postman_id":"48ca1bac-70f7-406d-97c6-9c5394cb9d80","description":""},{"name":"pricing","item":[{"name":"Get pricing by assetids/sku id's","id":"d9d00a68-9bf0-4b19-8620-f343914ce55e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"[\"FO-DMUN2F\",\"FS-DMUN2CK\",\"FO-DMUN2FX\",\"FO-DMUN2TX\",\"FO-DMUN2T\",\"FO-DMUN2Q\",\"FS-DMUN2TX\"]"},"url":"{{api_host}}/v1/pricing/list","description":"<p>Fetches a list of prices.</p>\n<p><strong>required roles</strong> : pricing.manage</p>\n<h6 id=\"request-body\">Request Body</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>N/A</td>\n<td>array[string]</td>\n<td>true</td>\n<td>comma seperated skuid/assetId</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>DenverMattress</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","pricing","list"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"17c3a38b-5b1c-4efd-921c-eef7d5b68d00","name":"Get pricing by assetids/sku id's","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"[\"gc1\"]"},"url":"{{api_host}}/v1/pricing/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 12:26:06 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"608"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"assetId\": \"gc1\",\n        \"msrpPrices\": [\n            {\n                \"zone\": \"global\",\n                \"price\": 899.99,\n                \"currency\": \"EUR\"\n            },\n            {\n                \"zone\": \"global\",\n                \"price\": 999.99,\n                \"currency\": \"USD\"\n            }\n        ],\n        \"listPrices\": [\n            {\n                \"zone\": \"arizona\",\n                \"price\": 999.89,\n                \"currency\": \"EUR\"\n            },\n            {\n                \"zone\": \"texas\",\n                \"price\": 999.99,\n                \"currency\": \"USD\"\n            }\n        ],\n        \"salePrices\": [\n            {\n                \"zone\": \"arizona\",\n                \"activationDate\": \"2019-02-01\",\n                \"deactivationDate\": \"2019-04-01\",\n                \"price\": 333,\n                \"currency\": \"USD\"\n            },\n            {\n                \"zone\": \"arizona\",\n                \"activationDate\": \"2019-06-01\",\n                \"deactivationDate\": \"2019-07-01\",\n                \"price\": 333,\n                \"currency\": \"USD\"\n            },\n            {\n                \"zone\": \"texas\",\n                \"activationDate\": \"2019-01-01\",\n                \"deactivationDate\": \"2019-02-01\",\n                \"price\": 999,\n                \"currency\": \"USD\",\n                \"tag\": \"4thJuly\"\n            }\n        ]\n    }\n]"}],"_postman_id":"d9d00a68-9bf0-4b19-8620-f343914ce55e"},{"name":"Get pricing  for an asset/sku","event":[{"listen":"prerequest","script":{"id":"536a3f99-daab-4fc6-913e-963927673f88","exec":["pm.variables.set(\"assetId\", \"MP-CAPHDT\")"],"type":"text/javascript"}}],"id":"bc0a1607-7d0b-4382-acfa-6ae8b16025d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}","type":"text"}],"url":"{{api_host}}/v1/pricing/:assetId","description":"<p>Allows you to get pricing for an asset/sku by asset id</p>\n<p><strong>required roles</strong> : pricing.view</p>\n<h6 id=\"path-variables\">Path Variables</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>assetId</td>\n<td>string</td>\n<td>true</td>\n<td>the skuid or id of the asset that this inventory reporesents</td>\n</tr>\n</tbody>\n</table>\n</div><p>Note : order of path varibles should be the same as documented above</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>DenverMattress</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger/ Reason</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-003</td>\n<td>Provided item not found [Check Path variables]</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","pricing",":assetId"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"2f50c58c-56a6-4429-8769-212b52fc4d08","description":{"content":"<p>the id of the asset that this inventory item is assciated with (typically a product_id or sku_id)</p>\n","type":"text/plain"},"type":"string","value":"{{assetId}}","key":"assetId"}]}},"response":[{"id":"56a53d16-7703-415f-8023-605cf55c6bee","name":"Get pricing  for an asset/sku","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}","type":"text"}],"url":"{{api_host}}/v1/pricing/gc1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 12:29:12 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"782"}],"cookie":[],"responseTime":null,"body":"{\n    \"assetId\": \"gc1\",\n    \"msrpPrices\": [\n        {\n            \"zone\": \"arizona\",\n            \"price\": 999.99,\n            \"currency\": \"USD\"\n        },\n        {\n            \"zone\": \"global\",\n            \"price\": 899.99,\n            \"currency\": \"EUR\"\n        },\n        {\n            \"zone\": \"global\",\n            \"price\": 999.99,\n            \"currency\": \"USD\"\n        }\n    ],\n    \"listPrices\": [\n        {\n            \"zone\": \"arizona\",\n            \"price\": 999.89,\n            \"currency\": \"EUR\"\n        },\n        {\n            \"zone\": \"texas\",\n            \"price\": 999.99,\n            \"currency\": \"USD\"\n        }\n    ],\n    \"salePrices\": [\n        {\n            \"zone\": \"arizona\",\n            \"activationDate\": \"2019-02-01\",\n            \"deactivationDate\": \"2019-04-01\",\n            \"price\": 333,\n            \"currency\": \"USD\"\n        },\n        {\n            \"zone\": \"arizona\",\n            \"activationDate\": \"2019-06-01\",\n            \"deactivationDate\": \"2019-07-01\",\n            \"price\": 333,\n            \"currency\": \"USD\"\n        },\n        {\n            \"zone\": \"global\",\n            \"activationDate\": \"2019-01-01\",\n            \"deactivationDate\": \"2019-02-01\",\n            \"price\": 999,\n            \"currency\": \"USD\",\n            \"tag\": \"4thJuly\"\n        },\n        {\n            \"zone\": \"texas\",\n            \"activationDate\": \"2019-01-01\",\n            \"deactivationDate\": \"2019-02-01\",\n            \"price\": 999,\n            \"currency\": \"USD\",\n            \"tag\": \"4thJuly\"\n        }\n    ]\n}"}],"_postman_id":"bc0a1607-7d0b-4382-acfa-6ae8b16025d7"},{"name":"Get pricing items by assetId and date","id":"c7d3e6b2-7728-431a-b67b-bbe73edbd053","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"}],"url":"{{api_host}}/v1/pricing/:assetId/date/:date","description":"<p>Allows you to get pricing for an asset/sku by asseid and Tag</p>\n<p><strong>required roles</strong> : pricing.view</p>\n<h6 id=\"path-variables\">Path Variables</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>assetId</td>\n<td>string</td>\n<td>true</td>\n<td>the skuid or id of the asset</td>\n</tr>\n<tr>\n<td>date</td>\n<td>date</td>\n<td>true</td>\n<td>fetch pricing for a particular date</td>\n</tr>\n</tbody>\n</table>\n</div><p>Note : order of path varibles should be the same as documented above</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>DenverMattress</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger/ Reason</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-003</td>\n<td>Provided item not found [Check Path variables]</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","pricing",":assetId","date",":date"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"acbfa84a-7ebd-4fe9-b4a2-578542af0a3a","description":{"content":"<p>the skuid or id of the asset </p>\n","type":"text/plain"},"type":"string","value":"{{assetId}}","key":"assetId"},{"id":"80fe1a7f-15d7-4621-81db-72680ef095ff","description":{"content":"<p>fetch pricing for a particular date</p>\n","type":"text/plain"},"type":"string","value":"{{date}}","key":"date"}]}},"response":[{"id":"9e52da6e-39c9-4141-ad62-0aa89af94796","name":"Get pricing items by assetId and date","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"}],"url":"{{api_host}}/v1/pricing/gc1/date/2019-01-01"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 12:34:57 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"313"}],"cookie":[],"responseTime":null,"body":"{\n    \"assetId\": \"gc1\",\n    \"msrpPrices\": [],\n    \"listPrices\": [],\n    \"salePrices\": [\n        {\n            \"zone\": \"global\",\n            \"activationDate\": \"2019-01-01\",\n            \"deactivationDate\": \"2019-02-01\",\n            \"price\": 999,\n            \"currency\": \"USD\",\n            \"tag\": \"4thJuly\"\n        },\n        {\n            \"zone\": \"texas\",\n            \"activationDate\": \"2019-01-01\",\n            \"deactivationDate\": \"2019-02-01\",\n            \"price\": 999,\n            \"currency\": \"USD\",\n            \"tag\": \"4thJuly\"\n        }\n    ]\n}"}],"_postman_id":"c7d3e6b2-7728-431a-b67b-bbe73edbd053"},{"name":"Get pricing items by assetId and zone","id":"21ac6420-efd0-402a-8861-5a2f541d0864","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"}],"url":"{{api_host}}/v1/pricing/:assetId/zone/:zone","description":"<p>Allows you to get pricing for an asset/sku by assetid and tag</p>\n<p><strong>required roles</strong> : pricing.view</p>\n<h6 id=\"path-variables\">Path Variables</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>assetId</td>\n<td>string</td>\n<td>true</td>\n<td>the skuid or id of the asset</td>\n</tr>\n<tr>\n<td>zone</td>\n<td>string</td>\n<td>true</td>\n<td>fetch pricing for a particular zone ex global , national , arizona</td>\n</tr>\n</tbody>\n</table>\n</div><p>Note : order of path varibles should be the same as documented above</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>DenverMattress</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger/ Reason</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-003</td>\n<td>Provided item not found [Check Path variables]</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","pricing",":assetId","zone",":zone"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"d5b72da4-fa7d-4549-8acb-de9be73e7974","description":{"content":"<p>the skuid or id of the asset </p>\n","type":"text/plain"},"type":"string","value":"{{assetId}}","key":"assetId"},{"id":"c1254452-9cc5-47f9-b35d-139d5c611c05","description":{"content":"<p>fetch pricing for a particular zone ex global , national , arizona</p>\n","type":"text/plain"},"type":"string","value":"{{zone}}","key":"zone"}]}},"response":[{"id":"5cf8a755-56bb-428c-85e2-fece6642421b","name":"Get pricing items by assetId and zone","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"}],"url":"{{api_host}}/v1/pricing/gc1/zone/global"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Nov 2018 12:36:28 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"288"}],"cookie":[],"responseTime":null,"body":"{\n    \"assetId\": \"gc1\",\n    \"msrpPrices\": [\n        {\n            \"zone\": \"global\",\n            \"price\": 899.99,\n            \"currency\": \"EUR\"\n        },\n        {\n            \"zone\": \"global\",\n            \"price\": 999.99,\n            \"currency\": \"USD\"\n        }\n    ],\n    \"listPrices\": [],\n    \"salePrices\": [\n        {\n            \"zone\": \"global\",\n            \"activationDate\": \"2019-01-01\",\n            \"deactivationDate\": \"2019-02-01\",\n            \"price\": 999,\n            \"currency\": \"USD\",\n            \"tag\": \"4thJuly\"\n        }\n    ]\n}"}],"_postman_id":"21ac6420-efd0-402a-8861-5a2f541d0864"},{"name":"update price by asset id","id":"892001de-3712-4e30-988c-fb3b6500b06a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-upstart-api-key"},{"key":"value","value":"{{admin_api_key}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"listPrices\": [\r\n    {\r\n      \"zone\": \"arizona\",\r\n      \"price\": 599.99,\r\n      \"currency\": \"EUR\"\r\n    },\r\n    {\r\n      \"zone\": \"arizona\",\r\n      \"price\": 699.99,\r\n      \"currency\": \"USD\"\r\n    },\r\n    {\r\n      \"zone\": \"global\",\r\n      \"price\": 599.99,\r\n      \"currency\": \"EUR\"\r\n    },\r\n    {\r\n      \"zone\": \"global\",\r\n      \"price\": 699.99,\r\n      \"currency\": \"USD\"\r\n    }\r\n  ],\r\n  \"msrpPrices\": [\r\n    {\r\n      \"zone\": \"global\",\r\n      \"price\": 599.99,\r\n      \"currency\": \"EUR\"\r\n    },\r\n    {\r\n      \"zone\": \"global\",\r\n      \"price\": 699.99,\r\n      \"currency\": \"USD\"\r\n    }\r\n  ],\r\n  \"salePrices\": [\r\n    {\r\n      \"zone\": \"arizona\",\r\n      \"price\": 699.99,\r\n      \"currency\": \"USD\",\r\n      \"activationDate\": \"2019-02-01\",\r\n      \"deactivationDate\": \"2019-04-01\"\r\n    },\r\n    {\r\n      \"zone\": \"global\",\r\n      \"price\": 699.99,\r\n      \"currency\": \"USD\",\r\n      \"activationDate\": \"2019-01-01\",\r\n      \"deactivationDate\": \"2019-02-01\",\r\n      \"tag\": \"4thJuly\"\r\n    },\r\n    {\r\n      \"zone\": \"arizona\",\r\n      \"price\": 599.99,\r\n      \"currency\": \"EUR\",\r\n      \"activationDate\": \"2019-02-01\",\r\n      \"deactivationDate\": \"2019-04-01\",\r\n      \"tag\": \"11thNov\"\r\n    },\r\n    {\r\n      \"zone\": \"global\",\r\n      \"price\": 599.99,\r\n      \"currency\": \"EUR\",\r\n      \"activationDate\": \"2019-01-01\",\r\n      \"deactivationDate\": \"2019-02-01\",\r\n      \"tag\": \"4thJuly\"\r\n    }\r\n  ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{api_host}}/v1/pricing/TEST-SKU-14","urlObject":{"path":["v1","pricing","TEST-SKU-14"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"892001de-3712-4e30-988c-fb3b6500b06a"}],"id":"0bca1fa2-4bc9-4195-ac06-3fd8d45cef77","event":[{"listen":"prerequest","script":{"id":"7c77f3bd-59f2-42b1-a6ba-7c10f9291490","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d30f6d1-f164-4647-b34d-58a71c69f172","type":"text/javascript","exec":[""]}}],"_postman_id":"0bca1fa2-4bc9-4195-ac06-3fd8d45cef77","description":""},{"name":"site activity","item":[{"name":"Get own viewed catalog items","id":"a32a1910-80cb-4a0f-988f-639cce569de2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"}],"url":"{{api_host}}/v1/siteactivity/customer/profile/catalog","description":"<p>This call returns viewed catalog items for the given customer</p>\n<p><strong>required roles</strong> : \n<code>customer.default/customer.anonymous</code></p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger/ Reason</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","siteactivity","customer","profile","catalog"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"5aced47f-d80e-4b36-918e-6b2ae7ebf219","name":"Unauthorized","originalRequest":{"method":"GET","header":[],"url":"{{api_host}}/v1/siteactivity/customer/profile/catalog"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 29 Nov 2018 13:56:58 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"9b5f3d8e-9502-42db-b008-a9e5f0287bdb","name":"Success","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"}],"url":"{{api_host}}/v1/siteactivity/customer/profile/catalog"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 29 Nov 2018 14:14:48 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"customerId\": \"1472137b-b85f-4d09-861b-bd4b6665b675\",\n        \"catalogItemId\": \"gc1\",\n        \"viewedCount\": 2,\n        \"lastViewedAt\": \"2018-11-16T09:23:45.879Z\"\n    },\n    {\n        \"customerId\": \"1472137b-b85f-4d09-861b-bd4b6665b675\",\n        \"catalogItemId\": \"p1\",\n        \"viewedCount\": 1,\n        \"lastViewedAt\": \"2018-11-16T09:21:40.927Z\"\n    }\n]"}],"_postman_id":"a32a1910-80cb-4a0f-988f-639cce569de2"},{"name":"get event session","event":[{"listen":"prerequest","script":{"id":"68b6c58a-b970-4b76-b54a-23bbf52c0530","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"40334ed7-25d4-4e72-a939-8cf78fade0f1","exec":["//parse the response","var jsonData = pm.response.json();","","//define the schema for the expected response object","var schema = {","  \"type\": \"object\",","  \"properties\": {","    \"events\": {","      \"type\": \"array\",","      \"items\": {","        \"type\": \"object\",","        \"properties\": {","          \"traceId\": {","            \"type\": \"string\"","          },","          \"service\": {","            \"type\": \"string\"","          },","          \"name\": {","            \"type\": \"string\"","          },","          \"payload\": {","            \"type\": \"string\"","          },","          \"created\": {","            \"type\": \"string\"","          },","          \"id\": {","            \"type\": \"string\"","          }","        }","      }","    },","    \"sessionId\": {","      \"type\": \"string\"","    }","  },","  \"required\": [","    \"events\",","    \"sessionId\"","  ]","}","//import the schema validation framework","var Ajv = require('ajv');","//setup the logging frameworking ","var ajv = new Ajv({logger: console});","//compile the above schema","var schemaValidator = ajv.compile(schema);","pm.test(\"Response Schema is valid\", function() {","    pm.expect(schemaValidator(pm.response.json())).to.be.true","})","","pm.environment.set(\"customer_event_session_id\", jsonData.sessionId)"],"type":"text/javascript"}}],"id":"6c6bcefb-e94f-4812-be5b-ef5a25862c6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{api_host}}/v1/siteactivity/events","description":"<h1 id=\"get-events\">Get events</h1>\n<ol>\n<li>Create session <ol>\n<li>API user calls the pool events API endpoint without sessionId filled</li>\n<li>System validate the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>return empty array of events and filled <code>sessionId</code></li>\n</ol>\n</li>\n<li>Request is incorrect;<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n</li>\n<li>Continue with existing  session            <ol>\n<li>API user calls the pool events API endpoint with sessionId filled from the previous call</li>\n<li>System validate the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>return array of events (if not empty) and filled <code>sessionId</code></li>\n</ol>\n</li>\n<li>Request is incorrect<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>GET:/v1/siteactivity/events?sessionId</code></p>\n<p>Function:\n<code>getEvents</code></p>\n<p>Required roles:\nuser/customer token should be valid, only authentication is required</p>\n<p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: sessionId\nbody: empty\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - ClientEvents\nFailure:\n    Authorization failed: 401 UNAUTHORIZED - COR-006\n    session:3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d not found - COR-001\n    \n</code></pre><h5 id=\"response\">Response:</h5>\n<ul>\n<li>Success:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"events\": [\n        {\n            \"traceId\": \"12234\",\n            \"service\": \"xxx\",\n            \"name\": \"yyy\",\n            \"payloadType\": \"String\",\n            \"created\": \"2019-01-15T10:14:58.337Z\",\n            \"id\": \"bd6e3a35-d999-40f1-a142-d13720460ec9\"\n        }\n    ],\n    \"sessionId\": \"3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d\"\n}\n</code></pre>\n<ul>\n<li>Unauthorized:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Authorization token is expired\"\n}\n</code></pre>\n<ul>\n<li>session not found</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"session:3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d not found\",\n    \"code\": \"COR-001\"\n}\n</code></pre>\n","urlObject":{"path":["v1","siteactivity","events"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"c846138a-1e3d-48bd-ac65-05774ece002a","name":"get events - ok","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{api_host}}/v1/siteactivity/events?sessionId=3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d","host":["{{api_host}}"],"path":["v1","siteactivity","events"],"query":[{"key":"sessionId","value":"3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 21 Jan 2019 10:02:15 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"413"}],"cookie":[],"responseTime":null,"body":"{\n    \"events\": [\n        {\n            \"traceId\": \"12234\",\n            \"service\": \"xxx\",\n            \"name\": \"yyy\",\n            \"payloadType\": \"String\",\n            \"created\": \"2019-01-15T10:14:58.337Z\",\n            \"id\": \"bd6e3a35-d999-40f1-a142-d13720460ec9\"\n        }\n    ],\n    \"sessionId\": \"3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d\"\n}"}],"_postman_id":"6c6bcefb-e94f-4812-be5b-ef5a25862c6a"},{"name":"get events","event":[{"listen":"test","script":{"id":"0d7c3205-7096-48a1-b23a-a60579dd5fa4","exec":["//parse the response","var jsonData = pm.response.json();","","//define the schema for the expected response object","var schema = {","  \"type\": \"object\",","  \"properties\": {","    \"events\": {","      \"type\": \"array\",","      \"items\": {","        \"type\": \"object\",","        \"properties\": {","          \"traceId\": {","            \"type\": \"string\"","          },","          \"service\": {","            \"type\": \"string\"","          },","          \"name\": {","            \"type\": \"string\"","          },","          \"payload\": {","            \"type\": \"string\"","          },","          \"created\": {","            \"type\": \"string\"","          },","          \"id\": {","            \"type\": \"string\"","          }","        }","      }","    },","    \"sessionId\": {","      \"type\": \"string\"","    }","  },","  \"required\": [","    \"events\",","    \"sessionId\"","  ]","}","//import the schema validation framework","var Ajv = require('ajv');","//setup the logging frameworking ","var ajv = new Ajv({logger: console});","//compile the above schema","var schemaValidator = ajv.compile(schema);","pm.test(\"Response Schema is valid\", function() {","    pm.expect(schemaValidator(pm.response.json())).to.be.true","})",""],"type":"text/javascript"}}],"id":"ad9045d8-c4dd-46c9-8223-92a0ef287ab8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{api_host}}/v1/siteactivity/events?sessionId={{customer_event_session_id}}","description":"<h1 id=\"get-events\">Get events</h1>\n<ol>\n<li>Create session <ol>\n<li>API user calls the pool events API endpoint without sessionId filled</li>\n<li>System validate the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>return empty array of events and filled <code>sessionId</code></li>\n</ol>\n</li>\n<li>Request is incorrect;<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n</li>\n<li>Continue with existing  session            <ol>\n<li>API user calls the pool events API endpoint with sessionId filled from the previous call</li>\n<li>System validate the request</li>\n<li><ol>\n<li>Request is correct:<ol>\n<li>return array of events (if not empty) and filled <code>sessionId</code></li>\n</ol>\n</li>\n<li>Request is incorrect<ol>\n<li>System returns BAD REQUEST</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n</li>\n</ol>\n<p>Endpoint: \n<code>GET:/v1/siteactivity/events?sessionId</code></p>\n<p>Function:\n<code>getEvents</code></p>\n<p>Required roles:\nuser/customer token should be valid, only authentication is required  </p>\n<p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: sessionId\nbody: empty\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - ClientEvents\nFailure:\n    Authorization failed: 401 UNAUTHORIZED - COR-006\n    session:3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d not found - COR-001\n    \n</code></pre><h5 id=\"response\">Response:</h5>\n<ul>\n<li>Success:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"events\": [\n        {\n            \"traceId\": \"12234\",\n            \"service\": \"xxx\",\n            \"name\": \"yyy\",\n            \"payloadType\": \"String\",\n            \"created\": \"2019-01-15T10:14:58.337Z\",\n            \"id\": \"bd6e3a35-d999-40f1-a142-d13720460ec9\"\n        }\n    ],\n    \"sessionId\": \"3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d\"\n}\n</code></pre>\n<ul>\n<li>Unauthorized:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Authorization token is expired\"\n}\n</code></pre>\n<ul>\n<li>session not found</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"session:3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d not found\",\n    \"code\": \"COR-001\"\n}\n</code></pre>\n","urlObject":{"path":["v1","siteactivity","events"],"host":["{{api_host}}"],"query":[{"key":"sessionId","value":"{{customer_event_session_id}}"}],"variable":[]}},"response":[{"id":"532d2173-473f-450a-a234-96765ecb6d22","name":"get events - ok","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{api_host}}/v1/siteactivity/events?sessionId=3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d","host":["{{api_host}}"],"path":["v1","siteactivity","events"],"query":[{"key":"sessionId","value":"3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 21 Jan 2019 10:02:15 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"413"}],"cookie":[],"responseTime":null,"body":"{\n    \"events\": [\n        {\n            \"traceId\": \"12234\",\n            \"service\": \"xxx\",\n            \"name\": \"yyy\",\n            \"payloadType\": \"String\",\n            \"created\": \"2019-01-15T10:14:58.337Z\",\n            \"id\": \"bd6e3a35-d999-40f1-a142-d13720460ec9\"\n        }\n    ],\n    \"sessionId\": \"3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d\"\n}"}],"_postman_id":"ad9045d8-c4dd-46c9-8223-92a0ef287ab8"},{"name":"add events","event":[{"listen":"test","script":{"id":"0d7c3205-7096-48a1-b23a-a60579dd5fa4","exec":["//parse the response","/*","var jsonData = pm.response.json();","","//define the schema for the expected response object","var schema = {","  \"type\": \"object\",","  \"properties\": {","    \"events\": {","      \"type\": \"array\",","      \"items\": {","        \"type\": \"object\",","        \"properties\": {","          \"traceId\": {","            \"type\": \"string\"","          },","          \"service\": {","            \"type\": \"string\"","          },","          \"name\": {","            \"type\": \"string\"","          },","          \"payload\": {","            \"type\": \"string\"","          },","          \"created\": {","            \"type\": \"string\"","          },","          \"id\": {","            \"type\": \"string\"","          }","        }","      }","    },","    \"sessionId\": {","      \"type\": \"string\"","    }","  },","  \"required\": [","    \"events\",","    \"sessionId\"","  ]","}","//import the schema validation framework","var Ajv = require('ajv');","//setup the logging frameworking ","var ajv = new Ajv({logger: console});","//compile the above schema","var schemaValidator = ajv.compile(schema);","pm.test(\"Response Schema is valid\", function() {","    pm.expect(schemaValidator(pm.response.json())).to.be.true","})","*/"],"type":"text/javascript"}}],"id":"fb03f2e8-07b6-43c1-ab9a-c2861b0c3568","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{anonymous_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"[\n   {\n       \"service\": \"catalog\",\n       \"name\": \"CatalogItemGetLive\",\n       \"payload\": {\n           \"id\": \"prod1410051\"\n       },\n       \"metadata\" : {\n\n       }\n   }\n]"},"url":"{{api_host}}/v1/siteactivity/events","description":"<p>Required roles:\nuser/customer token should be valid, only authentication is required</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>tenant identifier</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<p>array of <code>ClientEvent</code>-s</p>\n<h5 id=\"clientevent\">ClientEvent</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>service</td>\n<td>String</td>\n<td>true</td>\n<td>service/domain name</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>event name</td>\n</tr>\n<tr>\n<td>payload</td>\n<td>Json Object</td>\n<td>true</td>\n<td>event payload</td>\n</tr>\n<tr>\n<td>traceId</td>\n<td>String</td>\n<td>false</td>\n<td>trace id</td>\n</tr>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>false</td>\n<td>event id</td>\n</tr>\n<tr>\n<td>created</td>\n<td>String</td>\n<td>false</td>\n<td>timestamp, example: '2019-01-15T10:14:58.337Z'</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK\nFailure:\n    Authorization failed: 401 UNAUTHORIZED - COR-006\n    session:3f8f456c-1c40-46a3-a4c7-618fa6cf8d7d not found - COR-001\n    \n</code></pre>","urlObject":{"path":["v1","siteactivity","events"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"16cc8e54-57c3-4f9b-834e-2876f3beaf53","name":"add events","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"[\n    {\n        \"service\": \"catalog\",\n        \"name\": \"CatalogItemGetLive\",\n        \"payload\": {\n            \"id\": \"gc1\"\n        }\n    }\n]"},"url":"{{api_host}}/v1/siteactivity/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 21 Jan 2019 10:02:15 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"413"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"fb03f2e8-07b6-43c1-ab9a-c2861b0c3568"}],"id":"7ef2bf85-3996-4380-9da0-ae4269316d69","_postman_id":"7ef2bf85-3996-4380-9da0-ae4269316d69","description":""},{"name":"promotion","item":[{"name":"Search promotions","event":[{"listen":"test","script":{"id":"6d6f399d-7d15-46b8-a25d-09933b4032f3","exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"a7f4e6aa-e3ac-404c-9dc3-e6411cf9abec","exec":[""],"type":"text/javascript"}}],"id":"b2514d97-bb80-426c-8e67-507c5ffda350","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"query\":\"*\",\n\t\"filter\": {\n\t\t\"and\": [ \n\t\t\t{\n\t\t\t  \"cond\": {\n\t\t\t\t\"property\": \"isActive\",\n\t\t\t\t\"comparator\": \"eq\",\n\t\t\t\t\"value\": \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\t\n\t\"page\": 0,\n\t\"pageSize\": 10,\n\t\"orders\": [\n\t\t{\n\t\t\t\"property\":\"name\",\n\t\t    \"asc\": false\n\t\t\t\n\t\t}\n\t]\n}"},"url":"{{api_host}}/v1/promotion/search","urlObject":{"path":["v1","promotion","search"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2514d97-bb80-426c-8e67-507c5ffda350"}],"id":"0a9efc2a-3666-4305-933c-ebfe6fd59e08","_postman_id":"0a9efc2a-3666-4305-933c-ebfe6fd59e08","description":""},{"name":"customer-subscription","item":[{"name":"Update subscription","id":"71d8274a-a1d9-4fc7-b99e-21228ce696cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-UpStart-Tenant","value":"denvermattress","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"somewrong2@email.com\",\n    \"subscriptionType\": \"RewardsWelcome\",\n    \"subscribed\": true,\n    \"firstName\": \"Grzegorz\",\n    \"lastName\": \"Brzęczyszczykiewicz\",\n    \"businessName\": \"Upstart\",\n    \"phone\": \"5555544455\",\n    \"address\": \"139 Merchant Place\",\n    \"address2\": \"\",\n    \"city\": \"Coblesdkill\",\n    \"state\": \"NY\",\n    \"zip\": \"11111\",\n    \"country\": \"US\"\n}"},"url":"{{api_host}}/v1/customer-subscription","description":"<p>Update or create customer subscription.</p>\n","urlObject":{"path":["v1","customer-subscription"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"6fe5fafd-2c03-4c34-ae4c-0f544286cebf","name":"Update subscription - success","originalRequest":{"method":"POST","header":[{"key":"X-UpStart-Tenant","value":"denvermattress","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"some@email.com\",\n    \"subscriptionType\": \"RewardsWelcome\",\n    \"subscribed\": false,\n    \"firstName\": \"Grzegorz\",\n    \"lastName\": \"Brzęczyszczykiewicz\",\n    \"businessName\": \"Upstart\",\n    \"phone\": 5555555,\n    \"address\": \"139 Merchant Place\",\n    \"address2\": \"\",\n    \"city\": \"Cobleskill\",\n    \"state\": \"NY\",\n    \"zip\": \"12043\",\n    \"country\": \"US\"\n}"},"url":"{{api_host}}/v1/customer-subscription"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 17 Mar 2019 10:26:01 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"213"}],"cookie":[],"responseTime":null,"body":"{\n\t\"email\": \"some@email.com\",\n    \"subscriptionType\": \"RewardsWelcome\",\n    \"subscribed\": false,\n    \"firstName\": \"Grzegorz\",\n    \"lastName\": \"Brzęczyszczykiewicz\",\n    \"businessName\": \"Upstart\",\n    \"phone\": 5555555,\n    \"address\": \"139 Merchant Place\",\n    \"address2\": \"\",\n    \"city\": \"Cobleskill\",\n    \"state\": \"NY\",\n    \"zip\": \"12043\",\n    \"country\": \"US\"\n}"},{"id":"ff5e22bc-2541-4222-b059-c5ee6edba40a","name":"Update subscription - address validation failed","originalRequest":{"method":"POST","header":[{"key":"X-UpStart-Tenant","value":"denvermattress","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"somewrong2@email.com\",\n    \"subscriptionType\": \"RewardsWelcome\",\n    \"subscribed\": false,\n    \"firstName\": \"Grzegorz\",\n    \"lastName\": \"Brzęczyszczykiewicz\",\n    \"businessName\": \"Upstart\",\n    \"phone\": 5555555,\n    \"address\": \"139 Merchant Place\",\n    \"address2\": \"\",\n    \"city\": \"Coblesdkill\",\n    \"state\": \"NdY\",\n    \"zip\": \"11111\",\n    \"country\": \"US\"\n}"},"url":"{{api_host}}/v1/customer-subscription"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 17 Mar 2019 11:05:21 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"156"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"validation\",\n            \"errors\": [\n                {\n                    \"id\": \"VerificationFailed\",\n                    \"message\": \"Invalid City, State, or Zip\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"71d8274a-a1d9-4fc7-b99e-21228ce696cf"},{"name":"Get subscription","id":"4758eb1a-6cd6-4785-8c36-cd6d5b8dba5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","description":"<p>Get subscription from Cordial</p>\n","urlObject":{"query":[],"variable":[]}},"response":[{"id":"90a2d25a-d559-41d7-9db7-2f5be0034a78","name":"Get existing subscription","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"}],"url":{"raw":"{{api_host}}/v1/customer-subscription?email=timur@jacum.com","host":["{{api_host}}"],"path":["v1","customer-subscription"],"query":[{"key":"email","value":"timur@jacum.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 17 Mar 2019 10:20:50 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2"}],"cookie":[],"responseTime":null,"body":"[]"},{"id":"a4f0abd2-3756-42ef-bb10-86bad31549bc","name":"Subscription not found","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"}],"url":{"raw":"{{api_host}}/v1/customer-subscription?email=timur222@jacum.com","host":["{{api_host}}"],"path":["v1","customer-subscription"],"query":[{"key":"email","value":"timur222@jacum.com","description":"Email of the customer"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 17 Mar 2019 11:05:54 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"108"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"IllegalArgumentException\",\n    \"code\": \"COR-999\",\n    \"detail\": \"No subscription found for timur222@jacum.com\"\n}"}],"_postman_id":"4758eb1a-6cd6-4785-8c36-cd6d5b8dba5e"}],"id":"1d47e1df-716d-432f-8abc-cf57107ff326","_postman_id":"1d47e1df-716d-432f-8abc-cf57107ff326","description":""},{"name":"shipping","item":[{"name":"Get shipping method by id","id":"355e2419-0294-4fb3-b7b6-82d076440227","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"{{X-Upstart-Api-key}}"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"},{"key":"{{X-Upstart-Api-key}}","value":"{{apiKey}}","type":"text"}],"url":"{{api_host}}/v1/shipping-method/3956b34b-bdef-4ceb-a994-96012e9c9553","description":"<p>Returns a shipping method by Id</p>\n<p><strong>required roles</strong> : none</p>\n<h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<p>empty</p>\n<h1 id=\"response\">Response</h1>\n<h6 id=\"shippingmethod\">shippingMethod</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>shipping method id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>name of the shipping method e.g. \"FedEx\"</td>\n</tr>\n<tr>\n<td>taxCode</td>\n<td>string</td>\n<td>Tax code, optional</td>\n</tr>\n<tr>\n<td>calculator</td>\n<td>string</td>\n<td>Engine used for shipping calculations, can be 'ShipEngine' or 'DMC'</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-001</td>\n<td>Shipping method not found</td>\n</tr>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","shipping-method","3956b34b-bdef-4ceb-a994-96012e9c9553"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"9bd0f3d5-f86e-453f-82c7-c8360f027a9e","name":"Not found","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\"1d1f895c-a50f-499e-8a05-32d9ab39682c\", \"cbc3f5c0-6690-466b-813c-52d79711724b\"]"},"url":{"raw":"{{api_host}}/v1/shipping-method/:id","host":["{{api_host}}"],"path":["v1","shipping-method",":id"],"variable":[{"key":"id","value":"bc445e1d-b92d-4cfe-8493-680018aa050c","description":"Shipping method ID"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2019 08:24:59 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"52"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"ShippingMethod not found\",\n    \"code\": \"COR-001\"\n}"},{"id":"e6001ed7-e894-4832-8c5a-49256613c599","name":"Unauthorized","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\"1d1f895c-a50f-499e-8a05-32d9ab39682c\", \"cbc3f5c0-6690-466b-813c-52d79711724b\"]"},"url":{"raw":"{{api_host}}/v1/shipping-method/:id","host":["{{api_host}}"],"path":["v1","shipping-method",":id"],"variable":[{"key":"id","value":"bc445e1d-b92d-4cfe-8493-680018aa050c","description":"Shipping method ID"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2019 08:24:35 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"55"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"COR-006\",\n    \"name\": \"Unauthorized\",\n    \"detail\": \"003\"\n}"},{"id":"eca26d94-eb7f-4b44-8940-4fa33bdf5646","name":"Success","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\"1d1f895c-a50f-499e-8a05-32d9ab39682c\", \"cbc3f5c0-6690-466b-813c-52d79711724b\"]"},"url":{"raw":"{{api_host}}/v1/shipping-method/:id","host":["{{api_host}}"],"path":["v1","shipping-method",":id"],"variable":[{"key":"id","value":"1472137b-b85f-4d09-861b-bd4b6665b675","description":"Shipping method ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2019 08:25:25 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"116"}],"cookie":[],"responseTime":null,"body":"{\n        \"id\": \"3956b34b-bdef-4ceb-a994-96012e9c9556\",\n        \"name\": \"FedEx Ground Only\",    \n        \"taxCode\": \"FR010100\",\n        \n        \"calculator\": {\n            \"Shipengine\": {\n                \"carriers\": {\n                    \"se-95909\": {\n                        \"rateDefaultServiceCode\": \"fedex_express_saver\",\n                        \"rateVariantsServiceCodes\": [\n                            \"fedex_express_saver\"\n                        ]\n                    }\n                }\n            }\n        }\n    }"}],"_postman_id":"355e2419-0294-4fb3-b7b6-82d076440227"},{"name":"list shipping methods","id":"9b83fb51-3563-4b9d-9f4f-0fe87e6ef997","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"{{X-Upstart-Session-Id}}"},{"key":"value","value":"{{admin_api_key}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\"1d1f895c-a50f-499e-8a05-32d9ab39682c\", \"cbc3f5c0-6690-466b-813c-52d79711724b\"]"},"url":"{{api_host}}/v1/shipping-method/list","description":"<p>Returns a set of shipping methods given a set of shipping method ids</p>\n<p><strong>required roles</strong> : none</p>\n<h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td></td>\n<td>UUID[]</td>\n<td>true</td>\n<td>array of shipping method ids</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<h3 id=\"post-body-1\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td></td>\n<td>shippingMethod[]</td>\n<td>array of shipping method objects</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"shippingmethod\">shippingMethod</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>shipping method id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>name of the shipping method e.g. \"FedEx\"</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","shipping-method","list"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"c5e510de-976a-4a97-9fb9-806ad72961d8","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\"1d1f895c-a50f-499e-8a05-32d9ab39682c\", \"cbc3f5c0-6690-466b-813c-52d79711724b\"]"},"url":"{{api_host}}/v1/shipping-method/list"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Nov 2018 16:02:18 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"ead6fcfe-1789-4d1b-8c44-218c2d162766","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{auth_token}}","disabled":true},{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\"1d1f895c-a50f-499e-8a05-32d9ab39682c\", \"cbc3f5c0-6690-466b-813c-52d79711724b\"]"},"url":"{{api_host}}/v1/shipping-method/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Nov 2018 16:00:43 GMT"},{"key":"Server","value":"akka-http/10.0.13"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"84"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"cbc3f5c0-6690-466b-813c-52d79711724b\",\n        \"name\": \"Drone delivery TURBO!!!!111\"\n    }\n]"}],"_postman_id":"9b83fb51-3563-4b9d-9f4f-0fe87e6ef997"},{"name":"Get catalog item shipping rates","id":"ab6adbc7-63b6-4928-8800-0aa07dd41e23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"usd\",\n    \"locationToId\": \"1400004\",\n    \"country\": \"US\",\n    \"stateOrRegion\":\"CA\",\n    \"postalCode\": \"17404\",\n    \"quantity\": 2,\n    \"catalogItemId\": \"prod350002\",\n    \"productItemSkuId\": \"FR-BOBMBF\",\n    \"shippingMethodIds\": [\n        \"3956b34b-bdef-4ceb-a994-96012e9c9551\",\n        \"3956b34b-bdef-4ceb-a994-96012e9c9553\",\n        \"3956b34b-bdef-4ceb-a994-96012e9c9555\",\n        \"3956b34b-bdef-4ceb-a994-96012e9c9556\",\n        \"3956b34b-bdef-4ceb-a994-96012e9c9557\",\n        \"3956b34b-bdef-4ceb-a994-96012e9c9558\",\n        \"3956b34b-bdef-4ceb-a994-96012e9c9559\"\n    ]\n}"},"url":"{{api_host}}/v1/shipping-method/rate/catalog-item","description":"<p>Returns a shipping method by Id</p>\n<p><strong>required roles</strong> : customer.default/customer.anonymous</p>\n<h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<h4 id=\"catalog-item-rates-request\">Catalog-item rates request</h4>\n<p>Catalog-item rates request represents data for single item rate calculation.  </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>catalogItemId</td>\n<td>CatalogItemId</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>productItemSkuId</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>bundleItems</td>\n<td>Array of BundleItem</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>Array of ShippingMethodID</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>locationToId</td>\n<td>LocationId</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>currency</td>\n<td>Currency</td>\n<td>N</td>\n<td>Default \"usd\"</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Int</td>\n<td>N</td>\n<td>Default 1</td>\n</tr>\n<tr>\n<td>stateOrRegion</td>\n<td>String</td>\n<td>N</td>\n<td>Should be filled for all calculations to work properly - it covers some \"edge cases\"</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"bundleitem\">BundleItem</h4>\n<p>BundleItem just id and skuId to match exact item</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>catalogItemId</td>\n<td>CatalogItemId</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>productItemSkuId</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<h4 id=\"catalog-item-rates-response\">Catalog-item rates response</h4>\n<p>Catalog-item rates request represents data from single item rate calculation.  </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>currency</td>\n<td>Currency</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>catalogItemId</td>\n<td>CatalogItemId</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>productItemSkuId</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>bundleItems</td>\n<td>Array of BundleItem</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>items</td>\n<td>Array of CatalogItemShippingItem</td>\n<td>Y</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"catalogitemshippingitem\">CatalogItemShippingItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>rate</td>\n<td>ShippingRate</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>rateVariants</td>\n<td>Array of ShippingRate</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>packages</td>\n<td>Array of ShippingPackage</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>shippingMethodId</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>shippingMethodName</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>locationFromId</td>\n<td>LocationId</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>locationToId</td>\n<td>LocationId</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>)</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"shippingrate\">ShippingRate</h4>\n<p>Shipping rate for item</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>rateId</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>carrierId</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>pricing</td>\n<td>ShippingRatePricing</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>deliveryDays</td>\n<td>Int</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>estimatedDeliveryDate</td>\n<td>Instant</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>packageType</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>carrierDeliveryDates</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>shipDate</td>\n<td>Instant</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>serviceType</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>serviceCode</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>carrierCode</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"shippingpackage\">ShippingPackage</h4>\n<p>Shipping package, one assext/item can have more pieces therefore more packages.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>packageCode</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>weight</td>\n<td>Weight</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>dimensions</td>\n<td>Dimensions</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>insuredValue</td>\n<td>Int</td>\n<td>N</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"shippingratepricing\">ShippingRatePricing</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>shipping</td>\n<td>Int</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>insurance</td>\n<td>Int</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>confirmation</td>\n<td>Int</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>other</td>\n<td>Int</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>)</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"weight\">Weight</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Int</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>unit</td>\n<td>WeightUnits</td>\n<td>Y</td>\n<td>g, kg, lb</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dimensions\">Dimensions</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>width</td>\n<td>Int</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>length</td>\n<td>Int</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>height</td>\n<td>Int</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>unit</td>\n<td>DimensionUnit</td>\n<td>Y</td>\n<td>m, cm, mm, in</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>COR-006</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","shipping-method","rate","catalog-item"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"02701c11-4ae5-479a-8431-49efdbca718b","name":"Unauthorized","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\"1d1f895c-a50f-499e-8a05-32d9ab39682c\", \"cbc3f5c0-6690-466b-813c-52d79711724b\"]"},"url":"{{api_host}}/v1/shipping-method/rate/catalog-item"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2019 08:24:35 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"55"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"COR-006\",\n    \"name\": \"Unauthorized\",\n    \"detail\": \"003\"\n}"},{"id":"e6397a88-becb-4d3b-b413-0eded37af4cb","name":"Success","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"usd\",\n    \"postalCode\": \"50621\",\n    \"country\": \"USA\",\n    \"quantity\": 2,\n    \"catalogItemId\": \"prod1040097\",\n    \"productItemSkuId\": \"MS-DMTEPLTX\",\n    \"locationToId\": \"1f72f3d6-65a8-4281-9bf1-f55dbaaa4678\",\n    \"shippingMethodIds\": [\n        \"3956b34b-bdef-4ceb-a994-96012e9c9560\"\n    ]\n}"},"url":"{{api_host}}/v1/shipping-method/rate/catalog-item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2019 08:25:25 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"116"}],"cookie":[],"responseTime":null,"body":"{\n    \"currency\": \"usd\",\n    \"catalogItemId\": \"prod1040097\",\n    \"productItemSkuId\": \"MS-DMTEPLTX\",\n    \"items\": [\n        {\n            \"rate\": {\n                \"rateId\": \"free_rate_id\",\n                \"carrierId\": \"free_carrier_id\",\n                \"pricing\": {\n                    \"shipping\": 0\n                },\n                \"carrierDeliveryDates\": \"Estimated delivery days 5-7 days\",\n                \"serviceType\": \"FedEx Free\",\n                \"serviceCode\": \"fedex_free\",\n                \"carrierCode\": \"fedex\"\n            },\n            \"rateVariants\": [\n                {\n                    \"rateId\": \"free_rate_id\",\n                    \"carrierId\": \"free_carrier_id\",\n                    \"pricing\": {\n                        \"shipping\": 0\n                    },\n                    \"carrierDeliveryDates\": \"Estimated delivery days 5-7 days\",\n                    \"serviceType\": \"FedEx Free\",\n                    \"serviceCode\": \"fedex_free\",\n                    \"carrierCode\": \"fedex\"\n                }\n            ],\n            \"packages\": [],\n            \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9560\",\n            \"shippingMethodName\": \"FREE\",\n            \"locationFromId\": \"w30001\",\n            \"locationToId\": \"1f72f3d6-65a8-4281-9bf1-f55dbaaa4678\",\n            \"postalCode\": \"50621\",\n            \"country\": \"USA\"\n        }\n    ]\n}"}],"_postman_id":"ab6adbc7-63b6-4928-8800-0aa07dd41e23"}],"id":"665fbc09-bf51-432f-b263-ccdca1a3b697","_postman_id":"665fbc09-bf51-432f-b263-ccdca1a3b697","description":""},{"name":"order","item":[{"name":"search orders","id":"cdf3c975-6185-48f3-bc36-bfaead6c22af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"query\":\"*\",\n\t\"page\": 0,\n\t\"pageSize\": 10\n\n}"},"url":"{{api_host}}/v1/order/profile/search","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>query</td>\n<td>String</td>\n<td>false</td>\n<td>search query</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>Term</td>\n<td>false</td>\n<td>term structure described later</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of role definitions</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)</li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having\n    * property - name of property\n    * asc - boolean represents direction of order</p>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Order search result\nFailure\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","order","profile","search"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"d98b26df-93fb-4e99-9d79-408c263c1bac","name":"search orders","originalRequest":{"method":"POST","header":[{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"query\":\"*\",\n\t\"page\": 0,\n\t\"pageSize\": 10\n\n}"},"url":"{{api_host}}/v1/order/profile/search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.9"},{"key":"Date","value":"Wed, 29 May 2019 17:41:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Methods","value":"GET, PUT, POST, DELETE, PATCH, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Upstart-Tenant"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"id\": \"0513e03a-0be9-4ed6-8a9b-b4558a345ace\",\n            \"customerId\": \"87619672-6736-400f-858b-22428b9dfe43\",\n            \"anonymous\": true,\n            \"state\": \"Processing\",\n            \"currency\": \"USD\",\n            \"distanceUnit\": \"mi\",\n            \"items\": [\n                {\n                    \"id\": \"bd25a9d0-f325-4bdf-823b-dacd78af3b65\",\n                    \"catalogItemId\": \"prod2490716\",\n                    \"productItemSkuId\": \"SH-MA6ASCK\",\n                    \"quantity\": 1,\n                    \"pricing\": {\n                        \"basePrice\": {\n                            \"type\": \"list\",\n                            \"zone\": \"NTL\",\n                            \"price\": 109.99,\n                            \"listPrice\": 109.99\n                        },\n                        \"promotionPriceAdjustments\": [],\n                        \"feePriceAdjustments\": [],\n                        \"taxPriceAdjustment\": {\n                            \"taxCode\": \"P0000000\",\n                            \"value\": 6.6\n                        }\n                    },\n                    \"catalogItem\": {\n                        \"id\": \"prod2490716\",\n                        \"typeId\": \"3956b34b-bdef-4ceb-a994-96012e9c9508\",\n                        \"type\": \"product\",\n                        \"typeName\": \"Sheets\",\n                        \"name\": \"Malouf 600 TC Cotton Blend Sheets\",\n                        \"brandName\": \"Denver Mattress\",\n                        \"tags\": [\n                            \"Sheets & Pillowcases\"\n                        ],\n                        \"dynamicProperties\": {\n                            \"sites\": [\n                                \"site_dmc_001\"\n                            ],\n                            \"shopByBrands\": [],\n                            \"shopByCategories\": [\n                                \"sheets\"\n                            ],\n                            \"mattressTypes\": [],\n                            \"categoryBreadcrumbs\": [\n                                \"DMC > Accessories >   Sheets & Pillowcases\"\n                            ],\n                            \"keywords\": [\n                                \"Deep Pocket Sheets\",\n                                \"Sheets\",\n                                \"600\",\n                                \"Thread Count\"\n                            ],\n                            \"featured\": false,\n                            \"clearance\": false,\n                            \"isFreeDelivery\": true,\n                            \"closeOut\": false,\n                            \"isNew\": false,\n                            \"storeOnly\": false,\n                            \"template\": \"sizecolor\",\n                            \"description\": \"<p>Pick a side. The Malouf 600 thread count cotton blend sheets give you the best of both worlds in a cotton sheet set. Two-sided weave design gives you a soft, cotton side for natural softness and breathability; turn the sheets over to the polyester side for wrinkle-resistant bed sheets. Rest assured that these deep pocket sheets fit mattresses ranging from 6&quot; - 18&quot;  deep. Universal Fit&reg; design incorporates thick elastic for a smooth and secure fit night after night.</p><p>Choose the style that fits you best. Malouf 600 thread count sheets sets are available in twin xl, twin, full, queen, king, and cal. king sizes. Fill your linen closet with all four colors to match your luxury bedding: white, ivory, driftwood, and ash.</p>\",\n                            \"constructionInfo\": \"<ul>\\r<li>600 Thread Count Cotton Blend</li>\\r<li>Two-sided weave design creates a soft cotton side and a wrinkle-resistant polyester side</li>\\r<li>Deep pockets for mattress depths 6 - 18\\\"</li>\\r<li>Universal Fit<sup>&reg;</sup> design with thick elastic for a smooth and secure fit</li>\\r</ul>\",\n                            \"tagline\": \"Dual-Purpose Cotton Blend Luxury Bedding\",\n                            \"dmcMaterial\": \"Polyester\",\n                            \"feature\": \"Wrinkle Resistant\",\n                            \"productGroup\": \"Malouf 600 Thread Count Cotton Blend Sheets Group\",\n                            \"benefits\": [\n                                \"Machine Washable\"\n                            ]\n                        },\n                        \"productItems\": [\n                            {\n                                \"skuId\": \"SH-MA6ASCK\",\n                                \"name\": \"Malouf 600 TC Ash Cal King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710893\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Cal King\",\n                                        \"name\": \"California King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ash\",\n                                        \"group\": \"Grey\",\n                                        \"swatch\": \"Grey Vero Beach\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [\n                                    {\n                                        \"dimensions\": {\n                                            \"width\": 12,\n                                            \"length\": 12,\n                                            \"height\": 10,\n                                            \"unit\": \"in\"\n                                        },\n                                        \"weight\": {\n                                            \"value\": 8,\n                                            \"unit\": \"lb\"\n                                        }\n                                    }\n                                ],\n                                \"purchasable\": true\n                            }\n                        ],\n                        \"relatedIds\": [],\n                        \"shippingMethodIds\": [\n                            \"3956b34b-bdef-4ceb-a994-96012e9c9558\",\n                            \"3956b34b-bdef-4ceb-a994-96012e9c9551\"\n                        ],\n                        \"activationDate\": \"2017-12-04T00:00:00Z\",\n                        \"taxCode\": \"P0000000\",\n                        \"ignoreInventory\": false,\n                        \"version\": 1,\n                        \"seo\": {\n                            \"pageTitle\": \"600 TC Deep Pocket Sheets - Malouf | Denver Mattress\",\n                            \"metaKeywords\": []\n                        }\n                    },\n                    \"shipmentId\": \"0b213160-5fa4-4461-93fb-f68ee0451118\"\n                }\n            ],\n            \"locationId\": \"1400004\",\n            \"timeZoneOffset\": -300,\n            \"coupons\": [],\n            \"shippingCoordinates\": {\n                \"latitude\": 41.3036074,\n                \"longitude\": -72.91732259999999\n            },\n            \"shippingAddress\": {\n                \"street1\": \"554 Chapel St\",\n                \"street2\": \"\",\n                \"city\": \"New Haven\",\n                \"stateOrRegion\": \"CT\",\n                \"country\": \"US\",\n                \"postalCode\": \"06511\",\n                \"poBox\": false,\n                \"name\": {\n                    \"first\": \"John\",\n                    \"last\": \"Doe\"\n                },\n                \"phoneNumber\": \"6038675309\"\n            },\n            \"billingAddress\": {\n                \"street1\": \"6037 Peach St\",\n                \"street2\": \"\",\n                \"city\": \"Erie\",\n                \"stateOrRegion\": \"PA\",\n                \"country\": \"US\",\n                \"postalCode\": \"16509\",\n                \"poBox\": false,\n                \"businessName\": \"MYCMP\"\n            },\n            \"shipments\": [\n                {\n                    \"id\": \"0b213160-5fa4-4461-93fb-f68ee0451118\",\n                    \"state\": \"New\",\n                    \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9551\",\n                    \"shippingMethodName\": \"In-Store Pick Up\",\n                    \"addressFrom\": {\n                        \"street1\": \"11000 East 40th Avenue\",\n                        \"street2\": \"\",\n                        \"city\": \"Denver\",\n                        \"stateOrRegion\": \"CO\",\n                        \"country\": \"US\",\n                        \"postalCode\": \"80216\",\n                        \"poBox\": false,\n                        \"businessName\": \"Denver Mattress Warehouse Accessories\",\n                        \"phoneNumber\": \"8663724642\"\n                    },\n                    \"locationFromId\": \"w910000\",\n                    \"addressTo\": {\n                        \"street1\": \"1785 Rodney Rd\",\n                        \"street2\": \"\",\n                        \"city\": \"York\",\n                        \"stateOrRegion\": \"PA\",\n                        \"country\": \"US\",\n                        \"postalCode\": \"17404\",\n                        \"poBox\": false,\n                        \"businessName\": \"522-DMC\",\n                        \"phoneNumber\": \"7178010614\"\n                    },\n                    \"locationToId\": \"1400004\",\n                    \"shippingToDistance\": {\n                        \"value\": 221.73165593524638,\n                        \"unit\": \"mi\"\n                    },\n                    \"rate\": {\n                        \"rateId\": \"ship_to_store_rate_id\",\n                        \"carrierId\": \"ship_to_store_carrier\",\n                        \"pricing\": {\n                            \"shipping\": 0\n                        },\n                        \"carrierDeliveryDates\": \"Availability may take up to 2-3 weeks. If you need these items sooner please contact to verify availability.\",\n                        \"serviceType\": \"Ship to store\",\n                        \"serviceCode\": \"ship_to_store\",\n                        \"carrierCode\": \"ship_to_store_carrier\"\n                    },\n                    \"packages\": [\n                        {\n                            \"weight\": {\n                                \"value\": 8,\n                                \"unit\": \"lb\"\n                            },\n                            \"dimensions\": {\n                                \"width\": 12,\n                                \"length\": 12,\n                                \"height\": 10,\n                                \"unit\": \"in\"\n                            }\n                        }\n                    ],\n                    \"pricing\": {\n                        \"basePrice\": 0,\n                        \"promotionPriceAdjustments\": [],\n                        \"taxPriceAdjustment\": {\n                            \"taxCode\": \"FR010100\",\n                            \"value\": 0\n                        }\n                    }\n                }\n            ],\n            \"pricing\": {\n                \"promotionPriceAdjustments\": [],\n                \"totalItemsPrice\": 109.99,\n                \"totalShippingPrice\": 0,\n                \"totalTax\": 6.6,\n                \"totalFee\": 0,\n                \"totalPromotion\": 0,\n                \"totalPrice\": 116.59\n            },\n            \"payments\": [\n                {\n                    \"CyberSourceOrderPayment\": {\n                        \"id\": \"c85b4f0b-a5b0-4003-af5d-38f9805b0f7e\",\n                        \"state\": \"Processed\",\n                        \"cardType\": \"001\",\n                        \"cardNumber\": \"1111\",\n                        \"expirationMonth\": \"05\",\n                        \"expirationYear\": \"2019\",\n                        \"requestId\": \"5585490935586637904004\",\n                        \"token\": \"897EFD1A2628C80EE05340588D0A4607\",\n                        \"transactionId\": \"5590675690066101304006\",\n                        \"date\": \"2019-05-28T18:19:30.216Z\",\n                        \"value\": 116.59\n                    }\n                }\n            ],\n            \"email\": \"example@email.com\"\n        },\n        {\n            \"id\": \"83b0eba9-3094-4886-8ce4-375f5ed486c1\",\n            \"customerId\": \"87619672-6736-400f-858b-22428b9dfe43\",\n            \"anonymous\": true,\n            \"state\": \"Processing\",\n            \"currency\": \"USD\",\n            \"distanceUnit\": \"mi\",\n            \"items\": [\n                {\n                    \"id\": \"01822b1e-0d98-4c8e-9cc3-f5a59df101b0\",\n                    \"catalogItemId\": \"prod2490716\",\n                    \"productItemSkuId\": \"SH-MA6ASCK\",\n                    \"quantity\": 4,\n                    \"pricing\": {\n                        \"basePrice\": {\n                            \"type\": \"list\",\n                            \"zone\": \"NTL\",\n                            \"price\": 109.99,\n                            \"listPrice\": 109.99\n                        },\n                        \"promotionPriceAdjustments\": [],\n                        \"feePriceAdjustments\": [],\n                        \"taxPriceAdjustment\": {\n                            \"taxCode\": \"P0000000\",\n                            \"value\": 26.4\n                        }\n                    },\n                    \"catalogItem\": {\n                        \"id\": \"prod2490716\",\n                        \"typeId\": \"3956b34b-bdef-4ceb-a994-96012e9c9508\",\n                        \"type\": \"product\",\n                        \"typeName\": \"Sheets\",\n                        \"name\": \"Malouf 600 TC Cotton Blend Sheets\",\n                        \"brandName\": \"Denver Mattress\",\n                        \"tags\": [\n                            \"Sheets & Pillowcases\"\n                        ],\n                        \"dynamicProperties\": {\n                            \"sites\": [\n                                \"site_dmc_001\"\n                            ],\n                            \"shopByBrands\": [],\n                            \"shopByCategories\": [\n                                \"sheets\"\n                            ],\n                            \"mattressTypes\": [],\n                            \"categoryBreadcrumbs\": [\n                                \"DMC > Accessories >   Sheets & Pillowcases\"\n                            ],\n                            \"keywords\": [\n                                \"Deep Pocket Sheets\",\n                                \"Sheets\",\n                                \"600\",\n                                \"Thread Count\"\n                            ],\n                            \"featured\": false,\n                            \"clearance\": false,\n                            \"isFreeDelivery\": true,\n                            \"closeOut\": false,\n                            \"isNew\": false,\n                            \"storeOnly\": false,\n                            \"template\": \"sizecolor\",\n                            \"description\": \"<p>Pick a side. The Malouf 600 thread count cotton blend sheets give you the best of both worlds in a cotton sheet set. Two-sided weave design gives you a soft, cotton side for natural softness and breathability; turn the sheets over to the polyester side for wrinkle-resistant bed sheets. Rest assured that these deep pocket sheets fit mattresses ranging from 6&quot; - 18&quot;  deep. Universal Fit&reg; design incorporates thick elastic for a smooth and secure fit night after night.</p><p>Choose the style that fits you best. Malouf 600 thread count sheets sets are available in twin xl, twin, full, queen, king, and cal. king sizes. Fill your linen closet with all four colors to match your luxury bedding: white, ivory, driftwood, and ash.</p>\",\n                            \"constructionInfo\": \"<ul>\\r<li>600 Thread Count Cotton Blend</li>\\r<li>Two-sided weave design creates a soft cotton side and a wrinkle-resistant polyester side</li>\\r<li>Deep pockets for mattress depths 6 - 18\\\"</li>\\r<li>Universal Fit<sup>&reg;</sup> design with thick elastic for a smooth and secure fit</li>\\r</ul>\",\n                            \"tagline\": \"Dual-Purpose Cotton Blend Luxury Bedding\",\n                            \"dmcMaterial\": \"Polyester\",\n                            \"feature\": \"Wrinkle Resistant\",\n                            \"productGroup\": \"Malouf 600 Thread Count Cotton Blend Sheets Group\",\n                            \"benefits\": [\n                                \"Machine Washable\"\n                            ]\n                        },\n                        \"productItems\": [\n                            {\n                                \"skuId\": \"SH-MA6ASCK\",\n                                \"name\": \"Malouf 600 TC Ash Cal King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710893\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Cal King\",\n                                        \"name\": \"California King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ash\",\n                                        \"group\": \"Grey\",\n                                        \"swatch\": \"Grey Vero Beach\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [\n                                    {\n                                        \"dimensions\": {\n                                            \"width\": 12,\n                                            \"length\": 12,\n                                            \"height\": 10,\n                                            \"unit\": \"in\"\n                                        },\n                                        \"weight\": {\n                                            \"value\": 8,\n                                            \"unit\": \"lb\"\n                                        }\n                                    }\n                                ],\n                                \"purchasable\": true\n                            }\n                        ],\n                        \"relatedIds\": [],\n                        \"shippingMethodIds\": [\n                            \"3956b34b-bdef-4ceb-a994-96012e9c9558\",\n                            \"3956b34b-bdef-4ceb-a994-96012e9c9551\"\n                        ],\n                        \"activationDate\": \"2017-12-04T00:00:00Z\",\n                        \"taxCode\": \"P0000000\",\n                        \"ignoreInventory\": false,\n                        \"version\": 1,\n                        \"seo\": {\n                            \"pageTitle\": \"600 TC Deep Pocket Sheets - Malouf | Denver Mattress\",\n                            \"metaKeywords\": []\n                        }\n                    },\n                    \"shipmentId\": \"9b90ae04-a622-436b-ae99-add592c58ec9\"\n                }\n            ],\n            \"locationId\": \"1400004\",\n            \"timeZoneOffset\": -300,\n            \"coupons\": [],\n            \"shippingCoordinates\": {\n                \"latitude\": 41.3036074,\n                \"longitude\": -72.91732259999999\n            },\n            \"shippingAddress\": {\n                \"street1\": \"554 Chapel St\",\n                \"street2\": \"\",\n                \"city\": \"New Haven\",\n                \"stateOrRegion\": \"CT\",\n                \"country\": \"US\",\n                \"postalCode\": \"06511\",\n                \"poBox\": false,\n                \"name\": {\n                    \"first\": \"John\",\n                    \"last\": \"Doe\"\n                },\n                \"phoneNumber\": \"6038675309\"\n            },\n            \"billingAddress\": {\n                \"street1\": \"6037 Peach St\",\n                \"street2\": \"\",\n                \"city\": \"Erie\",\n                \"stateOrRegion\": \"PA\",\n                \"country\": \"US\",\n                \"postalCode\": \"16509\",\n                \"poBox\": false,\n                \"businessName\": \"MYCMP\"\n            },\n            \"shipments\": [\n                {\n                    \"id\": \"9b90ae04-a622-436b-ae99-add592c58ec9\",\n                    \"state\": \"New\",\n                    \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9551\",\n                    \"shippingMethodName\": \"In-Store Pick Up\",\n                    \"addressFrom\": {\n                        \"street1\": \"11000 East 40th Avenue\",\n                        \"street2\": \"\",\n                        \"city\": \"Denver\",\n                        \"stateOrRegion\": \"CO\",\n                        \"country\": \"US\",\n                        \"postalCode\": \"80216\",\n                        \"poBox\": false,\n                        \"businessName\": \"Denver Mattress Warehouse Accessories\",\n                        \"phoneNumber\": \"8663724642\"\n                    },\n                    \"locationFromId\": \"w910000\",\n                    \"addressTo\": {\n                        \"street1\": \"1785 Rodney Rd\",\n                        \"street2\": \"\",\n                        \"city\": \"York\",\n                        \"stateOrRegion\": \"PA\",\n                        \"country\": \"US\",\n                        \"postalCode\": \"17404\",\n                        \"poBox\": false,\n                        \"businessName\": \"522-DMC\",\n                        \"phoneNumber\": \"7178010614\"\n                    },\n                    \"locationToId\": \"1400004\",\n                    \"shippingToDistance\": {\n                        \"value\": 221.73165593524638,\n                        \"unit\": \"mi\"\n                    },\n                    \"rate\": {\n                        \"rateId\": \"ship_to_store_rate_id\",\n                        \"carrierId\": \"ship_to_store_carrier\",\n                        \"pricing\": {\n                            \"shipping\": 0\n                        },\n                        \"carrierDeliveryDates\": \"Availability may take up to 2-3 weeks. If you need these items sooner please contact to verify availability.\",\n                        \"serviceType\": \"Ship to store\",\n                        \"serviceCode\": \"ship_to_store\",\n                        \"carrierCode\": \"ship_to_store_carrier\"\n                    },\n                    \"packages\": [\n                        {\n                            \"weight\": {\n                                \"value\": 8,\n                                \"unit\": \"lb\"\n                            },\n                            \"dimensions\": {\n                                \"width\": 12,\n                                \"length\": 12,\n                                \"height\": 10,\n                                \"unit\": \"in\"\n                            }\n                        },\n                        {\n                            \"weight\": {\n                                \"value\": 8,\n                                \"unit\": \"lb\"\n                            },\n                            \"dimensions\": {\n                                \"width\": 12,\n                                \"length\": 12,\n                                \"height\": 10,\n                                \"unit\": \"in\"\n                            }\n                        },\n                        {\n                            \"weight\": {\n                                \"value\": 8,\n                                \"unit\": \"lb\"\n                            },\n                            \"dimensions\": {\n                                \"width\": 12,\n                                \"length\": 12,\n                                \"height\": 10,\n                                \"unit\": \"in\"\n                            }\n                        },\n                        {\n                            \"weight\": {\n                                \"value\": 8,\n                                \"unit\": \"lb\"\n                            },\n                            \"dimensions\": {\n                                \"width\": 12,\n                                \"length\": 12,\n                                \"height\": 10,\n                                \"unit\": \"in\"\n                            }\n                        }\n                    ],\n                    \"pricing\": {\n                        \"basePrice\": 0,\n                        \"promotionPriceAdjustments\": [],\n                        \"taxPriceAdjustment\": {\n                            \"taxCode\": \"FR010100\",\n                            \"value\": 0\n                        }\n                    }\n                }\n            ],\n            \"pricing\": {\n                \"promotionPriceAdjustments\": [],\n                \"totalItemsPrice\": 439.96,\n                \"totalShippingPrice\": 0,\n                \"totalTax\": 26.4,\n                \"totalFee\": 0,\n                \"totalPromotion\": 0,\n                \"totalPrice\": 466.36\n            },\n            \"payments\": [\n                {\n                    \"CyberSourceOrderPayment\": {\n                        \"id\": \"2ea999b2-cfe1-463a-9035-6b2cf0448c67\",\n                        \"state\": \"Processed\",\n                        \"cardType\": \"001\",\n                        \"cardNumber\": \"1111\",\n                        \"expirationMonth\": \"05\",\n                        \"expirationYear\": \"2019\",\n                        \"requestId\": \"5585490935586637904004\",\n                        \"token\": \"897EFD1A2628C80EE05340588D0A4607\",\n                        \"transactionId\": \"5591508226186959204003\",\n                        \"date\": \"2019-05-29T17:27:03.773Z\",\n                        \"value\": 466.36\n                    }\n                }\n            ],\n            \"email\": \"example@email.com\"\n        },\n        {\n            \"id\": \"f5b52999-2a03-4201-9381-754fe0861b1c\",\n            \"customerId\": \"87619672-6736-400f-858b-22428b9dfe43\",\n            \"anonymous\": true,\n            \"state\": \"Processing\",\n            \"currency\": \"USD\",\n            \"distanceUnit\": \"mi\",\n            \"items\": [\n                {\n                    \"id\": \"b23c7f38-b6af-48f5-a359-9fd4ee7ec40a\",\n                    \"catalogItemId\": \"prod2490716\",\n                    \"productItemSkuId\": \"SH-MA6ASCK\",\n                    \"quantity\": 1,\n                    \"pricing\": {\n                        \"basePrice\": {\n                            \"type\": \"list\",\n                            \"zone\": \"NTL\",\n                            \"price\": 109.99,\n                            \"listPrice\": 109.99\n                        },\n                        \"promotionPriceAdjustments\": [],\n                        \"feePriceAdjustments\": [],\n                        \"taxPriceAdjustment\": {\n                            \"taxCode\": \"P0000000\",\n                            \"value\": 6.6\n                        }\n                    },\n                    \"catalogItem\": {\n                        \"id\": \"prod2490716\",\n                        \"typeId\": \"3956b34b-bdef-4ceb-a994-96012e9c9508\",\n                        \"type\": \"product\",\n                        \"typeName\": \"Sheets\",\n                        \"name\": \"Malouf 600 TC Cotton Blend Sheets\",\n                        \"brandName\": \"Denver Mattress\",\n                        \"tags\": [\n                            \"Sheets & Pillowcases\"\n                        ],\n                        \"dynamicProperties\": {\n                            \"sites\": [\n                                \"site_dmc_001\"\n                            ],\n                            \"shopByBrands\": [],\n                            \"shopByCategories\": [\n                                \"sheets\"\n                            ],\n                            \"mattressTypes\": [],\n                            \"categoryBreadcrumbs\": [\n                                \"DMC > Accessories >   Sheets & Pillowcases\"\n                            ],\n                            \"keywords\": [\n                                \"Deep Pocket Sheets\",\n                                \"Sheets\",\n                                \"600\",\n                                \"Thread Count\"\n                            ],\n                            \"featured\": false,\n                            \"clearance\": false,\n                            \"isFreeDelivery\": true,\n                            \"closeOut\": false,\n                            \"isNew\": false,\n                            \"storeOnly\": false,\n                            \"template\": \"sizecolor\",\n                            \"description\": \"<p>Pick a side. The Malouf 600 thread count cotton blend sheets give you the best of both worlds in a cotton sheet set. Two-sided weave design gives you a soft, cotton side for natural softness and breathability; turn the sheets over to the polyester side for wrinkle-resistant bed sheets. Rest assured that these deep pocket sheets fit mattresses ranging from 6&quot; - 18&quot;  deep. Universal Fit&reg; design incorporates thick elastic for a smooth and secure fit night after night.</p><p>Choose the style that fits you best. Malouf 600 thread count sheets sets are available in twin xl, twin, full, queen, king, and cal. king sizes. Fill your linen closet with all four colors to match your luxury bedding: white, ivory, driftwood, and ash.</p>\",\n                            \"constructionInfo\": \"<ul>\\r<li>600 Thread Count Cotton Blend</li>\\r<li>Two-sided weave design creates a soft cotton side and a wrinkle-resistant polyester side</li>\\r<li>Deep pockets for mattress depths 6 - 18\\\"</li>\\r<li>Universal Fit<sup>&reg;</sup> design with thick elastic for a smooth and secure fit</li>\\r</ul>\",\n                            \"tagline\": \"Dual-Purpose Cotton Blend Luxury Bedding\",\n                            \"dmcMaterial\": \"Polyester\",\n                            \"feature\": \"Wrinkle Resistant\",\n                            \"productGroup\": \"Malouf 600 Thread Count Cotton Blend Sheets Group\",\n                            \"benefits\": [\n                                \"Machine Washable\"\n                            ]\n                        },\n                        \"productItems\": [\n                            {\n                                \"skuId\": \"SH-MA6ASCK\",\n                                \"name\": \"Malouf 600 TC Ash Cal King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710893\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Cal King\",\n                                        \"name\": \"California King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ash\",\n                                        \"group\": \"Grey\",\n                                        \"swatch\": \"Grey Vero Beach\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [\n                                    {\n                                        \"dimensions\": {\n                                            \"width\": 12,\n                                            \"length\": 12,\n                                            \"height\": 10,\n                                            \"unit\": \"in\"\n                                        },\n                                        \"weight\": {\n                                            \"value\": 8,\n                                            \"unit\": \"lb\"\n                                        }\n                                    }\n                                ],\n                                \"purchasable\": true\n                            }\n                        ],\n                        \"relatedIds\": [],\n                        \"shippingMethodIds\": [\n                            \"3956b34b-bdef-4ceb-a994-96012e9c9558\",\n                            \"3956b34b-bdef-4ceb-a994-96012e9c9551\"\n                        ],\n                        \"activationDate\": \"2017-12-04T00:00:00Z\",\n                        \"taxCode\": \"P0000000\",\n                        \"ignoreInventory\": false,\n                        \"version\": 1,\n                        \"seo\": {\n                            \"pageTitle\": \"600 TC Deep Pocket Sheets - Malouf | Denver Mattress\",\n                            \"metaKeywords\": []\n                        }\n                    },\n                    \"shipmentId\": \"a3adb104-f9d7-44d6-99e1-13ad7bd03399\"\n                }\n            ],\n            \"locationId\": \"1400004\",\n            \"timeZoneOffset\": -300,\n            \"coupons\": [],\n            \"shippingCoordinates\": {\n                \"latitude\": 41.3036074,\n                \"longitude\": -72.91732259999999\n            },\n            \"shippingAddress\": {\n                \"street1\": \"554 Chapel St\",\n                \"street2\": \"\",\n                \"city\": \"New Haven\",\n                \"stateOrRegion\": \"CT\",\n                \"country\": \"US\",\n                \"postalCode\": \"06511\",\n                \"poBox\": false,\n                \"name\": {\n                    \"first\": \"John\",\n                    \"last\": \"Doe\"\n                },\n                \"phoneNumber\": \"6038675309\"\n            },\n            \"billingAddress\": {\n                \"street1\": \"6037 Peach St\",\n                \"street2\": \"\",\n                \"city\": \"Erie\",\n                \"stateOrRegion\": \"PA\",\n                \"country\": \"US\",\n                \"postalCode\": \"16509\",\n                \"poBox\": false,\n                \"businessName\": \"MYCMP\"\n            },\n            \"shipments\": [\n                {\n                    \"id\": \"a3adb104-f9d7-44d6-99e1-13ad7bd03399\",\n                    \"state\": \"New\",\n                    \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9551\",\n                    \"shippingMethodName\": \"In-Store Pick Up\",\n                    \"addressFrom\": {\n                        \"street1\": \"11000 East 40th Avenue\",\n                        \"street2\": \"\",\n                        \"city\": \"Denver\",\n                        \"stateOrRegion\": \"CO\",\n                        \"country\": \"US\",\n                        \"postalCode\": \"80216\",\n                        \"poBox\": false,\n                        \"businessName\": \"Denver Mattress Warehouse Accessories\",\n                        \"phoneNumber\": \"8663724642\"\n                    },\n                    \"locationFromId\": \"w910000\",\n                    \"addressTo\": {\n                        \"street1\": \"1785 Rodney Rd\",\n                        \"street2\": \"\",\n                        \"city\": \"York\",\n                        \"stateOrRegion\": \"PA\",\n                        \"country\": \"US\",\n                        \"postalCode\": \"17404\",\n                        \"poBox\": false,\n                        \"businessName\": \"522-DMC\",\n                        \"phoneNumber\": \"7178010614\"\n                    },\n                    \"locationToId\": \"1400004\",\n                    \"shippingToDistance\": {\n                        \"value\": 221.73165593524638,\n                        \"unit\": \"mi\"\n                    },\n                    \"rate\": {\n                        \"rateId\": \"ship_to_store_rate_id\",\n                        \"carrierId\": \"ship_to_store_carrier\",\n                        \"pricing\": {\n                            \"shipping\": 0\n                        },\n                        \"carrierDeliveryDates\": \"Availability may take up to 2-3 weeks. If you need these items sooner please contact to verify availability.\",\n                        \"serviceType\": \"Ship to store\",\n                        \"serviceCode\": \"ship_to_store\",\n                        \"carrierCode\": \"ship_to_store_carrier\"\n                    },\n                    \"packages\": [\n                        {\n                            \"weight\": {\n                                \"value\": 8,\n                                \"unit\": \"lb\"\n                            },\n                            \"dimensions\": {\n                                \"width\": 12,\n                                \"length\": 12,\n                                \"height\": 10,\n                                \"unit\": \"in\"\n                            }\n                        }\n                    ],\n                    \"pricing\": {\n                        \"basePrice\": 0,\n                        \"promotionPriceAdjustments\": [],\n                        \"taxPriceAdjustment\": {\n                            \"taxCode\": \"FR010100\",\n                            \"value\": 0\n                        }\n                    }\n                }\n            ],\n            \"pricing\": {\n                \"promotionPriceAdjustments\": [],\n                \"totalItemsPrice\": 109.99,\n                \"totalShippingPrice\": 0,\n                \"totalTax\": 6.6,\n                \"totalFee\": 0,\n                \"totalPromotion\": 0,\n                \"totalPrice\": 116.59\n            },\n            \"payments\": [\n                {\n                    \"CyberSourceOrderPayment\": {\n                        \"id\": \"8db091f3-8496-4e36-9430-749de57a277f\",\n                        \"state\": \"Processed\",\n                        \"cardType\": \"001\",\n                        \"cardNumber\": \"1111\",\n                        \"expirationMonth\": \"05\",\n                        \"expirationYear\": \"2019\",\n                        \"requestId\": \"5585490935586637904004\",\n                        \"token\": \"897EFD1A2628C80EE05340588D0A4607\",\n                        \"transactionId\": \"5590577545896012704006\",\n                        \"date\": \"2019-05-28T15:35:55.697Z\",\n                        \"value\": 116.59\n                    }\n                }\n            ],\n            \"email\": \"email@domain.org\"\n        }\n    ],\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"count\": 3,\n    \"facetCounts\": {\n        \"properties\": [\n            {\n                \"property\": \"anonymous\",\n                \"propertyType\": \"BOOLEAN\",\n                \"counts\": [\n                    {\n                        \"value\": \"true\",\n                        \"count\": 3\n                    }\n                ]\n            },\n            {\n                \"property\": \"state\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"Processing\",\n                        \"count\": 3\n                    }\n                ]\n            },\n            {\n                \"property\": \"shippingAddress.stateOrRegion\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"CT\",\n                        \"count\": 3\n                    }\n                ]\n            },\n            {\n                \"property\": \"shipments.state\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"New\",\n                        \"count\": 3\n                    }\n                ]\n            },\n            {\n                \"property\": \"shippingAddress.city\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"New Haven\",\n                        \"count\": 3\n                    }\n                ]\n            },\n            {\n                \"property\": \"billingAddress.country\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"US\",\n                        \"count\": 3\n                    }\n                ]\n            },\n            {\n                \"property\": \"shippingAddress.country\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"US\",\n                        \"count\": 3\n                    }\n                ]\n            },\n            {\n                \"property\": \"billingAddress.stateOrRegion\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"PA\",\n                        \"count\": 3\n                    }\n                ]\n            },\n            {\n                \"property\": \"billingAddress.city\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"Erie\",\n                        \"count\": 3\n                    }\n                ]\n            }\n        ],\n        \"ranges\": []\n    },\n    \"queryId\": \"g42NTvSjl1\"\n}"}],"_postman_id":"cdf3c975-6185-48f3-bc36-bfaead6c22af"},{"name":"get order by id","id":"e190da17-0500-411a-83cb-de26454dd0b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-upstart-api-key"},{"key":"value","value":"{{admin_api_key}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"url":"{{api_host}}/v1/order/87da2987-f473-4141-8238-03e10b8c143d","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: orderId - ID of the order\nbody: empty\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Order\nFailure\n    Order not found: 404 NOT FOUND - COR-001\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","order","87da2987-f473-4141-8238-03e10b8c143d"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"39ee30d2-e593-4642-8696-f11d8a95f23b","name":"get order by id","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{api_host}}/v1/order/profile/:id","host":["{{api_host}}"],"path":["v1","order","profile",":id"],"variable":[{"key":"id","value":"0513e03a-0be9-4ed6-8a9b-b4558a345ace"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.9"},{"key":"Date","value":"Wed, 29 May 2019 17:43:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Methods","value":"GET, PUT, POST, DELETE, PATCH, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Upstart-Tenant"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"0513e03a-0be9-4ed6-8a9b-b4558a345ace\",\n    \"customerId\": \"87619672-6736-400f-858b-22428b9dfe43\",\n    \"anonymous\": true,\n    \"state\": \"Processing\",\n    \"currency\": \"USD\",\n    \"distanceUnit\": \"mi\",\n    \"items\": [\n        {\n            \"id\": \"bd25a9d0-f325-4bdf-823b-dacd78af3b65\",\n            \"catalogItemId\": \"prod2490716\",\n            \"productItemSkuId\": \"SH-MA6ASCK\",\n            \"quantity\": 1,\n            \"pricing\": {\n                \"basePrice\": {\n                    \"type\": \"list\",\n                    \"zone\": \"NTL\",\n                    \"price\": 109.99,\n                    \"listPrice\": 109.99\n                },\n                \"promotionPriceAdjustments\": [],\n                \"feePriceAdjustments\": [],\n                \"taxPriceAdjustment\": {\n                    \"taxCode\": \"P0000000\",\n                    \"value\": 6.6\n                }\n            },\n            \"catalogItem\": {\n                \"id\": \"prod2490716\",\n                \"typeId\": \"3956b34b-bdef-4ceb-a994-96012e9c9508\",\n                \"type\": \"product\",\n                \"typeName\": \"Sheets\",\n                \"name\": \"Malouf 600 TC Cotton Blend Sheets\",\n                \"brandName\": \"Denver Mattress\",\n                \"tags\": [\n                    \"Sheets & Pillowcases\"\n                ],\n                \"dynamicProperties\": {\n                    \"sites\": [\n                        \"site_dmc_001\"\n                    ],\n                    \"shopByBrands\": [],\n                    \"shopByCategories\": [\n                        \"sheets\"\n                    ],\n                    \"mattressTypes\": [],\n                    \"categoryBreadcrumbs\": [\n                        \"DMC > Accessories >   Sheets & Pillowcases\"\n                    ],\n                    \"keywords\": [\n                        \"Deep Pocket Sheets\",\n                        \"Sheets\",\n                        \"600\",\n                        \"Thread Count\"\n                    ],\n                    \"featured\": false,\n                    \"clearance\": false,\n                    \"isFreeDelivery\": true,\n                    \"closeOut\": false,\n                    \"isNew\": false,\n                    \"storeOnly\": false,\n                    \"template\": \"sizecolor\",\n                    \"description\": \"<p>Pick a side. The Malouf 600 thread count cotton blend sheets give you the best of both worlds in a cotton sheet set. Two-sided weave design gives you a soft, cotton side for natural softness and breathability; turn the sheets over to the polyester side for wrinkle-resistant bed sheets. Rest assured that these deep pocket sheets fit mattresses ranging from 6&quot; - 18&quot;  deep. Universal Fit&reg; design incorporates thick elastic for a smooth and secure fit night after night.</p><p>Choose the style that fits you best. Malouf 600 thread count sheets sets are available in twin xl, twin, full, queen, king, and cal. king sizes. Fill your linen closet with all four colors to match your luxury bedding: white, ivory, driftwood, and ash.</p>\",\n                    \"constructionInfo\": \"<ul>\\r<li>600 Thread Count Cotton Blend</li>\\r<li>Two-sided weave design creates a soft cotton side and a wrinkle-resistant polyester side</li>\\r<li>Deep pockets for mattress depths 6 - 18\\\"</li>\\r<li>Universal Fit<sup>&reg;</sup> design with thick elastic for a smooth and secure fit</li>\\r</ul>\",\n                    \"tagline\": \"Dual-Purpose Cotton Blend Luxury Bedding\",\n                    \"dmcMaterial\": \"Polyester\",\n                    \"feature\": \"Wrinkle Resistant\",\n                    \"productGroup\": \"Malouf 600 Thread Count Cotton Blend Sheets Group\",\n                    \"benefits\": [\n                        \"Machine Washable\"\n                    ]\n                },\n                \"productItems\": [\n                    {\n                        \"skuId\": \"SH-MA6ASCK\",\n                        \"name\": \"Malouf 600 TC Ash Cal King Sheets\",\n                        \"brandName\": \"Malouf\",\n                        \"dynamicProperties\": {\n                            \"nativeSkuId\": \"sku2710893\",\n                            \"materials\": [],\n                            \"foundationIds\": [],\n                            \"size\": {\n                                \"shortName\": \"Cal King\",\n                                \"name\": \"California King\"\n                            },\n                            \"feedHighSkuPrice\": 0,\n                            \"color\": {\n                                \"name\": \"Ash\",\n                                \"group\": \"Grey\",\n                                \"swatch\": \"Grey Vero Beach\"\n                            }\n                        },\n                        \"dimensions\": {\n                            \"width\": 12,\n                            \"length\": 12,\n                            \"height\": 10,\n                            \"unit\": \"in\"\n                        },\n                        \"weight\": {\n                            \"value\": 8,\n                            \"unit\": \"lb\"\n                        },\n                        \"numPieces\": 1,\n                        \"shippingPackages\": [\n                            {\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                }\n                            }\n                        ],\n                        \"purchasable\": true\n                    }\n                ],\n                \"relatedIds\": [],\n                \"shippingMethodIds\": [\n                    \"3956b34b-bdef-4ceb-a994-96012e9c9558\",\n                    \"3956b34b-bdef-4ceb-a994-96012e9c9551\"\n                ],\n                \"activationDate\": \"2017-12-04T00:00:00Z\",\n                \"taxCode\": \"P0000000\",\n                \"ignoreInventory\": false,\n                \"version\": 1,\n                \"seo\": {\n                    \"pageTitle\": \"600 TC Deep Pocket Sheets - Malouf | Denver Mattress\",\n                    \"metaKeywords\": []\n                }\n            },\n            \"shipmentId\": \"0b213160-5fa4-4461-93fb-f68ee0451118\"\n        }\n    ],\n    \"locationId\": \"1400004\",\n    \"timeZoneOffset\": -300,\n    \"coupons\": [],\n    \"shippingCoordinates\": {\n        \"latitude\": 41.3036074,\n        \"longitude\": -72.91732259999999\n    },\n    \"shippingAddress\": {\n        \"street1\": \"554 Chapel St\",\n        \"street2\": \"\",\n        \"city\": \"New Haven\",\n        \"stateOrRegion\": \"CT\",\n        \"country\": \"US\",\n        \"postalCode\": \"06511\",\n        \"poBox\": false,\n        \"name\": {\n            \"first\": \"John\",\n            \"last\": \"Doe\"\n        },\n        \"phoneNumber\": \"6038675309\"\n    },\n    \"billingAddress\": {\n        \"street1\": \"6037 Peach St\",\n        \"street2\": \"\",\n        \"city\": \"Erie\",\n        \"stateOrRegion\": \"PA\",\n        \"country\": \"US\",\n        \"postalCode\": \"16509\",\n        \"poBox\": false,\n        \"businessName\": \"MYCMP\"\n    },\n    \"shipments\": [\n        {\n            \"id\": \"0b213160-5fa4-4461-93fb-f68ee0451118\",\n            \"state\": \"New\",\n            \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9551\",\n            \"shippingMethodName\": \"In-Store Pick Up\",\n            \"addressFrom\": {\n                \"street1\": \"11000 East 40th Avenue\",\n                \"street2\": \"\",\n                \"city\": \"Denver\",\n                \"stateOrRegion\": \"CO\",\n                \"country\": \"US\",\n                \"postalCode\": \"80216\",\n                \"poBox\": false,\n                \"businessName\": \"Denver Mattress Warehouse Accessories\",\n                \"phoneNumber\": \"8663724642\"\n            },\n            \"locationFromId\": \"w910000\",\n            \"addressTo\": {\n                \"street1\": \"1785 Rodney Rd\",\n                \"street2\": \"\",\n                \"city\": \"York\",\n                \"stateOrRegion\": \"PA\",\n                \"country\": \"US\",\n                \"postalCode\": \"17404\",\n                \"poBox\": false,\n                \"businessName\": \"522-DMC\",\n                \"phoneNumber\": \"7178010614\"\n            },\n            \"locationToId\": \"1400004\",\n            \"shippingToDistance\": {\n                \"value\": 221.73165593524638,\n                \"unit\": \"mi\"\n            },\n            \"rate\": {\n                \"rateId\": \"ship_to_store_rate_id\",\n                \"carrierId\": \"ship_to_store_carrier\",\n                \"pricing\": {\n                    \"shipping\": 0\n                },\n                \"carrierDeliveryDates\": \"Availability may take up to 2-3 weeks. If you need these items sooner please contact to verify availability.\",\n                \"serviceType\": \"Ship to store\",\n                \"serviceCode\": \"ship_to_store\",\n                \"carrierCode\": \"ship_to_store_carrier\"\n            },\n            \"packages\": [\n                {\n                    \"weight\": {\n                        \"value\": 8,\n                        \"unit\": \"lb\"\n                    },\n                    \"dimensions\": {\n                        \"width\": 12,\n                        \"length\": 12,\n                        \"height\": 10,\n                        \"unit\": \"in\"\n                    }\n                }\n            ],\n            \"pricing\": {\n                \"basePrice\": 0,\n                \"promotionPriceAdjustments\": [],\n                \"taxPriceAdjustment\": {\n                    \"taxCode\": \"FR010100\",\n                    \"value\": 0\n                }\n            }\n        }\n    ],\n    \"pricing\": {\n        \"promotionPriceAdjustments\": [],\n        \"totalItemsPrice\": 109.99,\n        \"totalShippingPrice\": 0,\n        \"totalTax\": 6.6,\n        \"totalFee\": 0,\n        \"totalPromotion\": 0,\n        \"totalPrice\": 116.59\n    },\n    \"payments\": [\n        {\n            \"CyberSourceOrderPayment\": {\n                \"id\": \"c85b4f0b-a5b0-4003-af5d-38f9805b0f7e\",\n                \"state\": \"Processed\",\n                \"cardType\": \"001\",\n                \"cardNumber\": \"1111\",\n                \"expirationMonth\": \"05\",\n                \"expirationYear\": \"2019\",\n                \"requestId\": \"5585490935586637904004\",\n                \"token\": \"897EFD1A2628C80EE05340588D0A4607\",\n                \"transactionId\": \"5590675690066101304006\",\n                \"date\": \"2019-05-28T18:19:30.216Z\",\n                \"value\": 116.59\n            }\n        }\n    ],\n    \"email\": \"example@email.com\"\n}"},{"id":"63a7758a-7265-4609-95ca-eba73357a0c4","name":"get order by id - not found","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{api_host}}/v1/order/profile/:id","host":["{{api_host}}"],"path":["v1","order","profile",":id"],"variable":[{"key":"id","value":"2513e03a-0be9-4ed6-8a9b-b4558a345ace"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.9"},{"key":"Date","value":"Wed, 29 May 2019 17:47:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"135"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Methods","value":"GET, PUT, POST, DELETE, PATCH, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Upstart-Tenant"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Order not found\",\n    \"code\": \"COR-001\",\n    \"detail\": \"Order, tenant: denvermattress id: 2513e03a-0be9-4ed6-8a9b-b4558a345ace not found\"\n}"}],"_postman_id":"e190da17-0500-411a-83cb-de26454dd0b8"}],"id":"8ff72078-976e-43ce-b773-5d4c2b357d69","_postman_id":"8ff72078-976e-43ce-b773-5d4c2b357d69","description":""},{"name":"cart","item":[{"name":"Add Items","id":"5d55d049-116d-4190-8497-048fcad08784","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{afad_auth}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"upstartcommerce"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"9e2c534b-f808-4bd3-b1b9-475f117a6b6d","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\n        {\n            \"catalogItemId\": \"90f7101b-ad3b-41f9-9268-3003cfce43a5\",\n            \"productItemSkuId\": \"MFP1\",\n            \"quantity\": 4,\n            \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9553\"\n        }\n    ],\n    \"locationId\": \"1200001\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/items-sync","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none \nbody: AddCartItems\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartItemsUpdated\nFailure:\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n    Validation error: 400 BAD REQUEST - COR-003\n</code></pre><h2 id=\"addcartitems\">AddCartItems</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>items</td>\n<td>AddCartItem</td>\n<td>Y</td>\n<td>items to add</td>\n</tr>\n<tr>\n<td>locationId</td>\n<td>LocationId</td>\n<td>N</td>\n<td>id of location</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>N</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>N</td>\n<td>country</td>\n</tr>\n<tr>\n<td>timeZoneOffset</td>\n<td>Int</td>\n<td>N</td>\n<td>time zone offset - minutes</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>Currency</td>\n<td>N</td>\n<td>currency - default USD</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"addcartitem\">AddCartItem</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CartItemId</td>\n<td>N</td>\n<td>CartItemId is UUID</td>\n</tr>\n<tr>\n<td>catalogItemId</td>\n<td>CatalogItemId</td>\n<td>Y</td>\n<td>the id of catalog item</td>\n</tr>\n<tr>\n<td>productItemSkuId</td>\n<td>SkuItemId</td>\n<td>N</td>\n<td>the skuId - if catalog item has type product</td>\n</tr>\n<tr>\n<td>bundleItems</td>\n<td>Array of CatalogSkuItem</td>\n<td>N</td>\n<td>catalog sku items - if catalog item has type bundle</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Int</td>\n<td>Y</td>\n<td>number of items</td>\n</tr>\n<tr>\n<td>shippingMethodId</td>\n<td>ShippingMethodId</td>\n<td>N</td>\n<td>id of shipping method</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"cartitemsupdated\">CartItemsUpdated</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CartId</td>\n<td>Y</td>\n<td>CartId is UUID</td>\n</tr>\n<tr>\n<td>itemIds</td>\n<td>Array of CartItemId</td>\n<td>Y</td>\n<td>CartItemId is UUID</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","cart","profile","cart","items-sync"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"c7e1f95b-e66b-4acc-80ec-c6f441041f72","name":"Add Items - Validation Error","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\n        {\n            \"catalogItemId\": \"prod2750011\",\n            \"productItemSkuId\": \"FS-DMUN2LSQb\",\n            \"quantity\": 1,\n            \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9551\"\n        },\n        {\n            \"catalogItemId\": \"prod2490716\",\n            \"productItemSkuId\": \"SH-MA6ASCKb\",\n            \"quantity\": 1,\n            \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9551\"\n        }\n    ],\n    \"locationId\": \"700351\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/items"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Apr 2019 14:15:39 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"335"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"items/0/productItemSkuId\",\n            \"errors\": [\n                {\n                    \"id\": \"notPurchasable\",\n                    \"message\": \"Not purchasable\"\n                },\n                {\n                    \"id\": \"notExist\",\n                    \"message\": \"Not exists\"\n                }\n            ]\n        },\n        {\n            \"path\": \"items/1/productItemSkuId\",\n            \"errors\": [\n                {\n                    \"id\": \"notPurchasable\",\n                    \"message\": \"Not purchasable\"\n                },\n                {\n                    \"id\": \"notExist\",\n                    \"message\": \"Not exists\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"5d55d049-116d-4190-8497-048fcad08784"},{"name":"DEPRECATED: Update Item quantity","id":"f2ba4004-4a60-4556-bae4-a05412fc1cdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"itemId\": \"ca687106-45b0-4653-9677-2a9a965cf72a\",\n    \"quantity\": 2\n}"},"url":"{{api_host}}/v1/cart/profile/cart/items","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none\nbody: UpdateCartItemQuantity\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartItemUpdated\nFailure:\n    Carts doesn't exist for customer: 400 BAD REQUEST - COR-002\n    Cart with the status \"New\" doesn't exist: 400 BAD REQUEST - COR-002\n    Item with the given ID doesn't exist in the cart: 400 BAD REQUEST - COR-002\n    Validation errors: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre><h2 id=\"updatecartitemquantity\">UpdateCartItemQuantity</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>itemId</td>\n<td>CartItemId</td>\n<td>Y</td>\n<td>CartItemId is UUID</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Int</td>\n<td>Y</td>\n<td>quantity</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"cartitemupdated\">CartItemUpdated</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CartId</td>\n<td>Y</td>\n<td>CartId is UUID</td>\n</tr>\n<tr>\n<td>itemId</td>\n<td>CartItemId</td>\n<td>Y</td>\n<td>CartItemId is UUID</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","cart","profile","cart","items"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"0bd666c2-49bf-4040-8706-3b0a168da6e3","name":"Update Item quantity","originalRequest":{"method":"PATCH","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"itemId\" : \"b792e1a2-9df3-49b9-aecb-92e207660fa4\",\n\"quantity\" : 3\n}"},"url":"{{api_host}}/v1/cart/profile/cart/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 17:54:47 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"11e7cb8b-591e-4111-b7ef-4a59b42991c0\",\n    \"itemId\": \"b792e1a2-9df3-49b9-aecb-92e207660fa4\"\n}"}],"_postman_id":"f2ba4004-4a60-4556-bae4-a05412fc1cdb"},{"name":"Update location","id":"d2c6f04b-9cb2-4d96-af07-035528d7b8f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Site","value":"{{dm_site}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"country\": \"US\",\n    \"locationId\": \"100106\",\n    \"postalCode\": \"36849\",\n    \"timezoneId\": \"America/Denver\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/location","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none \nbody: UpdateCartLocation\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId\nFailure:\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n    Validation error: 400 BAD REQUEST - COR-003\n</code></pre><h2 id=\"updatecartlocation\">UpdateCartLocation</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>locationId</td>\n<td>LocationId</td>\n<td>N</td>\n<td>id of location</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>N</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>N</td>\n<td>country</td>\n</tr>\n<tr>\n<td>timeZoneOffset</td>\n<td>Int</td>\n<td>N</td>\n<td>time zone offset - minutes</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","cart","profile","cart","location"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"fb2ef646-1c8a-4431-bb9d-219efb712559","name":"Update location","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"locationId\": \"700261\",\n    \"country\": \"US\",\n    \"postalCode\": \"17404\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/location"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 17:55:35 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"}],"cookie":[],"responseTime":null,"body":"\"11e7cb8b-591e-4111-b7ef-4a59b42991c0\""}],"_postman_id":"d2c6f04b-9cb2-4d96-af07-035528d7b8f7"},{"name":"Update coupons","id":"6f43d505-2813-4d6c-a1a6-8357955bfb59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"[\"c1\", \"c2\"]"},"url":"{{api_host}}/v1/cart/profile/cart/coupons","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none \nbody: Array of String-s\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId\nFailure:\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n    Validation error: 400 BAD REQUEST - COR-003\n</code></pre>","urlObject":{"path":["v1","cart","profile","cart","coupons"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"94434c75-f72e-4d9c-8f2d-ed961660d596","name":"Update coupons","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"[\"c1\", \"c2\"]"},"url":"{{api_host}}/v1/cart/profile/cart/coupons"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Apr 2019 12:40:58 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"}],"cookie":[],"responseTime":null,"body":"\"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bb\""}],"_postman_id":"6f43d505-2813-4d6c-a1a6-8357955bfb59"},{"name":"Update shipping address","id":"ee649e12-4c12-4f4f-b7eb-f44964a1dd58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": {\n      \"first\":\"Areesha\",\n      \"last\": \"Tahir\"\n    },\n    \"phoneNumber\": \"6038675309\",\n    \"street1\": \"241 Cornell Dr\",\n    \"street2\": \"\",\n    \"city\": \"Woodland Park\",\n    \"stateOrRegion\": \"CO\",\n    \"country\": \"US\",\n    \"postalCode\": \"80863\",\n    \"poBox\": false\n}"},"url":"{{api_host}}/v1/cart/profile/cart/shippingaddress","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none \nbody: Address\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId\nFailure:\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n    Validation error: 400 BAD REQUEST - COR-003\n</code></pre><h2 id=\"address\">Address</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>street1</td>\n<td>String</td>\n<td>Y</td>\n<td>street</td>\n</tr>\n<tr>\n<td>street2</td>\n<td>String</td>\n<td>N</td>\n<td>street</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>Y</td>\n<td>street</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>Y</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>stateOrRegion</td>\n<td>String</td>\n<td>Y</td>\n<td>state or regions</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Y</td>\n<td>country</td>\n</tr>\n<tr>\n<td>county</td>\n<td>String</td>\n<td>N</td>\n<td>county</td>\n</tr>\n<tr>\n<td>poBox</td>\n<td>Boolean</td>\n<td>N</td>\n<td>pobox address - default false</td>\n</tr>\n<tr>\n<td>businessName</td>\n<td>String</td>\n<td>N</td>\n<td>business name</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>String</td>\n<td>N</td>\n<td>phone number</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Name</td>\n<td>N</td>\n<td>name</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"name\">Name</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>first</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>last</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>middleInitial</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>salutation</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>suffix</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","cart","profile","cart","shippingaddress"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"60125075-6f0a-4b8d-af1d-de925e770096","name":"Update shipping address","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"street1\": \"2039 Walker Lake Rd\",\n    \"street2\": \"\",\n    \"city\": \"Mansfield\",\n    \"stateOrRegion\": \"OH\",\n    \"country\": \"US\",\n    \"postalCode\": \"44903\",\n    \"poBox\": false\n}"},"url":"{{api_host}}/v1/cart/profile/cart/shippingaddress"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 17:52:38 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"}],"cookie":[],"responseTime":null,"body":"\"11e7cb8b-591e-4111-b7ef-4a59b42991c0\""}],"_postman_id":"ee649e12-4c12-4f4f-b7eb-f44964a1dd58"},{"name":"Update billing address","id":"41cee437-53a8-4523-80ff-40c18fca60ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\" : {\n\t\t\"first\": \"John\",\n\t\t \"last\": \"Doe\"\n\t},\n    \"street1\": \"554 Chapel St\",\n    \"street2\": \"\",\n    \"city\": \"New Haven\",\n    \"stateOrRegion\": \"CT\",\n    \"country\": \"US\",\n    \"postalCode\": \"06511\",\n    \"poBox\": false,\n    \"phoneNumber\": \"8668675309\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/billingaddress","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none \nbody: Address\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId\nFailure:\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n    Validation error: 400 BAD REQUEST - COR-003\n</code></pre><h2 id=\"address\">Address</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>street1</td>\n<td>String</td>\n<td>Y</td>\n<td>street</td>\n</tr>\n<tr>\n<td>street2</td>\n<td>String</td>\n<td>N</td>\n<td>street</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>Y</td>\n<td>street</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>Y</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>stateOrRegion</td>\n<td>String</td>\n<td>Y</td>\n<td>state or regions</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Y</td>\n<td>country</td>\n</tr>\n<tr>\n<td>county</td>\n<td>String</td>\n<td>N</td>\n<td>county</td>\n</tr>\n<tr>\n<td>poBox</td>\n<td>Boolean</td>\n<td>N</td>\n<td>pobox address - default false</td>\n</tr>\n<tr>\n<td>businessName</td>\n<td>String</td>\n<td>N</td>\n<td>business name</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>String</td>\n<td>N</td>\n<td>phone number</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Name</td>\n<td>N</td>\n<td>name</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"name\">Name</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>first</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>last</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>middleInitial</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>salutation</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>suffix</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","cart","profile","cart","billingaddress"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"138b38f2-8a7b-4acd-ada2-1549a6817154","name":"Update billing address","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"street1\": \"6037 Peach St\",\n    \"street2\": \"\",\n    \"city\": \"Erie\",\n    \"stateOrRegion\": \"PA\",\n    \"country\": \"US\",\n    \"postalCode\": \"16509\",\n    \"poBox\": false\n}"},"url":"{{api_host}}/v1/cart/profile/cart/billingaddress"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 17:53:07 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"}],"cookie":[],"responseTime":null,"body":"\"11e7cb8b-591e-4111-b7ef-4a59b42991c0\""}],"_postman_id":"41cee437-53a8-4523-80ff-40c18fca60ef"},{"name":"Get cart","id":"2d263039-d504-44fc-a94e-28cfc1cefd25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"X-Upstart-Site","value":"{{dm_site}}","type":"text"}],"url":"{{api_host}}/v1/cart/profile/cart","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none\nbody: Cart\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Cart\nFailure:\n    Not found: 404 NOT FOUND - COR-001\n</code></pre><h2 id=\"cart\">Cart</h2>\n<p>Cart object represents single shopping cart/order.  </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CartId</td>\n<td>Y</td>\n<td>CartId is UUID</td>\n</tr>\n<tr>\n<td>customerId</td>\n<td>CustomerId</td>\n<td>Y</td>\n<td>CustomerId is UUID</td>\n</tr>\n<tr>\n<td>state</td>\n<td>State</td>\n<td>Y</td>\n<td>default New</td>\n</tr>\n<tr>\n<td>locationId</td>\n<td>LocationId</td>\n<td>N</td>\n<td>id of location</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>N</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>N</td>\n<td>country</td>\n</tr>\n<tr>\n<td>timeZoneOffset</td>\n<td>Int</td>\n<td>N</td>\n<td>time zone offset - minutes</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>Currency</td>\n<td>N</td>\n<td>currency - default USD</td>\n</tr>\n<tr>\n<td>distanceUnit</td>\n<td>DistanceUnit</td>\n<td>N</td>\n<td>distance unit - enumertion (mi, km)</td>\n</tr>\n<tr>\n<td>items</td>\n<td>Array of CartItem</td>\n<td>Y</td>\n<td>cart items</td>\n</tr>\n<tr>\n<td>shipments</td>\n<td>Array of CartShipment</td>\n<td>Y</td>\n<td>cart shipments/shipping groups</td>\n</tr>\n<tr>\n<td>coupons</td>\n<td>Array of CartCoupon</td>\n<td>Y</td>\n<td>cart coupons</td>\n</tr>\n<tr>\n<td>pricing</td>\n<td>CartPricing</td>\n<td>Y</td>\n<td>calculated price</td>\n</tr>\n<tr>\n<td>shippingCoordinates</td>\n<td>Coordinates</td>\n<td>N</td>\n<td>Coordinates</td>\n</tr>\n<tr>\n<td>shippingAddress</td>\n<td>Address</td>\n<td>N</td>\n<td>Shipping address - required from \"some\" state</td>\n</tr>\n<tr>\n<td>billingAddress</td>\n<td>Address</td>\n<td>N</td>\n<td>Billing address</td>\n</tr>\n<tr>\n<td>payments</td>\n<td>Payments</td>\n<td>N</td>\n<td>Payments - required from \"some\" state</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>N</td>\n<td>email for checkout</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"cartitem\">CartItem</h2>\n<p>CartItem represents a single entry in cart. CartItem can be </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CartItemId</td>\n<td>Y</td>\n<td>CartItemId is UUID</td>\n</tr>\n<tr>\n<td>catalogItemId</td>\n<td>CatalogItemId</td>\n<td>Y</td>\n<td>the id of catalog item</td>\n</tr>\n<tr>\n<td>productItemSkuId</td>\n<td>SkuItemId</td>\n<td>N</td>\n<td>the skuId - if catalog item has type product</td>\n</tr>\n<tr>\n<td>bundleItems</td>\n<td>Array of BundleItem</td>\n<td>N</td>\n<td>catalog sku items - if catalog item has type bundle</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Int</td>\n<td>Y</td>\n<td>number of items</td>\n</tr>\n<tr>\n<td>pricing</td>\n<td>CartItemPricing</td>\n<td>Y</td>\n<td>calculated price</td>\n</tr>\n<tr>\n<td>catalogItem</td>\n<td>CatalogItem</td>\n<td>N</td>\n<td>catalog item time snapshot, added when cart frozen1)</td>\n</tr>\n<tr>\n<td>promotionId</td>\n<td>PromotionId</td>\n<td>N</td>\n<td>reference to promotion - if cart item was created by promotion</td>\n</tr>\n<tr>\n<td>shipmentId</td>\n<td>CartShipmentId</td>\n<td>N</td>\n<td>reference shipment/shipping group</td>\n</tr>\n<tr>\n<td>1 Frozen cart is cart in a state that prohibit changes in content of cart</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"cartshipment\">CartShipment</h2>\n<p>CartShipment represents a single shipping group in cart. CartItem can be </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CartShipmentId</td>\n<td>Y</td>\n<td>CartItemId is UUID</td>\n</tr>\n<tr>\n<td>shippingMethodId</td>\n<td>ShippingMethodId</td>\n<td>Y</td>\n<td>the id of shipping method</td>\n</tr>\n<tr>\n<td>shippingMethodName</td>\n<td>String</td>\n<td>N</td>\n<td>the name of shipping method</td>\n</tr>\n<tr>\n<td>addressFrom</td>\n<td>Address</td>\n<td>N</td>\n<td>source address (warehouse)</td>\n</tr>\n<tr>\n<td>locationFromId</td>\n<td>LocationId</td>\n<td>N</td>\n<td>source location (warehouse)</td>\n</tr>\n<tr>\n<td>addressTo</td>\n<td>Address</td>\n<td>N</td>\n<td>destination address (shipping address/location address - store)</td>\n</tr>\n<tr>\n<td>locationToId</td>\n<td>LocationId</td>\n<td>N</td>\n<td>destination location (store)</td>\n</tr>\n<tr>\n<td>rate</td>\n<td>ShippingRate</td>\n<td>N</td>\n<td>selected shipping rate</td>\n</tr>\n<tr>\n<td>rateVariants</td>\n<td>Array of ShippingRate</td>\n<td>N</td>\n<td>rates variants</td>\n</tr>\n<tr>\n<td>packages</td>\n<td>Array of ShippingPackage</td>\n<td>N</td>\n<td>packages</td>\n</tr>\n<tr>\n<td>pricing</td>\n<td>CartShipmentPricing</td>\n<td>Y</td>\n<td>calculated price</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"bundleitem\">BundleItem</h3>\n<p>bundle item</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CatalogItemId</td>\n<td>Y</td>\n<td>the id of catalog item</td>\n</tr>\n<tr>\n<td>skuId</td>\n<td>SkuItemId</td>\n<td>Y</td>\n<td>the skuId</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"shippingrate\">ShippingRate</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>rateId</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>carrierId</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>pricing</td>\n<td>ShippingRatePricing</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>packageType</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>deliveryDays</td>\n<td>Int</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>estimatedDeliveryDate</td>\n<td>Timestamp</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>carrierDeliveryDates</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>shipDate</td>\n<td>Timestamp</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>serviceType</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>serviceCode</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>carrierCode</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"shippingratepricing\">ShippingRatePricing</h3>\n<p>pricing for shipping rate</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>shipping</td>\n<td>BigDecimal</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>insurance</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>confirmation</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>other</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"shippingpackage\">ShippingPackage</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>packageCode</td>\n<td>String</td>\n<td>N</td>\n<td>package code</td>\n</tr>\n<tr>\n<td>weight</td>\n<td>Weight</td>\n<td>Y</td>\n<td>weight</td>\n</tr>\n<tr>\n<td>dimensions</td>\n<td>Dimensions</td>\n<td>N</td>\n<td>dimensions</td>\n</tr>\n<tr>\n<td>insuredValue</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>insured value</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"cartitempricing\">CartItemPricing</h3>\n<p>cart item pricing</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>basePrice</td>\n<td>BasePrice</td>\n<td>N</td>\n<td>base price for catalog item - quantity 1</td>\n</tr>\n<tr>\n<td>promotionPriceAdjustments</td>\n<td>Array of PromotionPriceAdjustment</td>\n<td>N</td>\n<td>promotion price adjustments</td>\n</tr>\n<tr>\n<td>feePriceAdjustments</td>\n<td>Array of FeePriceAdjustment</td>\n<td>N</td>\n<td>fee price adjustments</td>\n</tr>\n<tr>\n<td>taxPriceAdjustment</td>\n<td>TaxPriceAdjustment</td>\n<td>N</td>\n<td>tax price adjustments</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"cartshipmentpricing\">CartShipmentPricing</h3>\n<p>cart shipment/shipping group pricing</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>basePrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>base price for shipping</td>\n</tr>\n<tr>\n<td>promotionPriceAdjustments</td>\n<td>Array of PromotionPriceAdjustment</td>\n<td>N</td>\n<td>promotion price adjustments</td>\n</tr>\n<tr>\n<td>taxPriceAdjustment</td>\n<td>TaxPriceAdjustment</td>\n<td>N</td>\n<td>tax price adjustments</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"cartpricing\">CartPricing</h3>\n<p>cart summary pricing</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>totalItemsPrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all cart items base prices with adjustments fees, promotions but without taxes - merchandiseTotal</td>\n</tr>\n<tr>\n<td>totalItemsBasePrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all cart items base prices</td>\n</tr>\n<tr>\n<td>totalShippingPrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all cart shipments prices with including promotions fees, excluding taxes</td>\n</tr>\n<tr>\n<td>totalShippingBasePrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all cart shipments base prices</td>\n</tr>\n<tr>\n<td>totalTax</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all taxes, calculated by backend</td>\n</tr>\n<tr>\n<td>totalFee</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all fees, calculated by backend</td>\n</tr>\n<tr>\n<td>totalShippingPromotion</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of shipping promotion adjustments</td>\n</tr>\n<tr>\n<td>totalItemCartPromotion</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all item and cart level promotion adjustments</td>\n</tr>\n<tr>\n<td>totalPromotion</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all promotion adjustments</td>\n</tr>\n<tr>\n<td>totalPrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>final price including taxes</td>\n</tr>\n<tr>\n<td>totalPreTaxPrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>final price without taxes</td>\n</tr>\n<tr>\n<td>promotionPriceAdjustments</td>\n<td>Array of PromotionPriceAdjustment</td>\n<td>N</td>\n<td>promotion price adjustments</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"baseprice\">BasePrice</h3>\n<p>base asset price</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price</td>\n<td>BigDecimal</td>\n<td>Y</td>\n<td>price calculated for asset</td>\n</tr>\n<tr>\n<td>zone</td>\n<td>String</td>\n<td>Y</td>\n<td>zone</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Enum</td>\n<td>Y</td>\n<td>(list, sale, msrp)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"promotionpriceadjustment\">PromotionPriceAdjustment</h3>\n<p>promotion pricing adjustment (promotion-svc)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>PromotionId</td>\n<td>Y</td>\n<td>reference to promotion</td>\n</tr>\n<tr>\n<td>value</td>\n<td>BigDecimal</td>\n<td>Y</td>\n<td>price calculated for promotion</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>N</td>\n<td>description</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"feepriceadjustment\">FeePriceAdjustment</h3>\n<p>fee pricing adjustment</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>FeeId</td>\n<td>Y</td>\n<td>reference to promotion</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Y</td>\n<td>name of fee</td>\n</tr>\n<tr>\n<td>baseValue</td>\n<td>BigDecimal</td>\n<td>Y</td>\n<td>base price calculated for fee</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Int</td>\n<td>Y</td>\n<td>quantity for fee</td>\n</tr>\n<tr>\n<td>value</td>\n<td>BigDecimal</td>\n<td>Y</td>\n<td>price calculated for fee</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>N</td>\n<td>description</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"taxpriceadjustment\">TaxPriceAdjustment</h3>\n<p>tax pricing adjustment</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>taxCode</td>\n<td>String</td>\n<td>Y</td>\n<td>tax code</td>\n</tr>\n<tr>\n<td>taxRate</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>tax rate  ????</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","cart","profile","cart"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"97807d5e-0b01-4485-958f-8f8a2f55d1fa","name":"Get cart","originalRequest":{"method":"GET","header":[{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"}],"url":"{{api_host}}/v1/cart/profile/cart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 17:51:50 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1888"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"89986dd0-1c0f-4491-b19e-c9655152e729\",\n    \"customerId\": \"768dea2f-ee72-4a66-a5cf-101fbcb50970\",\n    \"anonymous\": true,\n    \"state\": \"New\",\n    \"currency\": \"USD\",\n    \"distanceUnit\": \"mi\",\n    \"items\": [\n        {\n            \"id\": \"bc378bbc-8997-4ca0-980c-b855d8a03e43\",\n            \"catalogItemId\": \"prod2020691\",\n            \"productItemSkuId\": \"88-GIFT1000\",\n            \"quantity\": 2,\n            \"pricing\": {\n                \"basePrice\": {\n                    \"type\": \"list\",\n                    \"zone\": \"NTL\",\n                    \"price\": 1000,\n                    \"listPrice\": 1000\n                },\n                \"promotionPriceAdjustments\": [],\n                \"feePriceAdjustments\": [],\n                \"taxPriceAdjustment\": {\n                    \"taxCode\": \"PG050000\",\n                    \"value\": 0\n                }\n            },\n            \"catalogItem\": {\n                \"id\": \"prod2020691\",\n                \"typeId\": \"3956b34b-bdef-4ceb-a994-96012e9c9514\",\n                \"type\": \"product\",\n                \"typeName\": \"Gift Certificate\",\n                \"name\": \"Furniture Row Gift Certificate\",\n                \"brandName\": \"Denver Mattress\",\n                \"tags\": [\n                    \"Accessories\",\n                    \"Living\"\n                ],\n                \"dynamicProperties\": {\n                    \"sites\": [\n                        \"site_dmc_001\",\n                        \"site_frcom_001\"\n                    ],\n                    \"shopByBrands\": [],\n                    \"shopByCategories\": [],\n                    \"mattressTypes\": [],\n                    \"categoryBreadcrumbs\": [\n                        \"Living\",\n                        \"Accessories\"\n                    ],\n                    \"keywords\": [\n                        \"furniture row gift card\",\n                        \"gift card\",\n                        \"Oak Express Gift Card\",\n                        \"Sofa Mart Gift Card\",\n                        \"Denver Mattress Gift Card\",\n                        \"Bedroom Expressions Gift Card\",\n                        \"registry\",\n                        \"wedding registry\",\n                        \"wish list\",\n                        \"gift registry\"\n                    ],\n                    \"featured\": false,\n                    \"clearance\": false,\n                    \"isFreeDelivery\": false,\n                    \"closeOut\": false,\n                    \"isNew\": false,\n                    \"storeOnly\": false,\n                    \"template\": \"Option_Only\",\n                    \"description\": \"<h5>Redeemable at any Furniture Row Store:</h5>\\r\\r<p>&nbsp;</p>\\r\\r<p><strong>Denver Mattress<br />Sofa Mart<br />Oak Express<br />Bedroom Expressions</strong></p>\\r\\r<p>If you would like to purchase a gift certificate in a specific amount other than the amounts available online, please call 1-866-372-4642, or visit your local store.</p>\",\n                    \"additionalInfo\": \"<p>Gift Certificate valid for 1 year from purchase date.</p>\",\n                    \"tagline\": \"Furniture is personal.  Let them choose what they like.\"\n                },\n                \"productItems\": [\n                    {\n                        \"skuId\": \"88-GIFT1000\",\n                        \"name\": \"Furniture Row $1000 Gift Certificate\",\n                        \"brandName\": \"Furniture Row Gift Certificate\",\n                        \"dynamicProperties\": {\n                            \"nativeSkuId\": \"sku2230098\",\n                            \"materials\": [],\n                            \"foundationIds\": [],\n                            \"onlineOnly\": false,\n                            \"feedHighSkuPrice\": 0,\n                            \"price\": {\n                                \"price\": 1000,\n                                \"currency\": \"USD\"\n                            }\n                        },\n                        \"dimensions\": {\n                            \"width\": 1,\n                            \"length\": 1,\n                            \"height\": 1,\n                            \"unit\": \"in\"\n                        },\n                        \"weight\": {\n                            \"value\": 1,\n                            \"unit\": \"lb\"\n                        },\n                        \"numPieces\": 1,\n                        \"shippingPackages\": [\n                            {\n                                \"dimensions\": {\n                                    \"width\": 1,\n                                    \"length\": 1,\n                                    \"height\": 1,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 1,\n                                    \"unit\": \"lb\"\n                                }\n                            }\n                        ],\n                        \"purchasable\": true\n                    }\n                ],\n                \"relatedIds\": [],\n                \"shippingMethodIds\": [\n                    \"3956b34b-bdef-4ceb-a994-96012e9c9559\",\n                    \"3956b34b-bdef-4ceb-a994-96012e9c9557\",\n                    \"3956b34b-bdef-4ceb-a994-96012e9c9551\"\n                ],\n                \"activationDate\": \"2009-07-01T00:00:00Z\",\n                \"taxCode\": \"PG050000\",\n                \"ignoreInventory\": false,\n                \"hidden\": false,\n                \"version\": 3,\n                \"seo\": {\n                    \"pageTitle\": \"Furniture Row Gift Certificate | Furniture Row\",\n                    \"metaKeywords\": []\n                }\n            },\n            \"shipmentId\": \"977f5aa1-3913-4384-b573-81f5f6d96d76\"\n        },\n        {\n            \"id\": \"ea3ba638-80c9-423d-aa0b-da9e4b986177\",\n            \"catalogItemId\": \"prod1040100\",\n            \"productItemSkuId\": \"SL-DMWIFMQ\",\n            \"quantity\": 2,\n            \"pricing\": {\n                \"basePrice\": {\n                    \"type\": \"list\",\n                    \"zone\": \"NTL\",\n                    \"price\": 249.99,\n                    \"listPrice\": 249.99\n                },\n                \"promotionPriceAdjustments\": [],\n                \"feePriceAdjustments\": [],\n                \"taxPriceAdjustment\": {\n                    \"taxCode\": \"P0000000\",\n                    \"value\": 30\n                }\n            },\n            \"catalogItem\": {\n                \"id\": \"prod1040100\",\n                \"typeId\": \"3956b34b-bdef-4ceb-a994-96012e9c9507\",\n                \"type\": \"product\",\n                \"typeName\": \"Sofa Sleeper Mattress\",\n                \"name\": \"Winter Park® Sofa Sleeper Mattress\",\n                \"brandName\": \"Denver Mattress\",\n                \"manufacturerName\": \"Denver Mattress\",\n                \"tags\": [\n                    \"Winter Park Firm\",\n                    \"Specialty Sizes\"\n                ],\n                \"dynamicProperties\": {\n                    \"sites\": [\n                        \"site_dmc_001\"\n                    ],\n                    \"shopByBrands\": [\n                        \"Specialty Mattresses\"\n                    ],\n                    \"shopByCategories\": [],\n                    \"mattressTypes\": [\n                        \"Innerspring\"\n                    ],\n                    \"categoryBreadcrumbs\": [\n                        \"DMC > Size >   Specialty Sizes\",\n                        \"DMC > Denver Mattress Co > Denver Mattress >   Winter Park Firm\"\n                    ],\n                    \"keywords\": [\n                        \"sofa sleepers\",\n                        \"sleeper sofas\",\n                        \"sofa mattress\",\n                        \"hide a bed\",\n                        \"sleeper sofa\",\n                        \"queen sleeper sofa\",\n                        \"sleeper sofa mattresses\"\n                    ],\n                    \"featured\": false,\n                    \"clearance\": false,\n                    \"isFreeDelivery\": false,\n                    \"closeOut\": false,\n                    \"isNew\": false,\n                    \"storeOnly\": false,\n                    \"template\": \"sizecolor\",\n                    \"description\": \"<p>Make your guests comfortable with the Winter Park&reg; sofa sleeper mattress from Denver Mattress&reg;.</p>\\r\",\n                    \"additionalInfo\": \"<p>Twin Sofa Sleeper 36\\\" x 72\\\"<br />\\r\\nQueen Sofa Sleeper 60\\\" x 72\\\"<br />\\r\\n10 Year Non-Prorated Warranty</p>\",\n                    \"constructionInfo\": \"<p>\\r\\n<u>Quilt Layers</u>:<br> \\r\\n\\r\\nDouble Knit Ticking<br> \\r\\n\\r\\n1 1/2\\\" EF ECOBLEND<sup>&reg;</sup><br> \\r\\n\\r\\nNatural Rayon Fire Barrier<br> \\r\\n\\r\\n<u>Comfort Layers</u>:<br> \\r\\n\\r\\n1/2\\\" of 1.25lb Density EF Foam<br> \\r\\n\\r\\n1 Fiber Pad<br> \\r\\n\\r\\n<u>Support System</u>: <br> \\r\\n\\r\\nCoil Density: 345 Bonnell Coils<br> \\r\\n\\r\\n13.5 Gauge Twice Tempered Steel<br> \\r\\n\\r\\n<br>\\r\\n\\r\\n*ALL coil counts are based on Queen Size mattress coil counts.  Please ask your salesperson for details.\\r\\n</p>\",\n                    \"tagline\": \"Finally, a Sofa Sleeper Mattress that is Actually Comfortable\",\n                    \"comfortRating\": \"Medium\",\n                    \"productGroup\": \"Winter Park Sofa Sleeper Group\",\n                    \"features\": [\n                        \"Sleeper Sofa Mattress\"\n                    ]\n                },\n                \"productItems\": [\n                    {\n                        \"skuId\": \"SL-DMWIFMQ\",\n                        \"name\": \"Winter Park Queen Sofa Sleeper Mattress\",\n                        \"brandName\": \"Winter Park Firm\",\n                        \"dynamicProperties\": {\n                            \"nativeSkuId\": \"sku472045\",\n                            \"materials\": [],\n                            \"foundationIds\": [],\n                            \"size\": {\n                                \"shortName\": \"Queen\",\n                                \"name\": \"Specialty Size\"\n                            },\n                            \"feedHighSkuPrice\": 0,\n                            \"mattressOfferingType\": \"Mattress Only\"\n                        },\n                        \"dimensions\": {\n                            \"width\": 60,\n                            \"length\": 72,\n                            \"height\": 5.5,\n                            \"unit\": \"in\"\n                        },\n                        \"weight\": {\n                            \"value\": 50,\n                            \"unit\": \"lb\"\n                        },\n                        \"numPieces\": 1,\n                        \"shippingPackages\": [\n                            {\n                                \"dimensions\": {\n                                    \"width\": 60,\n                                    \"length\": 72,\n                                    \"height\": 5.5,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 50,\n                                    \"unit\": \"lb\"\n                                }\n                            }\n                        ],\n                        \"purchasable\": true\n                    }\n                ],\n                \"relatedIds\": [\n                    \"prod830013\",\n                    \"prod300003\"\n                ],\n                \"shippingMethodIds\": [\n                    \"3956b34b-bdef-4ceb-a994-96012e9c9553\",\n                    \"3956b34b-bdef-4ceb-a994-96012e9c9551\"\n                ],\n                \"activationDate\": \"2009-07-01T00:00:00Z\",\n                \"taxCode\": \"P0000000\",\n                \"ignoreInventory\": false,\n                \"hidden\": false,\n                \"version\": 4,\n                \"seo\": {\n                    \"pageTitle\": \"Winter Park Sofa Sleeper Mattress | Denver Mattress\",\n                    \"description\": \"Winter Park Mattress Group. Firm support at an affordable price.  \",\n                    \"metaKeywords\": []\n                }\n            },\n            \"shipmentId\": \"d2f34878-de7d-48a9-bcd8-cfc71c7a438e\"\n        }\n    ],\n    \"locationId\": \"1400004\",\n    \"postalCode\": \"17404\",\n    \"stateOrRegion\": \"PA\",\n    \"country\": \"US\",\n    \"timeZoneOffset\": -300,\n    \"coupons\": [],\n    \"shippingCoordinates\": {\n        \"latitude\": 39.975484,\n        \"longitude\": -76.767875\n    },\n    \"shipments\": [\n        {\n            \"id\": \"977f5aa1-3913-4384-b573-81f5f6d96d76\",\n            \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9557\",\n            \"shippingMethodName\": \"FedEx Express Only\",\n            \"addressFrom\": {\n                \"street1\": \"11000 East 40th Avenue\",\n                \"street2\": \"\",\n                \"city\": \"Denver\",\n                \"stateOrRegion\": \"CO\",\n                \"country\": \"US\",\n                \"postalCode\": \"80216\",\n                \"poBox\": false,\n                \"businessName\": \"Denver Mattress Warehouse Accessories\",\n                \"phoneNumber\": \"18663724642\"\n            },\n            \"locationFromId\": \"w910000\",\n            \"rateServiceCode\": \"fedex_express_saver\",\n            \"rateVariants\": [\n                {\n                    \"rateId\": \"se-11595542\",\n                    \"carrierId\": \"se-95909\",\n                    \"pricing\": {\n                        \"shipping\": 108.7,\n                        \"insurance\": 0,\n                        \"confirmation\": 0,\n                        \"other\": 7.88\n                    },\n                    \"deliveryDays\": 2,\n                    \"estimatedDeliveryDate\": \"2019-09-04T15:00:00Z\",\n                    \"carrierDeliveryDates\": \"Wednesday 9/4 by 03:00 PM\",\n                    \"shipDate\": \"2019-09-02T00:00:00Z\",\n                    \"serviceType\": \"FedEx Standard Overnight®\",\n                    \"serviceCode\": \"fedex_standard_overnight\",\n                    \"carrierCode\": \"fedex\"\n                },\n                {\n                    \"rateId\": \"se-11595544\",\n                    \"carrierId\": \"se-95909\",\n                    \"pricing\": {\n                        \"shipping\": 48.48,\n                        \"insurance\": 0,\n                        \"confirmation\": 0,\n                        \"other\": 3.52\n                    },\n                    \"deliveryDays\": 3,\n                    \"estimatedDeliveryDate\": \"2019-09-05T16:30:00Z\",\n                    \"carrierDeliveryDates\": \"Thursday 9/5 by 04:30 PM\",\n                    \"shipDate\": \"2019-09-02T00:00:00Z\",\n                    \"serviceType\": \"FedEx 2Day®\",\n                    \"serviceCode\": \"fedex_2day\",\n                    \"carrierCode\": \"fedex\"\n                },\n                {\n                    \"rateId\": \"se-11595545\",\n                    \"carrierId\": \"se-95909\",\n                    \"pricing\": {\n                        \"shipping\": 36.36,\n                        \"insurance\": 0,\n                        \"confirmation\": 0,\n                        \"other\": 2.64\n                    },\n                    \"deliveryDays\": 4,\n                    \"estimatedDeliveryDate\": \"2019-09-06T16:30:00Z\",\n                    \"carrierDeliveryDates\": \"Friday 9/6 by 04:30 PM\",\n                    \"shipDate\": \"2019-09-02T00:00:00Z\",\n                    \"serviceType\": \"FedEx Express Saver®\",\n                    \"serviceCode\": \"fedex_express_saver\",\n                    \"carrierCode\": \"fedex\"\n                }\n            ],\n            \"packages\": [\n                {\n                    \"weight\": {\n                        \"value\": 1,\n                        \"unit\": \"lb\"\n                    },\n                    \"dimensions\": {\n                        \"width\": 1,\n                        \"length\": 1,\n                        \"height\": 1,\n                        \"unit\": \"in\"\n                    }\n                },\n                {\n                    \"weight\": {\n                        \"value\": 1,\n                        \"unit\": \"lb\"\n                    },\n                    \"dimensions\": {\n                        \"width\": 1,\n                        \"length\": 1,\n                        \"height\": 1,\n                        \"unit\": \"in\"\n                    }\n                }\n            ],\n            \"pricing\": {\n                \"basePrice\": 39,\n                \"promotionPriceAdjustments\": [],\n                \"taxPriceAdjustment\": {\n                    \"taxCode\": \"FR010100\",\n                    \"value\": 2.34\n                }\n            }\n        },\n        {\n            \"id\": \"d2f34878-de7d-48a9-bcd8-cfc71c7a438e\",\n            \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9553\",\n            \"shippingMethodName\": \"DMC Delivery\",\n            \"addressFrom\": {\n                \"street1\": \"1785 Rodney Rd\",\n                \"street2\": \"\",\n                \"city\": \"York\",\n                \"stateOrRegion\": \"PA\",\n                \"country\": \"US\",\n                \"postalCode\": \"17404\",\n                \"poBox\": false,\n                \"businessName\": \"522-DMC\",\n                \"phoneNumber\": \"7178010614\"\n            },\n            \"locationFromId\": \"1400004\",\n            \"shippingToDistance\": {\n                \"value\": 0,\n                \"unit\": \"mi\"\n            },\n            \"rateServiceCode\": \"dmc_delivery_premium\",\n            \"rateVariants\": [\n                {\n                    \"rateId\": \"dmc_delivery_premium\",\n                    \"carrierId\": \"dmc_delivery_carrier\",\n                    \"pricing\": {\n                        \"shipping\": 65\n                    },\n                    \"carrierDeliveryDates\": \"Estimated Delivery Date - 2-3 weeks\",\n                    \"serviceType\": \"DMC Local Delivery Premium\",\n                    \"serviceCode\": \"dmc_delivery_premium\",\n                    \"carrierCode\": \"dmc_delivery_carrier\"\n                }\n            ],\n            \"packages\": [\n                {\n                    \"weight\": {\n                        \"value\": 50,\n                        \"unit\": \"lb\"\n                    },\n                    \"dimensions\": {\n                        \"width\": 60,\n                        \"length\": 72,\n                        \"height\": 5.5,\n                        \"unit\": \"in\"\n                    }\n                },\n                {\n                    \"weight\": {\n                        \"value\": 50,\n                        \"unit\": \"lb\"\n                    },\n                    \"dimensions\": {\n                        \"width\": 60,\n                        \"length\": 72,\n                        \"height\": 5.5,\n                        \"unit\": \"in\"\n                    }\n                }\n            ],\n            \"pricing\": {\n                \"basePrice\": 65,\n                \"promotionPriceAdjustments\": [],\n                \"taxPriceAdjustment\": {\n                    \"taxCode\": \"FR010100\",\n                    \"value\": 3.9\n                }\n            }\n        }\n    ],\n    \"pricing\": {\n        \"promotionPriceAdjustments\": [\n            {\n                \"id\": \"639273a0-7060-4814-9e4e-f689d9f28298\",\n                \"value\": -200,\n                \"description\": \"Buy more save more promotion\"\n            }\n        ],\n        \"totalItemsPrice\": 2499.98,\n        \"totalItemsBasePrice\": 2499.98,\n        \"totalShippingPrice\": 104,\n        \"totalShippingBasePrice\": 104,\n        \"totalFee\": 0,\n        \"totalTax\": 36.24,\n        \"totalShippingPromotion\": 0,\n        \"totalItemCartPromotion\": -200,\n        \"totalPromotion\": -200,\n        \"totalPrice\": 2440.22,\n        \"totalPreTaxPrice\": 2403.98\n    },\n    \"payments\": [],\n    \"tax\": {\n        \"transactionCode\": \"f4950d5d-20b6-40e1-8f90-d42935ba92ce\",\n        \"state\": \"New\"\n    },\n    \"errors\": [\n        {\n            \"transactionId\": \"a6c7ee4b-ee5b-450a-9316-f95f1937870c\",\n            \"level\": \"WARN\",\n            \"code\": \"shipping-method-rates\",\n            \"message\": \"Shipengine rates calculated without shippingAddress\"\n        }\n    ]\n}"}],"_postman_id":"2d263039-d504-44fc-a94e-28cfc1cefd25"},{"name":"Get cart by id","id":"7fc3fb52-ba83-4086-9303-8aa9588a62c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"url":"{{api_host}}/v1/cart/profile/cart/:id","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: cartId - ID of the cart\nbody: empty\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Cart\nFailure\n    Cart not found: 404 NOT FOUND - COR-001\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre><h2 id=\"cart\">Cart</h2>\n<h2 id=\"cart-1\">Cart</h2>\n<p>Cart object represents single shopping cart/order.  </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CartId</td>\n<td>Y</td>\n<td>CartId is UUID</td>\n</tr>\n<tr>\n<td>customerId</td>\n<td>CustomerId</td>\n<td>Y</td>\n<td>CustomerId is UUID</td>\n</tr>\n<tr>\n<td>state</td>\n<td>State</td>\n<td>Y</td>\n<td>default New</td>\n</tr>\n<tr>\n<td>locationId</td>\n<td>LocationId</td>\n<td>N</td>\n<td>id of location</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>N</td>\n<td>postal code</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>N</td>\n<td>country</td>\n</tr>\n<tr>\n<td>timeZoneOffset</td>\n<td>Int</td>\n<td>N</td>\n<td>time zone offset - minutes</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>Currency</td>\n<td>N</td>\n<td>currency - default USD</td>\n</tr>\n<tr>\n<td>distanceUnit</td>\n<td>DistanceUnit</td>\n<td>N</td>\n<td>distance unit - enumertion (mi, km)</td>\n</tr>\n<tr>\n<td>items</td>\n<td>Array of CartItem</td>\n<td>Y</td>\n<td>cart items</td>\n</tr>\n<tr>\n<td>shipments</td>\n<td>Array of CartShipment</td>\n<td>Y</td>\n<td>cart shipments/shipping groups</td>\n</tr>\n<tr>\n<td>coupons</td>\n<td>Array of CartCoupon</td>\n<td>Y</td>\n<td>cart coupons</td>\n</tr>\n<tr>\n<td>pricing</td>\n<td>CartPricing</td>\n<td>Y</td>\n<td>calculated price</td>\n</tr>\n<tr>\n<td>shippingCoordinates</td>\n<td>Coordinates</td>\n<td>N</td>\n<td>Coordinates</td>\n</tr>\n<tr>\n<td>shippingAddress</td>\n<td>Address</td>\n<td>N</td>\n<td>Shipping address - required from \"some\" state</td>\n</tr>\n<tr>\n<td>billingAddress</td>\n<td>Address</td>\n<td>N</td>\n<td>Billing address</td>\n</tr>\n<tr>\n<td>payments</td>\n<td>Payments</td>\n<td>N</td>\n<td>Payments - required from \"some\" state</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"cartitem\">CartItem</h2>\n<p>CartItem represents a single entry in cart. CartItem can be </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CartItemId</td>\n<td>Y</td>\n<td>CartItemId is UUID</td>\n</tr>\n<tr>\n<td>catalogItemId</td>\n<td>CatalogItemId</td>\n<td>Y</td>\n<td>the id of catalog item</td>\n</tr>\n<tr>\n<td>productItemSkuId</td>\n<td>SkuItemId</td>\n<td>N</td>\n<td>the skuId - if catalog item has type product</td>\n</tr>\n<tr>\n<td>bundleItems</td>\n<td>Array of BundleItem</td>\n<td>N</td>\n<td>catalog sku items - if catalog item has type bundle</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Int</td>\n<td>Y</td>\n<td>number of items</td>\n</tr>\n<tr>\n<td>pricing</td>\n<td>CartItemPricing</td>\n<td>Y</td>\n<td>calculated price</td>\n</tr>\n<tr>\n<td>catalogItem</td>\n<td>CatalogItem</td>\n<td>N</td>\n<td>catalog item time snapshot, added when cart frozen1)</td>\n</tr>\n<tr>\n<td>promotionId</td>\n<td>PromotionId</td>\n<td>N</td>\n<td>reference to promotion - if cart item was created by promotion</td>\n</tr>\n<tr>\n<td>shipmentId</td>\n<td>CartShipmentId</td>\n<td>N</td>\n<td>reference shipment/shipping group</td>\n</tr>\n<tr>\n<td>1 Frozen cart is cart in a state that prohibit changes in content of cart</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"cartshipment\">CartShipment</h2>\n<p>CartShipment represents a single shipping group in cart. CartItem can be </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CartShipmentId</td>\n<td>Y</td>\n<td>CartItemId is UUID</td>\n</tr>\n<tr>\n<td>shippingMethodId</td>\n<td>ShippingMethodId</td>\n<td>Y</td>\n<td>the id of shipping method</td>\n</tr>\n<tr>\n<td>shippingMethodName</td>\n<td>String</td>\n<td>N</td>\n<td>the name of shipping method</td>\n</tr>\n<tr>\n<td>addressFrom</td>\n<td>Address</td>\n<td>N</td>\n<td>source address (warehouse)</td>\n</tr>\n<tr>\n<td>locationFromId</td>\n<td>LocationId</td>\n<td>N</td>\n<td>source location (warehouse)</td>\n</tr>\n<tr>\n<td>addressTo</td>\n<td>Address</td>\n<td>N</td>\n<td>destination address (shipping address/location address - store)</td>\n</tr>\n<tr>\n<td>locationToId</td>\n<td>LocationId</td>\n<td>N</td>\n<td>destination location (store)</td>\n</tr>\n<tr>\n<td>rate</td>\n<td>ShippingRate</td>\n<td>N</td>\n<td>selected shipping rate</td>\n</tr>\n<tr>\n<td>rateVariants</td>\n<td>Array of ShippingRate</td>\n<td>N</td>\n<td>rates variants</td>\n</tr>\n<tr>\n<td>packages</td>\n<td>Array of ShippingPackage</td>\n<td>N</td>\n<td>packages</td>\n</tr>\n<tr>\n<td>pricing</td>\n<td>CartShipmentPricing</td>\n<td>Y</td>\n<td>calculated price</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"bundleitem\">BundleItem</h3>\n<p>bundle item</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CatalogItemId</td>\n<td>Y</td>\n<td>the id of catalog item</td>\n</tr>\n<tr>\n<td>skuId</td>\n<td>SkuItemId</td>\n<td>Y</td>\n<td>the skuId</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"shippingrate\">ShippingRate</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>rateId</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>carrierId</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>pricing</td>\n<td>ShippingRatePricing</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>packageType</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>deliveryDays</td>\n<td>Int</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>estimatedDeliveryDate</td>\n<td>Timestamp</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>carrierDeliveryDates</td>\n<td>String</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>shipDate</td>\n<td>Timestamp</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>serviceType</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>serviceCode</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>carrierCode</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"shippingratepricing\">ShippingRatePricing</h3>\n<p>pricing for shipping rate</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>shipping</td>\n<td>BigDecimal</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>insurance</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>confirmation</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>other</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"shippingpackage\">ShippingPackage</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>packageCode</td>\n<td>String</td>\n<td>N</td>\n<td>package code</td>\n</tr>\n<tr>\n<td>weight</td>\n<td>Weight</td>\n<td>Y</td>\n<td>weight</td>\n</tr>\n<tr>\n<td>dimensions</td>\n<td>Dimensions</td>\n<td>N</td>\n<td>dimensions</td>\n</tr>\n<tr>\n<td>insuredValue</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>insured value</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"cartitempricing\">CartItemPricing</h3>\n<p>cart item pricing</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>basePrice</td>\n<td>BasePrice</td>\n<td>N</td>\n<td>base price for catalog item - quantity 1</td>\n</tr>\n<tr>\n<td>promotionPriceAdjustments</td>\n<td>Array of PromotionPriceAdjustment</td>\n<td>N</td>\n<td>promotion price adjustments</td>\n</tr>\n<tr>\n<td>feePriceAdjustments</td>\n<td>Array of FeePriceAdjustment</td>\n<td>N</td>\n<td>fee price adjustments</td>\n</tr>\n<tr>\n<td>taxPriceAdjustment</td>\n<td>TaxPriceAdjustment</td>\n<td>N</td>\n<td>tax price adjustments</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"cartshipmentpricing\">CartShipmentPricing</h3>\n<p>cart shipment/shipping group pricing</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>basePrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>base price for shipping</td>\n</tr>\n<tr>\n<td>promotionPriceAdjustments</td>\n<td>Array of PromotionPriceAdjustment</td>\n<td>N</td>\n<td>promotion price adjustments</td>\n</tr>\n<tr>\n<td>taxPriceAdjustment</td>\n<td>TaxPriceAdjustment</td>\n<td>N</td>\n<td>tax price adjustments</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"cartpricing\">CartPricing</h3>\n<p>cart summary pricing</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>totalItemsPrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all cart items base prices with adjustments fees, promotions but without taxes - merchandiseTotal</td>\n</tr>\n<tr>\n<td>totalItemsBasePrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all cart items base prices</td>\n</tr>\n<tr>\n<td>totalShippingPrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all cart shipments prices with including promotions fees, excluding taxes</td>\n</tr>\n<tr>\n<td>totalShippingBasePrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all cart shipments base prices</td>\n</tr>\n<tr>\n<td>totalTax</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all taxes, calculated by backend</td>\n</tr>\n<tr>\n<td>totalFee</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all fees, calculated by backend</td>\n</tr>\n<tr>\n<td>totalShippingPromotion</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of shipping promotion adjustments</td>\n</tr>\n<tr>\n<td>totalItemCartPromotion</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all item and cart level promotion adjustments</td>\n</tr>\n<tr>\n<td>totalPromotion</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>sum of all promotion adjustments</td>\n</tr>\n<tr>\n<td>totalPrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>final price including taxes</td>\n</tr>\n<tr>\n<td>totalPreTaxPrice</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>final price without taxes</td>\n</tr>\n<tr>\n<td>promotionPriceAdjustments</td>\n<td>Array of PromotionPriceAdjustment</td>\n<td>N</td>\n<td>promotion price adjustments</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"baseprice\">BasePrice</h3>\n<p>base asset price</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price</td>\n<td>BigDecimal</td>\n<td>Y</td>\n<td>price calculated for asset</td>\n</tr>\n<tr>\n<td>zone</td>\n<td>String</td>\n<td>Y</td>\n<td>zone</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Enum</td>\n<td>Y</td>\n<td>(list, sale, msrp)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"promotionpriceadjustment\">PromotionPriceAdjustment</h3>\n<p>promotion pricing adjustment (promotion-svc)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>PromotionId</td>\n<td>Y</td>\n<td>reference to promotion</td>\n</tr>\n<tr>\n<td>value</td>\n<td>BigDecimal</td>\n<td>Y</td>\n<td>price calculated for promotion</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>N</td>\n<td>description</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"feepriceadjustment\">FeePriceAdjustment</h3>\n<p>fee pricing adjustment</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>FeeId</td>\n<td>Y</td>\n<td>reference to promotion</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Y</td>\n<td>name of fee</td>\n</tr>\n<tr>\n<td>baseValue</td>\n<td>BigDecimal</td>\n<td>Y</td>\n<td>base price calculated for fee</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Int</td>\n<td>Y</td>\n<td>quantity for fee</td>\n</tr>\n<tr>\n<td>value</td>\n<td>BigDecimal</td>\n<td>Y</td>\n<td>price calculated for fee</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>N</td>\n<td>description</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"taxpriceadjustment\">TaxPriceAdjustment</h3>\n<p>tax pricing adjustment</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>taxCode</td>\n<td>String</td>\n<td>Y</td>\n<td>tax code</td>\n</tr>\n<tr>\n<td>taxRate</td>\n<td>BigDecimal</td>\n<td>N</td>\n<td>tax rate  ????</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","cart","profile","cart",":id"],"host":["{{api_host}}"],"query":[],"variable":[{"type":"string","value":"{{cart_id}}","key":"id"}]}},"response":[],"_postman_id":"7fc3fb52-ba83-4086-9303-8aa9588a62c3"},{"name":"Remove item","id":"73db3fcb-def2-4d7f-aa5f-bd8092e8894b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"url":"{{api_host}}/v1/cart/profile/cart/items/:itemId","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: itemid - ID of the cart item\nbody: empty\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Cart\nFailure\n    Cart not found: 404 NOT FOUND - COR-001\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","cart","profile","cart","items",":itemId"],"host":["{{api_host}}"],"query":[],"variable":[{"type":"string","value":"ddc4c66b-62b1-4a39-8511-b8cfa63abe67","key":"itemId"}]}},"response":[{"id":"7a71b09b-e1b5-4d75-9e4d-82a1bb5e3b39","name":"Remove item","originalRequest":{"method":"DELETE","header":[{"key":"X-Upstart-Tenant","value":"denvermattress","type":"text"}],"url":"{{api_host}}/v1/cart/profile/cart/items/b792e1a2-9df3-49b9-aecb-92e207660fa4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 17:56:30 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"}],"cookie":[],"responseTime":null,"body":"\"11e7cb8b-591e-4111-b7ef-4a59b42991c0\""}],"_postman_id":"73db3fcb-def2-4d7f-aa5f-bd8092e8894b"},{"name":"Empty cart","id":"83d4bea3-c5a2-4987-a70f-98a00c255e19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"url":"{{api_host}}/v1/cart/profile/cart","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none\nbody: empty\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId\nFailure:\n    Carts don't exist: 400 BAD REQUEST - COR-002\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","cart","profile","cart"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"e02895f1-248f-481a-bb8e-061ebe58050c","name":"Empty cart","originalRequest":{"method":"DELETE","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"}],"url":"{{api_host}}/v1/cart/profile/cart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 17:53:40 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"}],"cookie":[],"responseTime":null,"body":"\"11e7cb8b-591e-4111-b7ef-4a59b42991c0\""}],"_postman_id":"83d4bea3-c5a2-4987-a70f-98a00c255e19"},{"name":"Search customer carts","id":"3599c86f-b95c-4e10-8538-282cfdf2e253","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"page\": 0,\n\t\"pageSize\": 10\n}"},"url":"{{api_host}}/v1/cart/profile/search","description":"<p><strong>required roles</strong> : customer.default,customer.anonymous</p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header Name</strong></th>\n<th><strong>Header Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n<tr>\n<td>X-UpStart-Tenant</td>\n<td>upstartcommerce</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Bearer ...</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"request\">Request</h1>\n<h3 id=\"post-body\">Post body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>query</td>\n<td>String</td>\n<td>false</td>\n<td>fulltext query</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>Term</td>\n<td>false</td>\n<td>term structure described later</td>\n</tr>\n<tr>\n<td>page</td>\n<td>Int</td>\n<td>true</td>\n<td>actual requested page</td>\n</tr>\n<tr>\n<td>pageSize</td>\n<td>Int</td>\n<td>true</td>\n<td>number of elements per page</td>\n</tr>\n<tr>\n<td>orders</td>\n<td>Order[]</td>\n<td>true</td>\n<td>array of role definitions</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"term\">Term</h4>\n<p>recursive structure describing boolean algebra:</p>\n<ul>\n<li>Not operator:  Not(term: Term)  </li>\n<li>And operator: And(terms: Array of Term)</li>\n<li>Or operator: Or(terms: Array of Term)</li>\n<li>Condition: Condition(property, comparator,  value)<ul>\n<li>property - name of property</li>\n<li>operator - gt, gte, lt, lte, eq, ne, like operators</li>\n<li>value - value compared</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"order\">Order</h4>\n<p>description of ordering.\nOrder is structure having \n    * property - name of property \n    * asc - boolean represents direction of order   </p>\n<h1 id=\"response\">Response</h1>\n<p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - Catalog item types search result\nFailure\n    Validation error: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre>","urlObject":{"path":["v1","cart","profile","search"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"05eb4d0e-cd44-45a4-a442-9586540887bd","name":"Search customer carts","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","value":"denvermattress"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"page\": 0,\n\t\"pageSize\": 10\n}"},"url":"{{api_host}}/v1/cart/profile/search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 17:50:09 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"15896"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"id\": \"11e7cb8b-591e-4111-b7ef-4a59b42991c0\",\n            \"customerId\": \"1472137b-b85f-4d09-861b-bd4b6665b675\",\n            \"state\": \"New\",\n            \"currency\": \"USD\",\n            \"distanceUnit\": \"mi\",\n            \"items\": [\n                {\n                    \"id\": \"cb933746-f02f-4b93-a690-7bb1adb99f57\",\n                    \"catalogItemId\": \"prod2490716\",\n                    \"productItemSkuId\": \"SH-MA6ASCK\",\n                    \"quantity\": 1,\n                    \"pricing\": {\n                        \"basePrice\": {\n                            \"type\": \"list\",\n                            \"zone\": \"NTL\",\n                            \"price\": 109.99\n                        },\n                        \"promotionPriceAdjustments\": []\n                    },\n                    \"catalogItem\": {\n                        \"id\": \"prod2490716\",\n                        \"typeId\": \"3956b34b-bdef-4ceb-a994-96012e9c9508\",\n                        \"type\": \"product\",\n                        \"name\": \"Malouf 600 TC Cotton Blend Sheets\",\n                        \"brandName\": \"Denver Mattress\",\n                        \"tags\": [\n                            \"Sheets & Pillowcases\"\n                        ],\n                        \"dynamicProperties\": {\n                            \"sites\": [\n                                \"site_dmc_001\"\n                            ],\n                            \"shopByBrands\": [],\n                            \"shopByCategories\": [\n                                \"sheets\"\n                            ],\n                            \"mattressTypes\": [],\n                            \"categoryBreadcrumbs\": [\n                                \"DMC > Accessories >   Sheets & Pillowcases\"\n                            ],\n                            \"keywords\": [\n                                \"Deep Pocket Sheets\",\n                                \"Sheets\",\n                                \"600\",\n                                \"Thread Count\"\n                            ],\n                            \"featured\": false,\n                            \"clearance\": false,\n                            \"isFreeDelivery\": true,\n                            \"closeOut\": false,\n                            \"isNew\": false,\n                            \"storeOnly\": false,\n                            \"template\": \"sizecolor\",\n                            \"description\": \"<p>Pick a side. The Malouf 600 thread count cotton blend sheets give you the best of both worlds in a cotton sheet set. Two-sided weave design gives you a soft, cotton side for natural softness and breathability; turn the sheets over to the polyester side for wrinkle-resistant bed sheets. Rest assured that these deep pocket sheets fit mattresses ranging from 6&quot; - 18&quot;  deep. Universal Fit&reg; design incorporates thick elastic for a smooth and secure fit night after night.</p><p>Choose the style that fits you best. Malouf 600 thread count sheets sets are available in twin xl, twin, full, queen, king, and cal. king sizes. Fill your linen closet with all four colors to match your luxury bedding: white, ivory, driftwood, and ash.</p>\",\n                            \"constructionInfo\": \"<ul>\\r<li>600 Thread Count Cotton Blend</li>\\r<li>Two-sided weave design creates a soft cotton side and a wrinkle-resistant polyester side</li>\\r<li>Deep pockets for mattress depths 6 - 18\\\"</li>\\r<li>Universal Fit<sup>&reg;</sup> design with thick elastic for a smooth and secure fit</li>\\r</ul>\",\n                            \"tagline\": \"Dual-Purpose Cotton Blend Luxury Bedding\",\n                            \"itemType\": \"Sheets\",\n                            \"dmcMaterial\": \"Polyester\",\n                            \"feature\": \"Wrinkle Resistant\",\n                            \"productGroup\": \"Malouf 600 Thread Count Cotton Blend Sheets Group\",\n                            \"benefits\": [\n                                \"Machine Washable\"\n                            ]\n                        },\n                        \"productItems\": [\n                            {\n                                \"skuId\": \"SH-MA6ASCK\",\n                                \"name\": \"Malouf 600 TC Ash Cal King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710893\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Cal King\",\n                                        \"name\": \"California King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ash\",\n                                        \"group\": \"Grey\",\n                                        \"swatch\": \"Grey Vero Beach\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6ASF\",\n                                \"name\": \"Malouf 600 TC Ash Full Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710894\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Full\",\n                                        \"name\": \"Full\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ash\",\n                                        \"group\": \"Grey\",\n                                        \"swatch\": \"Grey Vero Beach\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6ASK\",\n                                \"name\": \"Malouf 600 TC Ash King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710901\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"King\",\n                                        \"name\": \"King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ash\",\n                                        \"group\": \"Grey\",\n                                        \"swatch\": \"Grey Vero Beach\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6ASQ\",\n                                \"name\": \"Malouf 600 TC Ash Queen Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710881\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Queen\",\n                                        \"name\": \"Queen\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ash\",\n                                        \"group\": \"Grey\",\n                                        \"swatch\": \"Grey Vero Beach\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6AST\",\n                                \"name\": \"Malouf 600 TC Ash Twin Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710886\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Twin\",\n                                        \"name\": \"Twin\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ash\",\n                                        \"group\": \"Grey\",\n                                        \"swatch\": \"Grey Vero Beach\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6ASTX\",\n                                \"name\": \"Malouf 600 TC Ash Twin XL Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710902\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Twin XL\",\n                                        \"name\": \"Twin Extra Long\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ash\",\n                                        \"group\": \"Grey\",\n                                        \"swatch\": \"Grey Vero Beach\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6BIVT\",\n                                \"name\": \"Malouf 600 TC Ivory Twin Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710888\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Twin\",\n                                        \"name\": \"Twin\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ivory\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"Ivory_MidtownIvory\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6BWHCK\",\n                                \"name\": \"Malouf 600 TC White Cal King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710899\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Cal King\",\n                                        \"name\": \"California King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"White\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"DreamFit - Snowflake\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6BWHF\",\n                                \"name\": \"Malouf 600 TC White Full Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710900\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Full\",\n                                        \"name\": \"Full\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"White\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"DreamFit - Snowflake\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6BWHK\",\n                                \"name\": \"Malouf 600 TC White King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710907\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"King\",\n                                        \"name\": \"King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"White\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"DreamFit - Snowflake\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6BWHQ\",\n                                \"name\": \"Malouf 600 TC White Queen Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710879\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Queen\",\n                                        \"name\": \"Queen\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"White\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"DreamFit - Snowflake\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6BWHT\",\n                                \"name\": \"Malouf 600 TC White Twin Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710889\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Twin\",\n                                        \"name\": \"Twin\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"White\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"DreamFit - Snowflake\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6BWHTX\",\n                                \"name\": \"Malouf 600 TC White Twin XL Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710908\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Twin XL\",\n                                        \"name\": \"Twin Extra Long\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"White\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"DreamFit - Snowflake\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6DRCK\",\n                                \"name\": \"Malouf 600 TC Driftwood Cal King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710895\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Cal King\",\n                                        \"name\": \"California King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Driftwood\",\n                                        \"group\": \"Light Brown\",\n                                        \"swatch\": \"Brown_DreamFitPreferred\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6DRF\",\n                                \"name\": \"Malouf 600 TC Driftwood Full Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710896\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Full\",\n                                        \"name\": \"Full\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Driftwood\",\n                                        \"group\": \"Light Brown\",\n                                        \"swatch\": \"Brown_DreamFitPreferred\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6DRK\",\n                                \"name\": \"Malouf 600 TC Driftwood King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710903\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"King\",\n                                        \"name\": \"King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Driftwood\",\n                                        \"group\": \"Light Brown\",\n                                        \"swatch\": \"Brown_DreamFitPreferred\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6DRQ\",\n                                \"name\": \"Malouf 600 TC Driftwood Queen Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710880\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Queen\",\n                                        \"name\": \"Queen\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Driftwood\",\n                                        \"group\": \"Light Brown\",\n                                        \"swatch\": \"Brown_DreamFitPreferred\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6DRT\",\n                                \"name\": \"Malouf 600 TC Driftwood Twin Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710887\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Twin\",\n                                        \"name\": \"Twin\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Driftwood\",\n                                        \"group\": \"Light Brown\",\n                                        \"swatch\": \"Brown_DreamFitPreferred\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6DRTX\",\n                                \"name\": \"Malouf 600 TC Driftwood Twin XL Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710904\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Twin XL\",\n                                        \"name\": \"Twin Extra Long\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Driftwood\",\n                                        \"group\": \"Light Brown\",\n                                        \"swatch\": \"Brown_DreamFitPreferred\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6IVCK\",\n                                \"name\": \"Malouf 600 TC Ivory Cal King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710897\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Cal King\",\n                                        \"name\": \"California King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ivory\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"Ivory_MidtownIvory\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6IVF\",\n                                \"name\": \"Malouf 600 TC Ivory Full Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710898\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Full\",\n                                        \"name\": \"Full\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ivory\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"Ivory_MidtownIvory\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6IVK\",\n                                \"name\": \"Malouf 600 TC Ivory King Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710905\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"King\",\n                                        \"name\": \"King\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ivory\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"Ivory_MidtownIvory\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 10,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 8,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6IVQ\",\n                                \"name\": \"Malouf 600 TC Ivory Queen Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710878\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Queen\",\n                                        \"name\": \"Queen\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ivory\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"Ivory_MidtownIvory\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            },\n                            {\n                                \"skuId\": \"SH-MA6IVTX\",\n                                \"name\": \"Malouf 600 TC Ivory Twin XL Sheets\",\n                                \"brandName\": \"Malouf\",\n                                \"dynamicProperties\": {\n                                    \"nativeSkuId\": \"sku2710906\",\n                                    \"materials\": [],\n                                    \"foundationIds\": [],\n                                    \"size\": {\n                                        \"shortName\": \"Twin XL\",\n                                        \"name\": \"Twin Extra Long\"\n                                    },\n                                    \"feedHighSkuPrice\": 0,\n                                    \"color\": {\n                                        \"name\": \"Ivory\",\n                                        \"group\": \"White\",\n                                        \"swatch\": \"Ivory_MidtownIvory\"\n                                    }\n                                },\n                                \"dimensions\": {\n                                    \"width\": 12,\n                                    \"length\": 12,\n                                    \"height\": 8,\n                                    \"unit\": \"in\"\n                                },\n                                \"weight\": {\n                                    \"value\": 7,\n                                    \"unit\": \"lb\"\n                                },\n                                \"numPieces\": 1,\n                                \"shippingPackages\": [],\n                                \"purchasable\": true\n                            }\n                        ],\n                        \"relatedIds\": [],\n                        \"shippingMethodIds\": [\n                            \"3956b34b-bdef-4ceb-a994-96012e9c9558\"\n                        ],\n                        \"activationDate\": \"2017-12-04T00:00:00Z\",\n                        \"taxCode\": \"200002\",\n                        \"ignoreInventory\": false,\n                        \"version\": 0,\n                        \"seo\": {\n                            \"pageTitle\": \"600 TC Deep Pocket Sheets - Malouf | Denver Mattress\",\n                            \"metaKeywords\": []\n                        }\n                    },\n                    \"shipmentId\": \"3fcba044-bfb7-498f-b8ca-4cde114b62f2\"\n                }\n            ],\n            \"locationId\": \"700261\",\n            \"postalCode\": \"17404\",\n            \"country\": \"US\",\n            \"timeZoneOffset\": -300,\n            \"couponIds\": [],\n            \"shippingCoordinates\": {\n                \"latitude\": 42.062976,\n                \"longitude\": -80.093037\n            },\n            \"shippingAddress\": {\n                \"street1\": \"2039 Walker Lake Rd\",\n                \"street2\": \"\",\n                \"city\": \"Mansfield\",\n                \"stateOrRegion\": \"OH\",\n                \"country\": \"US\",\n                \"postalCode\": \"44903\",\n                \"poBox\": false\n            },\n            \"billingAddress\": {\n                \"street1\": \"6037 Peach St\",\n                \"street2\": \"\",\n                \"city\": \"Erie\",\n                \"stateOrRegion\": \"PA\",\n                \"country\": \"US\",\n                \"postalCode\": \"16509\",\n                \"poBox\": false\n            },\n            \"shipments\": [\n                {\n                    \"id\": \"3fcba044-bfb7-498f-b8ca-4cde114b62f2\",\n                    \"shippingMethodId\": \"3956b34b-bdef-4ceb-a994-96012e9c9558\",\n                    \"shippingMethodName\": \"FedEx Free Delivery\",\n                    \"locationFromId\": \"w910000\",\n                    \"addressTo\": {\n                        \"street1\": \"2039 Walker Lake Rd\",\n                        \"street2\": \"\",\n                        \"city\": \"Mansfield\",\n                        \"stateOrRegion\": \"OH\",\n                        \"country\": \"US\",\n                        \"postalCode\": \"44903\",\n                        \"poBox\": false\n                    },\n                    \"locationToId\": \"700261\",\n                    \"rate\": {\n                        \"rateId\": \"free_rate_id\",\n                        \"carrierId\": \"free_carrier_id\",\n                        \"pricing\": {\n                            \"shipping\": 0\n                        },\n                        \"carrierDeliveryDates\": \"Estimated delivery days 5-7 days\",\n                        \"serviceType\": \"FedEx Free\",\n                        \"serviceCode\": \"fedex_free\",\n                        \"carrierCode\": \"fedex\"\n                    },\n                    \"rateVariants\": [\n                        {\n                            \"rateId\": \"free_rate_id\",\n                            \"carrierId\": \"free_carrier_id\",\n                            \"pricing\": {\n                                \"shipping\": 0\n                            },\n                            \"carrierDeliveryDates\": \"Estimated delivery days 5-7 days\",\n                            \"serviceType\": \"FedEx Free\",\n                            \"serviceCode\": \"fedex_free\",\n                            \"carrierCode\": \"fedex\"\n                        }\n                    ],\n                    \"packages\": [],\n                    \"pricing\": {\n                        \"basePrice\": 0,\n                        \"promotionPriceAdjustments\": []\n                    }\n                }\n            ],\n            \"pricing\": {\n                \"promotionPriceAdjustments\": [],\n                \"totalItemsPrice\": 109.99,\n                \"totalShippingPrice\": 0,\n                \"totalPrice\": 109.99\n            }\n        }\n    ],\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"count\": 1,\n    \"facetCounts\": {\n        \"properties\": [\n            {\n                \"property\": \"state\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"New\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"shippingAddress.stateOrRegion\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"OH\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"shippingAddress.city\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"Mansfield\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"billingAddress.country\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"US\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"shippingAddress.country\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"US\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"billingAddress.stateOrRegion\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"PA\",\n                        \"count\": 1\n                    }\n                ]\n            },\n            {\n                \"property\": \"billingAddress.city\",\n                \"propertyType\": \"STRING\",\n                \"counts\": [\n                    {\n                        \"value\": \"Erie\",\n                        \"count\": 1\n                    }\n                ]\n            }\n        ],\n        \"ranges\": []\n    }\n}"}],"_postman_id":"3599c86f-b95c-4e10-8538-282cfdf2e253"},{"name":"Update shipment rate","id":"6aefa65f-1dd2-4a25-957e-5b0913b35a68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"\"dmc_pilot_whiteGlovePlus\""},"url":"{{api_host}}/v1/cart/profile/cart/shipments/:shipmentId/rate","description":"<p>Update a shipping rate for a cart shipment based on service code</p>\n<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous/service.operator/operator.default\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables:\n    shipmentId: UUId - ID of the shipment\nbody: \n    serviceCode: String - service code of the new rate\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId\nFailure:\n    401 UNAUTHORIZED - unauthorized\n</code></pre>","urlObject":{"path":["v1","cart","profile","cart","shipments",":shipmentId","rate"],"host":["{{api_host}}"],"query":[],"variable":[{"type":"string","value":"f15adcac-c2d0-4523-bd5b-ac7ae1451ffb","key":"shipmentId"}]}},"response":[{"id":"0eb262da-ddde-41fc-8f1f-d45a429674a1","name":"Unauthorized","originalRequest":{"method":"PATCH","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\"fedex_free\""},"url":{"raw":"{{api_host}}/v1/cart/profile/cart/shipments/:shipmentId/rate","host":["{{api_host}}"],"path":["v1","cart","profile","cart","shipments",":shipmentId","rate"],"variable":[{"key":"shipmentId","value":""}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"62d8200d-1aee-4880-9361-d8988f148623","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\"fedex_free\""},"url":{"raw":"{{api_host}}/v1/cart/profile/cart/shipments/:shipmentId/rate","host":["{{api_host}}"],"path":["v1","cart","profile","cart","shipments",":shipmentId","rate"],"variable":[{"key":"shipmentId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"\"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bb\""}],"_postman_id":"6aefa65f-1dd2-4a25-957e-5b0913b35a68"},{"name":"Update cart shipping method","id":"5d79bd23-6963-4852-8189-5828a28f4beb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"\"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bb\""},"url":"{{api_host}}/v1/cart/profile/cart/shippingmethod","description":"<p>Update shipping method for every item in cart where supported</p>\n<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous/service.operator/operator.default\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none\nbody: \n    shippingMethodId: String - ID of the new shipping method\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId\nFailure:\n    401 UNAUTHORIZED - unauthorized\n    400 BAD REQUEST - validation error\n</code></pre>","urlObject":{"path":["v1","cart","profile","cart","shippingmethod"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"29b2b746-3277-4ec2-9166-d1a32a8bce79","name":"Unauthorized","originalRequest":{"method":"PATCH","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bb\""},"url":"{{api_host}}/v1/cart/profile/cart/shippingmethod"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"2c5749bd-e9d5-40c7-8201-4f71f4a3abcf","name":"Validation error","originalRequest":{"method":"PATCH","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bb\""},"url":"{{api_host}}/v1/cart/profile/cart/shippingmethod"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"shippingMethodId\",\n            \"errors\": [\n                {\n                    \"id\": \"supported\",\n                    \"message\": \"Shipping method 94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bc not supported for cart item 94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bc\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"393f9aa0-de70-42bd-8131-2314515ba09c","name":"Success","originalRequest":{"method":"PATCH","header":[],"url":"{{api_host}}/v1/cart/profile/cart/shippingmethod"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bb\",\n    \"itemIds\": [\n        \"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bc\",\n        \"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bd\"\n    ]\n}"}],"_postman_id":"5d79bd23-6963-4852-8189-5828a28f4beb"},{"name":"Update cart item shipping method","id":"289e4586-6363-46dc-ac95-e4fbe63e95f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"\"3956b34b-bdef-4ceb-a994-96012e9c9551\""},"url":"{{api_host}}/v1/cart/profile/cart/items/:itemId/shippingmethod","description":"<p>Update shipping method for cart item</p>\n<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous/service.operator/operator.default\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: \n    itemId: UUID - cart item ID\nbody: \n    shippingMethodId: String - ID of the new shipping method\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartItemUpdated\nFailure:\n    401 UNAUTHORIZED - unauthorized\n    400 BAD REQUEST - validation error\n</code></pre>","urlObject":{"path":["v1","cart","profile","cart","items",":itemId","shippingmethod"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"89bd2fed-725e-413d-8a37-06b61a273113","type":"string","value":"7df44bf7-46df-44d2-bf74-9c6086141b09","key":"itemId"}]}},"response":[{"id":"24b9873a-cce6-4bf9-a128-6129eebb864c","name":"Validation error","originalRequest":{"method":"PATCH","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"\"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bb\""},"url":{"raw":"{{api_host}}/v1/cart/profile/cart/items/:itemId/shippingmethod","host":["{{api_host}}"],"path":["v1","cart","profile","cart","items",":itemId","shippingmethod"],"variable":[{"key":"itemId","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"shippingMethodId\",\n            \"errors\": [\n                {\n                    \"id\": \"supported\",\n                    \"message\": \"Shipping method 94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bc not supported for cart item 94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bc\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"2fe386be-6a48-4d39-a29b-63b5549a08f5","name":"Unauthorized","originalRequest":{"method":"PATCH","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"\"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bb\""},"url":{"raw":"{{api_host}}/v1/cart/profile/cart/items/:itemId/shippingmethod","host":["{{api_host}}"],"path":["v1","cart","profile","cart","items",":itemId","shippingmethod"],"variable":[{"key":"itemId","value":""}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"4d1c6799-d328-410a-aa71-5e763a5ae114","name":"Success","originalRequest":{"method":"PATCH","header":[],"url":{"raw":"{{api_host}}/v1/cart/profile/cart/items/:itemId/shippingmethod","host":["{{api_host}}"],"path":["v1","cart","profile","cart","items",":itemId","shippingmethod"],"variable":[{"key":"itemId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bb\",\n    \"itemId\": \"94f62dc7-c3cf-4860-b1a1-3d0a48a8e9bc\"\n}"}],"_postman_id":"289e4586-6363-46dc-ac95-e4fbe63e95f3"},{"name":"Update Item quantity","id":"691384b6-7932-4807-b8cb-b2042689a05d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_tenant_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"4"},"url":"{{api_host}}/v1/cart/profile/cart/items/:itemId","description":"<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: \n    itemId: UUID - id of the cart item\nbody: integer\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartItemUpdated\nFailure:\n    Carts doesn't exist for customer: 400 BAD REQUEST - COR-002\n    Cart with the status \"New\" doesn't exist: 400 BAD REQUEST - COR-002\n    Item with the given ID doesn't exist in the cart: 400 BAD REQUEST - COR-002\n    Validation errors: 400 BAD REQUEST - COR-003\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre><h2 id=\"cartitemupdated\">CartItemUpdated</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>CartId</td>\n<td>Y</td>\n<td>CartId is UUID</td>\n</tr>\n<tr>\n<td>itemId</td>\n<td>CartItemId</td>\n<td>Y</td>\n<td>CartItemId is UUID</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","cart","profile","cart","items",":itemId"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"d6717b32-0d8a-4380-ae74-3b197f624b5b","type":"string","value":"ee7bff73-5135-4554-97dc-32df8f9e24bf","key":"itemId"}]}},"response":[{"id":"e6aa1d74-84eb-4814-b212-311e9a379035","name":"Update Item quantity","originalRequest":{"method":"PATCH","header":[{"key":"X-Upstart-Tenant","type":"text","value":"denvermattress"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"4"},"url":{"raw":"{{api_host}}/v1/cart/profile/cart/items/:itemId","host":["{{api_host}}"],"path":["v1","cart","profile","cart","items",":itemId"],"variable":[{"key":"itemId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 17:54:47 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"11e7cb8b-591e-4111-b7ef-4a59b42991c0\",\n    \"itemId\": \"b792e1a2-9df3-49b9-aecb-92e207660fa4\"\n}"}],"_postman_id":"691384b6-7932-4807-b8cb-b2042689a05d"},{"name":"Update cart payment details","id":"78c81022-a756-4c2a-87e6-7a16ef44224b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"[\n{\n  \"exec\": {\n    \"type\": \"SetCyberSourcePaymentExec\",\n    \"token\": \"8C62470CD9C3F3BCE05341588E0AE3D5\",\n    \"cardType\": \"001\",\n    \"expirationMonth\": \"05\",\n    \"expirationYear\": \"2031\",\n    \"requestId\": \"5617250434576983504006\",\n    \"cardNumber\": \"1111\",\n    \"CVV\": \"123\",\n    \"cardHolderName\": \"Areesha Tahir\"\n  },\n  \"value\": 10.6\n  }]"},"url":"{{api_host}}/v1/cart/profile/cart/payments","description":"<p>Update cart payment details</p>\n<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none \nbody: CartPaymentDetails\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId\nFailure:\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n    Validation error: 400 BAD REQUEST - COR-003\n</code></pre><h2 id=\"cartpaymentdetails\">CartPaymentDetails</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>N</td>\n<td>Payment details ID</td>\n</tr>\n<tr>\n<td>cardType</td>\n<td>string</td>\n<td>Y</td>\n<td>CyberSource credit card type (001 - Visa, 005 - Mastercard, 006 - Amex, 008 - Discover)</td>\n</tr>\n<tr>\n<td>expirationMonth</td>\n<td>string</td>\n<td>Y</td>\n<td>Card expiration month (e. g. \"04\")</td>\n</tr>\n<tr>\n<td>expirationYear</td>\n<td>string</td>\n<td>Y</td>\n<td>Card expiration year (e. g. 2019)</td>\n</tr>\n<tr>\n<td>requestId</td>\n<td>string</td>\n<td>Y</td>\n<td>CyberSource tokenization request ID</td>\n</tr>\n<tr>\n<td>token</td>\n<td>String</td>\n<td>Y</td>\n<td>CyberSource payment instrument</td>\n</tr>\n<tr>\n<td>cardNumber</td>\n<td>String</td>\n<td>Y</td>\n<td>Last four digits of the credit card number</td>\n</tr>\n<tr>\n<td>cardHolderName</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>CVV</td>\n<td>String</td>\n<td>Y</td>\n<td>Card CVV 3 or 4 digits</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","cart","profile","cart","payments"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"b358a3be-51a5-475a-82f3-1eb72aedc724","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"token\" : \"7500BB199B4270EFE05340588D0AFCAD\",\n\t\"cardType\": \"001\",\n\t\"expirationMonth\": \"05\",\n\t\"expirationYear\": \"2019\",\n\t\"requestId\": \"5572559428226274204003\",\n\t\"cardNumber\" : \"1234\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/payments"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 19 May 2019 11:06:34 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"108"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"003\",\n    \"code\": \"COR-006\",\n    \"name\": \"Unauthorized\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"beec4818-f117-43a4-a977-cf84df6f24f8","name":"Validation error","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"token\" : \"7500BB199B4270EFE05340588D0AFCAD\",\n\t\"cardType\": \"001\",\n\t\"expirationMonth\": \"05\",\n\t\"expirationYear\": \"2019\",\n\t\"requestId\": \"5572559428226274204003\",\n\t\"cardNumber\" : \"12345\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/payments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 19 May 2019 11:06:09 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"223"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"cardNumber\",\n            \"errors\": [\n                {\n                    \"id\": \"regExp\",\n                    \"message\": \"Attribute cardNumber doesn't match regular expression: ^[0-9]{4}$ \",\n                    \"configuration\": {\n                        \"regExp\": \"^[0-9]{4}$\"\n                    }\n                }\n            ]\n        }\n    ]\n}"},{"id":"eb5665d6-85a6-49fd-aac3-eee018ba18f9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"token\" : \"7500BB199B4270EFE05340588D0AFCAD\",\n\t\"cardType\": \"001\",\n\t\"expirationMonth\": \"05\",\n\t\"expirationYear\": \"2019\",\n\t\"requestId\": \"5572559428226274204003\",\n\t\"cardNumber\" : \"1234\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 19 May 2019 11:01:11 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"}],"cookie":[],"responseTime":null,"body":"\"1ac6cbb0-e087-4308-980d-f0336163a13d\""}],"_postman_id":"78c81022-a756-4c2a-87e6-7a16ef44224b"},{"name":"Update cart payment details - for devel env","id":"3aa44013-f7d0-404b-a672-30522f46f74e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"token\" : \"8C62470CD9C3F3BCE05341588E0AE3D5\",\n\t\"cardType\": \"001\",\n\t\"expirationMonth\": \"05\",\n\t\"expirationYear\": \"2019\",\n\t\"requestId\": \"5585490935586637904004\",\n\t\"cardNumber\" : \"1111\",\n    \"cardHolderName\": \"Mr. Token Black\",\n    \"CVV\":\"1111\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/payments","description":"<p>Update cart payment details</p>\n<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none \nbody: CartPaymentDetails\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId\nFailure:\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n    Validation error: 400 BAD REQUEST - COR-003\n</code></pre><h2 id=\"cartpaymentdetails\">CartPaymentDetails</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>required</th>\n<th>comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>N</td>\n<td>Payment details ID</td>\n</tr>\n<tr>\n<td>cardType</td>\n<td>string</td>\n<td>Y</td>\n<td>CyberSource credit card type (001 - Visa, 005 - Mastercard, 006 - Amex, 008 - Discover)</td>\n</tr>\n<tr>\n<td>expirationMonth</td>\n<td>string</td>\n<td>Y</td>\n<td>Card expiration month (e. g. \"04\")</td>\n</tr>\n<tr>\n<td>expirationYear</td>\n<td>string</td>\n<td>Y</td>\n<td>Card expiration year (e. g. 2019)</td>\n</tr>\n<tr>\n<td>requestId</td>\n<td>string</td>\n<td>Y</td>\n<td>CyberSource tokenization request ID</td>\n</tr>\n<tr>\n<td>token</td>\n<td>String</td>\n<td>Y</td>\n<td>CyberSource payment instrument</td>\n</tr>\n<tr>\n<td>cardNumber</td>\n<td>String</td>\n<td>Y</td>\n<td>Last four digits of the credit card number</td>\n</tr>\n<tr>\n<td>cardHolderName</td>\n<td>String</td>\n<td>N</td>\n<td></td>\n</tr>\n<tr>\n<td>CVV</td>\n<td>String</td>\n<td>Y</td>\n<td>Card CVV 3 or 4 digits</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","cart","profile","cart","payments"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"2b8b84e4-6b7e-4292-aeff-5dae7644ce1d","name":"Validation error","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"token\" : \"7500BB199B4270EFE05340588D0AFCAD\",\n\t\"cardType\": \"001\",\n\t\"expirationMonth\": \"05\",\n\t\"expirationYear\": \"2019\",\n\t\"requestId\": \"5572559428226274204003\",\n\t\"cardNumber\" : \"12345\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/payments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 19 May 2019 11:06:09 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"223"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"cardNumber\",\n            \"errors\": [\n                {\n                    \"id\": \"regExp\",\n                    \"message\": \"Attribute cardNumber doesn't match regular expression: ^[0-9]{4}$ \",\n                    \"configuration\": {\n                        \"regExp\": \"^[0-9]{4}$\"\n                    }\n                }\n            ]\n        }\n    ]\n}"},{"id":"b0d006c3-8ccc-4a74-afd2-945df584431f","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"token\" : \"7500BB199B4270EFE05340588D0AFCAD\",\n\t\"cardType\": \"001\",\n\t\"expirationMonth\": \"05\",\n\t\"expirationYear\": \"2019\",\n\t\"requestId\": \"5572559428226274204003\",\n\t\"cardNumber\" : \"1234\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/payments"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 19 May 2019 11:06:34 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"108"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"003\",\n    \"code\": \"COR-006\",\n    \"name\": \"Unauthorized\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"ca3a28aa-8d5b-4dae-bb87-f74572b85ef7","name":"Success","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"token\" : \"7500BB199B4270EFE05340588D0AFCAD\",\n\t\"cardType\": \"001\",\n\t\"expirationMonth\": \"05\",\n\t\"expirationYear\": \"2019\",\n\t\"requestId\": \"5572559428226274204003\",\n\t\"cardNumber\" : \"1234\"\n}"},"url":"{{api_host}}/v1/cart/profile/cart/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 19 May 2019 11:01:11 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"}],"cookie":[],"responseTime":null,"body":"\"1ac6cbb0-e087-4308-980d-f0336163a13d\""}],"_postman_id":"3aa44013-f7d0-404b-a672-30522f46f74e"},{"name":"Update cart email","id":"0bbff7a3-39b2-4061-ae05-931ecae35bd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"\"email@domain.org\""},"url":"{{api_host}}/v1/cart/profile/cart/email","description":"<p>Update an email for cart</p>\n<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous/service.operator/operator.default\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none\nbody: \n    email: Email\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId &amp; Email\nFailure:\n    401 UNAUTHORIZED - unauthorized\n</code></pre>","urlObject":{"path":["v1","cart","profile","cart","email"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"434e2577-72e5-45c9-a93e-81bca9b16117","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"\"email@domain.org\""},"url":"{{api_host}}/v1/cart/profile/cart/email"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 18 May 2019 15:35:00 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"72"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"994958e7-6778-4c7b-bfcd-4f406b8e56e5\",\n    \"email\": \"email@domain.org\"\n}"},{"id":"d46717fb-307a-4a9b-b59f-485aa73e0d1a","name":"Unauthorized","originalRequest":{"method":"PATCH","header":[{"key":"X-Upstart-Tenant","value":"{{example_tenant_identifier}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\"some@email.net\""},"url":"{{api_host}}/v1/cart/profile/cart/email"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"}],"_postman_id":"0bbff7a3-39b2-4061-ae05-931ecae35bd8"},{"name":"Submit cart","id":"fd0732c2-66fd-46c2-9e05-5949be3d5948","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{afad_auth}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"url":"{{api_host}}/v1/cart/profile/cart/submit","description":"<p>Update cart payment details</p>\n<p>Required roles:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>customer.default/customer.anonymous\n</code></pre><p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables: none \nbody: empty\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK - CartId\nFailure:\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n    Cart validation error: 400 BAD REQUEST - COR-003\n    Cart not in New state: 400 BAD REQUEST - COR-002\n</code></pre>","urlObject":{"path":["v1","cart","profile","cart","submit"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"07ebc2d0-c725-4e69-a0b3-3b72e09bdb22","name":"Address validation errors","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{api_host}}/v1/cart/profile/cart/submit"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 19 May 2019 11:25:16 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"154"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"billingAddress\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"billingAddress can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"shippingAddress\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"name or businessName can not be empty\"\n                },\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"phoneNumber can not be empty\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"0882ff16-5d9d-46fd-8f9e-11e7cdc64ec5","name":"Cart validation errors","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{api_host}}/v1/cart/profile/cart/submit"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.9"},{"key":"Date","value":"Tue, 04 Jun 2019 08:40:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1209"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Methods","value":"GET, PUT, POST, DELETE, PATCH, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Upstart-Tenant"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"pricing/totalPrice\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"totalPrice can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"pricing/totalPromotion\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"totalPromotion can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"billingAddress\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"billingAddress can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"pricing/totalFee\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"totalFee can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"shipments\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"shipments can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"shippingAddress\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"shippingAddress can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"email\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"email can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"items\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"items can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"pricing/totalItemsPrice\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"totalItemsPrice can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"payments\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"payments can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"pricing/totalShippingPrice\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"totalShippingPrice can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"locationId\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"locationId can not be empty\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"52643430-a39b-424e-b4a2-cb568ae8da3a","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{api_host}}/v1/cart/profile/cart/submit"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 19 May 2019 11:26:14 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"108"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"003\",\n    \"code\": \"COR-006\",\n    \"name\": \"Unauthorized\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}"},{"id":"6cee1b5d-1158-4ea0-a805-6d82bc7fde8e","name":"Item validation errors","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{api_host}}/v1/cart/profile/cart/submit"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.9"},{"key":"Date","value":"Tue, 04 Jun 2019 08:43:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1273"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Methods","value":"GET, PUT, POST, DELETE, PATCH, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Upstart-Tenant"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"items/1/shipmentId\",\n            \"errors\": [\n                {\n                    \"id\": \"defined\",\n                    \"message\": \"Shipment with id 6793f181-fe02-4c9a-ac9e-c1d15c0d874b does not exist\"\n                }\n            ]\n        },\n        {\n            \"path\": \"items/3/pricing/basePrice\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"basePrice can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"items/3/shipmentId\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"shipmentId can not be empty\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"b173ba6e-8792-4fd6-8b7a-02af6c170ed3","name":"Success","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{api_host}}/v1/cart/profile/cart/submit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 19 May 2019 11:27:19 GMT"},{"key":"Server","value":"akka-http/10.0.15"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"}],"cookie":[],"responseTime":null,"body":"\"1ac6cbb0-e087-4308-980d-f0336163a13d\""},{"id":"c31fd5f7-1fea-4b04-82a2-5547754df4a4","name":"Shipment validation errors","originalRequest":{"method":"POST","header":[{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{api_host}}/v1/cart/profile/cart/submit"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.9"},{"key":"Date","value":"Tue, 04 Jun 2019 09:37:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"97"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Methods","value":"GET, PUT, POST, DELETE, PATCH, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Upstart-Tenant"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Validation error\",\n    \"code\": \"COR-003\",\n    \"detail\": [\n        {\n            \"path\": \"shipments/2\",\n            \"errors\": [\n                {\n                    \"id\": \"defined\",\n                    \"message\": \"Shipment with id 6793f181-fe02-4c9a-ac9e-c1d15c0d874b contains no items\"\n                }\n            ]\n        },\n        {\n            \"path\": \"shipments/2/rateServiceCode\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"rateServiceCode can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"shipments/3/addressFrom\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"addressFrom can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"shipments/4/addressTo\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"name or businessName can not be empty\"\n                }\n            ]\n        },\n        {\n            \"path\": \"shipments/2/pricing/basePrice\",\n            \"errors\": [\n                {\n                    \"id\": \"nonEmpty\",\n                    \"message\": \"basePrice can not be empty\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"fd0732c2-66fd-46c2-9e05-5949be3d5948"}],"id":"1d9201d5-46b7-490b-90bc-741c33f9f60a","description":"<p>Shopping cart/order management API calls</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{customer_default_token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"f45a2533-d190-4a7d-b6c9-94baa2a4b46d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"68b7a775-3041-450d-adbe-f85265ecf526","type":"text/javascript","exec":[""]}}],"_postman_id":"1d9201d5-46b7-490b-90bc-741c33f9f60a"},{"name":"enumeration","item":[{"name":"Get Enumeration","id":"d43ebcfa-2602-4d54-b182-8035e3d5a2cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/enumerations/test/descriptor","description":"<p>Retrieve a given Catalog Item based on the provided id.</p>\n<p>Required Roles: \ncustomer.default/customer.anonymous</p>\n<h4 id=\"catalogitem\">catalogItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the catalog item</td>\n</tr>\n<tr>\n<td>typeId</td>\n<td>UUID</td>\n<td>true</td>\n<td>the id for the catalog item type</td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>UUID[]</td>\n<td>true</td>\n<td>array of shipping method ids available for this catalog item</td>\n</tr>\n<tr>\n<td>relatedIds</td>\n<td>String[]</td>\n<td>true</td>\n<td>array of related catalog items ids</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the catalog item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the catalog item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the catalog item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the catalog item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>true</td>\n<td>the tags for the catalog item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>true</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>true</td>\n<td>the ignore inventory flag for the catalog item</td>\n</tr>\n<tr>\n<td>productItems</td>\n<td>productItem[]</td>\n<td>for product</td>\n<td>the product items</td>\n</tr>\n<tr>\n<td>bundleItems</td>\n<td>bundleItem[]</td>\n<td>for bundle</td>\n<td>the bundle items</td>\n</tr>\n<tr>\n<td>giftCertificateItems</td>\n<td>giftCertificateItem[]</td>\n<td>for giftCertificate</td>\n<td>the gift certificate item</td>\n</tr>\n<tr>\n<td>taxCode</td>\n<td>String</td>\n<td>false</td>\n<td>the tax code for the catalog item</td>\n</tr>\n<tr>\n<td>activationDate</td>\n<td>Timestamp</td>\n<td>false</td>\n<td>activation date</td>\n</tr>\n<tr>\n<td>deactivationDate</td>\n<td>Timestamp</td>\n<td>false</td>\n<td>deactivation date</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"media\">Media</h4>\n<p>Json Object where properties got value of type MediaValue</p>\n<h4 id=\"mediavalue\">MediaValue</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>uri</td>\n<td>String</td>\n<td>true</td>\n<td>the uri for media</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>false</td>\n<td>the name for media</td>\n</tr>\n<tr>\n<td>altText</td>\n<td>String</td>\n<td>false</td>\n<td>the alt text for media</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dynamicproperties\">dynamicProperties</h4>\n<p>TODO</p>\n<h4 id=\"productitem\">productItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the product sku item</td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>UUID[]</td>\n<td>false</td>\n<td>array of shipping method ids available for this product sku item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the product sku item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the product sku item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the product sku item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the product sku item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>false</td>\n<td>the tags for the product sku item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>false</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>false</td>\n<td>the ignore inventory flag for the product sku item</td>\n</tr>\n<tr>\n<td>dimensions</td>\n<td>Dimensions*</td>\n<td>false</td>\n<td>the dimensions</td>\n</tr>\n<tr>\n<td>weight</td>\n<td>Weight*</td>\n<td>false</td>\n<td>the weight</td>\n</tr>\n<tr>\n<td>numPieces</td>\n<td>Int</td>\n<td>false</td>\n<td>the number of pieces</td>\n</tr>\n<tr>\n<td>shippingPackages</td>\n<td>ShippingPackage[]</td>\n<td>true</td>\n<td>Parts of product that ship separately</td>\n</tr>\n<tr>\n<td>purchasable</td>\n<td>bool</td>\n<td>true</td>\n<td>the purchasable flag for the product sku item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"shippingpackage\">ShippingPackage</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>dimensions</td>\n<td>dimensions*</td>\n<td>true</td>\n<td>Dimensions of the package</td>\n</tr>\n<tr>\n<td>width</td>\n<td>width*</td>\n<td>true</td>\n<td>Weight of the package</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dimensions\">Dimensions</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>width</td>\n<td>Double</td>\n<td>true</td>\n<td>width</td>\n</tr>\n<tr>\n<td>height</td>\n<td>Double</td>\n<td>true</td>\n<td>height</td>\n</tr>\n<tr>\n<td>length</td>\n<td>Double</td>\n<td>true</td>\n<td>length</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>enum</td>\n<td>true</td>\n<td>dimension unit, supported values (cm, m, in)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"weight\">Weight</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>weight</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>enum</td>\n<td>true</td>\n<td>weight unit, supported values (g, kg, lb)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"bundleitem\">bundleItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>true</td>\n<td>the id for the catalog item</td>\n</tr>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the product sku item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"giftcertificateitem\">giftCertificateItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>false</td>\n<td>the tags for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>false</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>false</td>\n<td>the ignore inventory flag for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>purchasable</td>\n<td>bool</td>\n<td>true</td>\n<td>the purchasable flag for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Double</td>\n<td>true</td>\n<td>the price</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>true</td>\n<td>the currency</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401</td>\n<td>Unauthorized Access Error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","enumerations","test","descriptor"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"1ce521a5-61f6-4f4a-b006-3d295948940c","name":"Get Live Catalog Item","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/catalog/p1/live"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"p1\",\n    \"typeId\": \"f8ded1a3-37d0-4063-806d-2fcbf86ed23f\",\n    \"type\": \"product\",\n    \"name\": \"p1\",\n    \"brandName\": \"b1\",\n    \"manufacturerName\": \"m1\",\n    \"media\": {\n        \"default\": {\n            \"uri\": \"https://some.url/to/some/image\"\n        }\n    },\n    \"tags\": [\n        \"t1\",\n        \"t2\"\n    ],\n    \"dynamicProperties\": {\n        \"description\": \"p1 desc\",\n        \"color\": \"Red\"\n    },\n    \"productItems\": [\n        {\n            \"skuId\": \"p1\",\n            \"name\": \"p1.sku1\",\n            \"tags\": [\n                \"t1\",\n                \"t2\"\n            ],\n            \"dynamicProperties\": {\n                \"color\": \"Green\"\n            },\n\t\t    \"dimensions\": {\n\t\t         \"width\": 16,\n\t\t         \"length\": 20,\n\t\t         \"height\": 12,\n\t\t         \"unit\": \"in\"\n\t\t    },\n\t\t    \"weight\": {\n\t\t         \"value\": 8,\n\t\t         \"unit\": \"lb\"\n\t\t    },\n\t\t\t\"numPieces\": 1,\n            \"ignoreInventory\": true,\n            \"purchasable\": true\n        },\n        {\n            \"skuId\": \"p1\",\n            \"name\": \"p1.sku2\",\n            \"tags\": [\n                \"t1\",\n                \"t2\"\n            ],\n            \"dynamicProperties\": {\n                \"color\": \"Red\"\n            },\n\t\t    \"dimensions\": {\n\t\t         \"width\": 16,\n\t\t         \"length\": 20,\n\t\t         \"height\": 12,\n\t\t         \"unit\": \"in\"\n\t\t    },\n\t\t    \"weight\": {\n\t\t         \"value\": 8,\n\t\t         \"unit\": \"lb\"\n\t\t    },\n\t\t    \"numPieces\": 1,\n            \"purchasable\": true\n        }\n    ],\n    \"ignoreInventory\": false,\n    \"version\": 0\n}"},{"id":"94769180-1329-4271-b418-d60911ccb22c","name":"Get Live Catalog Item - Not Found","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/catalog/p1a/live"},"code":404,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"CatalogItemSummary not found\",\n    \"code\": \"COR-001\",\n    \"detail\": \"CatalogItem, tenant: denvermattress id: p1a not found\"\n}"}],"_postman_id":"d43ebcfa-2602-4d54-b182-8035e3d5a2cb"},{"name":"Create Enumeration","id":"c1fd1661-0eb6-4640-b056-0d6b67fdf15f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{current_access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"descriptor\": {\n\t  \"properties\": {\n\t    \"deliveryPostalCode\": {\n\t      \"tpe\": \"STRING\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        },\n\t        {\n\t          \"id\": \"nonEmpty\"\n\t        }\n\t      ]\n\t    },\n\t    \"storeId\": {\n\t      \"tpe\": \"STRING\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        },\n\t        {\n\t          \"id\": \"nonEmpty\"\n\t        }\n\t      ]\n\t    },\n\t    \"distance\": {\n\t      \"tpe\": \"DOUBLE\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        }\n\t      ]\n\t    },\n\t    \"weight\": {\n\t      \"tpe\": \"DOUBLE\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        }\n\t      ]\n\t    }\n\t  }\n\t}\n}"},"url":"{{api_host}}/v1/enumerations/test","description":"<p>Retrieve a given Catalog Item based on the provided id.</p>\n<p>Required Roles: \ncustomer.default/customer.anonymous</p>\n<h4 id=\"catalogitem\">catalogItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the catalog item</td>\n</tr>\n<tr>\n<td>typeId</td>\n<td>UUID</td>\n<td>true</td>\n<td>the id for the catalog item type</td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>UUID[]</td>\n<td>true</td>\n<td>array of shipping method ids available for this catalog item</td>\n</tr>\n<tr>\n<td>relatedIds</td>\n<td>String[]</td>\n<td>true</td>\n<td>array of related catalog items ids</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the catalog item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the catalog item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the catalog item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the catalog item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>true</td>\n<td>the tags for the catalog item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>true</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>true</td>\n<td>the ignore inventory flag for the catalog item</td>\n</tr>\n<tr>\n<td>productItems</td>\n<td>productItem[]</td>\n<td>for product</td>\n<td>the product items</td>\n</tr>\n<tr>\n<td>bundleItems</td>\n<td>bundleItem[]</td>\n<td>for bundle</td>\n<td>the bundle items</td>\n</tr>\n<tr>\n<td>giftCertificateItems</td>\n<td>giftCertificateItem[]</td>\n<td>for giftCertificate</td>\n<td>the gift certificate item</td>\n</tr>\n<tr>\n<td>taxCode</td>\n<td>String</td>\n<td>false</td>\n<td>the tax code for the catalog item</td>\n</tr>\n<tr>\n<td>activationDate</td>\n<td>Timestamp</td>\n<td>false</td>\n<td>activation date</td>\n</tr>\n<tr>\n<td>deactivationDate</td>\n<td>Timestamp</td>\n<td>false</td>\n<td>deactivation date</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"media\">Media</h4>\n<p>Json Object where properties got value of type MediaValue</p>\n<h4 id=\"mediavalue\">MediaValue</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>uri</td>\n<td>String</td>\n<td>true</td>\n<td>the uri for media</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>false</td>\n<td>the name for media</td>\n</tr>\n<tr>\n<td>altText</td>\n<td>String</td>\n<td>false</td>\n<td>the alt text for media</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dynamicproperties\">dynamicProperties</h4>\n<p>TODO</p>\n<h4 id=\"productitem\">productItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the product sku item</td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>UUID[]</td>\n<td>false</td>\n<td>array of shipping method ids available for this product sku item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the product sku item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the product sku item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the product sku item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the product sku item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>false</td>\n<td>the tags for the product sku item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>false</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>false</td>\n<td>the ignore inventory flag for the product sku item</td>\n</tr>\n<tr>\n<td>dimensions</td>\n<td>Dimensions*</td>\n<td>false</td>\n<td>the dimensions</td>\n</tr>\n<tr>\n<td>weight</td>\n<td>Weight*</td>\n<td>false</td>\n<td>the weight</td>\n</tr>\n<tr>\n<td>numPieces</td>\n<td>Int</td>\n<td>false</td>\n<td>the number of pieces</td>\n</tr>\n<tr>\n<td>shippingPackages</td>\n<td>ShippingPackage[]</td>\n<td>true</td>\n<td>Parts of product that ship separately</td>\n</tr>\n<tr>\n<td>purchasable</td>\n<td>bool</td>\n<td>true</td>\n<td>the purchasable flag for the product sku item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"shippingpackage\">ShippingPackage</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>dimensions</td>\n<td>dimensions*</td>\n<td>true</td>\n<td>Dimensions of the package</td>\n</tr>\n<tr>\n<td>width</td>\n<td>width*</td>\n<td>true</td>\n<td>Weight of the package</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dimensions\">Dimensions</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>width</td>\n<td>Double</td>\n<td>true</td>\n<td>width</td>\n</tr>\n<tr>\n<td>height</td>\n<td>Double</td>\n<td>true</td>\n<td>height</td>\n</tr>\n<tr>\n<td>length</td>\n<td>Double</td>\n<td>true</td>\n<td>length</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>enum</td>\n<td>true</td>\n<td>dimension unit, supported values (cm, m, in)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"weight\">Weight</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>weight</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>enum</td>\n<td>true</td>\n<td>weight unit, supported values (g, kg, lb)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"bundleitem\">bundleItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>true</td>\n<td>the id for the catalog item</td>\n</tr>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the product sku item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"giftcertificateitem\">giftCertificateItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>false</td>\n<td>the tags for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>false</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>false</td>\n<td>the ignore inventory flag for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>purchasable</td>\n<td>bool</td>\n<td>true</td>\n<td>the purchasable flag for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Double</td>\n<td>true</td>\n<td>the price</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>true</td>\n<td>the currency</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401</td>\n<td>Unauthorized Access Error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","enumerations","test"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"91277ae5-41d7-48fb-9661-43cb3841075d","name":"Get Live Catalog Item","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/catalog/p1/live"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"p1\",\n    \"typeId\": \"f8ded1a3-37d0-4063-806d-2fcbf86ed23f\",\n    \"type\": \"product\",\n    \"name\": \"p1\",\n    \"brandName\": \"b1\",\n    \"manufacturerName\": \"m1\",\n    \"media\": {\n        \"default\": {\n            \"uri\": \"https://some.url/to/some/image\"\n        }\n    },\n    \"tags\": [\n        \"t1\",\n        \"t2\"\n    ],\n    \"dynamicProperties\": {\n        \"description\": \"p1 desc\",\n        \"color\": \"Red\"\n    },\n    \"productItems\": [\n        {\n            \"skuId\": \"p1\",\n            \"name\": \"p1.sku1\",\n            \"tags\": [\n                \"t1\",\n                \"t2\"\n            ],\n            \"dynamicProperties\": {\n                \"color\": \"Green\"\n            },\n\t\t    \"dimensions\": {\n\t\t         \"width\": 16,\n\t\t         \"length\": 20,\n\t\t         \"height\": 12,\n\t\t         \"unit\": \"in\"\n\t\t    },\n\t\t    \"weight\": {\n\t\t         \"value\": 8,\n\t\t         \"unit\": \"lb\"\n\t\t    },\n\t\t\t\"numPieces\": 1,\n            \"ignoreInventory\": true,\n            \"purchasable\": true\n        },\n        {\n            \"skuId\": \"p1\",\n            \"name\": \"p1.sku2\",\n            \"tags\": [\n                \"t1\",\n                \"t2\"\n            ],\n            \"dynamicProperties\": {\n                \"color\": \"Red\"\n            },\n\t\t    \"dimensions\": {\n\t\t         \"width\": 16,\n\t\t         \"length\": 20,\n\t\t         \"height\": 12,\n\t\t         \"unit\": \"in\"\n\t\t    },\n\t\t    \"weight\": {\n\t\t         \"value\": 8,\n\t\t         \"unit\": \"lb\"\n\t\t    },\n\t\t    \"numPieces\": 1,\n            \"purchasable\": true\n        }\n    ],\n    \"ignoreInventory\": false,\n    \"version\": 0\n}"},{"id":"a1f23e36-9d48-421b-a8b7-380d89b249c1","name":"Get Live Catalog Item - Not Found","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/catalog/p1a/live"},"code":404,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"CatalogItemSummary not found\",\n    \"code\": \"COR-001\",\n    \"detail\": \"CatalogItem, tenant: denvermattress id: p1a not found\"\n}"}],"_postman_id":"c1fd1661-0eb6-4640-b056-0d6b67fdf15f"},{"name":"Update Enumeration","id":"3b88bab1-c7a3-459b-826a-93ae9bfdb997","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"descriptor\": {\n\t  \"properties\": {\n\t    \"deliveryPostalCode\": {\n\t      \"tpe\": \"STRING\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        },\n\t        {\n\t          \"id\": \"nonEmpty\"\n\t        }\n\t      ]\n\t    },\n\t    \"storeId\": {\n\t      \"tpe\": \"STRING\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        },\n\t        {\n\t          \"id\": \"nonEmpty\"\n\t        }\n\t      ]\n\t    },\n\t    \"distance\": {\n\t      \"tpe\": \"DOUBLE\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        }\n\t      ]\n\t    },\n\t    \"weight\": {\n\t      \"tpe\": \"DOUBLE\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        }\n\t      ]\n\t    }\n\t  }\n\t}\n}"},"url":"{{api_host}}/v1/enumerations/test","description":"<p>Retrieve a given Catalog Item based on the provided id.</p>\n<p>Required Roles: \ncustomer.default/customer.anonymous</p>\n<h4 id=\"catalogitem\">catalogItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the catalog item</td>\n</tr>\n<tr>\n<td>typeId</td>\n<td>UUID</td>\n<td>true</td>\n<td>the id for the catalog item type</td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>UUID[]</td>\n<td>true</td>\n<td>array of shipping method ids available for this catalog item</td>\n</tr>\n<tr>\n<td>relatedIds</td>\n<td>String[]</td>\n<td>true</td>\n<td>array of related catalog items ids</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the catalog item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the catalog item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the catalog item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the catalog item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>true</td>\n<td>the tags for the catalog item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>true</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>true</td>\n<td>the ignore inventory flag for the catalog item</td>\n</tr>\n<tr>\n<td>productItems</td>\n<td>productItem[]</td>\n<td>for product</td>\n<td>the product items</td>\n</tr>\n<tr>\n<td>bundleItems</td>\n<td>bundleItem[]</td>\n<td>for bundle</td>\n<td>the bundle items</td>\n</tr>\n<tr>\n<td>giftCertificateItems</td>\n<td>giftCertificateItem[]</td>\n<td>for giftCertificate</td>\n<td>the gift certificate item</td>\n</tr>\n<tr>\n<td>taxCode</td>\n<td>String</td>\n<td>false</td>\n<td>the tax code for the catalog item</td>\n</tr>\n<tr>\n<td>activationDate</td>\n<td>Timestamp</td>\n<td>false</td>\n<td>activation date</td>\n</tr>\n<tr>\n<td>deactivationDate</td>\n<td>Timestamp</td>\n<td>false</td>\n<td>deactivation date</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"media\">Media</h4>\n<p>Json Object where properties got value of type MediaValue</p>\n<h4 id=\"mediavalue\">MediaValue</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>uri</td>\n<td>String</td>\n<td>true</td>\n<td>the uri for media</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>false</td>\n<td>the name for media</td>\n</tr>\n<tr>\n<td>altText</td>\n<td>String</td>\n<td>false</td>\n<td>the alt text for media</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dynamicproperties\">dynamicProperties</h4>\n<p>TODO</p>\n<h4 id=\"productitem\">productItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the product sku item</td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>UUID[]</td>\n<td>false</td>\n<td>array of shipping method ids available for this product sku item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the product sku item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the product sku item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the product sku item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the product sku item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>false</td>\n<td>the tags for the product sku item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>false</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>false</td>\n<td>the ignore inventory flag for the product sku item</td>\n</tr>\n<tr>\n<td>dimensions</td>\n<td>Dimensions*</td>\n<td>false</td>\n<td>the dimensions</td>\n</tr>\n<tr>\n<td>weight</td>\n<td>Weight*</td>\n<td>false</td>\n<td>the weight</td>\n</tr>\n<tr>\n<td>numPieces</td>\n<td>Int</td>\n<td>false</td>\n<td>the number of pieces</td>\n</tr>\n<tr>\n<td>shippingPackages</td>\n<td>ShippingPackage[]</td>\n<td>true</td>\n<td>Parts of product that ship separately</td>\n</tr>\n<tr>\n<td>purchasable</td>\n<td>bool</td>\n<td>true</td>\n<td>the purchasable flag for the product sku item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"shippingpackage\">ShippingPackage</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>dimensions</td>\n<td>dimensions*</td>\n<td>true</td>\n<td>Dimensions of the package</td>\n</tr>\n<tr>\n<td>width</td>\n<td>width*</td>\n<td>true</td>\n<td>Weight of the package</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dimensions\">Dimensions</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>width</td>\n<td>Double</td>\n<td>true</td>\n<td>width</td>\n</tr>\n<tr>\n<td>height</td>\n<td>Double</td>\n<td>true</td>\n<td>height</td>\n</tr>\n<tr>\n<td>length</td>\n<td>Double</td>\n<td>true</td>\n<td>length</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>enum</td>\n<td>true</td>\n<td>dimension unit, supported values (cm, m, in)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"weight\">Weight</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>weight</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>enum</td>\n<td>true</td>\n<td>weight unit, supported values (g, kg, lb)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"bundleitem\">bundleItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>true</td>\n<td>the id for the catalog item</td>\n</tr>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the product sku item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"giftcertificateitem\">giftCertificateItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>false</td>\n<td>the tags for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>false</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>false</td>\n<td>the ignore inventory flag for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>purchasable</td>\n<td>bool</td>\n<td>true</td>\n<td>the purchasable flag for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Double</td>\n<td>true</td>\n<td>the price</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>true</td>\n<td>the currency</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401</td>\n<td>Unauthorized Access Error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","enumerations","test"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"c5539c21-3b0a-4129-ae7f-a15599bff618","name":"Get Live Catalog Item - Not Found","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/catalog/p1a/live"},"code":404,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"CatalogItemSummary not found\",\n    \"code\": \"COR-001\",\n    \"detail\": \"CatalogItem, tenant: denvermattress id: p1a not found\"\n}"},{"id":"e41d60cd-a954-427a-a519-9e4231df97e0","name":"Get Live Catalog Item","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/catalog/p1/live"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"p1\",\n    \"typeId\": \"f8ded1a3-37d0-4063-806d-2fcbf86ed23f\",\n    \"type\": \"product\",\n    \"name\": \"p1\",\n    \"brandName\": \"b1\",\n    \"manufacturerName\": \"m1\",\n    \"media\": {\n        \"default\": {\n            \"uri\": \"https://some.url/to/some/image\"\n        }\n    },\n    \"tags\": [\n        \"t1\",\n        \"t2\"\n    ],\n    \"dynamicProperties\": {\n        \"description\": \"p1 desc\",\n        \"color\": \"Red\"\n    },\n    \"productItems\": [\n        {\n            \"skuId\": \"p1\",\n            \"name\": \"p1.sku1\",\n            \"tags\": [\n                \"t1\",\n                \"t2\"\n            ],\n            \"dynamicProperties\": {\n                \"color\": \"Green\"\n            },\n\t\t    \"dimensions\": {\n\t\t         \"width\": 16,\n\t\t         \"length\": 20,\n\t\t         \"height\": 12,\n\t\t         \"unit\": \"in\"\n\t\t    },\n\t\t    \"weight\": {\n\t\t         \"value\": 8,\n\t\t         \"unit\": \"lb\"\n\t\t    },\n\t\t\t\"numPieces\": 1,\n            \"ignoreInventory\": true,\n            \"purchasable\": true\n        },\n        {\n            \"skuId\": \"p1\",\n            \"name\": \"p1.sku2\",\n            \"tags\": [\n                \"t1\",\n                \"t2\"\n            ],\n            \"dynamicProperties\": {\n                \"color\": \"Red\"\n            },\n\t\t    \"dimensions\": {\n\t\t         \"width\": 16,\n\t\t         \"length\": 20,\n\t\t         \"height\": 12,\n\t\t         \"unit\": \"in\"\n\t\t    },\n\t\t    \"weight\": {\n\t\t         \"value\": 8,\n\t\t         \"unit\": \"lb\"\n\t\t    },\n\t\t    \"numPieces\": 1,\n            \"purchasable\": true\n        }\n    ],\n    \"ignoreInventory\": false,\n    \"version\": 0\n}"}],"_postman_id":"3b88bab1-c7a3-459b-826a-93ae9bfdb997"},{"name":"Remove Enumeration","id":"80dedcd5-7d9e-41b0-81bf-3d7be9b2c8be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"descriptor\": {\n\t  \"properties\": {\n\t    \"deliveryPostalCode\": {\n\t      \"tpe\": \"STRING\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        },\n\t        {\n\t          \"id\": \"nonEmpty\"\n\t        }\n\t      ]\n\t    },\n\t    \"storeId\": {\n\t      \"tpe\": \"STRING\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        },\n\t        {\n\t          \"id\": \"nonEmpty\"\n\t        }\n\t      ]\n\t    },\n\t    \"distance\": {\n\t      \"tpe\": \"DOUBLE\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        }\n\t      ]\n\t    },\n\t    \"weight\": {\n\t      \"tpe\": \"DOUBLE\",\n\t      \"validators\": [\n\t        {\n\t          \"id\": \"required\"\n\t        }\n\t      ]\n\t    }\n\t  }\n\t}\n}"},"url":"{{api_host}}/v1/enumerations/test","description":"<p>Retrieve a given Catalog Item based on the provided id.</p>\n<p>Required Roles: \ncustomer.default/customer.anonymous</p>\n<h4 id=\"catalogitem\">catalogItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the catalog item</td>\n</tr>\n<tr>\n<td>typeId</td>\n<td>UUID</td>\n<td>true</td>\n<td>the id for the catalog item type</td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>UUID[]</td>\n<td>true</td>\n<td>array of shipping method ids available for this catalog item</td>\n</tr>\n<tr>\n<td>relatedIds</td>\n<td>String[]</td>\n<td>true</td>\n<td>array of related catalog items ids</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the catalog item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the catalog item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the catalog item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the catalog item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>true</td>\n<td>the tags for the catalog item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>true</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>true</td>\n<td>the ignore inventory flag for the catalog item</td>\n</tr>\n<tr>\n<td>productItems</td>\n<td>productItem[]</td>\n<td>for product</td>\n<td>the product items</td>\n</tr>\n<tr>\n<td>bundleItems</td>\n<td>bundleItem[]</td>\n<td>for bundle</td>\n<td>the bundle items</td>\n</tr>\n<tr>\n<td>giftCertificateItems</td>\n<td>giftCertificateItem[]</td>\n<td>for giftCertificate</td>\n<td>the gift certificate item</td>\n</tr>\n<tr>\n<td>taxCode</td>\n<td>String</td>\n<td>false</td>\n<td>the tax code for the catalog item</td>\n</tr>\n<tr>\n<td>activationDate</td>\n<td>Timestamp</td>\n<td>false</td>\n<td>activation date</td>\n</tr>\n<tr>\n<td>deactivationDate</td>\n<td>Timestamp</td>\n<td>false</td>\n<td>deactivation date</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"media\">Media</h4>\n<p>Json Object where properties got value of type MediaValue</p>\n<h4 id=\"mediavalue\">MediaValue</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>uri</td>\n<td>String</td>\n<td>true</td>\n<td>the uri for media</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>false</td>\n<td>the name for media</td>\n</tr>\n<tr>\n<td>altText</td>\n<td>String</td>\n<td>false</td>\n<td>the alt text for media</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dynamicproperties\">dynamicProperties</h4>\n<p>TODO</p>\n<h4 id=\"productitem\">productItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the product sku item</td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>UUID[]</td>\n<td>false</td>\n<td>array of shipping method ids available for this product sku item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the product sku item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the product sku item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the product sku item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the product sku item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>false</td>\n<td>the tags for the product sku item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>false</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>false</td>\n<td>the ignore inventory flag for the product sku item</td>\n</tr>\n<tr>\n<td>dimensions</td>\n<td>Dimensions*</td>\n<td>false</td>\n<td>the dimensions</td>\n</tr>\n<tr>\n<td>weight</td>\n<td>Weight*</td>\n<td>false</td>\n<td>the weight</td>\n</tr>\n<tr>\n<td>numPieces</td>\n<td>Int</td>\n<td>false</td>\n<td>the number of pieces</td>\n</tr>\n<tr>\n<td>shippingPackages</td>\n<td>ShippingPackage[]</td>\n<td>true</td>\n<td>Parts of product that ship separately</td>\n</tr>\n<tr>\n<td>purchasable</td>\n<td>bool</td>\n<td>true</td>\n<td>the purchasable flag for the product sku item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"shippingpackage\">ShippingPackage</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>dimensions</td>\n<td>dimensions*</td>\n<td>true</td>\n<td>Dimensions of the package</td>\n</tr>\n<tr>\n<td>width</td>\n<td>width*</td>\n<td>true</td>\n<td>Weight of the package</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dimensions\">Dimensions</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>width</td>\n<td>Double</td>\n<td>true</td>\n<td>width</td>\n</tr>\n<tr>\n<td>height</td>\n<td>Double</td>\n<td>true</td>\n<td>height</td>\n</tr>\n<tr>\n<td>length</td>\n<td>Double</td>\n<td>true</td>\n<td>length</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>enum</td>\n<td>true</td>\n<td>dimension unit, supported values (cm, m, in)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"weight\">Weight</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>weight</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>enum</td>\n<td>true</td>\n<td>weight unit, supported values (g, kg, lb)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"bundleitem\">bundleItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>true</td>\n<td>the id for the catalog item</td>\n</tr>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the product sku item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"giftcertificateitem\">giftCertificateItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>false</td>\n<td>the tags for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>false</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>false</td>\n<td>the ignore inventory flag for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>purchasable</td>\n<td>bool</td>\n<td>true</td>\n<td>the purchasable flag for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Double</td>\n<td>true</td>\n<td>the price</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>true</td>\n<td>the currency</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401</td>\n<td>Unauthorized Access Error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","enumerations","test"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"94fdab59-5d9b-49d0-a983-4eb81ceddac4","name":"Get Live Catalog Item","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/catalog/p1/live"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"p1\",\n    \"typeId\": \"f8ded1a3-37d0-4063-806d-2fcbf86ed23f\",\n    \"type\": \"product\",\n    \"name\": \"p1\",\n    \"brandName\": \"b1\",\n    \"manufacturerName\": \"m1\",\n    \"media\": {\n        \"default\": {\n            \"uri\": \"https://some.url/to/some/image\"\n        }\n    },\n    \"tags\": [\n        \"t1\",\n        \"t2\"\n    ],\n    \"dynamicProperties\": {\n        \"description\": \"p1 desc\",\n        \"color\": \"Red\"\n    },\n    \"productItems\": [\n        {\n            \"skuId\": \"p1\",\n            \"name\": \"p1.sku1\",\n            \"tags\": [\n                \"t1\",\n                \"t2\"\n            ],\n            \"dynamicProperties\": {\n                \"color\": \"Green\"\n            },\n\t\t    \"dimensions\": {\n\t\t         \"width\": 16,\n\t\t         \"length\": 20,\n\t\t         \"height\": 12,\n\t\t         \"unit\": \"in\"\n\t\t    },\n\t\t    \"weight\": {\n\t\t         \"value\": 8,\n\t\t         \"unit\": \"lb\"\n\t\t    },\n\t\t\t\"numPieces\": 1,\n            \"ignoreInventory\": true,\n            \"purchasable\": true\n        },\n        {\n            \"skuId\": \"p1\",\n            \"name\": \"p1.sku2\",\n            \"tags\": [\n                \"t1\",\n                \"t2\"\n            ],\n            \"dynamicProperties\": {\n                \"color\": \"Red\"\n            },\n\t\t    \"dimensions\": {\n\t\t         \"width\": 16,\n\t\t         \"length\": 20,\n\t\t         \"height\": 12,\n\t\t         \"unit\": \"in\"\n\t\t    },\n\t\t    \"weight\": {\n\t\t         \"value\": 8,\n\t\t         \"unit\": \"lb\"\n\t\t    },\n\t\t    \"numPieces\": 1,\n            \"purchasable\": true\n        }\n    ],\n    \"ignoreInventory\": false,\n    \"version\": 0\n}"},{"id":"df7f66b2-74cc-41a7-9b60-0c11cc8dafa5","name":"Get Live Catalog Item - Not Found","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/catalog/p1a/live"},"code":404,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"CatalogItemSummary not found\",\n    \"code\": \"COR-001\",\n    \"detail\": \"CatalogItem, tenant: denvermattress id: p1a not found\"\n}"}],"_postman_id":"80dedcd5-7d9e-41b0-81bf-3d7be9b2c8be"},{"name":"Create Enumeration Value","id":"9ff1f586-5539-4ce5-979b-56ff54676327","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"deliveryPostalCode\": \"82101\",\n\t\"storeId\": \"1\",\n\t\"distance\": 100,\n\t\"weight\": 12.5\n}"},"url":"{{api_host}}/v1/enumerations/test/address0","description":"<p>Retrieve a given Catalog Item based on the provided id.</p>\n<p>Required Roles: \ncustomer.default/customer.anonymous</p>\n<h4 id=\"catalogitem\">catalogItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the catalog item</td>\n</tr>\n<tr>\n<td>typeId</td>\n<td>UUID</td>\n<td>true</td>\n<td>the id for the catalog item type</td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>UUID[]</td>\n<td>true</td>\n<td>array of shipping method ids available for this catalog item</td>\n</tr>\n<tr>\n<td>relatedIds</td>\n<td>String[]</td>\n<td>true</td>\n<td>array of related catalog items ids</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the catalog item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the catalog item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the catalog item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the catalog item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>true</td>\n<td>the tags for the catalog item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>true</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>true</td>\n<td>the ignore inventory flag for the catalog item</td>\n</tr>\n<tr>\n<td>productItems</td>\n<td>productItem[]</td>\n<td>for product</td>\n<td>the product items</td>\n</tr>\n<tr>\n<td>bundleItems</td>\n<td>bundleItem[]</td>\n<td>for bundle</td>\n<td>the bundle items</td>\n</tr>\n<tr>\n<td>giftCertificateItems</td>\n<td>giftCertificateItem[]</td>\n<td>for giftCertificate</td>\n<td>the gift certificate item</td>\n</tr>\n<tr>\n<td>taxCode</td>\n<td>String</td>\n<td>false</td>\n<td>the tax code for the catalog item</td>\n</tr>\n<tr>\n<td>activationDate</td>\n<td>Timestamp</td>\n<td>false</td>\n<td>activation date</td>\n</tr>\n<tr>\n<td>deactivationDate</td>\n<td>Timestamp</td>\n<td>false</td>\n<td>deactivation date</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"media\">Media</h4>\n<p>Json Object where properties got value of type MediaValue</p>\n<h4 id=\"mediavalue\">MediaValue</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>uri</td>\n<td>String</td>\n<td>true</td>\n<td>the uri for media</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>false</td>\n<td>the name for media</td>\n</tr>\n<tr>\n<td>altText</td>\n<td>String</td>\n<td>false</td>\n<td>the alt text for media</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dynamicproperties\">dynamicProperties</h4>\n<p>TODO</p>\n<h4 id=\"productitem\">productItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the product sku item</td>\n</tr>\n<tr>\n<td>shippingMethodIds</td>\n<td>UUID[]</td>\n<td>false</td>\n<td>array of shipping method ids available for this product sku item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the product sku item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the product sku item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the product sku item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the product sku item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>false</td>\n<td>the tags for the product sku item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>false</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>false</td>\n<td>the ignore inventory flag for the product sku item</td>\n</tr>\n<tr>\n<td>dimensions</td>\n<td>Dimensions*</td>\n<td>false</td>\n<td>the dimensions</td>\n</tr>\n<tr>\n<td>weight</td>\n<td>Weight*</td>\n<td>false</td>\n<td>the weight</td>\n</tr>\n<tr>\n<td>numPieces</td>\n<td>Int</td>\n<td>false</td>\n<td>the number of pieces</td>\n</tr>\n<tr>\n<td>shippingPackages</td>\n<td>ShippingPackage[]</td>\n<td>true</td>\n<td>Parts of product that ship separately</td>\n</tr>\n<tr>\n<td>purchasable</td>\n<td>bool</td>\n<td>true</td>\n<td>the purchasable flag for the product sku item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"shippingpackage\">ShippingPackage</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>dimensions</td>\n<td>dimensions*</td>\n<td>true</td>\n<td>Dimensions of the package</td>\n</tr>\n<tr>\n<td>width</td>\n<td>width*</td>\n<td>true</td>\n<td>Weight of the package</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"dimensions\">Dimensions</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>width</td>\n<td>Double</td>\n<td>true</td>\n<td>width</td>\n</tr>\n<tr>\n<td>height</td>\n<td>Double</td>\n<td>true</td>\n<td>height</td>\n</tr>\n<tr>\n<td>length</td>\n<td>Double</td>\n<td>true</td>\n<td>length</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>enum</td>\n<td>true</td>\n<td>dimension unit, supported values (cm, m, in)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"weight\">Weight</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>Double</td>\n<td>true</td>\n<td>weight</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>enum</td>\n<td>true</td>\n<td>weight unit, supported values (g, kg, lb)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"bundleitem\">bundleItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>true</td>\n<td>the id for the catalog item</td>\n</tr>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the product sku item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"giftcertificateitem\">giftCertificateItem</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>datatype</strong></th>\n<th><strong>required</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>skuId</td>\n<td>String</td>\n<td>false</td>\n<td>the id for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>true</td>\n<td>the name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>brandName</td>\n<td>String</td>\n<td>false</td>\n<td>the brand name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>manufacturerName</td>\n<td>String</td>\n<td>false</td>\n<td>the manufacturer name for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>media</td>\n<td>Media</td>\n<td>false</td>\n<td>the media for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>string[]</td>\n<td>false</td>\n<td>the tags for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>dynamicProperties</td>\n<td>dynamicProperties</td>\n<td>false</td>\n<td>the dynamic properties</td>\n</tr>\n<tr>\n<td>ignoreInventory</td>\n<td>bool</td>\n<td>false</td>\n<td>the ignore inventory flag for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>purchasable</td>\n<td>bool</td>\n<td>true</td>\n<td>the purchasable flag for the gift certificate sku item</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Double</td>\n<td>true</td>\n<td>the price</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>true</td>\n<td>the currency</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Trigger</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401</td>\n<td>Unauthorized Access Error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","enumerations","test","address0"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[{"id":"07fe00cd-0893-42f4-ab9c-9276d1d502b8","name":"Get Live Catalog Item","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/catalog/p1/live"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"p1\",\n    \"typeId\": \"f8ded1a3-37d0-4063-806d-2fcbf86ed23f\",\n    \"type\": \"product\",\n    \"name\": \"p1\",\n    \"brandName\": \"b1\",\n    \"manufacturerName\": \"m1\",\n    \"media\": {\n        \"default\": {\n            \"uri\": \"https://some.url/to/some/image\"\n        }\n    },\n    \"tags\": [\n        \"t1\",\n        \"t2\"\n    ],\n    \"dynamicProperties\": {\n        \"description\": \"p1 desc\",\n        \"color\": \"Red\"\n    },\n    \"productItems\": [\n        {\n            \"skuId\": \"p1\",\n            \"name\": \"p1.sku1\",\n            \"tags\": [\n                \"t1\",\n                \"t2\"\n            ],\n            \"dynamicProperties\": {\n                \"color\": \"Green\"\n            },\n\t\t    \"dimensions\": {\n\t\t         \"width\": 16,\n\t\t         \"length\": 20,\n\t\t         \"height\": 12,\n\t\t         \"unit\": \"in\"\n\t\t    },\n\t\t    \"weight\": {\n\t\t         \"value\": 8,\n\t\t         \"unit\": \"lb\"\n\t\t    },\n\t\t\t\"numPieces\": 1,\n            \"ignoreInventory\": true,\n            \"purchasable\": true\n        },\n        {\n            \"skuId\": \"p1\",\n            \"name\": \"p1.sku2\",\n            \"tags\": [\n                \"t1\",\n                \"t2\"\n            ],\n            \"dynamicProperties\": {\n                \"color\": \"Red\"\n            },\n\t\t    \"dimensions\": {\n\t\t         \"width\": 16,\n\t\t         \"length\": 20,\n\t\t         \"height\": 12,\n\t\t         \"unit\": \"in\"\n\t\t    },\n\t\t    \"weight\": {\n\t\t         \"value\": 8,\n\t\t         \"unit\": \"lb\"\n\t\t    },\n\t\t    \"numPieces\": 1,\n            \"purchasable\": true\n        }\n    ],\n    \"ignoreInventory\": false,\n    \"version\": 0\n}"},{"id":"b8e2dea4-1b51-4c3d-b777-60031b9cb17d","name":"Get Live Catalog Item - Not Found","originalRequest":{"method":"GET","header":[{"key":"X-UpStart-Tenant","value":"{{example_tenant_identifier}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{api_host}}/v1/catalog/p1a/live"},"code":404,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"CatalogItemSummary not found\",\n    \"code\": \"COR-001\",\n    \"detail\": \"CatalogItem, tenant: denvermattress id: p1a not found\"\n}"}],"_postman_id":"9ff1f586-5539-4ce5-979b-56ff54676327"}],"id":"5fb9556a-e775-4ddf-b2b9-66c50e77ac13","_postman_id":"5fb9556a-e775-4ddf-b2b9-66c50e77ac13","description":""},{"name":"Payment capture","id":"103b8c5e-84e5-4413-bd03-6688f462b9bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{auth_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"X-Upstart-Tenant","type":"text","value":"{{example_tenant_identifier}}"},{"key":"X-Upstart-Site","value":"{{example_site_identifier}}","type":"text"}],"body":{"mode":"raw","raw":"{}"},"url":"{{api_host}}/v1/order/:orderId/payments/:paymentId/capture","description":"<h1 id=\"set-order-shipment-delivered\">Set order shipment delivered</h1>\n<p>Updates order shipment state from labeled to delivered or returns error if the previous state was not labeled.</p>\n<p>Endpoint:\n<code>POST: /v1/order/:orderId/shipments/:shipmentId/delivered</code></p>\n<p>Function:\n<code>setOrderShipmentDelivered</code></p>\n<p>Required roles:\n<code>service.operator</code></p>\n<p>Attributes:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>path variables:\n    orderId: UUID - id of order\n    shipmentId: UUID - id of order shipment\nbody:\n    none\n</code></pre><p>Result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Success:\n    200 OK\nFailure:\n    Unauthorized: 401 UNAUTHORIZED - COR-006\n</code></pre><h4 id=\"request\">Request:</h4>\n<ul>\n<li>empty</li>\n</ul>\n<h4 id=\"response\">Response:</h4>\n<h6 id=\"success\">Success:</h6>\n<ul>\n<li>200 OK</li>\n</ul>\n<h6 id=\"unauthorized\">Unauthorized:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"Unauthorized\",\n    \"code\": \"COR-006\",\n    \"detail\": \"Can't authorize mandatory data is missing\"\n}\n</code></pre>\n","urlObject":{"path":["v1","order",":orderId","payments",":paymentId","capture"],"host":["{{api_host}}"],"query":[],"variable":[{"id":"712af3d4-2702-4661-a25d-2bc7ac47f287","type":"string","value":"","key":"orderId"},{"id":"fb23916a-9bc8-4790-b92f-73c3158634d7","type":"string","value":"","key":"paymentId"}]}},"response":[],"_postman_id":"103b8c5e-84e5-4413-bd03-6688f462b9bf"},{"name":"generate anonymous token","id":"e324aea3-3930-4bd9-a50b-a35ea6d10e07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-upstart-tenan","value":"{{example_tenant_identifier}}","type":"text"},{"key":"x-upstart-site","value":"{{example_site_identifier}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{api_host}}/v1/customer/login/anonymous/token","urlObject":{"path":["v1","customer","login","anonymous","token"],"host":["{{api_host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e324aea3-3930-4bd9-a50b-a35ea6d10e07"}],"event":[{"listen":"prerequest","script":{"id":"cd89afd3-7f58-4990-af43-33daba2be338","type":"text/javascript","exec":["console.log(\"setting up tokens\")","","var currToken =  pm.environment.get(\"current_access_token\")","var custToken =  pm.environment.get(\"customer_access_token\")","var anonToken =  pm.environment.get(\"anonymous_access_token\")","","console.log(\"Current Token is : {\" + currToken + \"}\")","console.log(\"Customer Access Token is : {\" + custToken + \"}\")","console.log(\"Anonymous Access Token is : {\" + anonToken + \"}\")","","","//if (typeof custToken !== 'undefined' && custToken !== null && custToken !== \"\" ) {","//    pm.environment.set(\"current_access_token\", custToken);","//} else if (typeof anonToken !== 'undefined' && anonToken !== null && anonToken !== \"\") {","//    pm.environment.set(\"current_access_token\", anonToken);","//}"]}},{"listen":"test","script":{"id":"f5375af7-29dc-4df5-a5a2-3fc1254b96ad","type":"text/javascript","exec":[""]}}]}