{"_id":"59e8f601aa561e00241c44bd","category":{"_id":"59e8f600aa561e00241c44ad","version":"59e8f600aa561e00241c44aa","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-05-12T14:36:27.755Z","from_sync":false,"order":2,"slug":"shopping-context","title":"Shopping Context"},"user":"560d5913af97231900938124","parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","version":{"_id":"59e8f600aa561e00241c44aa","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-10-19T18:59:12.596Z","releaseDate":"2017-10-19T18:59:12.596Z","categories":["59e8f600aa561e00241c44ab","59e8f600aa561e00241c44ac","59e8f600aa561e00241c44ad","59e8f600aa561e00241c44ae","59e8f600aa561e00241c44af","59e8f600aa561e00241c44b0","59e8f600aa561e00241c44b1","59e8f600aa561e00241c44b2","59e8f600aa561e00241c44b3","59e8f600aa561e00241c44b4","59e8f600aa561e00241c44b5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.23 Release","version_clean":"8976.0.0-Extended","version":"8976-Extended"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-12T15:04:57.774Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"post","results":{"codes":[]},"settings":"","auth":"optional","params":[],"url":""},"isReference":true,"order":8,"body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/shopping-context</span>\n\n<hr>\n\n##Documentation\nThe Create Shopping Context request enables you to place an order for a shopper and defer payment to a later time. This should be used for transactions with asynchronous payment methods like PayPal or wire transfers. It is also useful for cases when you want to separate your Auth and Capture phases.\n\n###Request Content\n`shopping-context` &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>, contains the following properties (see [shopping-context](doc:shopping-context)):\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`step` *string* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`web-info` *container* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span> (see [web-info](doc:web-info))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`shopper-details` *container* &nbsp;&nbsp;&nbsp;optional (see [shopper-details](doc:shopper-details))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`order-details` *container* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span> (see [order-details](doc:order-details))\n\n**Query Parameters**\nOptionally, you can include these query parameters in the web service URL in your request.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter Name\",\n    \"h-1\": \"Description\",\n    \"h-2\": \"Example\",\n    \"0-0\": \"`returnrepresentation`\",\n    \"0-1\": \"Return the `shopping-context` resource in the response. Default is false.\",\n    \"1-0\": \"`performfullauthorization`\",\n    \"1-1\": \"Perform authorization for the full amount of the the shopping-context. Otherwise, just validate the payment method on the default amount. Default is true.\",\n    \"2-0\": \"`expirationinminutes`\",\n    \"2-1\": \"Configure the expiration time in minutes.\",\n    \"0-2\": \"`returnrepresentation=true`\",\n    \"1-2\": \"`performfullauthorization=false`\",\n    \"2-2\": \"`expirationinminutes=15`\"\n  },\n  \"cols\": 3,\n  \"rows\": 3\n}\n[/block]\n###Response Details\nIf successful, the response HTTP status code is 201 Created.\nThe Location response header contains the URI of the newly created `shopping-context` resource.\nIn most cases, there is no content in the response body.\nHowever, the `shopping-context` resource will be returned if you use the `returnrepresentation` parameter, and for PayPal transactions. \nFor details about possible errors, see: [General Errors](doc:general-errors), [Payment & Processor Errors](doc:payment-errors), [Shopper Errors](doc:shopper-errors), [Fraud Errors](doc:fraud-errors), [Hosted Payment Field Errors](/v4.0/docs/hosted-payment-field-errors), and [Wallet Errors](/v4.0/docs/wallet-errors).\n\n<hr>\n\n##Examples\n\n###Request Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <shopper-details>\\n    <shopper>\\n      <shopper-info>\\n        <shopper-contact-info>\\n          <title>Mr</title>\\n          <first-name>shopper first name</first-name>\\n          <last-name>shopper last name</last-name>\\n          <email>john.smith:::at:::gmail.com</email>\\n          <company-name>JS Company</company-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>us</country>\\n          <phone>1800808080</phone>\\n          <fax>1800808080</fax>\\n        </shopper-contact-info>\\n        <store-id>12700</store-id>\\n        <vat-code />\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n      </shopper-info>\\n    </shopper>\\n  </shopper-details>\\n  <order-details>\\n    <order>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2178316</sku-id>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>50.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"Create Shopping Context Request: without payment info\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <shopper-details>\\n    <shopper>\\n      <shopper-info>\\n        <shopper-contact-info>\\n          <title>Mr</title>\\n          <first-name>shopper first name</first-name>\\n          <last-name>shopper last name</last-name>\\n          <email>john.smith@gmail.com</email>\\n          <company-name>JS Company</company-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>us</country>\\n          <phone>1800808080</phone>\\n          <fax>1800808080</fax>\\n        </shopper-contact-info>\\n        <shipping-contact-info>\\n          <first-name>Shipping first name</first-name>\\n          <last-name>Shipping last name</last-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>US</country>\\n        </shipping-contact-info>\\n        <invoice-contacts-info>\\n          <invoice-contact-info>\\n            <default>true</default>\\n            <company-name>Company</company-name>\\n            <vat-code></vat-code>\\n            <title>Mrs.</title>\\n            <first-name>John</first-name>\\n            <last-name>Doe</last-name>\\n            <address1>5 Star Drive</address1>\\n            <address2>3rd entrance</address2>\\n            <city>Purchase</city>\\n            <state>NY</state>\\n            <zip>34645</zip>\\n            <country>us</country>\\n            <phone>1800400500</phone>\\n            <fax>1800400500</fax>\\n            <email>johndoe@BlueSnap.com</email>\\n          </invoice-contact-info>\\n        </invoice-contacts-info>\\n        <payment-info>\\n          <credit-cards-info>\\n            <credit-card-info>\\n              <billing-contact-info>\\n                <first-name>Billing first name</first-name>\\n                <last-name>Billing last name</last-name>\\n                <address1>123 Oxford</address1>\\n                <address2 />\\n                <city>City</city>\\n                <state>NY</state>\\n                <zip>54321</zip>\\n                <country>US</country>\\n              </billing-contact-info>\\n              <credit-card>\\n                <card-number>4111111111111111</card-number>\\n                <expiration-month>09</expiration-month>\\n                <expiration-year>2019</expiration-year>\\n                <security-code>131</security-code>\\n              </credit-card>\\n            </credit-card-info>\\n          </credit-cards-info>\\n        </payment-info>\\n        <store-id>12700</store-id>\\n        <vat-code></vat-code>\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n      </shopper-info>\\n    </shopper>\\n  </shopper-details>\\n  <order-details>\\n    <order>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2178316</sku-id>\\n            <sku-charge-price>\\n              <charge-type>initial</charge-type>\\n              <amount>50.00</amount>\\n              <currency>USD</currency>\\n            </sku-charge-price>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>50.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"with payment info\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context?returnrepresentation=true \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <shopper-details>\\n    <shopper>\\n      <shopper-info>\\n        <shopper-contact-info>\\n          <title>Mr</title>\\n          <first-name>shopper first name</first-name>\\n          <last-name>shopper last name</last-name>\\n          <email>john.smith@gmail.com</email>\\n          <company-name>JS Company</company-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>us</country>\\n          <phone>1800808080</phone>\\n          <fax>1800808080</fax>\\n        </shopper-contact-info>\\n        <shipping-contact-info>\\n          <first-name>Shipping first name</first-name>\\n          <last-name>Shipping last name</last-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>US</country>\\n        </shipping-contact-info>\\n        <invoice-contacts-info>\\n          <invoice-contact-info>\\n            <default>true</default>\\n            <company-name>BlueSnap UK</company-name>\\n            <vat-code></vat-code>\\n            <title>Mrs.</title>\\n            <first-name>John</first-name>\\n            <last-name>Doe</last-name>\\n            <address1>5 Star drive</address1>\\n            <address2>3rd entrance</address2>\\n            <city>Purchase</city>\\n            <state>NY</state>\\n            <zip>34645</zip>\\n            <country>us</country>\\n            <phone>1800400500</phone>\\n            <fax>1800400500</fax>\\n            <email>johndoe@BlueSnap.com</email>\\n          </invoice-contact-info>\\n        </invoice-contacts-info>\\n        <payment-info>\\n          <credit-cards-info>\\n            <credit-card-info>\\n              <billing-contact-info>\\n                <first-name>Billing first name</first-name>\\n                <last-name>Billing last name</last-name>\\n                <address1>123 Oxford</address1>\\n                <address2 />\\n                <city>City</city>\\n                <state>NY</state>\\n                <zip>54321</zip>\\n                <country>US</country>\\n              </billing-contact-info>\\n              <credit-card>\\n                <card-number>4111111111111111</card-number>\\n                <expiration-month>09</expiration-month>\\n                <expiration-year>2019</expiration-year>\\n                <security-code>131</security-code>\\n              </credit-card>\\n            </credit-card-info>\\n          </credit-cards-info>\\n        </payment-info>\\n        <store-id>12700</store-id>\\n        <vat-code></vat-code>\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n      </shopper-info>\\n    </shopper>\\n  </shopper-details>\\n  <order-details>\\n    <order>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2178316</sku-id>\\n            <sku-charge-price>\\n              <charge-type>initial</charge-type>\\n              <amount>50.00</amount>\\n              <currency>USD</currency>\\n            </sku-charge-price>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>50.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"with `returnrepresentation` parameter\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <ordering-shopper>\\n        <shopper-id>19505364</shopper-id>\\n      </ordering-shopper>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2178316</sku-id>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>20.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>\",\n      \"language\": \"curl\",\n      \"name\": \"with existing shopper\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n   <web-info>\\n     <ip>62.219.121.253</ip>\\n     <remote-host>www.merchant.com</remote-host>\\n     <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n   </web-info>\\n   <order-details>\\n      <order>\\n         <ordering-shopper>\\n            <shopper-id>19523762</shopper-id>\\n            <credit-card>\\n               <card-last-four-digits>1111</card-last-four-digits>\\n               <card-type>Visa</card-type>\\n            </credit-card>\\n         </ordering-shopper>\\n         <cart>\\n            <cart-item>\\n               <sku>\\n                  <sku-id>2180434</sku-id>\\n               </sku>\\n               <quantity>1</quantity>\\n            </cart-item>\\n         </cart>\\n         <expected-total-price>\\n            <amount>21.75</amount>\\n            <currency>USD</currency>\\n         </expected-total-price>\\n      </order>\\n   </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"with shopper with multiple payment methods\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <shopper-details>\\n    <shopper>\\n      <shopper-info>\\n        <shopper-contact-info>\\n          <title>Mr</title>\\n          <first-name>shopper first name</first-name>\\n          <last-name>shopper last name</last-name>\\n          <email>john.smith@gmail.com</email>\\n          <company-name>JS Company</company-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>US</country>\\n          <phone>1800808080</phone>\\n          <fax>1800808080</fax>\\n        </shopper-contact-info>\\n        <shipping-contact-info>\\n          <first-name>Shipping first name</first-name>\\n          <last-name>Shipping last name</last-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>US</country>\\n        </shipping-contact-info>\\n        <invoice-contacts-info>\\n          <invoice-contact-info>\\n            <default>true</default>\\n            <company-name>Company</company-name>\\n            <vat-code />\\n            <title>Mrs.</title>\\n            <first-name>John</first-name>\\n            <last-name>Doe</last-name>\\n            <address1>5 star drive</address1>\\n            <address2>3rd entrance</address2>\\n            <city>Purchase</city>\\n            <state>NY</state>\\n            <zip>34645</zip>\\n            <country>US</country>\\n            <phone>1800400500</phone>\\n            <fax>1800400500</fax>\\n            <email>johndoe@BlueSnap.com</email>\\n          </invoice-contact-info>\\n        </invoice-contacts-info>\\n        <payment-info>\\n          <credit-cards-info>\\n            <credit-card-info>\\n              <billing-contact-info>\\n                <first-name>Billing first name</first-name>\\n                <last-name>Billing last name</last-name>\\n                <address1>123 Oxford</address1>\\n                <address2 />\\n                <city>City</city>\\n                <state>NY</state>\\n                <zip>54321</zip>\\n                <country>US</country>\\n              </billing-contact-info>\\n              <credit-card>\\n                <card-number>4111111111111111</card-number>\\n                <expiration-month>09</expiration-month>\\n                <expiration-year>2019</expiration-year>\\n                <security-code>131</security-code>\\n              </credit-card>\\n            </credit-card-info>\\n          </credit-cards-info>\\n        </payment-info>\\n        <store-id>12700</store-id>\\n        <vat-code />\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n      </shopper-info>\\n    </shopper>\\n  </shopper-details>\\n  <order-details>\\n    <order>\\n      <seller-order-id>myorder123</seller-order-id>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2178316</sku-id>\\n            <sku-charge-price>\\n              <charge-type>initial</charge-type>\\n              <amount>50.00</amount>\\n              <currency>USD</currency>\\n            </sku-charge-price>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>50.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"with seller order ID\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <shopper-details>\\n    <shopper>\\n      <shopper-info>\\n        <shopper-contact-info>\\n          <title>Mr</title>\\n          <first-name>Shopper first name</first-name>\\n          <last-name>Shopper last name</last-name>\\n          <email>john.smith@gmail.com</email>\\n          <company-name>JS Company</company-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>us</country>\\n          <phone>1800808080</phone>\\n          <fax>1800808080</fax>\\n        </shopper-contact-info>\\n        <shipping-contact-info>\\n          <first-name>Shipping first name</first-name>\\n          <last-name>Shipping last name</last-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>US</country>\\n        </shipping-contact-info>\\n        <payment-info>\\n          <credit-cards-info>\\n            <credit-card-info>\\n              <billing-contact-info>\\n                <first-name>Billing first name</first-name>\\n                <last-name>Billing last name</last-name>\\n                <address1>123 Oxford</address1>\\n                <address2 />\\n                <city>City</city>\\n                <state>NY</state>\\n                <zip>54321</zip>\\n                <country>US</country>\\n              </billing-contact-info>\\n              <credit-card>\\n                <card-number>4111111111111111</card-number>\\n                <expiration-month>09</expiration-month>\\n                <expiration-year>2019</expiration-year>\\n                <security-code>123</security-code>\\n              </credit-card>\\n            </credit-card-info>\\n          </credit-cards-info>\\n        </payment-info>\\n        <store-id>12700</store-id>\\n        <vat-code>123abc123</vat-code>\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n      </shopper-info>\\n    </shopper>\\n  </shopper-details>\\n  <order-details>\\n    <order>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2180434</sku-id>\\n            <sku-charge-price>\\n              <charge-type>initial</charge-type>\\n              <amount>50.00</amount>\\n              <currency>USD</currency>\\n            </sku-charge-price>\\n            <sku-name>new name</sku-name>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>50.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"overriding SKU price and name\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <ordering-shopper>\\n        <shopper-id>19540812</shopper-id>\\n        <credit-card>\\n          <card-last-four-digits>1111</card-last-four-digits>\\n          <card-type>Visa</card-type>\\n        </credit-card>\\n        <fraud-info>\\n          <fraud-session-id>1234567890</fraud-session-id>\\n        </fraud-info>\\n      </ordering-shopper>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2183634</sku-id>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>1.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"with fraud info\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <shopper-details>\\n    <shopper>\\n      <shopper-info>\\n        <shopper-contact-info>\\n          <title>Mr</title>\\n          <first-name>Shopper first name</first-name>\\n          <last-name>Shopper last name</last-name>\\n          <email>john.smith@gmail.com</email>\\n          <company-name>JS Company</company-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>US</country>\\n          <phone>1800808080</phone>\\n          <fax>1800808080</fax>\\n        </shopper-contact-info>\\n        <shipping-contact-info>\\n          <first-name>Shipping first name</first-name>\\n          <last-name>Shipping last name</last-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>US</country>\\n        </shipping-contact-info>\\n        <payment-info>\\n          <credit-cards-info>\\n            <credit-card-info>\\n              <billing-contact-info>\\n                <first-name>Billing first name</first-name>\\n                <last-name>Billing last name</last-name>\\n                <address1>123 Oxford</address1>\\n                <address2 />\\n                <city>City</city>\\n                <state>NY</state>\\n                <zip>54321</zip>\\n                <country>US</country>\\n              </billing-contact-info>\\n              <credit-card>\\n                <card-number>4111111111111111</card-number>\\n                <expiration-month>09</expiration-month>\\n                <expiration-year>2019</expiration-year>\\n                <security-code>123</security-code>\\n              </credit-card>\\n            </credit-card-info>\\n          </credit-cards-info>\\n        </payment-info>\\n        <store-id>12700</store-id>\\n        <vat-code>123abc123</vat-code>\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n      </shopper-info>\\n    </shopper>\\n  </shopper-details>\\n  <order-details>\\n    <order>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2180434</sku-id>\\n          </sku>\\n          <quantity>1</quantity>\\n          <sku-parameter>\\n            <param-name>instructions</param-name>\\n            <param-value>Please follow the instructions</param-value>\\n          </sku-parameter>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>20.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"with custom parameters\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context?returnrepresentation=true \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>bzq-219-121-253.static.bezeqint.net.reinventhosting.com</remote-host>\\n    <user-agent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;\\n\\t\\tSV1; GTB6.3; .NET CLR 2.0.50727)</user-agent>\\n  </web-info>\\n  <shopper-details>\\n    <shopper>\\n      <shopper-info>\\n        <shopper-contact-info>\\n          <first-name>Jane</first-name>\\n          <last-name>Shopper</last-name>\\n          <email>jane.shopper@gmail.com</email>\\n          <address1>123 Oxford</address1>\\n          <city>Boston</city>\\n          <state>ma</state>\\n          <zip>54321</zip>\\n          <country>us</country>\\n          <phone>1800808080</phone>\\n        </shopper-contact-info>\\n        <store-id>19805</store-id>\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n      </shopper-info>\\n    </shopper>\\n  </shopper-details>\\n  <order-details>\\n    <order>\\n      <ordering-shopper>\\n        <local-bank-transfer/>\\n      </ordering-shopper>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2343187</sku-id>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>6.36</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"with local bank transfer\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <shopper-details>\\n    <shopper>\\n      <fraud-info>\\n        <fraud-session-id>1234567890</fraud-session-id>\\n      </fraud-info>\\n      <shopper-info>\\n        <shopper-contact-info>\\n          <title>Mr</title>\\n          <first-name>ShopperPPFirst</first-name>\\n          <last-name>ShopperPPLast</last-name>\\n          <email>shopperPP@bluesnap.com</email>\\n          <company-name>Company PP</company-name>\\n          <address1>173 Willesden Ln</address1>\\n          <address2 />\\n          <city>London</city>\\n          <zip>NW6</zip>\\n          <country>UK</country>\\n          <phone>180098989878</phone>\\n          <fax>180098989878</fax>\\n        </shopper-contact-info>\\n        <store-id>10980</store-id>\\n        <vat-code />\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n      </shopper-info>\\n    </shopper>\\n  </shopper-details>\\n  <order-details>\\n    <order>\\n      <ordering-shopper>\\n        <paypal>\\n          <pp-cancel-url>http://www.cancel-site.com</pp-cancel-url>\\n          <pp-return-url>http://www.success-site.com</pp-return-url>\\n          <pp-req-confirm-shipping>1</pp-req-confirm-shipping>\\n          <pp-no-shipping>0</pp-no-shipping>\\n          <pp-in-context>false<pp-in-context>\\n        </paypal>\\n      </ordering-shopper>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2188078</sku-id>\\n            <sku-charge-price>\\n              <charge-type>initial</charge-type>\\n              <amount>30.00</amount>\\n              <currency>USD</currency>\\n            </sku-charge-price>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>30.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"PayPal with shopper info\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <ordering-shopper>\\n        <paypal>\\n          <pp-cancel-url>http://merchant-site.com/paypal-cancel</pp-cancel-url>\\n          <pp-return-url>http://merchant-site.com/paypal-success</pp-return-url>\\n          <pp-no-shipping>2</pp-no-shipping>\\n          <pp-req-confirm-shipping>0</pp-req-confirm-shipping>\\n          <pp-in-context>true</pp-in-context>\\n        </paypal>\\n        <fraud-info>\\n          <fraud-session-id>1234567890</fraud-session-id>\\n        </fraud-info>\\n      </ordering-shopper>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2186520</sku-id>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>0.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"PayPal without shopper info\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <ordering-shopper>\\n        <paypal>\\n          <pp-cancel-url>http://merchant-site.com/paypal-cancel</pp-cancel-url>\\n          <pp-return-url>http://merchant-site.com/paypal-success</pp-return-url>\\n          <pp-no-shipping>2</pp-no-shipping>\\n          <pp-req-confirm-shipping>0</pp-req-confirm-shipping>\\n        </paypal>\\n        <fraud-info>\\n          <fraud-session-id>1234567890</fraud-session-id>\\n        </fraud-info>\\n      </ordering-shopper>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2188676</sku-id>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n        <cart-item>\\n     <sku>\\n        <sku-id>2176834</sku-id>\\n     </sku>\\n     <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>1.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"PayPal with comments\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <shopper-details>\\n    <shopper>\\n      <shopper-info>\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n      </shopper-info>\\n      <wallet-id>735</wallet-id>\\n    </shopper>\\n  </shopper-details>\\n  <order-details>\\n    <order>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2183716</sku-id>\\n            <sku-charge-price>\\n              <charge-type>initial</charge-type>\\n              <amount>10.00</amount>\\n              <currency>USD</currency>\\n            </sku-charge-price>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>10.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"with wallet ID\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <shopper-details>\\n    <shopper>\\n      <shopper-info>\\n        <shopper-contact-info>\\n          <title>Mr</title>\\n          <first-name>shopper first name</first-name>\\n          <last-name>shopper last name</last-name>\\n          <email>john.smith@gmail.com</email>\\n          <company-name>JS Company</company-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>US</country>\\n          <phone>1800808080</phone>\\n          <fax>1800808080</fax>\\n        </shopper-contact-info>\\n        <shipping-contact-info>\\n          <first-name>Shipping first name</first-name>\\n          <last-name>Shipping last name</last-name>\\n          <address1>123 Oxford</address1>\\n          <address2 />\\n          <city>City</city>\\n          <state>NY</state>\\n          <zip>54321</zip>\\n          <country>US</country>\\n        </shipping-contact-info>\\n        <invoice-contacts-info>\\n          <invoice-contact-info>\\n            <default>true</default>\\n            <company-name>Company/company-name>\\n            <vat-code></vat-code>\\n            <title>Mrs.</title>\\n            <first-name>John</first-name>\\n            <last-name>Doe</last-name>\\n            <address1>5 Star drive</address1>\\n            <address2>3rd entrance</address2>\\n            <city>Purchase</city>\\n            <state>NY</state>\\n            <zip>34645</zip>\\n            <country>US</country>\\n            <phone>1800400500</phone>\\n            <fax>1800400500</fax>\\n            <email>johndoe@BlueSnap.com</email>\\n          </invoice-contact-info>\\n        </invoice-contacts-info>\\n        <payment-info>\\n          <credit-cards-info>\\n            <credit-card-info>\\n              <billing-contact-info>\\n                <first-name>John</first-name>\\n                <last-name>Doe</last-name>\\n                <address1>138 Market St</address1>\\n                <city>San Francisco</city>\\n                <zip>75654</zip>\\n                <state>CA</state>\\n                <country>US</country>\\n              </billing-contact-info>\\n              <pf-token>c7c69ff853ab784ef35a0c78ffec08e78cf1d1b5b4bb9e2644c2bcc73f3f818f_1</pf-token>\\n            </credit-card-info>\\n          </credit-cards-info>\\n        </payment-info>\\n        <store-id>12700</store-id>\\n        <vat-code></vat-code>\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n      </shopper-info>\\n    </shopper>\\n  </shopper-details>\\n  <order-details>\\n    <order>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2178316</sku-id>\\n            <sku-charge-price>\\n              <charge-type>initial</charge-type>\\n              <amount>50.00</amount>\\n              <currency>USD</currency>\\n            </sku-charge-price>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>50.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>'\",\n      \"language\": \"curl\",\n      \"name\": \"with Hosted Payment Fields token\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context?returnrepresentation=true \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <ordering-shopper>\\n        <wallet>\\n          <apple-pay>\\n            <encoded-payment-token>eyAgDQogICAidrZW4iOnsgIA0KICAgICAgInBhe==</encoded-payment-token>\\n          </apple-pay>\\n        </wallet>\\n      </ordering-shopper>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2186654</sku-id>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>260.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>\",\n      \"language\": \"xml\",\n      \"name\": \"with Apple Pay & `returnrepresentation` parameter\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context?returnrepresentation=true \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <ordering-shopper>\\n        <shopper-id>19505364</shopper-id>\\n        <credit-card>\\n          <card-last-four-digits>1111</card-last-four-digits>\\n          <security-code>123</security-code>\\n          <card-type>VISA</card-type>\\n        </credit-card>\\n      </ordering-shopper>\\n      <cart>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2178316</sku-id>\\n          </sku>\\n          <quantity>1</quantity>\\n        </cart-item>\\n      </cart>\\n      <expected-total-price>\\n        <amount>20.00</amount>\\n        <currency>USD</currency>\\n      </expected-total-price>\\n    </order>\\n  </order-details>\\n</shopping-context>\",\n      \"language\": \"xml\",\n      \"name\": \"with shopper ID & CVV\"\n    }\n  ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"HTTP/ 1.1 201 Created\\nLocation: https://sandbox.bluesnap.com/services/2/shopping-context/3990807\",\n      \"language\": \"http\",\n      \"name\": \"Create Shopping Context Response: 201 Created\"\n    },\n    {\n      \"code\": \"HTTP/ 1.1 201 Created\\nLocation: https://sandbox.bluesnap.com/services/2/shopping-context/3923105\\n\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <step>CREATED</step>\\n  <buynow-sso-token>TmccAdrae%2F5yQ3bPttIBKZJO2YkVXsDEkAHi1seNy4T46u4EYxAJDixd%2BPGgRfhyYi3Z1B3lMjt17ywBxpLfCtXiPWCc1zVIkb2zxl40qySaOpFCvHFKJLpTTaN6D%2B4x</buynow-sso-token>\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <order-id>3923105</order-id>\\n      <ordering-shopper>\\n        <shopper-id>19505574</shopper-id>\\n      </ordering-shopper>\\n      <cart>\\n        <charged-currency>USD</charged-currency>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2178316</sku-id>\\n            <sku-name>Example contract 2</sku-name>\\n            <sku-charge-price>\\n              <charge-type>initial</charge-type>\\n              <amount>50.00</amount>\\n              <currency>USD</currency>\\n            </sku-charge-price>\\n          </sku>\\n          <quantity>1</quantity>\\n          <item-sub-total>50.00</item-sub-total>\\n        </cart-item>\\n        <tax>0.00</tax>\\n        <tax-rate>0</tax-rate>\\n        <total-cart-cost>50.00</total-cart-cost>\\n      </cart>\\n    </order>\\n  </order-details>\\n</shopping-context>\",\n      \"language\": \"xml\",\n      \"name\": \"201 Created with `returnrepresentation` parameter\"\n    },\n    {\n      \"code\": \"HTTP/ 1.1 201 Created\\nLocation: https://sandbox.bluesnap.com/services/2/shopping-context/3936017\\n\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <step>CREATED</step>\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>bzq-219-121-253.static.bezeqint.net.reinventhosting.com</remote-host>\\n    <user-agent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;\\n\\t\\tSV1; GTB6.3; .NET CLR 2.0.50727)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <order-id>8322757</order-id>\\n      <ordering-shopper>\\n        <shopper-id>22195529</shopper-id>\\n      </ordering-shopper>\\n      <transaction-payment-info>\\n        <local-bank-transfer-info>\\n          <swift-code>CITI US 33</swift-code>\\n          <payment-reference>410000368169</payment-reference>\\n          <additional-reference>8322757</additional-reference>\\n          <account-holder>Global Collect BV</account-holder>\\n          <bank-code>ABA&#x7c;021000089</bank-code>\\n          <bank-name>Citibank USA</bank-name>\\n          <country-description>United States</country-description>\\n          <status-id>800</status-id>\\n          <bank-city>New York</bank-city>\\n          <bank-account-number>40673525</bank-account-number>\\n        </local-bank-transfer-info>\\n      </transaction-payment-info>\\n      <cart>\\n        <charged-currency>USD</charged-currency>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2343187</sku-id>\\n            <sku-name>Product A</sku-name>\\n          </sku>\\n          <quantity>1</quantity>\\n          <item-sub-total>5.99</item-sub-total>\\n        </cart-item>\\n        <tax>0.37</tax>\\n        <tax-rate>6.25</tax-rate>\\n        <total-cart-cost>6.36</total-cart-cost>\\n      </cart>\\n      <fraud-result-info>\\n        <device-data-collector>N</device-data-collector>\\n      </fraud-result-info>\\n    </order>\\n  </order-details>\\n</shopping-context>\",\n      \"language\": \"xml\",\n      \"name\": \"201 Created for local bank transfer with `returnrepresentation` parameter\"\n    },\n    {\n      \"code\": \"HTTP/ 1.1 201 Created\\n\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <step>CREATED</step>\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <order-id>3981975</order-id>\\n      <ordering-shopper>\\n        <shopper-id>19564898</shopper-id>\\n      </ordering-shopper>\\n      <transaction-payment-info>\\n        <paypal-info>\\n          <url>https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout&token=EC-7HH373857W185241M</url>\\n        </paypal-info>\\n      </transaction-payment-info>\\n      <cart>\\n        <charged-currency>USD</charged-currency>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2188078</sku-id>\\n            <sku-name>Example contract</sku-name>\\n            <sku-charge-price>\\n              <charge-type>initial</charge-type>\\n              <amount>33.00</amount>\\n              <currency>USD</currency>\\n            </sku-charge-price>\\n          </sku>\\n          <quantity>1</quantity>\\n          <item-sub-total>30.00</item-sub-total>\\n        </cart-item>\\n        <tax>0</tax>\\n        <tax-rate>0</tax-rate>\\n        <total-cart-cost>30.00</total-cart-cost>\\n      </cart>\\n    </order>\\n  </order-details>\\n</shopping-context>\",\n      \"language\": \"xml\",\n      \"name\": \"201 Created for PayPal with shopper info\"\n    },\n    {\n      \"code\": \"HTTP/ 1.1 201 Created\\n\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <step>CREATED</step>\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <order-id>3981977</order-id>\\n      <seller-order-id>364444</seller-order-id>\\n      <ordering-shopper>\\n        <shopper-id>19564900</shopper-id>\\n      </ordering-shopper>\\n      <transaction-payment-info>\\n        <paypal-info>\\n          <url>https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout&token=EC-22562160R8730154V</url>\\n        </paypal-info>\\n      </transaction-payment-info>\\n      <cart>\\n        <charged-currency>USD</charged-currency>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2186520</sku-id>\\n            <sku-name>recurring</sku-name>\\n          </sku>\\n          <quantity>1</quantity>\\n          <item-sub-total>30.00</item-sub-total>\\n        </cart-item>\\n        <tax>0.00</tax>\\n        <tax-rate>0</tax-rate>\\n        <total-cart-cost>30.00</total-cart-cost>\\n      </cart>\\n    </order>\\n  </order-details>\\n</shopping-context>\",\n      \"language\": \"xml\",\n      \"name\": \"201 Created for PayPal without shopper info\"\n    },\n    {\n      \"code\": \"HTTP/ 1.1 201 Created\\nLocation:  https://localhost:8445/services/2/shopping-context/3990105\\n\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <step>CREATED</step>\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <order-id>3990105</order-id>\\n      <ordering-shopper>\\n        <shopper-id>19572392</shopper-id>\\n      </ordering-shopper>\\n      <transaction-payment-info>\\n        <paypal-info>\\n          <url>https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout&token=EC-66E98375FU949215L</url>\\n          <pp-error-code>11452</pp-error-code>\\n          <pp-short-comment>Merchant not enabled for reference transactions</pp-short-comment>\\n          <pp-long-comment>Merchant not enabled for reference transactions</pp-long-comment>\\n        </paypal-info>\\n      </transaction-payment-info>\\n      <cart>\\n        <charged-currency>USD</charged-currency>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2188676</sku-id>\\n            <sku-name>Example contract 1</sku-name>\\n          </sku>\\n          <quantity>1</quantity>\\n          <item-sub-total>0.00</item-sub-total>\\n        </cart-item>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2176834</sku-id>\\n            <sku-name>Example contract 2r</sku-name>\\n          </sku>\\n          <quantity>1</quantity>\\n          <item-sub-total>1.00</item-sub-total>\\n        </cart-item>\\n        <tax>0.00</tax>\\n        <tax-rate>0</tax-rate>\\n        <total-cart-cost>1.00</total-cart-cost>\\n      </cart>\\n    </order>\\n  </order-details>\\n</shopping-context>\",\n      \"language\": \"xml\",\n      \"name\": \"201 Created for PayPal with comments\"\n    },\n    {\n      \"code\": \"HTTP/ 1.1 200 Ok\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<shopping-context xmlns=\\\"http://ws.plimus.com\\\">\\n  <step>CREATED</step>\\n  <web-info>\\n    <ip>62.219.121.253</ip>\\n    <remote-host>www.merchant.com</remote-host>\\n    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>\\n  </web-info>\\n  <order-details>\\n    <order>\\n      <order-id>3923105</order-id>\\n      <soft-descriptor>BLS*BS</soft-descriptor>\\n      <ordering-shopper>\\n        <shopper-id>19505574</shopper-id>\\n      </ordering-shopper>\\n    <transaction-payment-info>\\n\\t<wallet>\\n        <billing-contact-info>\\n          <first-name>John</first-name>\\n          <last-name>Doe</last-name>\\n          <address1>South St</address1>\\n          <city>Waltham</city>\\n          <state>MA</state>\\n          <zip>02453</zip>\\n        </billing-contact-info>\\n        <apple-pay>\\n          <card-last-four-digits>0492</card-last-four-digits>\\n          <card-type>VISA</card-type>\\n          <card-sub-type>CREDIT</card-sub-type>\\n          <dpan-last-four-digits>4109</dpan-last-four-digits>\\n          <dpan-expiration-month>11</dpan-expiration-month>\\n          <dpan-expiration-year>25</dpan-expiration-year>\\n        </apple-pay>\\t\\n      </wallet>\\n      </transaction-payment-info>\\n      <cart>\\n        <charged-currency>USD</charged-currency>\\n        <cart-item>\\n          <sku>\\n            <sku-id>2178316</sku-id>\\n            <sku-name>Example contract 2</sku-name>\\n          </sku>\\n          <quantity>1</quantity>\\n          <item-sub-total>50.00</item-sub-total>\\n        </cart-item>\\n        <tax>0.00</tax>\\n        <tax-rate>0</tax-rate>\\n        <total-cart-cost>50.00</total-cart-cost>\\n      </cart>\\n    </order>\\n  </order-details>\\n</shopping-context>\",\n      \"language\": \"xml\",\n      \"name\": \"201 Create for Apple Pay & `returnrepresentation` parameter\"\n    }\n  ]\n}\n[/block]\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>\n\n<hr>\n\n##Example Descriptions\nFor details about the above examples, see:\n  * [Create Shopping Context: without payment info](#section-create-shopping-context-without-payment-info)\n  * [Create Shopping Context: with payment info](#section-create-shopping-context-with-payment-info)\n  * [Create Shopping Context: with returnrepresentation parameter](#section-create-shopping-context-with-returnrepresentation-parameter)\n  * [Create Shopping Context: with existing shopper](#section-create-shopping-context-with-existing-shopper)\n  * [Create Shopping Context: with shopper with multiple payment methods](#section-create-shopping-context-with-shopper-with-multiple-payment-methods)\n  * [Create Shopping Context: with seller order ID](#section-create-shopping-context-with-seller-order-id)\n  * [Create Shopping Context: overriding SKU price and name](#section-create-shopping-context-overriding-sku-price-and-name) \n  * [Create Shopping Context: with fraud info](#section-create-shopping-context-with-fraud-info)\n  * [Create Shopping Context: with custom parameters](#section-create-shopping-context-with-custom-parameters)\n  * [Create Shopping Context: with local bank transfer](#section-create-shopping-context-with-local-bank-transfer)\n  * [Create Shopping Context: PayPal](#section-create-shopping-context-paypal)\n  * [Create Shopping Context: with wallet ID](#section-create-shopping-context-with-wallet-id)\n  * [Create Shopping Context: with Hosted Payment Fields token](#section-create-shopping-context-with-hosted-payment-fields-token)\n  * [Create Shopping Context: with Apple Pay](#section-create-shopping-context-with-apple-pay)\n  * [Create Order: with shopper ID & CVV](#section-create-order-with-shopper-id-cvv)\n\n###Create Shopping Context: without payment info\nThe example above shows how to create shopping context without sending any payment information.\n\n###Create Shopping Context: with payment info\nThe example above shows how to create shopping context and include the payment information in the `payment-info` parameter.\n\n###Create Shopping Context: with returnrepresentation parameter\nWhen you include the `returnrepresentation` parameter in your request URL, the response will include the `shopping-context` parameter, as shown in the example above. Otherwise, the response body will be empty.\n \n###Create Shopping Context: with existing shopper\nThe example above shows how to create shopping context with an existing shopper by sending the `shopper-id` within the `order-details` resource. In this case, the shopper has a single payment method so we there is no need to specify which one to use.\n\n###Create Shopping Context: with shopper with multiple payment methods\nWhen you create shopping context with an existing shopper that has multiple payment methods, you will need to specify which one to use within the `order-details` resource. In the example above, the request specifies that a credit card with last four digits of **1111** and type of **Visa** should be used.\n\n###Create Shopping Context: with seller order ID\nThe example above shows how you can set your own unique ID for the order by sending it as the value of the `seller-order-id` parameter within the `order-details` resource.\n\n###Create Shopping Context: overriding SKU price and name\nThe example above shows how to override the SKU's price and name by sending the `sku-charge-price` and `sku-name` parameters within the `order-details` resource.\n    \n###Create Shopping Context: with fraud info\nYou are required to send the shopper's unique device fingerprint for fraud check purposes. Send this in the `fraud-info` property in your request. See [fraud-info](doc:fraud-info).\n\nIf the request uses an existing shopper (as shown in the example above), the `fraud-info` element should sent within `order-details` > `ordering-shopper`. In case of a new shopper, it should be sent within `shopper-details` > `shopper`.\n\nFor more information, see [Fraud prevention](/v1.0/docs/fraud-prevention).\n\n###Create Shopping Context: with custom parameters\nIn the example above, there is an input type custom parameter called 'instructions', which is set to be 'Please follow the instructions'.\n\n###Create Shopping Context: with local bank transfer\nThe example above shows how to indicate local bank transfer is the payment method by sending the `local-bank-transfer` resource within the request. The request URL should contain the `returnrepresentation` query parameter set to **true**, so that the response will include the full XML representation of the created `shopping-context` with the relevant details for the bank transfer. Note that it is also possible to retrieve the details later using the [Retrieve Shopping Context](doc:retrieve-shopping-context) service. For a full list of accepted shopper countries and currencies, see [Supported Local Bank Transfer Countries & Currencies](https://support.bluesnap.com/docs/local-bank-transfer#section-supported-local-bank-transfer-countries-currencies).\n\n###Create Shopping Context: PayPal\nWhen creating Shopping Context with PayPal, you will include the `paypal` resource within `order-details` > `order` > `ordering-shopper`.\nIn the `paypal` resource, you must provide:\n  * `pp-cancel-url`: The URL to which the shopper will be directed if they click cancel in the PayPal page. \n  * `pp-return-url`: The URL to which the shopper will be directed after completing the purchase on PayPal, once the invoice is registered in BlueSnap. \n\nFor details about other settings, regarding the shipping address and in-context checkout, see the [PayPal Guide](doc:paypal-guide).\n\nThe response from PayPal may include comments and error codes that suggest a limitation on the use of the PayPal token. Comments & error messages received from PayPal are displayed in the `paypal-info` resource in the response.\n\n###Create Shopping Context: with wallet ID\nIf this is a Shopping Context for a new shopper and you want to add wallet details for MasterPass or Visa Checkout, you can use the wallet details, including the payment info and billing and shipping info, by including the `wallet-id` in the request.\n\nFor details, see:\n  * [MasterPass Guide](/v1.0/docs/masterpass)\n  * [Visa Checkout Guide](/v1.0/docs/visa-checkout)\n\nFor an existing shopper, do not include the `wallet-id` in the request. Instead, you must first save the wallet information to that shopper using the [Update Shopper](doc:update-shopper) request. You can then create Shopping Context with the relevant shopper ID. \n\n###Create Shopping Context: with Hosted Payment Fields token\nIf you are using BlueSnap's [Hosted Payment Fields](/v4.0/docs/hosted-payment-fields), and this Shopping Context is for a new shopper, you can use the payment information from the Hosted Payment Fields by including the token within the `pf-token` property in your request. Above is an example of a request with the Hosted Payment Fields token.\n\nFor an existing shopper, do not send the `pf-token` property in the Create Shopping Context request. Instead, you must first save the Hosted Payment Fields information to that shopper using the [Update Shopper](doc:update-shopper) request. You can then create Shopping Context with the relevant shopper ID. \n\n###Create Shopping Context: with Apple Pay\nInclude the `encoded-payment-token` inside `order-details` > `order` > `ordering-shopper` > `wallet` > `apple-pay`. \n* *If the shopper is new*, set the query parameter `returnrepresentation` equal to `true`, meaning that the `shopping-context` resource will be returned in the response and will include the `shopper-id` property. Use the `shopper-id` for all future transactions with this shopper. \n\n* *For existing shoppers*, include the `shopper-id` within `order-details` > `order` > `ordering-shopper`.  \n\nFor more information, check out our [Apple Pay Guide](/v1.0/docs/apple-pay).\n\n**Note**: To test Apple Pay, follow the steps in the [Apple Pay Guide](/v1.0/docs/apple-pay#section-implementing-apple-pay-in-your-website-or-ios-app). The API Explorer does not support Apple Pay testing.\n\n###Create Order: with shopper ID & CVV\nYou may wish to collect CVV on your checkout form from all your shoppers – even from returning shoppers. One reason you might choose to do this is because transactions with CVV generally result in higher success rates. \n\nAbove is an example of sending CVV in a request involving a returning shopper. \nInclude `shopper-id` and CVV in the request as in the example. \n\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","excerpt":"","slug":"create-shopping-context","type":"post","title":"Create Shopping Context"}

postCreate Shopping Context


Definition

https://sandbox.bluesnap.com/services/2/shopping-context


Documentation

The Create Shopping Context request enables you to place an order for a shopper and defer payment to a later time. This should be used for transactions with asynchronous payment methods like PayPal or wire transfers. It is also useful for cases when you want to separate your Auth and Capture phases.

Request Content

shopping-context    required, contains the following properties (see shopping-context):
      step string    optional
      web-info container    required (see web-info)
      shopper-details container    optional (see shopper-details)
      order-details container    required (see order-details)

Query Parameters
Optionally, you can include these query parameters in the web service URL in your request.

Parameter Name
Description
Example

returnrepresentation

Return the shopping-context resource in the response. Default is false.

returnrepresentation=true

performfullauthorization

Perform authorization for the full amount of the the shopping-context. Otherwise, just validate the payment method on the default amount. Default is true.

performfullauthorization=false

expirationinminutes

Configure the expiration time in minutes.

expirationinminutes=15

Response Details

If successful, the response HTTP status code is 201 Created.
The Location response header contains the URI of the newly created shopping-context resource.
In most cases, there is no content in the response body.
However, the shopping-context resource will be returned if you use the returnrepresentation parameter, and for PayPal transactions.
For details about possible errors, see: General Errors, Payment & Processor Errors, Shopper Errors, Fraud Errors, Hosted Payment Field Errors, and Wallet Errors.


Examples

Request Examples

curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <shopper-details>
    <shopper>
      <shopper-info>
        <shopper-contact-info>
          <title>Mr</title>
          <first-name>shopper first name</first-name>
          <last-name>shopper last name</last-name>
          <email>john.smith@gmail.com</email>
          <company-name>JS Company</company-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>us</country>
          <phone>1800808080</phone>
          <fax>1800808080</fax>
        </shopper-contact-info>
        <store-id>12700</store-id>
        <vat-code />
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
      </shopper-info>
    </shopper>
  </shopper-details>
  <order-details>
    <order>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2178316</sku-id>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>50.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <shopper-details>
    <shopper>
      <shopper-info>
        <shopper-contact-info>
          <title>Mr</title>
          <first-name>shopper first name</first-name>
          <last-name>shopper last name</last-name>
          <email>john.smith@gmail.com</email>
          <company-name>JS Company</company-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>us</country>
          <phone>1800808080</phone>
          <fax>1800808080</fax>
        </shopper-contact-info>
        <shipping-contact-info>
          <first-name>Shipping first name</first-name>
          <last-name>Shipping last name</last-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>US</country>
        </shipping-contact-info>
        <invoice-contacts-info>
          <invoice-contact-info>
            <default>true</default>
            <company-name>Company</company-name>
            <vat-code></vat-code>
            <title>Mrs.</title>
            <first-name>John</first-name>
            <last-name>Doe</last-name>
            <address1>5 Star Drive</address1>
            <address2>3rd entrance</address2>
            <city>Purchase</city>
            <state>NY</state>
            <zip>34645</zip>
            <country>us</country>
            <phone>1800400500</phone>
            <fax>1800400500</fax>
            <email>johndoe@BlueSnap.com</email>
          </invoice-contact-info>
        </invoice-contacts-info>
        <payment-info>
          <credit-cards-info>
            <credit-card-info>
              <billing-contact-info>
                <first-name>Billing first name</first-name>
                <last-name>Billing last name</last-name>
                <address1>123 Oxford</address1>
                <address2 />
                <city>City</city>
                <state>NY</state>
                <zip>54321</zip>
                <country>US</country>
              </billing-contact-info>
              <credit-card>
                <card-number>4111111111111111</card-number>
                <expiration-month>09</expiration-month>
                <expiration-year>2019</expiration-year>
                <security-code>131</security-code>
              </credit-card>
            </credit-card-info>
          </credit-cards-info>
        </payment-info>
        <store-id>12700</store-id>
        <vat-code></vat-code>
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
      </shopper-info>
    </shopper>
  </shopper-details>
  <order-details>
    <order>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2178316</sku-id>
            <sku-charge-price>
              <charge-type>initial</charge-type>
              <amount>50.00</amount>
              <currency>USD</currency>
            </sku-charge-price>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>50.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context?returnrepresentation=true \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <shopper-details>
    <shopper>
      <shopper-info>
        <shopper-contact-info>
          <title>Mr</title>
          <first-name>shopper first name</first-name>
          <last-name>shopper last name</last-name>
          <email>john.smith@gmail.com</email>
          <company-name>JS Company</company-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>us</country>
          <phone>1800808080</phone>
          <fax>1800808080</fax>
        </shopper-contact-info>
        <shipping-contact-info>
          <first-name>Shipping first name</first-name>
          <last-name>Shipping last name</last-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>US</country>
        </shipping-contact-info>
        <invoice-contacts-info>
          <invoice-contact-info>
            <default>true</default>
            <company-name>BlueSnap UK</company-name>
            <vat-code></vat-code>
            <title>Mrs.</title>
            <first-name>John</first-name>
            <last-name>Doe</last-name>
            <address1>5 Star drive</address1>
            <address2>3rd entrance</address2>
            <city>Purchase</city>
            <state>NY</state>
            <zip>34645</zip>
            <country>us</country>
            <phone>1800400500</phone>
            <fax>1800400500</fax>
            <email>johndoe@BlueSnap.com</email>
          </invoice-contact-info>
        </invoice-contacts-info>
        <payment-info>
          <credit-cards-info>
            <credit-card-info>
              <billing-contact-info>
                <first-name>Billing first name</first-name>
                <last-name>Billing last name</last-name>
                <address1>123 Oxford</address1>
                <address2 />
                <city>City</city>
                <state>NY</state>
                <zip>54321</zip>
                <country>US</country>
              </billing-contact-info>
              <credit-card>
                <card-number>4111111111111111</card-number>
                <expiration-month>09</expiration-month>
                <expiration-year>2019</expiration-year>
                <security-code>131</security-code>
              </credit-card>
            </credit-card-info>
          </credit-cards-info>
        </payment-info>
        <store-id>12700</store-id>
        <vat-code></vat-code>
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
      </shopper-info>
    </shopper>
  </shopper-details>
  <order-details>
    <order>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2178316</sku-id>
            <sku-charge-price>
              <charge-type>initial</charge-type>
              <amount>50.00</amount>
              <currency>USD</currency>
            </sku-charge-price>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>50.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <ordering-shopper>
        <shopper-id>19505364</shopper-id>
      </ordering-shopper>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2178316</sku-id>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>20.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
   <web-info>
     <ip>62.219.121.253</ip>
     <remote-host>www.merchant.com</remote-host>
     <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
   </web-info>
   <order-details>
      <order>
         <ordering-shopper>
            <shopper-id>19523762</shopper-id>
            <credit-card>
               <card-last-four-digits>1111</card-last-four-digits>
               <card-type>Visa</card-type>
            </credit-card>
         </ordering-shopper>
         <cart>
            <cart-item>
               <sku>
                  <sku-id>2180434</sku-id>
               </sku>
               <quantity>1</quantity>
            </cart-item>
         </cart>
         <expected-total-price>
            <amount>21.75</amount>
            <currency>USD</currency>
         </expected-total-price>
      </order>
   </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <shopper-details>
    <shopper>
      <shopper-info>
        <shopper-contact-info>
          <title>Mr</title>
          <first-name>shopper first name</first-name>
          <last-name>shopper last name</last-name>
          <email>john.smith@gmail.com</email>
          <company-name>JS Company</company-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>US</country>
          <phone>1800808080</phone>
          <fax>1800808080</fax>
        </shopper-contact-info>
        <shipping-contact-info>
          <first-name>Shipping first name</first-name>
          <last-name>Shipping last name</last-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>US</country>
        </shipping-contact-info>
        <invoice-contacts-info>
          <invoice-contact-info>
            <default>true</default>
            <company-name>Company</company-name>
            <vat-code />
            <title>Mrs.</title>
            <first-name>John</first-name>
            <last-name>Doe</last-name>
            <address1>5 star drive</address1>
            <address2>3rd entrance</address2>
            <city>Purchase</city>
            <state>NY</state>
            <zip>34645</zip>
            <country>US</country>
            <phone>1800400500</phone>
            <fax>1800400500</fax>
            <email>johndoe@BlueSnap.com</email>
          </invoice-contact-info>
        </invoice-contacts-info>
        <payment-info>
          <credit-cards-info>
            <credit-card-info>
              <billing-contact-info>
                <first-name>Billing first name</first-name>
                <last-name>Billing last name</last-name>
                <address1>123 Oxford</address1>
                <address2 />
                <city>City</city>
                <state>NY</state>
                <zip>54321</zip>
                <country>US</country>
              </billing-contact-info>
              <credit-card>
                <card-number>4111111111111111</card-number>
                <expiration-month>09</expiration-month>
                <expiration-year>2019</expiration-year>
                <security-code>131</security-code>
              </credit-card>
            </credit-card-info>
          </credit-cards-info>
        </payment-info>
        <store-id>12700</store-id>
        <vat-code />
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
      </shopper-info>
    </shopper>
  </shopper-details>
  <order-details>
    <order>
      <seller-order-id>myorder123</seller-order-id>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2178316</sku-id>
            <sku-charge-price>
              <charge-type>initial</charge-type>
              <amount>50.00</amount>
              <currency>USD</currency>
            </sku-charge-price>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>50.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <shopper-details>
    <shopper>
      <shopper-info>
        <shopper-contact-info>
          <title>Mr</title>
          <first-name>Shopper first name</first-name>
          <last-name>Shopper last name</last-name>
          <email>john.smith@gmail.com</email>
          <company-name>JS Company</company-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>us</country>
          <phone>1800808080</phone>
          <fax>1800808080</fax>
        </shopper-contact-info>
        <shipping-contact-info>
          <first-name>Shipping first name</first-name>
          <last-name>Shipping last name</last-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>US</country>
        </shipping-contact-info>
        <payment-info>
          <credit-cards-info>
            <credit-card-info>
              <billing-contact-info>
                <first-name>Billing first name</first-name>
                <last-name>Billing last name</last-name>
                <address1>123 Oxford</address1>
                <address2 />
                <city>City</city>
                <state>NY</state>
                <zip>54321</zip>
                <country>US</country>
              </billing-contact-info>
              <credit-card>
                <card-number>4111111111111111</card-number>
                <expiration-month>09</expiration-month>
                <expiration-year>2019</expiration-year>
                <security-code>123</security-code>
              </credit-card>
            </credit-card-info>
          </credit-cards-info>
        </payment-info>
        <store-id>12700</store-id>
        <vat-code>123abc123</vat-code>
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
      </shopper-info>
    </shopper>
  </shopper-details>
  <order-details>
    <order>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2180434</sku-id>
            <sku-charge-price>
              <charge-type>initial</charge-type>
              <amount>50.00</amount>
              <currency>USD</currency>
            </sku-charge-price>
            <sku-name>new name</sku-name>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>50.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <ordering-shopper>
        <shopper-id>19540812</shopper-id>
        <credit-card>
          <card-last-four-digits>1111</card-last-four-digits>
          <card-type>Visa</card-type>
        </credit-card>
        <fraud-info>
          <fraud-session-id>1234567890</fraud-session-id>
        </fraud-info>
      </ordering-shopper>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2183634</sku-id>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>1.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <shopper-details>
    <shopper>
      <shopper-info>
        <shopper-contact-info>
          <title>Mr</title>
          <first-name>Shopper first name</first-name>
          <last-name>Shopper last name</last-name>
          <email>john.smith@gmail.com</email>
          <company-name>JS Company</company-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>US</country>
          <phone>1800808080</phone>
          <fax>1800808080</fax>
        </shopper-contact-info>
        <shipping-contact-info>
          <first-name>Shipping first name</first-name>
          <last-name>Shipping last name</last-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>US</country>
        </shipping-contact-info>
        <payment-info>
          <credit-cards-info>
            <credit-card-info>
              <billing-contact-info>
                <first-name>Billing first name</first-name>
                <last-name>Billing last name</last-name>
                <address1>123 Oxford</address1>
                <address2 />
                <city>City</city>
                <state>NY</state>
                <zip>54321</zip>
                <country>US</country>
              </billing-contact-info>
              <credit-card>
                <card-number>4111111111111111</card-number>
                <expiration-month>09</expiration-month>
                <expiration-year>2019</expiration-year>
                <security-code>123</security-code>
              </credit-card>
            </credit-card-info>
          </credit-cards-info>
        </payment-info>
        <store-id>12700</store-id>
        <vat-code>123abc123</vat-code>
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
      </shopper-info>
    </shopper>
  </shopper-details>
  <order-details>
    <order>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2180434</sku-id>
          </sku>
          <quantity>1</quantity>
          <sku-parameter>
            <param-name>instructions</param-name>
            <param-value>Please follow the instructions</param-value>
          </sku-parameter>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>20.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context?returnrepresentation=true \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>bzq-219-121-253.static.bezeqint.net.reinventhosting.com</remote-host>
    <user-agent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
		SV1; GTB6.3; .NET CLR 2.0.50727)</user-agent>
  </web-info>
  <shopper-details>
    <shopper>
      <shopper-info>
        <shopper-contact-info>
          <first-name>Jane</first-name>
          <last-name>Shopper</last-name>
          <email>jane.shopper@gmail.com</email>
          <address1>123 Oxford</address1>
          <city>Boston</city>
          <state>ma</state>
          <zip>54321</zip>
          <country>us</country>
          <phone>1800808080</phone>
        </shopper-contact-info>
        <store-id>19805</store-id>
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
      </shopper-info>
    </shopper>
  </shopper-details>
  <order-details>
    <order>
      <ordering-shopper>
        <local-bank-transfer/>
      </ordering-shopper>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2343187</sku-id>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>6.36</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <shopper-details>
    <shopper>
      <fraud-info>
        <fraud-session-id>1234567890</fraud-session-id>
      </fraud-info>
      <shopper-info>
        <shopper-contact-info>
          <title>Mr</title>
          <first-name>ShopperPPFirst</first-name>
          <last-name>ShopperPPLast</last-name>
          <email>shopperPP@bluesnap.com</email>
          <company-name>Company PP</company-name>
          <address1>173 Willesden Ln</address1>
          <address2 />
          <city>London</city>
          <zip>NW6</zip>
          <country>UK</country>
          <phone>180098989878</phone>
          <fax>180098989878</fax>
        </shopper-contact-info>
        <store-id>10980</store-id>
        <vat-code />
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
      </shopper-info>
    </shopper>
  </shopper-details>
  <order-details>
    <order>
      <ordering-shopper>
        <paypal>
          <pp-cancel-url>http://www.cancel-site.com</pp-cancel-url>
          <pp-return-url>http://www.success-site.com</pp-return-url>
          <pp-req-confirm-shipping>1</pp-req-confirm-shipping>
          <pp-no-shipping>0</pp-no-shipping>
          <pp-in-context>false<pp-in-context>
        </paypal>
      </ordering-shopper>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2188078</sku-id>
            <sku-charge-price>
              <charge-type>initial</charge-type>
              <amount>30.00</amount>
              <currency>USD</currency>
            </sku-charge-price>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>30.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <ordering-shopper>
        <paypal>
          <pp-cancel-url>http://merchant-site.com/paypal-cancel</pp-cancel-url>
          <pp-return-url>http://merchant-site.com/paypal-success</pp-return-url>
          <pp-no-shipping>2</pp-no-shipping>
          <pp-req-confirm-shipping>0</pp-req-confirm-shipping>
          <pp-in-context>true</pp-in-context>
        </paypal>
        <fraud-info>
          <fraud-session-id>1234567890</fraud-session-id>
        </fraud-info>
      </ordering-shopper>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2186520</sku-id>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>0.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <ordering-shopper>
        <paypal>
          <pp-cancel-url>http://merchant-site.com/paypal-cancel</pp-cancel-url>
          <pp-return-url>http://merchant-site.com/paypal-success</pp-return-url>
          <pp-no-shipping>2</pp-no-shipping>
          <pp-req-confirm-shipping>0</pp-req-confirm-shipping>
        </paypal>
        <fraud-info>
          <fraud-session-id>1234567890</fraud-session-id>
        </fraud-info>
      </ordering-shopper>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2188676</sku-id>
          </sku>
          <quantity>1</quantity>
        </cart-item>
        <cart-item>
     <sku>
        <sku-id>2176834</sku-id>
     </sku>
     <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>1.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <shopper-details>
    <shopper>
      <shopper-info>
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
      </shopper-info>
      <wallet-id>735</wallet-id>
    </shopper>
  </shopper-details>
  <order-details>
    <order>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2183716</sku-id>
            <sku-charge-price>
              <charge-type>initial</charge-type>
              <amount>10.00</amount>
              <currency>USD</currency>
            </sku-charge-price>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>10.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <shopper-details>
    <shopper>
      <shopper-info>
        <shopper-contact-info>
          <title>Mr</title>
          <first-name>shopper first name</first-name>
          <last-name>shopper last name</last-name>
          <email>john.smith@gmail.com</email>
          <company-name>JS Company</company-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>US</country>
          <phone>1800808080</phone>
          <fax>1800808080</fax>
        </shopper-contact-info>
        <shipping-contact-info>
          <first-name>Shipping first name</first-name>
          <last-name>Shipping last name</last-name>
          <address1>123 Oxford</address1>
          <address2 />
          <city>City</city>
          <state>NY</state>
          <zip>54321</zip>
          <country>US</country>
        </shipping-contact-info>
        <invoice-contacts-info>
          <invoice-contact-info>
            <default>true</default>
            <company-name>Company/company-name>
            <vat-code></vat-code>
            <title>Mrs.</title>
            <first-name>John</first-name>
            <last-name>Doe</last-name>
            <address1>5 Star drive</address1>
            <address2>3rd entrance</address2>
            <city>Purchase</city>
            <state>NY</state>
            <zip>34645</zip>
            <country>US</country>
            <phone>1800400500</phone>
            <fax>1800400500</fax>
            <email>johndoe@BlueSnap.com</email>
          </invoice-contact-info>
        </invoice-contacts-info>
        <payment-info>
          <credit-cards-info>
            <credit-card-info>
              <billing-contact-info>
                <first-name>John</first-name>
                <last-name>Doe</last-name>
                <address1>138 Market St</address1>
                <city>San Francisco</city>
                <zip>75654</zip>
                <state>CA</state>
                <country>US</country>
              </billing-contact-info>
              <pf-token>c7c69ff853ab784ef35a0c78ffec08e78cf1d1b5b4bb9e2644c2bcc73f3f818f_1</pf-token>
            </credit-card-info>
          </credit-cards-info>
        </payment-info>
        <store-id>12700</store-id>
        <vat-code></vat-code>
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
      </shopper-info>
    </shopper>
  </shopper-details>
  <order-details>
    <order>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2178316</sku-id>
            <sku-charge-price>
              <charge-type>initial</charge-type>
              <amount>50.00</amount>
              <currency>USD</currency>
            </sku-charge-price>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>50.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context?returnrepresentation=true \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <ordering-shopper>
        <wallet>
          <apple-pay>
            <encoded-payment-token>eyAgDQogICAidrZW4iOnsgIA0KICAgICAgInBhe==</encoded-payment-token>
          </apple-pay>
        </wallet>
      </ordering-shopper>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2186654</sku-id>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>260.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>
curl -v -X POST https://sandbox.bluesnap.com/services/2/shopping-context?returnrepresentation=true \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <ordering-shopper>
        <shopper-id>19505364</shopper-id>
        <credit-card>
          <card-last-four-digits>1111</card-last-four-digits>
          <security-code>123</security-code>
          <card-type>VISA</card-type>
        </credit-card>
      </ordering-shopper>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2178316</sku-id>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>20.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>

Response Examples

HTTP/ 1.1 201 Created
Location: https://sandbox.bluesnap.com/services/2/shopping-context/3990807
HTTP/ 1.1 201 Created
Location: https://sandbox.bluesnap.com/services/2/shopping-context/3923105

<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <step>CREATED</step>
  <buynow-sso-token>TmccAdrae%2F5yQ3bPttIBKZJO2YkVXsDEkAHi1seNy4T46u4EYxAJDixd%2BPGgRfhyYi3Z1B3lMjt17ywBxpLfCtXiPWCc1zVIkb2zxl40qySaOpFCvHFKJLpTTaN6D%2B4x</buynow-sso-token>
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <order-id>3923105</order-id>
      <ordering-shopper>
        <shopper-id>19505574</shopper-id>
      </ordering-shopper>
      <cart>
        <charged-currency>USD</charged-currency>
        <cart-item>
          <sku>
            <sku-id>2178316</sku-id>
            <sku-name>Example contract 2</sku-name>
            <sku-charge-price>
              <charge-type>initial</charge-type>
              <amount>50.00</amount>
              <currency>USD</currency>
            </sku-charge-price>
          </sku>
          <quantity>1</quantity>
          <item-sub-total>50.00</item-sub-total>
        </cart-item>
        <tax>0.00</tax>
        <tax-rate>0</tax-rate>
        <total-cart-cost>50.00</total-cart-cost>
      </cart>
    </order>
  </order-details>
</shopping-context>
HTTP/ 1.1 201 Created
Location: https://sandbox.bluesnap.com/services/2/shopping-context/3936017

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<shopping-context xmlns="http://ws.plimus.com">
  <step>CREATED</step>
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>bzq-219-121-253.static.bezeqint.net.reinventhosting.com</remote-host>
    <user-agent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
		SV1; GTB6.3; .NET CLR 2.0.50727)</user-agent>
  </web-info>
  <order-details>
    <order>
      <order-id>8322757</order-id>
      <ordering-shopper>
        <shopper-id>22195529</shopper-id>
      </ordering-shopper>
      <transaction-payment-info>
        <local-bank-transfer-info>
          <swift-code>CITI US 33</swift-code>
          <payment-reference>410000368169</payment-reference>
          <additional-reference>8322757</additional-reference>
          <account-holder>Global Collect BV</account-holder>
          <bank-code>ABA&#x7c;021000089</bank-code>
          <bank-name>Citibank USA</bank-name>
          <country-description>United States</country-description>
          <status-id>800</status-id>
          <bank-city>New York</bank-city>
          <bank-account-number>40673525</bank-account-number>
        </local-bank-transfer-info>
      </transaction-payment-info>
      <cart>
        <charged-currency>USD</charged-currency>
        <cart-item>
          <sku>
            <sku-id>2343187</sku-id>
            <sku-name>Product A</sku-name>
          </sku>
          <quantity>1</quantity>
          <item-sub-total>5.99</item-sub-total>
        </cart-item>
        <tax>0.37</tax>
        <tax-rate>6.25</tax-rate>
        <total-cart-cost>6.36</total-cart-cost>
      </cart>
      <fraud-result-info>
        <device-data-collector>N</device-data-collector>
      </fraud-result-info>
    </order>
  </order-details>
</shopping-context>
HTTP/ 1.1 201 Created

<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <step>CREATED</step>
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <order-id>3981975</order-id>
      <ordering-shopper>
        <shopper-id>19564898</shopper-id>
      </ordering-shopper>
      <transaction-payment-info>
        <paypal-info>
          <url>https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout&token=EC-7HH373857W185241M</url>
        </paypal-info>
      </transaction-payment-info>
      <cart>
        <charged-currency>USD</charged-currency>
        <cart-item>
          <sku>
            <sku-id>2188078</sku-id>
            <sku-name>Example contract</sku-name>
            <sku-charge-price>
              <charge-type>initial</charge-type>
              <amount>33.00</amount>
              <currency>USD</currency>
            </sku-charge-price>
          </sku>
          <quantity>1</quantity>
          <item-sub-total>30.00</item-sub-total>
        </cart-item>
        <tax>0</tax>
        <tax-rate>0</tax-rate>
        <total-cart-cost>30.00</total-cart-cost>
      </cart>
    </order>
  </order-details>
</shopping-context>
HTTP/ 1.1 201 Created

<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <step>CREATED</step>
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <order-id>3981977</order-id>
      <seller-order-id>364444</seller-order-id>
      <ordering-shopper>
        <shopper-id>19564900</shopper-id>
      </ordering-shopper>
      <transaction-payment-info>
        <paypal-info>
          <url>https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout&token=EC-22562160R8730154V</url>
        </paypal-info>
      </transaction-payment-info>
      <cart>
        <charged-currency>USD</charged-currency>
        <cart-item>
          <sku>
            <sku-id>2186520</sku-id>
            <sku-name>recurring</sku-name>
          </sku>
          <quantity>1</quantity>
          <item-sub-total>30.00</item-sub-total>
        </cart-item>
        <tax>0.00</tax>
        <tax-rate>0</tax-rate>
        <total-cart-cost>30.00</total-cart-cost>
      </cart>
    </order>
  </order-details>
</shopping-context>
HTTP/ 1.1 201 Created
Location:  https://localhost:8445/services/2/shopping-context/3990105

<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <step>CREATED</step>
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <order-id>3990105</order-id>
      <ordering-shopper>
        <shopper-id>19572392</shopper-id>
      </ordering-shopper>
      <transaction-payment-info>
        <paypal-info>
          <url>https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout&token=EC-66E98375FU949215L</url>
          <pp-error-code>11452</pp-error-code>
          <pp-short-comment>Merchant not enabled for reference transactions</pp-short-comment>
          <pp-long-comment>Merchant not enabled for reference transactions</pp-long-comment>
        </paypal-info>
      </transaction-payment-info>
      <cart>
        <charged-currency>USD</charged-currency>
        <cart-item>
          <sku>
            <sku-id>2188676</sku-id>
            <sku-name>Example contract 1</sku-name>
          </sku>
          <quantity>1</quantity>
          <item-sub-total>0.00</item-sub-total>
        </cart-item>
        <cart-item>
          <sku>
            <sku-id>2176834</sku-id>
            <sku-name>Example contract 2r</sku-name>
          </sku>
          <quantity>1</quantity>
          <item-sub-total>1.00</item-sub-total>
        </cart-item>
        <tax>0.00</tax>
        <tax-rate>0</tax-rate>
        <total-cart-cost>1.00</total-cart-cost>
      </cart>
    </order>
  </order-details>
</shopping-context>
HTTP/ 1.1 200 Ok
<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <step>CREATED</step>
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>www.merchant.com</remote-host>
    <user-agent>Mozilla/5.0 (Linux; X11)</user-agent>
  </web-info>
  <order-details>
    <order>
      <order-id>3923105</order-id>
      <soft-descriptor>BLS*BS</soft-descriptor>
      <ordering-shopper>
        <shopper-id>19505574</shopper-id>
      </ordering-shopper>
    <transaction-payment-info>
	<wallet>
        <billing-contact-info>
          <first-name>John</first-name>
          <last-name>Doe</last-name>
          <address1>South St</address1>
          <city>Waltham</city>
          <state>MA</state>
          <zip>02453</zip>
        </billing-contact-info>
        <apple-pay>
          <card-last-four-digits>0492</card-last-four-digits>
          <card-type>VISA</card-type>
          <card-sub-type>CREDIT</card-sub-type>
          <dpan-last-four-digits>4109</dpan-last-four-digits>
          <dpan-expiration-month>11</dpan-expiration-month>
          <dpan-expiration-year>25</dpan-expiration-year>
        </apple-pay>	
      </wallet>
      </transaction-payment-info>
      <cart>
        <charged-currency>USD</charged-currency>
        <cart-item>
          <sku>
            <sku-id>2178316</sku-id>
            <sku-name>Example contract 2</sku-name>
          </sku>
          <quantity>1</quantity>
          <item-sub-total>50.00</item-sub-total>
        </cart-item>
        <tax>0.00</tax>
        <tax-rate>0</tax-rate>
        <total-cart-cost>50.00</total-cart-cost>
      </cart>
    </order>
  </order-details>
</shopping-context>

Back to Top


Example Descriptions

For details about the above examples, see:

Create Shopping Context: without payment info

The example above shows how to create shopping context without sending any payment information.

Create Shopping Context: with payment info

The example above shows how to create shopping context and include the payment information in the payment-info parameter.

Create Shopping Context: with returnrepresentation parameter

When you include the returnrepresentation parameter in your request URL, the response will include the shopping-context parameter, as shown in the example above. Otherwise, the response body will be empty.

Create Shopping Context: with existing shopper

The example above shows how to create shopping context with an existing shopper by sending the shopper-id within the order-details resource. In this case, the shopper has a single payment method so we there is no need to specify which one to use.

Create Shopping Context: with shopper with multiple payment methods

When you create shopping context with an existing shopper that has multiple payment methods, you will need to specify which one to use within the order-details resource. In the example above, the request specifies that a credit card with last four digits of 1111 and type of Visa should be used.

Create Shopping Context: with seller order ID

The example above shows how you can set your own unique ID for the order by sending it as the value of the seller-order-id parameter within the order-details resource.

Create Shopping Context: overriding SKU price and name

The example above shows how to override the SKU's price and name by sending the sku-charge-price and sku-name parameters within the order-details resource.

Create Shopping Context: with fraud info

You are required to send the shopper's unique device fingerprint for fraud check purposes. Send this in the fraud-info property in your request. See fraud-info.

If the request uses an existing shopper (as shown in the example above), the fraud-info element should sent within order-details > ordering-shopper. In case of a new shopper, it should be sent within shopper-details > shopper.

For more information, see Fraud prevention.

Create Shopping Context: with custom parameters

In the example above, there is an input type custom parameter called 'instructions', which is set to be 'Please follow the instructions'.

Create Shopping Context: with local bank transfer

The example above shows how to indicate local bank transfer is the payment method by sending the local-bank-transfer resource within the request. The request URL should contain the returnrepresentation query parameter set to true, so that the response will include the full XML representation of the created shopping-context with the relevant details for the bank transfer. Note that it is also possible to retrieve the details later using the Retrieve Shopping Context service. For a full list of accepted shopper countries and currencies, see Supported Local Bank Transfer Countries & Currencies.

Create Shopping Context: PayPal

When creating Shopping Context with PayPal, you will include the paypal resource within order-details > order > ordering-shopper.
In the paypal resource, you must provide:

  • pp-cancel-url: The URL to which the shopper will be directed if they click cancel in the PayPal page.
  • pp-return-url: The URL to which the shopper will be directed after completing the purchase on PayPal, once the invoice is registered in BlueSnap.

For details about other settings, regarding the shipping address and in-context checkout, see the PayPal Guide.

The response from PayPal may include comments and error codes that suggest a limitation on the use of the PayPal token. Comments & error messages received from PayPal are displayed in the paypal-info resource in the response.

Create Shopping Context: with wallet ID

If this is a Shopping Context for a new shopper and you want to add wallet details for MasterPass or Visa Checkout, you can use the wallet details, including the payment info and billing and shipping info, by including the wallet-id in the request.

For details, see:

For an existing shopper, do not include the wallet-id in the request. Instead, you must first save the wallet information to that shopper using the Update Shopper request. You can then create Shopping Context with the relevant shopper ID.

Create Shopping Context: with Hosted Payment Fields token

If you are using BlueSnap's Hosted Payment Fields, and this Shopping Context is for a new shopper, you can use the payment information from the Hosted Payment Fields by including the token within the pf-token property in your request. Above is an example of a request with the Hosted Payment Fields token.

For an existing shopper, do not send the pf-token property in the Create Shopping Context request. Instead, you must first save the Hosted Payment Fields information to that shopper using the Update Shopper request. You can then create Shopping Context with the relevant shopper ID.

Create Shopping Context: with Apple Pay

Include the encoded-payment-token inside order-details > order > ordering-shopper > wallet > apple-pay.

  • If the shopper is new, set the query parameter returnrepresentation equal to true, meaning that the shopping-context resource will be returned in the response and will include the shopper-id property. Use the shopper-id for all future transactions with this shopper.

  • For existing shoppers, include the shopper-id within order-details > order > ordering-shopper.

For more information, check out our Apple Pay Guide.

Note: To test Apple Pay, follow the steps in the Apple Pay Guide. The API Explorer does not support Apple Pay testing.

Create Order: with shopper ID & CVV

You may wish to collect CVV on your checkout form from all your shoppers – even from returning shoppers. One reason you might choose to do this is because transactions with CVV generally result in higher success rates.

Above is an example of sending CVV in a request involving a returning shopper.
Include shopper-id and CVV in the request as in the example.



Back to Top