Invoices
POST/v1/invoices/{invoice_id}/send

Emails the invoice as a PDF with a pay button, texts the payment link, or both. Drafts are finalized first. Send it again to remind your customer: they get the same link.

Permissioninvoices:write

Headers#

Idempotency-Keystringheader

8–80 letters, digits, - or _. Lets you retry safely: the same key and body return the first answer and never move money twice. See Idempotency.

Path parameters#

invoice_idstringrequired

The invoice, such as inv_UfwyBh1W4Jfa6iG2u2AVT3.

Body#

JSON, with Content-Type: application/json.

viaarraydefault: ["email"]

["email"], ["sms"] or both.

Returns#

The invoice, with delivery: true for each way it was sent.

Errors#

StatusCodeWhen
409INVOICE_NOT_OPENIt’s already paid or void. Paid invoices have a receipt instead.
422NO_CUSTOMER_EMAILNo email address to send it to.
422NO_CUSTOMER_PHONENo phone number to text it to.

The common codes, such as UNAUTHENTICATED and RATE_LIMITED, can come from any endpoint. See Errors.