Working with the draftOrderInvoiceSend mutation and I’m trying to override the email attributes as documented but only the default email is sent to the default recipient. All the EmailInput overrides do not work.
I have the mutation added as follows.
mutation draftOrderInvoiceSend($id: ID!, $email: EmailInput) {
draftOrderInvoiceSend(id: $id, email:$email ) {
draftOrder {
id
email
}
userErrors {
field
message
}
}
}
The variables are defined as follows.
{
"email": {
"bcc": [
"test-bcc@email.com"
],
"body": "Testing email with custom content",
"customMessage": "This is a message is an override",
"from": "no-reply@email.io",
"subject": "Email Subject",
"to": "sample@email.com"
},
"id": "gid://shopify/DraftOrder/945700241590"
}
Any ideas on what could be causing the issue?