Update Cart

​

The Update Cart endpoint allows you to modify the contents and metadata of your cart.

Path Parameters

Headers

  • White Label Application Key

Body

application/json
  • Properties: 3
  • Properties: 2

Responses

  • application/json
  • Cart could not be updated

Request Example for put/cart/{cart_id}
curl 'https://api-public-demo.menu.app/api/cart/{cart_id}' \
  --request PUT \
  --header 'Application: ' \
  --header 'Content-Type: application/json' \
  --data '{
  "metadata": {
    "venue_id": "49f5339f-9043-4c0b-bdbd-27a7b8469cde",
    "order_type": {
      "id": 6,
      "pickup_asap": true,
      "pickup_at": "2024-10-15 15:23:59"
    }
  },
  "cart": {
    "products": [
      {
        "price_id": "f0c203de-2480-40aa-997b-e299292eb3f0",
        "comment": "comment",
        "quantity": 4,
        "product_groups": [
          {
            "id": "14919780-712e-3bc0-a39f-9d5687a98ed2",
            "type": 1,
            "comment": "",
            "products": [
              {
                "price_id": "a2f46102-4055-469c-a228-4168bbeb10e0",
                "comment": "",
                "quantity": 3,
                "product_groups": []
              }
            ]
          }
        ]
      }
    ],
    "discounts": [
      {
        "id": 48362099491,
        "type_id": 3
      }
    ],
    "tip": {
      "amount": 50,
      "type": 1
    }
  }
}'
{
  "status": "OK",
  "code": 200,
  "data": {
    "cart": {
      "id": "e6d0c777d7d46b1016ef80c8de20b132f53b2e74184bdc1e7c4bc3d840e5f07f",
      "products": [
        {
          "item_id": "14f4e650-987a-4000-b102-25629dfaa06e",
          "menu_id": "5a4e114f-3c1f-4e59-af0f-7af915b3d495",
          "category_id": "f167fe8b-2f16-426f-a742-fe0c0624a60c",
          "price_id": "9a4e25be-9c32-4b69-81b7-19a4f3595406",
          "price": 530,
          "name": "Amer - Super Burger",
          "is_available": true,
          "comment": "",
          "quantity": 1,
          "tax_amount": 0,
          "tax_rate": 0,
          "serving_people_from": 3,
          "serving_people_to": 4,
          "product_groups": [
            {
              "id": "273ec6f0-4d3c-402b-955e-75c5ba581058",
              "type": 1,
              "comment": "",
              "products": [
                {
                  "item_id": "79737674-49fe-4053-a72b-9c6d5e0b8481",
                  "menu_id": "5a4e114f-3c1f-4e59-af0f-7af915b3d495",
                  "category_id": "",
                  "price_id": "975ba87e-ac25-4da5-b04b-76844ef10421",
                  "price": 36,
                  "name": "Rye",
                  "is_available": true,
                  "comment": "",
                  "quantity": 1,
                  "tax_amount": 0,
                  "tax_rate": 0,
                  "serving_people_from": 3,
                  "serving_people_to": 4,
                  "product_groups": [],
                  "summary": {
                    "subtotal": 36,
                    "total": 36,
                    "total_tax": 0,
                    "tax_rates": []
                  }
                }
              ]
            }
          ],
          "summary": {
            "subtotal": 566,
            "total": 566,
            "total_tax": 0,
            "tax_rates": []
          }
        }
      ],
      "discounts": [],
      "tip": {
        "amount": 20,
        "type": 2
      },
      "fees": [],
      "summary": {
        "subtotal": 566,
        "total": 679,
        "discount": 0,
        "payment_amount": 679,
        "tax_rates": [],
        "total_tax": 0,
        "total_fee": 0,
        "tip": 113,
        "loyalty": {
          "points_spent": 0,
          "points_accrued": 1,
          "available_points": 0
        }
      },
      "settings": {
        "prices_includes_tax": false
      }
    }
  }
}