Integrating Yournotify with Invoice Ninja – Any advice?

Version ie v5.10

Environment Other

I’m trying to integrate Yournotify with Invoice Ninja to send automated emails or SMS when invoices are created, sent, or overdue. The goal is to streamline client communication without having to manually send reminders or updates.

Has anyone done this integration before?

  • Is there a way to connect Invoice Ninja and Yournotify using webhooks or API?
  • Can invoice events (like “invoice sent” or “payment overdue”) trigger Yournotify messages?
  • Would using a tool like Zapier, Make, or n8n help bridge the two platforms?

Would appreciate any tips, examples, or pointers from anyone who has tried this setup.

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).


:white_check_mark: What You’ll Need

  1. Invoice Ninja v5 installed and working.
  2. Yournotify account and access to its API.
  3. 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.

:repeat_button: Option 1: Using Invoice Ninja Webhooks (Simplest for Most Cases)

Step 1: Set up a Webhook in Invoice Ninja

  1. Go to Settings > Webhooks in Invoice Ninja.
  2. Click “Add Webhook”.
  3. Choose an event like:
    • invoice.created
    • invoice.sent
    • invoice.overdue
  4. Set the target URL to a script or endpoint that will call Yournotify’s API to send a message.
  5. 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"
  }
}

:wrench: 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']);
});

:light_bulb: You’ll need to replace "https://api.yournotify.com/send" with the actual endpoint and parameters Yournotify uses.


:brain: 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.


:tear_off_calendar: 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.

:white_check_mark: 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!

1 Like

Thank you so much for the breakdown. I would really just prefer Sample Yournotify API call format … just to make it simple and direct. Setting up the webhook is where the confusion is.