wpovernight / woocommerce-pdf-invoices-packing-slips

Create, print & automatically email PDF invoices & packing slips for WooCommerce orders.
https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
Other
103 stars 47 forks source link

Download PDF Invoices via Woocommerce REST api #800

Closed gadget-man closed 11 hours ago

gadget-man commented 6 months ago

I'm providing registered customers with a report on orders they've placed in an external dashboard, using the Woocommerce REST API. For each order, I'd like to be able to give the customer the option to download a further copy of their PDF invoice.

It would be great if there was a mechanism to be able to do this. I can already see all the order details including several _wcpdf but can't see anything specific to allow me to externally access the invoice PDF itself.

alexmigf commented 6 months ago

We are going to provide some REST API endpoints in our Professional extension soon, we don't have plans to do this on the free plugin for now.

Hope that helps!

https://github.com/wpovernight/woocommerce-pdf-ips-pro/pull/378

usselite commented 4 months ago

Hi @alexmigf is it available?

alexmigf commented 4 months ago

It's expected to be released with our Professional extension version 2.16.0.

usselite commented 2 months ago

Hi @alexmigf, is there any ETA for 2.16.0?

alexmigf commented 2 months ago

Hi @usselite

We are completing the final reviews before releasing a new version of Pro, which will include this feature. We have scheduled this for the upcoming version 2.15.11.

usselite commented 11 hours ago

Hi @alexmigf it appears to be released, how to use the feature though?

alexmigf commented 11 hours ago

@usselite, this feature is available exclusively in our Professional extension. You’ll find a new tab with setup instructions under the "Advanced" section of the plugin settings menu.

usselite commented 10 hours ago

Hi @alexmigf, yes I did see that (we have pro extension), I might misunderstand how this is supposed to work, but there's no real end-point where you can download?

These are the options available:

  1. Retrieve an order
  2. Create or regenerate a document
  3. Delete a document
alexmigf commented 10 hours ago

You can enable the "Keep PDF on Server" document setting, then access the PDF archive URL through the order metadata using the REST API order endpoint.