Send an invoice
Emails an existing invoice to the lease's tenants and records the send. The returned lastSent tells you when it went out.
Authorization
AuthorizationstringrequiredBearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.
Path parameters
leaseIdstringrequiredThe lease the invoice is on. A Snowflake id, sent as a decimal string.
example: 1830472847398404096
invoiceIdstringrequiredThe invoice to send. Comes from creating or fetching an invoice. A Snowflake id, sent as a decimal string.
example: 1848019384756201984
Response
200 · The invoice, with `lastSent` updated.
idstringId of the invoice. A Snowflake id, sent as a decimal string.
leaseIdstringThe lease the invoice is for. A Snowflake id, sent as a decimal string.
issueDatestring · date-timeWhen the invoice was issued, in the company's timezone.
dueDatestring · dateThe date the invoiced amount is due.
invoiceNumberstringHuman-readable invoice number.
totalAmountnumberTotal invoiced, as a decimal amount.
lastSentstring · date-timeWhen the invoice was last emailed out. Absent until it has been sent.