Anchor to section titled 'undefined'

customerAccessTokenRenew
mutation

Requires unauthenticated_write_customers access scope.

Renews a customer access token.

Access token renewal must happen before a token expires. If a token has already expired, a new one should be created instead via customerAccessTokenCreate.


Anchor to customerAccessToken
customerAccessToken
required

The access token used to identify the customer.


Was this section helpful?

The renewed customer access token object.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation customerAccessTokenRenew($customerAccessToken: String!) {
  customerAccessTokenRenew(customerAccessToken: $customerAccessToken) {
    customerAccessToken {
      # CustomerAccessToken fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "customerAccessToken": "<your-customerAccessToken>"
}