Hello Developer, I am trying to send and email notification to my client regarding updating payment. Here is my code snippet below,
mutation customerPaymentMethodSendUpdateEmail($customerPaymentMethodId: ID!, $email: EmailInput) {
customerPaymentMethodSendUpdateEmail(customerPaymentMethodId: $customerPaymentMethodId, email: $email) {
customer {
# Customer fields
id
email
}
userErrors {
field
message
}
}
}
and here is my variables below,
{
"customerPaymentMethodId":"gid://shopify/Payment/24802001878",
"email": {
"bcc": [
""
],
"body": "Tikdk",
"customMessage": "asdfasfd",
"from": "test@gmail.com",
"subject": "shopify",
"to": "newTest@gmail.com"
}
}
and I am getting this error as below,
{
"data": {
"customerPaymentMethodSendUpdateEmail": null
},
"errors": [
{
"message": "invalid id",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"customerPaymentMethodSendUpdateEmail"
]
}
],
"extensions": {
"cost": {
"requestedQueryCost": 10,
"actualQueryCost": 1,
"throttleStatus": {
"maximumAvailable": 1000,
"currentlyAvailable": 999,
"restoreRate": 50
}
}
}
}
I dont know what is wrong here . anybody can help me ? Why am I receiving an invalid payment ID error?