New Light partners with Amesto GlobalLight partners with Amesto Global Read the announcement

Pause invoice reminders

POST
https://api.light.inc/v1/invoice-receivables/{invoiceReceivableId}/pause-dunning

Pauses the payment reminders of an invoice receivable until the given day. Reminders can be paused only while the invoice waits for a reminder that is not due yet. A call sent again after the reminders were paused is refused with INVOICE_RECEIVABLE_DUNNING_ALREADY_PAUSED: use Get invoice reminders to read the pause in effect.

Permission: invoices:update (AR_CLERK, COMPANY_ADMIN, CONTROLLER)

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

Request body

application/json;charset=UTF-8

  • reason stringrequired

    Why the payment reminders are paused. It shows on the invoice.

  • pausedUntil string · daterequired

    The day the payment reminders start again, at the start of that day in UTC. It must be after today's date in UTC and at most 100 years ahead.

Response

Payment reminders paused. The next reminder moves to the end of the pause plus the time it had left.

  • isActive boolean

    Whether the invoice has payment reminders running. Stays true while they are paused.

  • nextReminderAt string · date-time

    When the next payment reminder goes out. Left out when the invoice is not waiting for a reminder, or when the reminders are paused with no end date.

  • pause object

    The pause in effect. Left out when the payment reminders are not paused.

    • pausedBy string · uuid

      ID of the principal that paused the payment reminders: a user, or an API key's service account

    • pausedAt string · date-time

      Timestamp when the pause started

    • pausedUntil string · date

      The day the payment reminders start again. Left out for a pause with no end date, which lasts until the reminders are resumed.

    • reason string

      Why the payment reminders were paused