{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"optional","examples":{"codes":[]},"method":"get","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Retrieve SKU Price","type":"endpoint","slug":"retrieve-sku-price","excerpt":"","body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/skus/:sku-id/merchant-price/resolve?{ip|currency|quantity|storeid|country|state}\n</span>\n\n<hr>\n\n##Documentation\nThe Retrieve SKU Price request enables you to retrieve the price of an existing SKU in your account. This service supports currency conversion.\n\n###Request Content\nEnter the `sku-id` and the relevant parameter into the web service URL, in the format:\n`services/2/skus/{sku-id}/merchant-price/resolve?{ip|currency|quantity|storeid|country|state}`\n\nFor example:\n`services/2/skus/987654/merchant-price/resolve?currency=USD`\n<br>\n**Query Parameters** \n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Parameter Name\",\n \"h-1\": \"Description\",\n \"h-2\": \"Example\",\n \"0-0\": \"**country**\",\n \"0-1\": \"Country of the shopper. This will resolve the currency and the tax.\",\n \"0-2\": \"`country=fr`\",\n \"1-0\": \"**currency**\",\n \"1-1\": \"Currency in which to retrieve the price. It will be converted from the base currency.\",\n \"1-2\": \"`currency=USD`\",\n \"2-0\": \"**ip**\",\n \"2-1\": \"IP of the shopper to assist in identifying the geo-location of the shopper.\",\n \"2-2\": \"`ip=93.174.104.49`\",\n \"3-0\": \"**quantity**\",\n \"4-0\": \"**state**\",\n \"5-0\": \"**storeid**\",\n \"3-1\": \"Quantity in the order. This will be multiplied by the price for a single item in order to get the total price.\",\n \"3-2\": \"`quantity=4`\",\n \"4-2\": \"`state=MA`\",\n \"5-2\": \"`storeid=1234`\",\n \"4-1\": \"State of the shopper, to resolve the currency and the tax. US states only.\"\n },\n \"cols\": 3,\n \"rows\": 6\n}\n[/block]\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved `item-price` resource (see [item-price](doc:item-price)).\nFor details about possible errors, see: [General Errors](doc:general-errors) and [Catalog Errors](doc:catalog-errors).\n\n<hr>\n\n##Examples\n\n###Request Examples\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/skus/2180474/merchant-price/resolve?country=fr \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n \"language\": \"curl\",\n \"name\": \"Retrieve SKU Price Request: with country\"\n },\n {\n \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/skus/2180474/merchant-price/resolve?currency=USD \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n \"language\": \"curl\",\n \"name\": \"with currency\"\n },\n {\n \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/skus/2180474/merchant-price/resolve?ip=93.174.104.49 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n \"language\": \"curl\",\n \"name\": \"with IP\"\n }\n ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<item-price xmlns=\\\"http://ws.plimus.com\\\">\\n <store-id>12700</store-id>\\n <quantity>1</quantity>\\n <unit-price>\\n <charge-price>\\n <charge-type>initial</charge-type>\\n <value>21.82</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 21.82</iso>\\n <symbol>€21.82</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n <charge-price>\\n <charge-type>recurring</charge-type>\\n <value>0.00</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 0.00</iso>\\n <symbol>€0.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n </unit-price>\\n <total-price>\\n <charge-price>\\n <charge-type>initial</charge-type>\\n <value>21.82</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 21.82</iso>\\n <symbol>€21.82</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n <charge-price>\\n <charge-type>recurring</charge-type>\\n <value>0.00</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 0.00</iso>\\n <symbol>€0.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n </total-price>\\n <total-price-with-tax>\\n <charge-price>\\n <charge-type>initial</charge-type>\\n <value>26.09</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 26.09</iso>\\n <symbol>€26.09</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n <charge-price>\\n <charge-type>recurring</charge-type>\\n <value>0.00</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 0.00</iso>\\n <symbol>€0.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n </total-price-with-tax>\\n <tax>4.28</tax>\\n <tax-recurring>0.00</tax-recurring>\\n <tax-rate>19.6</tax-rate>\\n <country>fr</country>\\n</item-price>\",\n \"language\": \"xml\",\n \"name\": \"Retrieve SKU Response: country\"\n },\n {\n \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<item-price xmlns=\\\"http://ws.plimus.com\\\">\\n <store-id>12700</store-id>\\n <quantity>1</quantity>\\n <unit-price>\\n <charge-price>\\n <charge-type>initial</charge-type>\\n <value>30.00</value>\\n <currency>USD</currency>\\n <formatted-price>\\n <iso>USD 30.00</iso>\\n <symbol>$30.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n <charge-price>\\n <charge-type>recurring</charge-type>\\n <value>0.00</value>\\n <currency>USD</currency>\\n <formatted-price>\\n <iso>USD 0.00</iso>\\n <symbol>$0.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n </unit-price>\\n <total-price>\\n <charge-price>\\n <charge-type>initial</charge-type>\\n <value>30.00</value>\\n <currency>USD</currency>\\n <formatted-price>\\n <iso>USD 30.00</iso>\\n <symbol>$30.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n <charge-price>\\n <charge-type>recurring</charge-type>\\n <value>0.00</value>\\n <currency>USD</currency>\\n <formatted-price>\\n <iso>USD 0.00</iso>\\n <symbol>$0.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n </total-price>\\n <total-price-with-tax>\\n <charge-price>\\n <charge-type>initial</charge-type>\\n <value>30.00</value>\\n <currency>USD</currency>\\n <formatted-price>\\n <iso>USD 30.00</iso>\\n <symbol>$30.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n <charge-price>\\n <charge-type>recurring</charge-type>\\n <value>0.00</value>\\n <currency>USD</currency>\\n <formatted-price>\\n <iso>USD 0.00</iso>\\n <symbol>$0.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n </total-price-with-tax>\\n <tax>0.00</tax>\\n <tax-recurring>0.00</tax-recurring>\\n <tax-rate>0</tax-rate>\\n</item-price>\",\n \"language\": \"xml\",\n \"name\": \"currency\"\n },\n {\n \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<item-price xmlns=\\\"http://ws.plimus.com\\\">\\n <store-id>12700</store-id>\\n <quantity>1</quantity>\\n <unit-price>\\n <charge-price>\\n <charge-type>initial</charge-type>\\n <value>21.82</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 21.82</iso>\\n <symbol>€21.82</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n <charge-price>\\n <charge-type>recurring</charge-type>\\n <value>0.00</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 0.00</iso>\\n <symbol>€0.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n </unit-price>\\n <total-price>\\n <charge-price>\\n <charge-type>initial</charge-type>\\n <value>21.82</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 21.82</iso>\\n <symbol>€21.82</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n <charge-price>\\n <charge-type>recurring</charge-type>\\n <value>0.00</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 0.00</iso>\\n <symbol>€0.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n </total-price>\\n <total-price-with-tax>\\n <charge-price>\\n <charge-type>initial</charge-type>\\n <value>26.18</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 26.18</iso>\\n <symbol>€26.18</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n <charge-price>\\n <charge-type>recurring</charge-type>\\n <value>0.00</value>\\n <currency>EUR</currency>\\n <formatted-price>\\n <iso>EUR 0.00</iso>\\n <symbol>€0.00</symbol>\\n </formatted-price>\\n <tax-included>false</tax-included>\\n </charge-price>\\n </total-price-with-tax>\\n <tax>4.36</tax>\\n <tax-recurring>0.00</tax-recurring>\\n <tax-rate>20</tax-rate>\\n <country>nl</country>\\n</item-price>\",\n \"language\": \"xml\",\n \"name\": \"IP\"\n }\n ]\n}\n[/block]\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","updates":[],"order":6,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"61a5033cd3c4d201e7b583d4","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Catalog","slug":"coupon","order":4,"from_sync":false,"reference":true,"_id":"61a5033cd3c4d201e7b583be","version":"61a5033cd3c4d201e7b5848b","project":"57336fd5a6a9c40e00e13a0b","createdAt":"2016-05-12T15:22:00.041Z","__v":0},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"version":"8976-Extended","version_clean":"8976.0.0-Extended","codename":"3.40 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["61a5033cd3c4d201e7b583ba","61a5033cd3c4d201e7b583bb","61a5033cd3c4d201e7b583bc","61a5033cd3c4d201e7b583bd","61a5033cd3c4d201e7b583be","61a5033cd3c4d201e7b583bf","61a5033cd3c4d201e7b583c0","61a5033cd3c4d201e7b583c1","61a5033cd3c4d201e7b583c2","61a5033cd3c4d201e7b583c3","61a5033cd3c4d201e7b583c4"],"_id":"61a5033cd3c4d201e7b5848b","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"6040037678d626005641a154","createdAt":"2018-04-24T15:33:45.744Z","releaseDate":"2018-04-24T15:33:45.744Z"},"createdAt":"2016-06-29T19:38:20.083Z","githubsync":"","__v":0}
getRetrieve SKU Price
Definition
https://sandbox.bluesnap.com/services/2/skus/:sku-id/merchant-price/resolve?{ip|currency|quantity|storeid|country|state}
Documentation
The Retrieve SKU Price request enables you to retrieve the price of an existing SKU in your account. This service supports currency conversion.
Request Content
Enter the sku-id
and the relevant parameter into the web service URL, in the format:services/2/skus/{sku-id}/merchant-price/resolve?{ip|currency|quantity|storeid|country|state}
For example:services/2/skus/987654/merchant-price/resolve?currency=USD
Query Parameters
country
Country of the shopper. This will resolve the currency and the tax.
country=fr
currency
Currency in which to retrieve the price. It will be converted from the base currency.
currency=USD
ip
IP of the shopper to assist in identifying the geo-location of the shopper.
ip=93.174.104.49
quantity
Quantity in the order. This will be multiplied by the price for a single item in order to get the total price.
quantity=4
state
State of the shopper, to resolve the currency and the tax. US states only.
state=MA
storeid
storeid=1234
Response Details
If successful, the response HTTP status code is 200 OK.
The response contains the retrieved item-price
resource (see item-price).
For details about possible errors, see: General Errors and Catalog Errors.
Examples
Request Examples
curl -v -X GET https://sandbox.bluesnap.com/services/2/skus/2180474/merchant-price/resolve?country=fr \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='
curl -v -X GET https://sandbox.bluesnap.com/services/2/skus/2180474/merchant-price/resolve?currency=USD \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='
curl -v -X GET https://sandbox.bluesnap.com/services/2/skus/2180474/merchant-price/resolve?ip=93.174.104.49 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='
<item-price xmlns="http://ws.plimus.com">
<store-id>12700</store-id>
<quantity>1</quantity>
<unit-price>
<charge-price>
<charge-type>initial</charge-type>
<value>21.82</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 21.82</iso>
<symbol>€21.82</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
<charge-price>
<charge-type>recurring</charge-type>
<value>0.00</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 0.00</iso>
<symbol>€0.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
</unit-price>
<total-price>
<charge-price>
<charge-type>initial</charge-type>
<value>21.82</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 21.82</iso>
<symbol>€21.82</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
<charge-price>
<charge-type>recurring</charge-type>
<value>0.00</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 0.00</iso>
<symbol>€0.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
</total-price>
<total-price-with-tax>
<charge-price>
<charge-type>initial</charge-type>
<value>26.09</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 26.09</iso>
<symbol>€26.09</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
<charge-price>
<charge-type>recurring</charge-type>
<value>0.00</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 0.00</iso>
<symbol>€0.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
</total-price-with-tax>
<tax>4.28</tax>
<tax-recurring>0.00</tax-recurring>
<tax-rate>19.6</tax-rate>
<country>fr</country>
</item-price>
<item-price xmlns="http://ws.plimus.com">
<store-id>12700</store-id>
<quantity>1</quantity>
<unit-price>
<charge-price>
<charge-type>initial</charge-type>
<value>30.00</value>
<currency>USD</currency>
<formatted-price>
<iso>USD 30.00</iso>
<symbol>$30.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
<charge-price>
<charge-type>recurring</charge-type>
<value>0.00</value>
<currency>USD</currency>
<formatted-price>
<iso>USD 0.00</iso>
<symbol>$0.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
</unit-price>
<total-price>
<charge-price>
<charge-type>initial</charge-type>
<value>30.00</value>
<currency>USD</currency>
<formatted-price>
<iso>USD 30.00</iso>
<symbol>$30.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
<charge-price>
<charge-type>recurring</charge-type>
<value>0.00</value>
<currency>USD</currency>
<formatted-price>
<iso>USD 0.00</iso>
<symbol>$0.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
</total-price>
<total-price-with-tax>
<charge-price>
<charge-type>initial</charge-type>
<value>30.00</value>
<currency>USD</currency>
<formatted-price>
<iso>USD 30.00</iso>
<symbol>$30.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
<charge-price>
<charge-type>recurring</charge-type>
<value>0.00</value>
<currency>USD</currency>
<formatted-price>
<iso>USD 0.00</iso>
<symbol>$0.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
</total-price-with-tax>
<tax>0.00</tax>
<tax-recurring>0.00</tax-recurring>
<tax-rate>0</tax-rate>
</item-price>
<item-price xmlns="http://ws.plimus.com">
<store-id>12700</store-id>
<quantity>1</quantity>
<unit-price>
<charge-price>
<charge-type>initial</charge-type>
<value>21.82</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 21.82</iso>
<symbol>€21.82</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
<charge-price>
<charge-type>recurring</charge-type>
<value>0.00</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 0.00</iso>
<symbol>€0.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
</unit-price>
<total-price>
<charge-price>
<charge-type>initial</charge-type>
<value>21.82</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 21.82</iso>
<symbol>€21.82</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
<charge-price>
<charge-type>recurring</charge-type>
<value>0.00</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 0.00</iso>
<symbol>€0.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
</total-price>
<total-price-with-tax>
<charge-price>
<charge-type>initial</charge-type>
<value>26.18</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 26.18</iso>
<symbol>€26.18</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
<charge-price>
<charge-type>recurring</charge-type>
<value>0.00</value>
<currency>EUR</currency>
<formatted-price>
<iso>EUR 0.00</iso>
<symbol>€0.00</symbol>
</formatted-price>
<tax-included>false</tax-included>
</charge-price>
</total-price-with-tax>
<tax>4.36</tax>
<tax-recurring>0.00</tax-recurring>
<tax-rate>20</tax-rate>
<country>nl</country>
</item-price>