Returns the full API object that was passed in to your extension when it was created. Depending on the extension point, this object can contain different properties. For example, the `Checkout::CartLineDetails::RenderAfter` extension point will return the [CartLineDetailsApi](/docs/api/checkout-ui-extensions/apis/cartlinedetailsapi) object. Whereas others return the [StandardApi](/docs/api/checkout-ui-extensions/apis/standardapi) object. For reference, see [ExtensionPoints](/docs/api/checkout-ui-extensions/apis/extensionpoints) to determine what API object will be returned by your extension point.
View useExtensionApiReturns the metafields configured with `shopify.ui.extension.toml`.
View useAppMetafieldsReturns the values for the specified `attributes` applied to the checkout.
View useAttributeValuesReturns a function to mutate the `attributes` property of the checkout.
View useApplyAttributeChangeReturns the proposed `attributes` applied to the checkout.
View useAttributesReturns the current `Customer`. The value is `undefined` if the buyer isn't a known customer for this shop or if they haven't logged in yet.
View useCustomerReturns the email address of the buyer that is interacting with the cart. The value is `undefined` if the app does not have access to customer data.
View useEmailReturns the phone number of the buyer that is interacting with the cart. The value is `undefined` if the app does not have access to customer data.
View usePhoneReturns true if the buyer completed submitting their order. For example, when viewing the order status page after submitting payment, the buyer will have completed their order.
View useBuyerJourneyCompletedInstalls a function for intercepting and preventing progress on checkout. To block checkout progress, you must set the [block_progress](/docs/api/checkout-ui-extensions/configuration#block-progress) capability in your extension's configuration. If you do, then you're expected to inform the buyer why navigation was blocked, either by passing validation errors to the checkout UI or rendering the errors in your extension.
View useBuyerJourneyInterceptReturns the `buyerJourney` details on buyer progression in checkout.
View useBuyerJourneyReturns whether or not a given capability of an extension is granted.
View useExtensionCapabilityReturns a list of an extension's granted capabilities.
View useExtensionCapabilitiesReturns a function to mutate the `lines` property of checkout.
View useApplyCartLinesChangeReturns the current line items for the checkout, and automatically re-renders your component if line items are added, removed, or updated.
View useCartLinesReturns a `Money` value representing the minimum a buyer can expect to pay at the current step of checkout. This value excludes amounts yet to be negotiated. For example, the information step might not have delivery costs calculated.
View useTotalAmountReturns the country of the checkout, and automatically re-renders your component if the country changes.
View useLocalizationCountryReturns the currency of the checkout, and automatically re-renders your component if the currency changes.
View useCurrencyReturns the current delivery groups for the checkout, and automatically re-renders your component when delivery address or delivery option selection changes.
View useDeliveryGroupsReturns the current discount allocations applied to the cart, and automatically re-renders your component if discount allocations changed.
View useDiscountAllocationsReturns a function to add or remove discount codes. > Caution: > See [security considerations](/docs/api/checkout-ui-extensions/configuration#network-access) if your extension retrieves discount codes through a network call.
View useApplyDiscountCodeChangeReturns the current discount codes applied to the cart, and automatically re-renders your component if discount codes are added or removed.
View useDiscountCodesReturns the metadata about the extension.
View useExtensionDataReturns information about the editor where the extension is being rendered.
View useExtensionEditorReturns the buyer's language, as supported by the extension.
View useExtensionLanguageReturns the current gift cards applied to the cart, and automatically re-renders your component if gift cards are added or removed.
View useAppliedGiftCardsReturns a function to add or remove gift cards. > Caution: > See [security considerations](/docs/api/checkout-ui-extensions/configuration#network-access) if your extension retrieves gift card codes through a network call.
View useApplyGiftCardChangeReturns the current language of the checkout, and automatically re-renders your component if the language changes.
View useLanguageReturns a single filtered `Metafield` or `undefined`.
View useMetafieldReturns a function to mutate the `metafields` property of the checkout.
View useApplyMetafieldsChangeReturns the current array of `metafields` applied to the checkout. You can optionally filter the list.
View useMetafieldsReturns a function to mutate the `note` property of the checkout.
View useApplyNoteChangeReturns the proposed `note` applied to the checkout.
View useNoteReturns the order information that's available post-checkout.
View useOrderReturns all available payment options.
View useAvailablePaymentOptionsReturns payment options selected by the buyer.
View useSelectedPaymentOptionsProvides access to session tokens, which can be used to verify token claims on your app's server.
View useSessionTokenReturns the setting values defined by the merchant for the extension.
View useSettingsReturns the proposed `shippingAddress` applied to the checkout.
View useShippingAddressReturns the `Shop` where the checkout is taking place.
View useShopReturns the key-value `Storage` interface for the extension point.
View useStorageSubscribes to the special wrapper type that all “changeable” values in the checkout use. This hook extracts the most recent value from that object, and subscribes to update the value when changes occur in the checkout. > Note: > You generally shouldn’t need to use this directly, as there are dedicated hooks > for accessing the current value of each individual resource in the checkout.
View useSubscriptionReturns the cart line the extension is attached to. This is only applicable to the `Checkout::CartLineDetails::RenderAfter` extension point.
View useTargetReturns the time zone of the checkout, and automatically re-renders your component if the time zone changes.
View useTimezoneReturns the `I18nTranslate` interface used to translate strings.
View useTranslate