Adding a product to cart

POST {{baseUrl}}/cart/{{tenant}}/carts/65dde1dd638c4e1262c82931/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:{{tenant}};581", "price"=>{"priceId"=>"63d7d214b1296250229d43c2", "originalAmount"=>2.75, "effectiveAmount"=>0.75, "currency"=>"EUR"}, "quantity"=>8}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring
saas-tokenstring

RESPONSES

status: Created

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