Get Checkout Id from Checkout url

Jujuba
Shopify Partner
23 0 6

Hi, 

I´m trying to get the Checkout ID from the Checkout URL to add/update the shipping address.

I´m getting the checkout url from createCart Mutation (need to use cart as I´m working with sellingPlans) but not the id. To fetch the checkout I need the id. Is there any way to get the id from checkout url?

Example Checkout URL: https://example.com/cart/c/5b09b3ee8ecc0cd08859ba2f340dc1e3

 

Thank you.

Replies 5 (5)

gabrielvictoria
Shopify Partner
13 0 2

Hello, did you get the solution?

Jujuba
Shopify Partner
23 0 6

Unfortunately no

mani_HL
Shopify Partner
5 0 2

@Jujuba Have you managed to find any solution to add a shipping address to the checkout? Looks like cart delivery groups. delivery.option is not exactly the same as checkout available shipping

 

I am in the same boat as you that migrating checkout API to cart APIs for using subscriptions. Now blacked on the adding shipping 

Jujuba
Shopify Partner
23 0 6

I used query params to add the shipping address. Not the best solution but the only one I could find. Hope shopify will provide a better solution. https://community.shopify.com/c/shopify-design/cart-use-permalinks-to-pre-load-the-cart/td-p/613702#... 

baganaakh
Shopify Partner
2 0 0

Same here If I used Cart's cartCreate mutation it becomes unable to use Checkout object and its mutation queries.