New Introducing inventory in LightInventory in Light Read the announcementRead more

List invoice emails

GET
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

  • invoiceReceivableId string · uuidrequired

Response

  • id string · uuid

    Unique identifier for the email

  • sentAt string · date-time

    Timestamp when Light sent, or tried to send, the email

  • recipients array of object

    The recipients as the email lists them, To before Cc. An address in both lists comes once, as TO

    • email string

      Email address of the recipient, as the email lists it

    • kind string

      Which list of the email the recipient was in

      • CC - The Cc list
      • TO - The To list

      ⚠️ This enum is not exhaustive; new values may be added in the future.

      One of CC TO

    • deliveryStatus string

      Delivery 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 delivered
      • FAILED - 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 FAILED
      • SENT - 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 DELIVERED FAILED SENT

    • lastEventAt string · date-time

      Timestamp of the last delivery report for the recipient. Left out when there is none, as for an email that Light blocked before sending it.