How can I obtain a cart ID in an eCommerce platform?

Good afternoon. Is it possible to get the id of the cart with all the user’s products in Shopify?
I need it in order to intercept cart data via Storefront API and redirect the data to another page where the payment will be made, also I need to change the number of items on the payment site.

Example:

  1. Getting cart id
  2. fetching cart by id via Storefront API
  3. sending cart data to another site via Storefront API

@v100vbun Hi, did you, by any chance found a solution to this? I also need to get cart id to later fetch it via Storefront API. Sadly liquid does not have id field for a cart object :confused:

you can get it from a cookie, cart