Search⌘ K
AI Features

Create an Invoice

Understand the process of creating draft invoices and publishing them using the Square Invoices API. Explore how to integrate order and customer data to generate invoices, and learn how Square hosts invoice pages for easy payment. This lesson helps you handle invoice workflows efficiently in a JavaScript application.

The Invoices API can be used to create an invoice to request payment for an order. The integration of the Invoices API into the applications can help sellers manage invoices efficiently. This, in turn reduces the development cost in the following ways:

  • All invoices require an order ID and customer ID, which allows built-in integration with the Orders API and Customers API.
  • Square follows up with customers for the invoices we create so that we don’t need to send them reminders or receipts.
  • Square generates and hosts a web page where customers can pay the invoice at their ease.

The main workflow of creating an invoice mainly involves the following two steps:

  • Step 1: Create a draft invoice using the CreateInvoice endpoint in the Invoices API:            
...