Get Shopify checkout ID from Javascript React

hieupvdev4
Shopify Partner
2 0 0

I use Shopify Javascript React to do custom Checkout UI for clients. i use checkoutShippingAddressUpdateV2 api to update the address at checkout, but i can't get the checkout ID, i use `window` but it doesn't work, is there any way guys?

Screenshot 2023-06-16 at 08.25.21.png

Reply 1 (1)
Digico
Shopify Partner
46 1 3

Hello,

 

Shopify Flow doesn't have access to this data, it's not part of the default credentials of Flow.

 

This requires an app to have unauthenticated_write_checkouts access. Can you check this?

 

https://shopify.dev/docs/api/storefront/2022-04/mutations/checkoutshippingaddressupdatev2

Requires unauthenticated_write_checkouts access scope.