Retrieve Shopping Context

Definition

https://sandbox.bluesnap.com/services/2/shopping-context/:order-id|:seller-order-id,:seller-id


The Retrieve Shopping Context request enables you to retrieve details about an existing shopping-context order.


Request Content

Retrieve based on order ID in BlueSnap

Enter the order-id into the web service URL, in the format: services/2/shopping-context/{order-id}

For example: services/2/shopping-context/56765

Retrieve based on seller order ID

Enter the unique ID that you assigned to the order (the seller-order-id), and your seller ID in BlueSnap (seller-id) into the web service URL, in the format: services/2/shopping-context/{seller-order-id},{seller-id}

For example: services/2/shopping-context/321654987,111222

Response Details

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


Examples

Request Examples

curl -v -X GET https://sandbox.bluesnap.com/services/2/shopping-context/3911691 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='
curl -v -X GET https://sandbox.bluesnap.com/services/2/shopping-context/36642950,391768 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='

Response Examples

<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <step>CREATED</step>
  <order-details>
    <order>
      <order-id>3911691</order-id>
      <ordering-shopper>
        <shopper-id>19494204</shopper-id>
      </ordering-shopper>
      <cart>
        <charged-currency>USD</charged-currency>
        <cart-item>
          <sku>
            <sku-id>2178316</sku-id>
            <sku-name>SKU Example</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>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<shopping-context xmlns="http://ws.plimus.com">
  <step>CREATED</step>
  <order-details>
    <order>
      <order-id>3979819</order-id>
      <seller-order-id>36642950</seller-order-id>
      <ordering-shopper>
        <shopper-id>19562772</shopper-id>
      </ordering-shopper>
      <transaction-payment-info>
        <paypal-info>
          <url>https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout&token=EC-8MC833727L375390A</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>0.00</item-sub-total>
        </cart-item>
        <tax>0.00</tax>
        <tax-rate>0</tax-rate>
        <total-cart-cost>0.00</total-cart-cost>
      </cart>
    </order>
  </order-details>
</shopping-context>

Back to Top