Lara
March 16, 2023, 6:01pm
#1
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.
hillel
March 16, 2023, 6:19pm
#2
Hi,
@david can you please advise?
david
March 17, 2023, 6:42am
#3
@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.
Lara
March 17, 2023, 7:33am
#4
@david ,
Thank you for the response.
david
March 17, 2023, 8:18am
#5
@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
Lara
March 17, 2023, 3:50pm
#7
Beautiful!
Amazing speed in addressing users’ feedback!
Should we assume the “next release” is 5.5.95?
david
March 18, 2023, 12:05am
#8
@Lara
Yes this is available in .95, it hasn’t been thoroughly tested, so use with care and advise if there are any issues.
Lara
March 18, 2023, 7:51am
#9
Thank you.
We will provide feedback.
Lara
March 18, 2023, 9:35am
#10
@david ,
API events triggering works as expected.
Tested with invoice and task entities.
1 Like