Anchor to customerPaymentMethodRevokecustomer
customerPaymentMethodRevoke
mutation
Requires access scope. Also: Requires
scope.
Revokes a customer's payment method.
Anchor to Arguments
Arguments
- Anchor to customerPaymentMethodIdcustomer•
Payment Method Id ID!required The ID of the customer payment method to be revoked.
Was this section helpful?
Anchor to CustomerPaymentMethodRevokePayload returnsCustomerPaymentMethodRevokePayload returns
- Anchor to revokedCustomerPaymentMethodIdrevoked•
Customer Payment Method Id The ID of the revoked customer payment method.
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation customerPaymentMethodRevoke($customerPaymentMethodId: ID!) {
customerPaymentMethodRevoke(customerPaymentMethodId: $customerPaymentMethodId) {
revokedCustomerPaymentMethodId
userErrors {
field
message
}
}
}
Input
{
"customerPaymentMethodId": "gid://shopify/<objectName>/10079785100"
}
{
"customerPaymentMethodId": "gid://shopify/<objectName>/10079785100"
}