Hello, I am trying to make this call
https://shopify.dev/docs/admin-api/graphql/reference/customers/customerpaymentmethodrevoke
mutation customerPaymentMethodRevoke($customerPaymentMethodId: ID!) {
customerPaymentMethodRevoke(customerPaymentMethodId: $customerPaymentMethodId) {
revokedCustomerPaymentMethodId
userErrors {
field
message
}
}
}
and my access token has these scopes,
'read_products',
'write_products',
'read_orders',
'read_customers',
'write_customers',
'read_customer_payment_methods',
'write_customer_payment_methods',
'write_own_subscription_contracts',
'read_own_subscription_contracts',
but when I try to run that mutation, i get
"errors": [
{
"message": "CustomerPaymentMethodRevoke access denied",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"customerPaymentMethodRevoke"
]
}
],
I am able to run the
Solved! Go to the solution
This is an accepted solution.
Hello,
Thank you for you question!
The customerPaymentMethodRevoke requires the write_customer_payment_methods scope, while the customerPaymentMethodSendUpdateEmail does not require it. This may be the reason why only one of the two mutations is working with your access token.
I sent you a message requesting additional details to confirm that the permission has been granted for the scope.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |