Sitecore OrderCloud Documentation

docs

Portal login

Cart

The Cart is a straightforward way for a buyer user to interact with an order prior to submit. Unlike Order endpoints, an OrderID is never needed to interact with the cart. This simplifies workflows and eliminates the need to keep track of the OrderID on the front end. Please note Cart should be used as a distinct alternative to Order endpoints for a buyer user during the shopping experience; combining the use of Cart endpoints with Order endpoints may have unexpected results, and is not supported. Only available to Buyer Users.

Cart.Get

Get a single cart.

get

v1/cart

Cart.Save

Create or update a cart.

put

v1/cart

Cart.Delete

Delete a cart.

delete

v1/cart

Cart.Patch

Partially update a cart.

patch

v1/cart

Cart.ApplyPromotions

AutoApply eligible promotions.

post

v1/cart/applypromotions

Cart.SetBillingAddress

Set a billing address.

put

v1/cart/billto

Cart.PatchBillingAddress

Partially update a cart billing address.

patch

v1/cart/billto

Cart.CreateBundleItem

Create a new cart bundle item.

post

v1/cart/bundles/{bundleID}

Cart.DeleteBundleItem

Delete a cart bundle item.

delete

v1/cart/bundles/{bundleID}/{bundleItemID}

Cart.Calculate

Calculate the cart.

post

v1/cart/calculate

Cart.ListEligiblePromotions

List eligible promotions.

get

v1/cart/eligiblepromotions

Cart.EstimateShipping

Estimate shipping cost.

post

v1/cart/estimateshipping

Cart.PatchFromUser

Update cart FromUser.

patch

v1/cart/fromuser

Cart.ListLineItems

Get a list of cart line items.

get

v1/cart/lineitems

Cart.CreateLineItem

Create a new cart line item.

post

v1/cart/lineitems

Cart.GetLineItem

Get a single cart line item.

get

v1/cart/lineitems/{lineItemID}

Cart.SaveLineItem

Create or update a cart line item.

put

v1/cart/lineitems/{lineItemID}

Cart.DeleteLineItem

Delete a cart line item.

delete

v1/cart/lineitems/{lineItemID}

Cart.PatchLineItem

Partially update a cart line item.

patch

v1/cart/lineitems/{lineItemID}

Cart.ListPayments

Get a list of cart payments.

get

v1/cart/payments

Cart.CreatePayment

Create a new cart payment.

post

v1/cart/payments

Cart.GetPayment

Get a single cart payment.

get

v1/cart/payments/{paymentID}

Cart.DeletePayment

Delete a cart payment.

delete

v1/cart/payments/{paymentID}

Cart.PatchPayment

Partially update a cart payment.

patch

v1/cart/payments/{paymentID}

Cart.CreatePaymentTransaction

Create a new cart payment transaction.

post

v1/cart/payments/{paymentID}/transactions

Cart.DeletePaymentTransaction

Delete a cart payment transaction.

delete

v1/cart/payments/{paymentID}/transactions/{transactionID}

Cart.ListPromotions

Get a list of cart promotions.

get

v1/cart/promotions

Cart.AddPromotion

Add a promotion.

post

v1/cart/promotions/{promoCode}

Cart.DeletePromotion

Delete a cart promotion.

delete

v1/cart/promotions/{promoCode}

Cart.SelectShipMethods

Select a ship method.

post

v1/cart/shipmethods

Cart.SetShippingAddress

Set a shipping address.

put

v1/cart/shipto

Cart.PatchShippingAddress

Partially update a cart shipping address.

patch

v1/cart/shipto

Cart.Submit

Submit the cart.

post

v1/cart/submit

Cart.Validate

Validate the cart in it's current state.

post

v1/cart/validate

Cart.GetOrderWorksheet

Get a single cart order worksheet.

get

v1/cart/worksheet

Cart.SetActiveCart

Set an active cart.

put

v1/cart/{orderID}

Sitecore Logo

© Copyright 2024, Sitecore OrderCloud®. All rights reserved.

Contact Us
Privacy Policy
Sitecore