--- title: customerPaymentMethodGetUpdateUrl - GraphQL Admin description: |- Returns a URL that allows the customer to update a specific payment method. Currently, `customerPaymentMethodGetUpdateUrl` only supports Shop Pay. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/customerPaymentMethodGetUpdateUrl md: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/customerPaymentMethodGetUpdateUrl.md --- # customer​Payment​Method​Get​Update​Url mutation Requires `write_customers` access scope. Returns a URL that allows the customer to update a specific payment method. Currently, `customerPaymentMethodGetUpdateUrl` only supports Shop Pay. ## Arguments * customer​Payment​Method​Id [ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID) required The payment method to be updated. *** ## Customer​Payment​Method​Get​Update​Url​Payload returns * update​Payment​Method​Url [URL](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/URL) The URL to redirect the customer to update the payment method. * user​Errors [\[Customer​Payment​Method​Get​Update​Url​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/CustomerPaymentMethodGetUpdateUrlUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### customerPaymentMethodGetUpdateUrl reference ## Mutation Reference ```graphql mutation customerPaymentMethodGetUpdateUrl($customerPaymentMethodId: ID!) { customerPaymentMethodGetUpdateUrl(customerPaymentMethodId: $customerPaymentMethodId) { updatePaymentMethodUrl userErrors { field message } } } ``` ## Input ##### Variables ```json { "customerPaymentMethodId": "gid://shopify//10079785100" } ```