Title: Programmatically add invoice
Last modified: October 23, 2016

---

# Programmatically add invoice

 *  [Jeffrey van Rossum](https://wordpress.org/support/users/jeffreyvr/)
 * (@jeffreyvr)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/programmatically-add-invoice/)
 * Hello,
 * Thank you for this plugin.
 * I was wondering if it is possible to add an invoice programmatically at this 
   moment?
 * For example something like:
 *     ```
       <?php
       $invoice = flexible_invoices_add_invoice( array(
          'products' => array(
             'description' => '',
             'quantity' => '',
             'price' => '',
          ),
          'customer' => array(
             'id' => '', // optional
             'name' => '',
             'address' => ''
          )
       ) );
       ```
   
 * Thanks again and I look forward to your reply.

Viewing 1 replies (of 1 total)

 *  [Maciej Swoboda](https://wordpress.org/support/users/swoboda/)
 * (@swoboda)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/programmatically-add-invoice/#post-8357591)
 * Hi [@jeffreyvr](https://wordpress.org/support/users/jeffreyvr/),
 * Right now this is not possible, but we think it is a brilliant idea and we are
   adding it to our backlog. When we prepare a bigger update we will consider this
   feature.
 * I will let you know if and when it’s ready.

Viewing 1 replies (of 1 total)

The topic ‘Programmatically add invoice’ is closed to new replies.

 * ![](https://ps.w.org/flexible-invoices/assets/icon-256x256.gif?rev=2537243)
 * [Flexible PDF Invoices for WooCommerce & WordPress](https://wordpress.org/plugins/flexible-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-invoices/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Maciej Swoboda](https://wordpress.org/support/users/swoboda/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/programmatically-add-invoice/#post-8357591)
 * Status: not a support question