Logo
Salesforce Developers API Documentation

Add an item to a cart

POST {{_endpoint}}/services/data/v{{version}}/commerce/webstores/{{webstoreId}}/carts/:webCartId/cart-items?effectiveAccountId=<EFFECTiVE_ACCOUNT_ID>

 

Body PARAM

Key Datatype Required Description 
effectiveAccountId
string



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X POST '/services/data/v61.0/commerce/webstores//carts/:webCartId/cart-items?effectiveAccountId=<EFFECTiVE_ACCOUNT_ID>?effectiveAccountId=<EFFECTiVE_ACCOUNT_ID>' -H 'Content-Type: application/json' -d '{"productId":"\u003cPRODUCT-ID\u003e","quantity":3,"type":"Product"}'

ENDPOINTS