Add Order To Cart Input

Input for adding an order to a cart.
Root XML tag
addOrderToCartInput
JSON example
Here’s a sample request for a registerd user:
1{
2  "cartStateOrId": "active",
3  "orderSummaryIdOrRefNumber": "Oder_Summary_ID"
4}
Here’s a sample request with verification for a guest user:
1{
2  "cartStateOrId": "active",
3  "orderSummaryIdOrRefNumber": "GJA4C-MUVBN-6ZT4P-V6CSB",
4  "verification": {
5    "email": "Ma**********@vi*****.info",
6    "lastName": "Strosin",
7    "phoneNumber": "********7740"
8  }
9}
Here’s a sample request with access token for a guest user:
1{
2  "cartStateOrId": "active",
3  "orderSummaryIdOrRefNumber": "GJA4C-MUVBN-6ZT4P-V6CSB",
4  "accessToken": "U2FsdGVkX1+kp1d8aQKHsqZJv1shF8Jx4Nc0kOdN+L5gViQa/sZtU5NHMDpIUEhz"
5  }
6}
Properties
Name Type Description Required or Optional Available Version
accessToken String Encrypted access token, retrieved from the Commerce Webstore Order Summary Authorization API after successful verification for guest users. The access token is valid for 60 minutes. Optional

This is required for guest users if the request doesn't include the session cookie and verification field.

64.0
cartStateOrId String Cart state (active or current) or the ID of the cart to which the products from an order are to be added. Required 59.0
orderSummaryId​OrRefNumber String Either the order summary ID or reference number value.

For guest shoppers, use the order reference number.

Required 59.0
verification Order Summary Verification Input Verification attributes for guest shoppers. Optional

This is required for guest users if the request doesn't include the session cookie and accessToken field.

59.0