Skip to main content

sendInvoiceEmail

Requires at least one of the permissions payments:invoice:send or purchase:purchase_invoice:send.

Emails an invoice to the customer's email address on record. Refused when the customer has no email address. A user cannot email an invoice they cannot open.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation SendInvoiceEmail($invoiceId: ID!) {
sendInvoiceEmail(invoiceId: $invoiceId)
}

Variables:

{
"invoiceId": "id"
}

Response:

{
"data": {
"sendInvoiceEmail": true
}
}
sendInvoiceEmail(
customerEmail: String
invoiceId: ID!
): Boolean!

Arguments​

sendInvoiceEmail.customerEmail ● String scalar​

The recipient's email address. When omitted the customer's email contact on file is used.

sendInvoiceEmail.invoiceId ● ID! non-null scalar​

The ID of the invoice to email.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.