Add an Item to Cart
Adds a variant to the current cart by creating a line item. Each line item represents a specified variant and the desired quantity.
Authorizations
Order token to authorize Cart and Checkout requests.
Query Parameters
Specify the related resources you would like to receive in the response body. More Information.
Specify the fields you would like returned in the response body. More information.
Body
The public metadata for the added item.
The private metadata for the added item.
Additional custom options. Activate these by adding: Spree::PermittedAttributes.line_item_attributes << :foo
in config/initializers/spree.rb
Response
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
Was this page helpful?