{"_id":"5b19742cb3baf90003cab503","category":{"_id":"5b19742cb3baf90003cab4ec","version":"5b19742cb3baf90003cab5ae","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-05-12T15:22:00.041Z","from_sync":false,"order":4,"slug":"coupon","title":"Catalog"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"5b19742cb3baf90003cab5ae","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"5adf4e59ac13b80003d23152","createdAt":"2018-04-24T15:33:45.744Z","releaseDate":"2018-04-24T15:33:45.744Z","categories":["5b19742cb3baf90003cab4e8","5b19742cb3baf90003cab4e9","5b19742cb3baf90003cab4ea","5b19742cb3baf90003cab4eb","5b19742cb3baf90003cab4ec","5b19742cb3baf90003cab4ed","5b19742cb3baf90003cab4ee","5b19742cb3baf90003cab4ef","5b19742cb3baf90003cab4f0","5b19742cb3baf90003cab4f1","5b19742cb3baf90003cab4f2"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.26 Release","version_clean":"8976.0.0-Extended","version":"8976-Extended"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-12T15:18:24.562Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"settings":"","examples":{"codes":[]},"method":"get","results":{"codes":[]},"auth":"optional","params":[],"url":""},"isReference":true,"order":5,"body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/catalog/skus/:sku-id</span>\n\n<hr>\n\n##Documentation\nThe Retrieve SKU request enables you to retrieve details of an existing SKU in your account.\n\n###Request Content\nEnter the `sku-id` into the web service URL, in the format:\n`services/2/catalog/skus/{sku-id}`\n\nFor example:\n`services/2/catalog/skus/987654`\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved `catalog-sku` resource (see [catalog-sku](doc:catalog-sku)).\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 Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/catalog/skus/2145718 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve SKU Request\"\n    }\n  ]\n}\n[/block]\n###Response Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<catalog-sku xmlns=\\\"http://ws.plimus.com\\\">\\n  <sku-name>One time charge - USD base</sku-name>\\n  <contract-name>Version 3.3</contract-name>\\n  <product-id>301977</product-id>\\n  <sku-status>A</sku-status>\\n  <sku-type>DIGITAL</sku-type>\\n  <pricing-settings>\\n    <charge-policy-type>ONE TIME PAYMENT</charge-policy-type>\\n    <charge-policy>\\n      <one-time-charge>\\n        <catalog-prices>\\n          <catalog-price>\\n            <base-price>true</base-price>\\n            <currency>USD</currency>\\n            <amount>7.00</amount>\\n          </catalog-price>\\n        </catalog-prices>\\n      </one-time-charge>\\n    </charge-policy>\\n    <include-tax-in-price>false</include-tax-in-price>\\n    <rounding-price-method>NO ROUNDING</rounding-price-method>\\n  </pricing-settings>\\n  <sku-buynow-urls>\\n    <buynow-url>\\n      <url-description>BuyNow Page</url-description>\\n      <url>https://sandbox.bluesnap.com/jsp/buynow.jsp?contractId=2147201</url>\\n    </buynow-url>\\n  </sku-buynow-urls>\\n  <sku-quantity-policy>\\n    <allow-quantity-change>true</allow-quantity-change>\\n    <minimum-quantity>1</minimum-quantity>\\n  </sku-quantity-policy>\\n  <collect-shipping-address>false</collect-shipping-address>\\n  <sku-effective-dates>\\n    <effective-from>07-Apr-17</effective-from>\\n    <effective-till>05-Apr-20</effective-till>\\n  </sku-effective-dates>\\n  <sku-coupon-settings>\\n    <sku-coupon-setting>ENABLE</sku-coupon-setting>\\n  </sku-coupon-settings>\\n  <sku-custom-parameters />\\n</catalog-sku>\",\n      \"language\": \"xml\",\n      \"name\": \"Retrieve SKU Response\"\n    }\n  ]\n}\n[/block]\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","excerpt":"","slug":"retrieve-sku","type":"endpoint","title":"Retrieve SKU"}

Definition

https://sandbox.bluesnap.com/services/2/catalog/skus/:sku-id


Documentation

The Retrieve SKU request enables you to retrieve details of an existing SKU in your account.

Request Content

Enter the sku-id into the web service URL, in the format:
services/2/catalog/skus/{sku-id}

For example:
services/2/catalog/skus/987654

Response Details

If successful, the response HTTP status code is 200 OK.
The response contains the retrieved catalog-sku resource (see catalog-sku).
For details about possible errors, see: General Errors and Catalog Errors.


Examples

Request Example

curl -v -X GET https://sandbox.bluesnap.com/services/2/catalog/skus/2145718 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='

Response Example

<?xml version="1.0" encoding="UTF-8"?>
<catalog-sku xmlns="http://ws.plimus.com">
  <sku-name>One time charge - USD base</sku-name>
  <contract-name>Version 3.3</contract-name>
  <product-id>301977</product-id>
  <sku-status>A</sku-status>
  <sku-type>DIGITAL</sku-type>
  <pricing-settings>
    <charge-policy-type>ONE TIME PAYMENT</charge-policy-type>
    <charge-policy>
      <one-time-charge>
        <catalog-prices>
          <catalog-price>
            <base-price>true</base-price>
            <currency>USD</currency>
            <amount>7.00</amount>
          </catalog-price>
        </catalog-prices>
      </one-time-charge>
    </charge-policy>
    <include-tax-in-price>false</include-tax-in-price>
    <rounding-price-method>NO ROUNDING</rounding-price-method>
  </pricing-settings>
  <sku-buynow-urls>
    <buynow-url>
      <url-description>BuyNow Page</url-description>
      <url>https://sandbox.bluesnap.com/jsp/buynow.jsp?contractId=2147201</url>
    </buynow-url>
  </sku-buynow-urls>
  <sku-quantity-policy>
    <allow-quantity-change>true</allow-quantity-change>
    <minimum-quantity>1</minimum-quantity>
  </sku-quantity-policy>
  <collect-shipping-address>false</collect-shipping-address>
  <sku-effective-dates>
    <effective-from>07-Apr-17</effective-from>
    <effective-till>05-Apr-20</effective-till>
  </sku-effective-dates>
  <sku-coupon-settings>
    <sku-coupon-setting>ENABLE</sku-coupon-setting>
  </sku-coupon-settings>
  <sku-custom-parameters />
</catalog-sku>