Skip to main content
Anchor to customerAccessTokenRenew

customerAccessTokenRenew

mutation

Requires unauthenticated_write_customers access scope.

Extends the validity of a CustomerAccessToken before it expires. The renewed token maintains authenticated access to customer operations.

Renewal must happen before the token's expiresAt time. If a token has already expired, then use customerAccessTokenCreate to generate a new token with the customer's credentials.


Caution

Store access tokens securely. Never store tokens in plain text or insecure locations, and avoid exposing them in URLs or logs.


•String!
required

The access token used to identify the customer.


Was this section helpful?

Anchor to CustomerAccessTokenRenewPayload returnsCustomerAccessTokenRenewPayload returns

•CustomerAccessToken

The renewed customer access token object.

•[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?