List invoice emails
https://api.light.inc/v1/invoice-receivables/{invoiceReceivableId}/emails
Returns each email Light sent about an invoice receivable, newest first: the invoice emails and the payment reminders. Each email comes with the delivery status of every recipient: DELIVERED when the recipient's mail server accepted it, FAILED when it bounced, was rejected, was reported as spam, or Light blocked it before sending, and SENT when Light sent it and has not yet been told whether it was delivered or failed.
Permissions checked: invoices:read. What a call needs depends on the caller, the record and the request.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
invoiceReceivableIdstring · uuidrequired
Response
-
idstring · uuidUnique identifier for the email
-
sentAtstring · date-timeTimestamp when Light sent, or tried to send, the email
-
recipientsarray of objectThe recipients as the email lists them, To before Cc. An address in both lists comes once, as TO
-
emailstringEmail address of the recipient, as the email lists it
-
kindstringWhich list of the email the recipient was in
CC- The Cc listTO- The To list
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
CCTO -
deliveryStatusstringDelivery status of the email to this recipient
DELIVERED- The recipient's mail server accepted the email. Light also counts a bounce that looks like an automatic reply, such as an out-of-office message, as deliveredFAILED- The email bounced, was rejected, or the recipient reported it as spam. Every recipient of an email that Light blocked before sending it is also FAILEDSENT- Light sent the email and has not yet been told whether it was delivered or failed
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
DELIVEREDFAILEDSENT -
lastEventAtstring · date-timeTimestamp of the last delivery report for the recipient. Left out when there is none, as for an email that Light blocked before sending it.
-