Skip to main content

Create a cart item

Create a cart item.

Authorizations:Token, JWT
Query Parameters
cart_id
required
string36 charactersCart ID
Request Body Schema:
The new Cart item resource
productIdinteger
amountnumber
attributesArray of objects
Array
attributeIdinteger
attributeValueIdinteger
attributeValuestring

Responses

201Cart item resource created
Response schema:
Cart item resource created
productIdinteger
skustring
namestring
cleanUrlstring
amountnumber
inStockinteger
pricenumber
clear_pricenumber
net_pricenumber
display_pricenumber
attributesArray of objects
Array
namestring
attributeIdinteger
attributeValueIdinteger
attributeValuestring
surchargesArray of objects
Array
typestring
namestring
valuenumber
subtotalnumber
totalnumber
imagesArray of objects
Array
urlstring
widthinteger
heightinteger
altstring
marketPricenumber
idinteger or null>= 0
400Invalid input
401Unauthorized
Response schema:
Unauthorized
typestring
titlestring
detailstring or null
instancestring or null
422Unprocessable entity
500Internal error
Response schema:
Internal error
typestring
titlestring
detailstring or null
instancestring or null