Update Shopping Context

Definition

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


Documentation

The Update Shopping Context request enables you to complete the purchase by changing the value of the step parameter from CREATED to PLACED.

If this transaction uses a credit card, this update action will capture the funds.

📘

This is the only change that can be made to an existing shopping-context entity.

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)

Response Details

If successful, the response HTTP status code is 204 No Content.
There is no content in the response body.
For details about possible errors, see: General Errors, Payment & Processor Errors.


Examples

Request Example

curl -v -X PUT https://sandbox.bluesnap.com/services/2/shopping-context/3911691 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<shopping-context xmlns="http://ws.plimus.com">
  <step>PLACED</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>
      <ordering-shopper>
        <shopper-id>19347421</shopper-id>
      </ordering-shopper>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2117474</sku-id>
            <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>
        <total-cart-cost>50.00</total-cart-cost>
      </cart>
      <expected-total-price>
        <amount>50.00</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'

Response Example

HTTP/ 1.1 204 No Content

Back to Top
Language
Credentials
:
Click Try It! to start a request and see the response here!