Adding a product to cart
POST {{api_url}}/cart/{{tenant}}/carts/{{cart_id}}/items
Adds a product to the specified cart and creates a cart item.
Required scopes
cart.cart_manageNote: Only required if the
access_tokenused to authorize the request and thecustomerIdpassed in the query parameter belong to different customers.
Request Body
{"itemYrn"=>"urn:yaas:saasag:caasproduct:product:{{tenant}};{{product_id_1}}", "price"=>{"priceId"=>"{{price_id_1}}", "originalAmount"=>2.75, "effectiveAmount"=>0.75, "currency"=>"EUR"}, "quantity"=>8}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Authorization | string | ||
saas-token | string |
RESPONSES
status: Created
{"itemId":"{cartItemId}","yrn":"{cartItemYrn}"}