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
1mutation customerPaymentMethodGetUpdateUrl($customerPaymentMethodId: ID!) {2 customerPaymentMethodGetUpdateUrl(customerPaymentMethodId: $customerPaymentMethodId) {3 updatePaymentMethodUrl4 userErrors {5 field6 message7 }8 }9}
Input
1{2 "customerPaymentMethodId": "gid://shopify/<objectName>/10079785100"3}
{
"customerPaymentMethodId": "gid://shopify/<objectName>/10079785100"
}