Uploading Logos and Product Images via API

Version ie <v5.10.30>

v5.11.66

Environment <Docker/Shared Hosting/Zip/Other>

Self Hosted

Not a bug.

I want to find out if there is a way for me to upload a product image to a product or a logo image to a Group using the API? I can use a remote URL, but would prefer to keep copies on the IN server. I see you can upload documents via the API. I want to upload JPEG/PNG/WEBP files.

Hi,

Here are the relevant docs;

Note: you can use the network tab in the browser console to see the API requests sent by the web app.

I saw that end point, but it says document? Will it upload images and return the URL object? And can I upload a logo for Group settings with this endpoint?

I suggest taking the action in the app and then using the network tab in the browser console to see the API request.

Good idea, so upload an image in the WebApp and look at the headers, response, etc
Will give that a go.

Thanks

I am actually coding a custom integration for WooCommerce for my other project. I want WooCommerce to sell, but Invoice Ninja to do all the quoting, invoicing, payments etc.

Saves having to do data capture later, and creates more professional documents than WC can.

Correct, you’ll see the full API request in the network tab

Thanks brother. You are always keen to assist. And you get to the solution quickly.

1 Like