Skip to main content
PATCH
Associate a Cart with a User

Authorizations

Authorization
string
header
required

User token to authorize Cart and Checkout requests.

It is required to associate Cart with the User.

Query Parameters

guest_order_token
string
required

Token of the guest cart to be associated with user.

Example:

"bd7SHdOAQqTsQHsjnhoWIw1633364692479"

include
string

Specify the related resources you would like to receive in the response body. More Information.

fields[cart]
string

Specify the fields you would like returned in the response body. More information.

Response

200 Success - Returns the cart object.

data
Cart · object
required

The Cart provides a central place to collect information about an order, including line items, adjustments, payments, addresses, and shipments. Read more in Spree docs

included
(Line Item · object | Promotion · object | Variant · object | Payment · object | User · object | Shipment · object | Digital Link · object | Product · object)[]