App reviews, troubleshooting, and recommendations
Hello I am trying to send update payment method link to trigger CustomerPaymentMethodSendUpdateEmail gql . but I am getting following error.
[{"message":"CustomerPaymentMethodSendUpdateEmail access denied","locations":[{"line":2,"column":11}],"path":["customerPaymentMethodSendUpdateEmail"]}]
here is my code,
const shopData = await shopsController.getById(shopId);
const client = new Shopify.Clients.Graphql(
shopData.shopId,
shopData.offlineAccessToken
);
const mailResponse = await client.query({
data: `mutation customerPaymentMethodSendUpdateEmail(gid://shopify/CustomerPaymentMethod/${paymentId}: ID!) {
customerPaymentMethodSendUpdateEmail(customerPaymentMethodId: $customerPaymentMethodId) {
customer {
# Customer fields
id
email
}
userErrors {
field
message
}
}
}
`,
});
and my app setting is,
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025