Creating Vendor via REST API


I am using a self-hosted version of Invoice Ninja and I am trying to create a Vendor via REST API as specified in Swagger (!/vendor/post_vendors). The call is returning a 422 error code and of course the vendor is not being created. Any idea how this can be fixed?

Thank you!

Are you specifying the vendor ‘name’ field?

Yes, that did the trick. I am still new to the system. Thank you! Are there any required fields for creating Quotes via REST API because I’m having the same problem.

Thank you!

I realized that for quotes I’m getting 405 not 422 so I guess the POST call for Quotes is not implemented yet. Thanks

To create quotes you need to use the /invoices route and set is_quote to true