Skip to main content

orderReportPdf Mutation

Description​

Generates a PDF report from HTML content. Used for creating sales reports and other order-related PDF documents. Only accessible to admin users.

mutation orderReportPdf($html: String!, $title: String!) {
orderReportPdf(html: $html, title: $title)
}

Variables​

{
"html": "html",
"title": "title"
}

Response​

{
"orderReportPdf": "example"
}

Arguments​

NameTypeDescription
htmlString!HTML content to convert to PDF.
titleString!Title for the PDF document.

Returns​

String!