Skip to content

Send Duplicate Invoice

GraphQL counterpart of POST /api/admin/invoices/{id}/send-duplicate. Emails a copy of the invoice. Requires the sales.invoices.view permission. All admin endpoints require an admin Bearer token — see Authentication.

Operation

OperationType
createAdminInvoiceSendDuplicateMutation

Input (createAdminInvoiceSendDuplicateInput)

FieldTypeRequiredDescription
invoiceIdInt!YesId of the invoice to send.
emailStringNoRecipient address. Defaults to the order's customer email when omitted. Must be a valid email when provided.

Payload fields

FieldTypeDescription
idIDInvoice IRI.
emailStringThe address the invoice was sent to.
successBooleanWhether the email was queued.
messageStringHuman-readable result message.

Recipient

Whatever address you pass in email is the actual recipient. Leave it out to send to the order's customer.

Released under the MIT License.