Get the invoice for a bill
Fetches the invoice that was generated for one of the lease's bills. Returns 404 when no invoice has been generated yet — create one first.
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 whose invoice you want. A Snowflake id, sent as a decimal string.
example: 1849019384756201984
Response
200 · The invoice.
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.