Hello I am a new user to Invoice Ninja and trying to create a Python Script to create invoices is there any template script can use or some other guidance please? Also what is the correct endpoint URL to use for invoicing is it https :// app.invoicing. co /api/v1/invoices ? Thanks
Hi,
The docs are available here: https://api-docs.invoicing.co
The web app also uses the API, you can use the browser console to see sample API requests.
The hosted API endpoint is: https://invoicing.co/api/v1/invoices
My script’s output indicates that the request to Invoice Ninja is receiving an HTML response instead of the expected JSON response. This usually happens when the API endpoint is incorrect or if there’s an issue with how the request is being handled on the server side?
I suggest first getting it working as a cURL request and then porting it to code.
you should use postman to test first.
first export the api specification Build, Collaborate & Integrate APIs | SwaggerHub as openapi json file:
then you can import that file to postman and it can generate code snippet in almost any language:
or you can have swaggerhub generate the SDK for you: