Hi,
I think the simplest option would be to use a tool like Zapier or Make.
If you’re a developer (or want to be one), you may be able to use AI to create an integration. Here’s what ChatGPT suggests:
Absolutely! Integrating Yournotify with Invoice Ninja to automate notifications (via email or SMS) when invoices are created, sent, or overdue is a great way to streamline client communication. Here’s a breakdown of how you can set this up, depending on what version of Invoice Ninja you’re using (I’ll assume v5+ since it’s the current major version).
What You’ll Need
- Invoice Ninja v5 installed and working.
- Yournotify account and access to its API.
- A way to trigger HTTP requests based on invoice events — you can do this by:
- Using webhooks built into Invoice Ninja, or
- Writing a small Laravel observer or listener (if self-hosted), or
- Using tools like Zapier/Make.com if Yournotify supports it.
Option 1: Using Invoice Ninja Webhooks (Simplest for Most Cases)
Step 1: Set up a Webhook in Invoice Ninja
- Go to Settings > Webhooks in Invoice Ninja.
- Click “Add Webhook”.
- Choose an event like:
invoice.created
invoice.sent
invoice.overdue
- Set the target URL to a script or endpoint that will call Yournotify’s API to send a message.
- Choose
POST
as the method.
Example Payload You Might Receive:
{
"event": "invoice.created",
"id": "abc123",
"company_id": "12345",
"data": {
"client": {
"name": "John Doe",
"phone": "+1234567890",
"email": "[email protected]"
},
"invoice_number": "0001",
"amount": 250.00,
"due_date": "2025-04-10"
}
}
Step 2: Create a Webhook Receiver (PHP/Laravel Example)
This script will extract the payload and send a message through Yournotify:
// routes/web.php
Route::post('/yournotify-webhook', function (\Illuminate\Http\Request $request) {
$data = $request->input('data');
$message = "Hi {$data['client']['name']}, your invoice {$data['invoice_number']} for {$data['amount']} is now available.";
Http::withToken(env('YOURNOTIFY_API_KEY'))->post('https://api.yournotify.com/send', [
'to' => $data['client']['phone'], // or 'email'
'message' => $message,
]);
return response()->json(['status' => 'Message sent']);
});
You’ll need to replace "https://api.yournotify.com/send"
with the actual endpoint and parameters Yournotify uses.
Option 2: Laravel Events/Observers (Advanced / More Control)
If you self-host Invoice Ninja, you can hook into invoice-related events using Laravel events/listeners to trigger Yournotify messages directly from within the app.
Let me know if you’d like help with this more advanced integration.
Option 3: Scheduled Overdue Reminders
To send automatic overdue reminders:
- Use
invoice.overdue
webhook OR
- Leverage Laravel’s
schedule:run
to check for overdue invoices and send messages via Yournotify.
Summary
- Webhooks + a small Laravel script = easiest and most flexible setup.
- You’ll receive invoice data → format a message → call Yournotify’s API.
- Add logic to handle each event (
created
, sent
, overdue
) as needed.
Would you like help with:
- Sample Yournotify API call format?
- Hosting the Laravel script?
- Setting this up on your shared hosting?
Let me know how you want to proceed!