Skip to main content

generateQuotePDF

Generate a PDF file for a Quote using a Quote template. Optionally also creates a new File object with the PDF data.

generateQuotePDF(
id: ID!
currencyId: ID
quoteId: ID!
file: GeneratePDFFileInput
): GeneratePDFPayload

Arguments​

generateQuotePDF.id ● ID! non-null scalar​

Template id to use for PDF generation.

generateQuotePDF.currencyId ● ID scalar​

Currency id to use for PDF generation.

generateQuotePDF.quoteId ● ID! non-null scalar​

The quote to generate a PDF from.

generateQuotePDF.file ● GeneratePDFFileInput input​

Input data for a new File entity containing the PDF contents. If the file argument is set (non-null), a new File entity will be created containing the PDF data. You can use the fields on the GeneratePDFFileInput objects to customize the newly created file. When file is not provided or null, a File entity will not be created.

Type​

GeneratePDFPayload object​

A newly generated PDF file