<- Invoices API

Invoices API

Create invoice

POST

 /v2/invoices

Creates a draft invoice for an order created using the Orders API.

A draft invoice remains in your account and no action is taken. You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file).

Permissions:INVOICES_WRITE, ORDERS_WRITE
Try in API Explorer
Link to section

Request body

Example code

Link to section

invoice

Required

The invoice to create.

Link to section

idempotency_key

string

A unique string that identifies the CreateInvoice request. If you do not provide idempotency_key (or provide an empty string as the value), the endpoint treats each request as independent.

For more information, see Idempotency.

Link to section

Response fields

Link to section

invoice

The newly created invoice.

Link to section

errors

Information about errors encountered during the request.

Error descriptions