• Resolved frankmaat

    (@frankmaat)


    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, 2 months ago by frankmaat.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @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.

    @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

    (@yordansoares)

    Hi @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.