Adding a product to cart

POST {{baseUrl}}/cart/{{tenant}}/carts/61a8a63605f998769314626d/items

Adds a product to the specified cart and creates a cart item.


Required scopes

  • cart.cart_manage

    Note: Only required if the access_token used to authorize the request and the customerId passed in the query parameter belong to different customers.

Request Body

{"itemYrn"=>"urn:yaas:saasag:caasproduct:product:rammert;581", "price"=>{"priceId"=>"62026c1a875a710001asdf86a54a", "originalAmount"=>1.75, "effectiveAmount"=>0.75, "currency"=>"EUR"}, "quantity"=>8}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: Created

{"itemId":"{cartItemId}","yrn":"{cartItemYrn}"}