What's your biggest current challenge? Have your say in Community Polls along the right column.

Get Shopify checkout ID from Javascript React

Get Shopify checkout ID from Javascript React

hieutherealest
Shopify Partner
3 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
47 1 5

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.