{ "info": { "_postman_id": "3b800a6b-d89d-4b5c-9e52-268153645622", "name": "New Currency", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Create new currency", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n\t\"id\": \"{{code}}\",\n\t\"numericCurrencyCode\": {{numericCode}},\n\t\"currencyExponent\": -2\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/currencies", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "currencies" ] } }, "response": [] }, { "name": "Create currency description", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"code\": \"{{code}}\",\n \"languageId\": {{langId_en}},\n \"description\": \"{{description}}\"\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/currency-descriptions", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "currency-descriptions" ] } }, "response": [] }, { "name": "Create currency conversions", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{ \n \"storeId\": {{catalogAssetStoreId}},\n \"fromCurrency\": \"USD\",\n \"toCurrency\": \"{{code}}\",\n \"conversionFactor\": 2.3215,\n \"multiplyOrDivide\": \"M\",\n \"bidirectional\": \"Y\",\n \"updatable\": \"Y\"\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/currency-conversions", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "currency-conversions" ] } }, "response": [] }, { "name": "Create currency format", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"storeId\": {{catalogAssetStoreId}},\n \"currency\": \"{{code}}\",\n \"roundingMultiple\": 1,\n \"numberUsg\": -1,\n \"roundingMethod\": \"R\",\n \"decimalPlaces\": 2,\n \"minimumApproveAmount\": null\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/currency-formats", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "currency-formats" ] } }, "response": [] }, { "name": "Create currency-format-descriptions", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"languageId\": {{langId_en}},\n \"currencySymbol\": \"{{symbol}}\",\n \"customizedCurrencyCode\": null,\n \"currencyPrefixPositive\": \"{{symbol}}\",\n \"currencyPrefixNegative\": \"-{{symbol}}\",\n \"currencySuffixPositive\": null,\n \"currencySuffixNegative\": null,\n \"displayLocale\": null,\n \"radixPoint\": null,\n \"groupingCharacter\": null,\n \"numberPattern\": \"#,##\",\n \"description\": \"{{description}}\",\n \"storeId\": {{catalogAssetStoreId}},\n \"currency\": \"{{code}}\",\n \"numberUsg\": -1\n \n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/currency-format-descriptions", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "currency-format-descriptions" ] } }, "response": [] }, { "name": "Update store-currencies", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"items\": [\n {\n\t \t\"storeId\":{{catalogAssetStoreId}},\n\t\t\t\"currency\":\"{{code}}\"\n\t\t},\n\t\t{\n\t \t\"storeId\":{{esiteStoreId}},\n\t\t\t\"currency\":\"{{code}}\"\n\t\t}\n ]\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/store-currencies", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "store-currencies" ] } }, "response": [] }, { "name": "Create currency search-fields", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"id\": 10001,\n\t\"indexId\": \"0\",\n \"indexType\": \"CatalogEntry\",\n \"identifier\": \"_cat.OfferPrice_{{code}}\"\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/search-fields", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "search-fields" ] } }, "response": [] }, { "name": "Create currency search-field-properties", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"fieldId\": 10001,\n \"property\": \"facet\",\n \"fieldName\": \"price_{{code}}:{* TO 100];{100 TO 200];{200 TO 300];{300 TO 400];{400 TO 500];{500 TO *}\"\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/search-field-properties", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "search-field-properties" ] } }, "response": [] }, { "name": "Create currency facet-properties", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 10001,\n \"attributeId\": null,\n \"fieldId\": 10001,\n \"storeId\": 0,\n \"selection\": 0,\n \"sortOrder\": 0,\n \"searchDisplay\": 1,\n \"zeroDisplay\": 0,\n \"maxDisplay\": 20,\n \"sequence\": 0,\n \"field1\": null,\n \"field2\": null,\n \"field3\": null,\n \"groupId\": 0\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/facet-properties", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "facet-properties" ] } }, "response": [] }, { "name": "Create currency facet-descriptions", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"facetId\": 10001,\n \"languageId\": {{langId_en}},\n \"name\": \"Price ({{code}})\",\n \"description\": \"Price-{{code}}\",\n \"field1\": null,\n \"field2\": null,\n \"field3\": null\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/facet-descriptions", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "facet-descriptions" ] } }, "response": [] }, { "name": "Update product's prices in new currency", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{password}}", "type": "string" }, { "key": "username", "value": "wcsadmin", "type": "string" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"items\": [\n {\n \"offerId\": 4000000000000004123,\n \"currency\": \"{{code}}\",\n \"price\": 21\n },\n {\n \"offerId\": 4000000000000002702,\n \"currency\": \"{{code}}\",\n \"price\": 11\n },\n {\n \"offerId\": 4000000000000004701,\n \"currency\": \"{{code}}\",\n \"price\": 21.5\n },\n {\n \"offerId\": 4000000000000002703,\n \"currency\": \"{{code}}\",\n \"price\": 11.5\n },\n {\n \"offerId\": 4000000000000004125,\n \"currency\": \"{{code}}\",\n \"price\": 15.5\n },\n {\n \"offerId\": 4000000000000002704,\n \"currency\": \"{{code}}\",\n \"price\": 5.5\n },\n {\n \"offerId\": 4000000000000004704,\n \"currency\": \"{{code}}\",\n \"price\": 16.5\n },\n {\n \"offerId\": 4000000000000002705,\n \"currency\": \"{{code}}\",\n \"price\": 6.5\n }\n ]\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/offer-prices?", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "offer-prices" ] } }, "response": [] }, { "name": "V9 auth index build", "event": [ { "listen": "test", "script": { "id": "1e7bfc27-4e20-4db1-9609-f2a80a494339", "exec": [ "pm.globals.set(\"v9IndexingJobStatusId\", pm.response.json().jobStatusId);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{password}}", "type": "string" }, { "key": "username", "value": "wcsadmin", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/wcs/resources/admin/index/dataImport/build?masterCatalogId=10001&fullBuild=true", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "wcs", "resources", "admin", "index", "dataImport", "build" ], "query": [ { "key": "masterCatalogId", "value": "10001" }, { "key": "fullBuild", "value": "true" } ] } }, "response": [] }, { "name": "V9 auth index build status", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{password}}", "type": "string" }, { "key": "username", "value": "wcsadmin", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/wcs/resources/admin/index/dataImport/status?jobStatusId={{v9IndexingJobStatusId}}", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "wcs", "resources", "admin", "index", "dataImport", "status" ], "query": [ { "key": "jobStatusId", "value": "{{v9IndexingJobStatusId}}" } ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "id": "df9e9a19-041f-4992-ae50-fb47083f8935", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "7fc58b76-df2c-4a16-9107-165be89dc6f9", "type": "text/javascript", "exec": [ "" ] } } ] }