Trigger invoice overdue event (webhook) manually

Hi,

Assuming that “Late Invoice” event is triggered at 7:00 o’clock at the day after the invoice is due according code base:

/* Fires webhooks for overdue Invoice */
$schedule->job(new InvoiceCheckLateWebhook)->dailyAt('07:00')->withoutOverlapping()->name('invoice-overdue-job')->onOneServer();

Is there a way to trigger the same “Late Invoice” webhook event manually at any moment we may wish via UI, command line or API?

Thank you in advance for your guidance.

Hi,

@david can you please advise?

@Lara

The short answer is not currently.

The long answer is I have been thinking of building a webhook retry mechanism where failed webhooks can be retried. This functionality is similar to what has been requested here, so I’ll tinker with this, as it shouldn’t take much work.

@david,
Thank you for the response.

@Lara

I have something available for this in the next release.

POST /api/v1/webhooks/{webhook_id}/retry

request body

'entity' : 'client'
'entity_id' : 'xxksijd'

valid entities

client,credit,invoice,product,task,payment,quote,purchase_order,expense,project,vendor

Beautiful!
Amazing speed in addressing users’ feedback!
Should we assume the “next release” is 5.5.95?

@Lara

Yes this is available in .95, it hasn’t been thoroughly tested, so use with care and advise if there are any issues.

Thank you.
We will provide feedback.

@david,
API events triggering works as expected.
Tested with invoice and task entities.

1 Like