Cart
Create a Cart
Creates a new cart.
Please be aware; The token
value found in the response body is used to authorize all future operations on this cart through the Auth API Key X-Spree-Order-Token
.
POST
/
api
/
v2
/
storefront
/
cart
Query Parameters
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.
Body
application/vnd.api+json
public_metadata
object
The public metadata for the cart.
private_metadata
object
The private metadata for the cart.
Response
201 - application/vnd.api+json
data
object
requiredThe 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
object[]
Was this page helpful?