Skip to main content

Creates a Cart item resource.

Creates a Cart item resource.

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

Responses

201Cart item resource created
Response schema:
Cart item resource created
productIdinteger
skustring or null
namestring or null
cleanUrlstring or null
amountinteger
inStockinteger or null
pricenumber or null
clear_pricenumber or null
net_pricenumber or null
display_pricenumber or null
attributesArray of objects
Array
namestring
attributeIdinteger
attributeValueIdinteger
attributeValuestring
surchargesArray of objects
Array
typestring
namestring
valuenumber
subtotalnumber or null
totalnumber or null
imagesArray of objects
Array
urlstring
widthinteger
heightinteger
altstring
marketPricenumber or null
idinteger or null>= 1
clearPricenumber or null
netPricenumber or null
displayPricenumber or null
400Invalid input
401Unauthorized
Response schema:
Unauthorized
typestringExample: "https://tools.ietf.org/html/rfc2616#section-10"
titlestringExample: "An error occurred"
detailstring or nullExample: "Cannot find entity"
instancestring or null
422Unprocessable entity
500Internal error
Response schema:
Internal error
typestringExample: "https://tools.ietf.org/html/rfc2616#section-10"
titlestringExample: "An error occurred"
detailstring or nullExample: "Cannot find entity"
instancestring or null