500 server error returned when creating Invoice via API

I’m running a Make.com scenario to create a new Invoice associated with a Client. I’ve stripped it down to just the required Client ID that I’m passing in, and I’m still getting: [500] Internal Server Error.

I’m able to do other API queries like updating a Client and creating new Clients; it’s just the Create an Invoice action that’s returning the server error.

Any thoughts?

UPDATE: I’m getting the 500 server error using both the built-in Make module “Create an Invoice” as well as doing a straight API call to the https://invoicing.co/api/v1/invoices endpoint.

Hi,

Cam you share a sample API request so I can test it?

Here’s the Input from my Make module:

Input

  • Bundle 1Collection
    • URL: /v1/invoices
    • Body: { “client_id”: “yb8qK4xWdv” }
    • Method: POST
    • Headers:
      • Key: Content-Type
      • Value: application/json

Are you able to share a cURL example?

It may help to add these headers:

Content-Type:application/json
X-Requested-With: XMLHttpRequest

Sorry, I’m not too familiar with curl, I’m not sure how to do that.

I’ve added the X-Requested-With header as you suggested, and I still get the 500 error. I also added the Accept header like the documentation shows, also with no change.

Here’s what my Make module looks like:

Is there a reason you aren’t using their ‘Create invoice’ action?

I tried the Create an Invoice module, and I’m getting the same 500 server error with that. However, I am able to use other InvoiceNinja modules, so it seems my authentication and the other functions are working fine.

I suggest sending an email to [email protected] asking them to check the logs for details about the 500 error.

I’ll do that, thanks