Home Forums Support Creating Vendor via REST API

This topic contains 4 replies, has 2 voices, and was last updated by  Hillel Coren 2 weeks, 1 day ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23907

    cristina_gatt_23
    Participant

    Hi,

    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 (https://app.invoiceninja.com/api-docs#!/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!

    #23963

    Hillel Coren
    Keymaster

    Are you specifying the vendor ‘name’ field?

    #23995

    cristina_gatt_23
    Participant

    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!

    #23998

    cristina_gatt_23
    Participant

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

    #24007

    Hillel Coren
    Keymaster

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

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Posted in: