Creates a draft invoice for an order created using the Orders API.
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). For more information, see Manage Invoices Using the Invoices API.
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.