--- 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: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerpaymentmethodgetupdateurl md: https://shopify.dev/docs/api/admin-graphql/latest/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/latest/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/latest/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/latest/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 ```json { "customerPaymentMethodId": "gid://shopify//10079785100" } ``` ##### Variables ``` { "customerPaymentMethodId": "gid://shopify//10079785100" } ```