5

Will retrieving Invoice documents as PDFs be available in QuickBooks API V3? If so, will QuickBooks Desktop be supported as well? In V2 (Intuit Data Services), only QuickBooks Online was supported.

ihoka
  • 147
  • 8

2 Answers2

3


It is not available in v3 yet. Currently only in v2. It will be supported eventually but not in the next 6 months. You can of course use v3 and v2 only to save an invoice as pdf if necessary.

thanks
Jarred

Jarred Keneally
  • 1,931
  • 11
  • 12
0
    $dataService->throwExceptionOnError(true);

    $invoice = $dataService->FindById("Invoice", $invoiceId);

    $filename = "$customerEmail.pdf";

    $pdfData = $dataService->DownloadPDF($invoice, null, true);

    // Send the file to the browser.
    header('Content-Type: application/pdf');
    header('Content-Transfer-Encoding: binary');
    header('Accept-Ranges: bytes');
    header('Content-Disposition: inline; filename="' . $filename . '"');

    echo $pdfData;
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jan 21 '22 at 21:32