Pause invoice reminders
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
-
invoiceReceivableIdstring · uuidrequired
Request body
application/json;charset=UTF-8
-
reasonstringrequiredWhy the payment reminders are paused. It shows on the invoice.
-
pausedUntilstring · daterequiredThe 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.
-
isActivebooleanWhether the invoice has payment reminders running. Stays true while they are paused.
-
nextReminderAtstring · date-timeWhen 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.
-
pauseobjectThe pause in effect. Left out when the payment reminders are not paused.
-
pausedBystring · uuidID of the principal that paused the payment reminders: a user, or an API key's service account
-
pausedAtstring · date-timeTimestamp when the pause started
-
pausedUntilstring · dateThe day the payment reminders start again. Left out for a pause with no end date, which lasts until the reminders are resumed.
-
reasonstringWhy the payment reminders were paused
-