Cart ==== Managing cart items works just like in our website. All changes you make through the API are also visible on website. GET /cart --------- This endpoint gives you detailed information about items you currently have in cart. Curl example: .. code-block:: bash curl -XGET https://api.url/cart -H 'Authorization: Bearer ACCESS_TOKEN' GET /cart/item/{uuid} --------------------- You can also get information about one item in cart, but the data provided is identical to `GET /cart`. Curl example: .. code-block:: bash curl -XGET https://api.url/cart/item/410069a7-c69c-4c2f-a5f3-002bc394f522 -H 'Authorization: Bearer ACCESS_TOKEN' POST /cart/item --------------- To create new item in cart, use this method. Data schema: .. code-block:: json {"item":{"ean":"EANCODEHERE"},"quantity":1,"customerRef":"your reference to this item"} Curl example: .. code-block:: bash curl -XPOST https://api.url/cart/item -H 'Authorization: Bearer ACCESS_TOKEN' -d '{"item":{"ean":"5902818966064"},"quantity":5,"customerRef":"my reference to this item"}' PUT /cart/item/{uuid} --------------------- This method is used to modify quantity and customerRef of cart's item. Note: You can't change product with this method. To change produkt, just DELETE cart item, and POST a new one. Data schema: .. code-block:: json {"quantity":1,"customerRef":"your reference to this item"} Curl example: .. code-block:: bash curl -XPUT https://api.url/cart/item/410069a7-c69c-4c2f-a5f3-002bc394f522 -H 'Authorization: Bearer ACCESS_TOKEN' -d '{"quantity":6,"customerRef":"new reference"}' DELETE /cart/item/{uuid} ------------------------ Simple method to delete cart's item. .. code-block:: bash curl -XDELETE https://api.url/cart/item/410069a7-c69c-4c2f-a5f3-002bc394f522 -H 'Authorization: Bearer ACCESS_TOKEN'