Title: Fetch PDF invoice using API
Last modified: February 9, 2023

---

# Fetch PDF invoice using API

 *  Resolved [frankmaat](https://wordpress.org/support/users/frankmaat/)
 * (@frankmaat)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/fetch-pdf-invoice-using-api/)
 * We are working with a logistics partner, and they asked us if it’s possible to
   deliver the invoices to them using the Woocommerce API. Currently we are using
   Dropbox, our logistics partner fetches the invoices from there manually.
 * So our questions is, is it possible to make de invoices available using the Woocommerce
   API?
    -  This topic was modified 3 years, 4 months ago by [frankmaat](https://wordpress.org/support/users/frankmaat/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/fetch-pdf-invoice-using-api/#post-16454807)
 * Hi [@frankmaat](https://wordpress.org/support/users/frankmaat/),
 * Currently, we do not store the invoice in the order data as is, so you can not
   fetch it from the WooCommerce API.
 * However, with the Professional extension, you could send the document to them,
   using the [Order Notification email](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/configuring-the-order-notification-email/).
 *  [amalg](https://wordpress.org/support/users/amalg/)
 * (@amalg)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fetch-pdf-invoice-using-api/#post-16599348)
 * [@yordansoares](https://wordpress.org/support/users/yordansoares/) we are considering
   purchasing the professional extension, but I wanted to confirm something first.
   We are currently using a custom cron job to kick off sending of customer invoices
   for orders that are still pending payment. The bit of code that does the actual
   sending is this;
 * // Send the customer invoice email
   WC()->mailer()->customer_invoice($order);
 * This triggers sending of woocommerce’s built-in invoice email. Will the professional
   extension enable an invoice PDF to be attached to this email when it gets sent
   out?
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fetch-pdf-invoice-using-api/#post-16603186)
 * Hi [@amalg](https://wordpress.org/support/users/amalg/),
 * Actually, even with the free plugin, you should be able to attach the PDF invoice
   to any default WooCommerce email notification, if you have selected them under**
   WooCommerce > PDF Invoices > Documents > Invoice > Attach to**.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fetch PDF invoice using API’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/fetch-pdf-invoice-using-api/#post-16603186)
 * Status: resolved