orderReportSend Mutation
Description
Sends a PDF report via email. The PDF URL should be generated using orderReportPdf. Only accessible to admin users.
mutation orderReportSend(
$pdfUrl: String!
$email: String!
$cc: String
$subject: String!
$message: String!
) {
orderReportSend(
pdfUrl: $pdfUrl
email: $email
cc: $cc
subject: $subject
message: $message
)
}
Variables
{
"pdfUrl": "pdfUrl",
"email": "email@example.com",
"cc": "cc",
"subject": "subject",
"message": "message"
}
Response
{
"orderReportSend": "example"
}
Arguments
| Name | Type | Description |
|---|---|---|
pdfUrl | String! | URL of the PDF report to send. |
email | String! | Email address of the recipient. |
cc | String | Optional CC email address. |
subject | String! | Email subject line. |
message | String! | Email message body. |