Anchor to customerPaymentMethodGetUpdateUrlcustomer
customerPaymentMethodGetUpdateUrl
mutation
Requires access scope.
Returns a URL that allows the customer to update a specific payment method.
Currently, only supports Shop Pay.
Anchor to Arguments
Arguments
- Anchor to customerPaymentMethodIdcustomer•
Payment Method Id ID!required The payment method to be updated.
Was this section helpful?
Anchor to CustomerPaymentMethodGetUpdateUrlPayload returnsCustomerPaymentMethodGetUpdateUrlPayload returns
- Anchor to updatePaymentMethodUrlupdate•
Payment Method Url The URL to redirect the customer to update the payment method.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation customerPaymentMethodGetUpdateUrl($customerPaymentMethodId: ID!) {
customerPaymentMethodGetUpdateUrl(customerPaymentMethodId: $customerPaymentMethodId) {
updatePaymentMethodUrl
userErrors {
field
message
}
}
}
Input
{
"customerPaymentMethodId": "gid://shopify/<objectName>/10079785100"
}
{
"customerPaymentMethodId": "gid://shopify/<objectName>/10079785100"
}