Title: Create an Invoice Programmatically
Last modified: October 30, 2025

---

# Create an Invoice Programmatically

 *  Resolved [Trident Marketing Anglia Ltd](https://wordpress.org/support/users/tridentmarketing/)
 * (@tridentmarketing)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/create-an-invoice-programmatically/)
 * Hey, I’m trying to create my invoices with some custom text generated from a 
   custom plugin, I can see how to add the item to it, but is there a way to use
   the meta array to add some text? 
   I’m looking for it to display the item name
   and then some additional text, I can see in the getpaid_invoice_items` table 
   there is item name, item description, but I cannot work out how to do it within
   the function:I was hoping for
 *     ```wp-block-code
       array(		'id'            => 2118,		'name'		=> 'Test Item',		'desc'		=> 'Test Description',		'quantity'      => 1,		'custom_price'  => '100.00'	)
       ```
   
 * but that doesnt seem to work. Is it possible?

Viewing 1 replies (of 1 total)

 *  Plugin Support [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * (@alexrollin)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/create-an-invoice-programmatically/#post-18702209)
 * Hello,
 * this [doc covers](https://wpgetpaid.com/documentation/article/discounts/how-to-create-an-invoice-programmatically/)
   that case, but if you need more help please make a [support ticket here](https://userswp.io/support/)
   so we can assign a developer.

Viewing 1 replies (of 1 total)

The topic ‘Create an Invoice Programmatically’ is closed to new replies.

 * ![](https://ps.w.org/invoicing/assets/icon-256x256.png?rev=2729282)
 * [Payment forms, Buy now buttons, and Invoicing System | GetPaid](https://wordpress.org/plugins/invoicing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/invoicing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/invoicing/)
 * [Active Topics](https://wordpress.org/support/plugin/invoicing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/invoicing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/invoicing/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * Last activity: [6 months, 3 weeks ago](https://wordpress.org/support/topic/create-an-invoice-programmatically/#post-18702209)
 * Status: resolved