Create the invoice for a bill
Generates an invoice for one of the lease's bills and returns it. Use the send endpoint afterwards to email it to the tenants, and the file endpoint to download the PDF.
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 bill is on. A Snowflake id, sent as a decimal string.
example: 1830472847398404096
billIdstringrequiredThe bill to invoice. A Snowflake id, sent as a decimal string.
example: 1849019384756201984
Response
200 · The invoice that was generated.
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.