Skip to main content
Migrate to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.

Checkout Token API

The API for interacting with the token of a checkout.

The base API object provided to purchase extension targets.

Anchor to checkoutToken
checkoutToken
StatefulRemoteSubscribable< | undefined>
required

A stable ID that represents the current checkout.

Matches the token field in the WebPixel checkout payload and the checkout_token field in the REST Admin API Order resource.

Anchor to useCheckoutToken
useCheckoutToken()

Returns a stable id that represents the current checkout.

| undefined
Was this page helpful?