🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 23, 2026

How to Create Invoice Ninja Clients, Quotes and Invoices From a Gravity Forms Submission

GravityExtra
How to Create Invoice Ninja Clients, Quotes and Invoices From a Gravity Forms Submission

A form that ends in a copy and paste job is only half finished. Somebody asks for a quote on your site, the answers land in Gravity Forms, and then a person opens the invoicing tool, types the same name, the same address and the same list of services, and hopes nothing was mistyped. If you invoice with Invoice Ninja, that second step can disappear. This guide shows how to make a Gravity Forms submission create the client, the quote or the invoice in your Invoice Ninja account, with the hosted service or with your own installation, using the Gravity Forms Invoice Ninja Premium Add-on.

What Invoice Ninja offers and what is missing

Invoice Ninja is an open source invoicing and billing platform. You can use the hosted service or install it on your own server, and both give you clients, quotes, invoices, payments and a client portal. It also has a REST API that works with a token, which is what makes a link with a form possible.

Gravity Forms, on the other side, is where the request arrives. It already collects the name, the e-mail address, the company, the service the person wants and the details of the project. What neither product has by itself is the bridge. The usual workarounds are a third party automation service that you pay for by the task, a custom plugin written for one site, or a person doing the typing. Each has a cost: money, maintenance or mistakes.

What the add-on does

The add-on is a normal Gravity Forms feed. In a feed you choose what to create, which fields fill the client, and what goes on the quote or the invoice. When a visitor submits the form, the add-on calls the API of your Invoice Ninja on the server, creates the records and writes a note on the entry for each step. The visitor sees your ordinary confirmation and nothing else.

  • Create a client only, a client with a quote, or a client with an invoice.
  • Find the existing client by e-mail address instead of creating a duplicate.
  • Build the line items with merge tags: quantity, description and price from the form.
  • Turn the Product fields of an order form into invoice lines, with options and shipping.
  • Set notes, terms, a purchase order number, a date and a due date.
  • Mark the document as sent, or let Invoice Ninja e-mail it, if you choose.
  • Hosted or self-hosted version 5, with an API token stored encrypted.
The Invoice Ninja feed screen: what to create, the client fields, the line items box and the options for notes, dates, mark as sent and e-mail
One feed: what to create, the client, and the quote or invoice.

Step 1: create an API token in Invoice Ninja

Log in to your Invoice Ninja, open Settings, then Account management, then API tokens, and create a new token. Give it a name that tells you where it is used, such as the name of your website. The token acts as the user who created it, so use a user that is allowed to create clients, quotes and invoices and nothing more if you can. Copy the token; you will paste it once.

Step 2: connect the add-on

Install and activate the add-on after Gravity Forms and enter your license key in Forms, Settings, Invoice Ninja. Then fill in the two connection fields. The address is already set to the hosted service. If you run your own Invoice Ninja, type its address, for example the address of your billing subdomain, without adding anything after it. Paste the token and save.

Press Test connection. The add-on asks Invoice Ninja who you are and shows your company and user name in green. Nothing is created by this test. If something is wrong you get a short, readable message, such as an unauthorized answer for a wrong token, and never the token itself.

The Invoice Ninja settings screen with the address, the masked API token and the Test connection button showing Connected
The connection: the address, the API token (stored encrypted) and a test that creates nothing.

Is it safe to store the token on my site?

The token is encrypted before it is written to the database and it is never shown again. For the strictest setups you can keep it out of the database and define it in the configuration file of WordPress. The add-on always checks the certificate of the server, never follows a redirect with the token, and refuses addresses that point inside a network, so a wrong setting cannot make your site call an internal service. If your own Invoice Ninja does run inside your network, you can allow that one host with a filter.

Step 3: create the feed

Open the form that should create the records, go to Settings, Invoice Ninja, and add a feed. Choose what to create. For a contact form that only needs to land people in your client list, choose a client. For a quote request choose a client and a quote. For an order or booking form that is paid by invoice, choose a client and an invoice.

Fill the client boxes with merge tags. The company field goes into the client name, the name field into the contact first and last name, the e-mail field into the contact e-mail. The address, the city, the postal code and the country can come from a Gravity Forms Address field. If the company box is empty the add-on names the client after the contact, so a private person without a company still works.

Step 4: write the line items

A quote or an invoice needs lines. In the line items box you write one line per item, with the parts separated by a vertical bar: the quantity, the description and the unit price. A line such as 2 | Website audit | 150 makes two audits at 150 each. A line with only a description and a price, such as Setup fee | 50, has a quantity of one.

Every part accepts merge tags. Imagine a form where the visitor picks a service and a number of hours. A single line with the hours field, the service field and your hourly rate gives a correct quote for each submission. For an order form with Product fields you tick one box and the products, their quantities and chosen options become lines by themselves.

The add-on splits the lines before it fills in the merge tags. This matters. If a visitor types a vertical bar or a new line in the project details, that text stays inside one description and cannot create a free extra line or change a price. Lines that cannot be used are skipped with a note, and when nothing usable is left the add-on creates nothing, so there are no empty clients or empty quotes to clean up.

Step 5: notes, dates and what happens next

Public notes and terms are shown to your client on the document, private notes are for your team. A good private note is the entry number, so that you can find the submission from the invoice. You can also set a purchase order number from a form field, a date, and a due date or a valid until date for a quote. If you leave the dates empty, Invoice Ninja applies the payment terms of the client.

Two checkboxes control what Invoice Ninja does with the new document. Mark as sent changes the status without sending anything. Let Invoice Ninja e-mail the document sends it to the client with your own e-mail settings and template. Both are off by default. Many businesses prefer to look at the first few quotes before they go out, and the add-on respects that.

What happens with returning customers

Most forms are filled in more than once by the same person. If the Existing client option is on, the add-on asks Invoice Ninja whether an active client already has a contact with that e-mail address. If yes, the new quote or invoice goes to that client and nothing of the client is changed. If no, a new client is made. Deleted and archived clients are never reused, and the add-on checks that the client really has the e-mail address before it uses it, so a loose search result cannot put an invoice on the wrong account.

A Gravity Forms entry with two notes from the add-on: client created and Quote Q0001 created
The entry keeps a note for every step, so you can see what was made.

Checking the result

Open the entry. It carries a note for each step: client created or existing client used, then the number of the quote or the invoice, with the link of the client portal when Invoice Ninja returns one. The client and the document are also stored as entry meta, which you can use in the entries list or in an export. If a call fails, the note says which one and gives the reason from Invoice Ninja, for example the field that was not accepted. If the client was created and the invoice failed, the client stays, and the next submission by the same person uses it.

Frequently asked questions

Does it work with the hosted Invoice Ninja and with a self-hosted one?

Yes, both. The hosted service address is the default. A self-hosted installation needs an https address that your WordPress server can reach.

Which version of Invoice Ninja do I need?

Version 5, which has the REST API with tokens that the add-on uses.

Can a visitor see the token or anything from Invoice Ninja?

No. The calls are made on the server after the submission. The visitor sees your confirmation.

Can it update an existing client?

No. It uses an existing client as it is. It never changes the details you already keep in Invoice Ninja.

What about payments?

The add-on creates the client and the document. Payment is handled by Invoice Ninja and its payment gateways in the usual way.

Which Gravity Forms versions are supported?

Gravity Forms 2.9 and newer. The add-on is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4, and every test runs against a simulated Invoice Ninja, so no real account is touched while testing.

Get started

The Gravity Forms Invoice Ninja Premium Add-on takes the typing out of quotes and invoices: one feed per form, a token you control, and a note on every entry. See the features, the price and the setup guide on the add-on page.

See the Invoice Ninja add-on

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr