Skip to main content
Anchor to fetchCustomDataTokenForUser

fetchCustomDataTokenForUser

mutation

Fetch an OAuth Access and Refresh Token pair for the Shop Users API to read or write metafields after user's presence interaction ends.

If a user has used Sign in with Shop with your App client, you may retreive tokens to read / write your own metafields on a user.

•String!
required

The email of the buyer for whom you need an Access token.

•String

Private to Shopify Internal clients. Allows a storefront to be passed in by its myshopify domain.


Was this section helpful?

Anchor to FetchCustomDataTokenForUserPayload returnsFetchCustomDataTokenForUserPayload returns

•String

New AccessToken for Users API.

•Int

Access Token TTL in Seconds.

•String

New RefreshToken for Users API used to get new AccessTokens.

•String

New RefreshToken for Users API used to get new AccessTokens.

•[UserError!]!
non-null

List of errors that occured while executing the mutation.


Was this section helpful?