Update Shopping Context

Definition

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


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

📘

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):

Property

Type

Required

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 '
<?xml version="1.0" encoding="UTF-8"?>
<shopping-context xmlns="http://ws.plimus.com">
  <step>PAYPAL_ORDER</step>
  <web-info>
    <ip>62.219.121.253</ip>
    <remote-host>  </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>
    <accept-language>en-us</accept-language>
  </web-info>
  <order-details>
    <order>
      <ordering-shopper>
        <shopper-id>19587614</shopper-id>
      </ordering-shopper>
      <cart>
        <cart-item>
          <sku>
            <sku-id>2176834</sku-id>
            <sku-charge-price>
              <charge-type>initial</charge-type>
              <amount>49.99</amount>
              <currency>USD</currency>
            </sku-charge-price>
          </sku>
          <quantity>1</quantity>
        </cart-item>
        <cart-item>
          <sku>
            <sku-id>2176874</sku-id>
            <sku-charge-price>
             <charge-type>initial</charge-type>
             <amount>4.21</amount>
             <currency>USD</currency>
          </sku-charge-price>
          </sku>
          <quantity>1</quantity>
        </cart-item>
      </cart>
      <expected-total-price>
        <amount>54.20</amount>
        <currency>USD</currency>
      </expected-total-price>
    </order>
  </order-details>
</shopping-context>'

Response Example

HTTP/ 1.1 204 No Content

Back to Top