Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

How to use REST API

Stojan   ( User )

Commented 2 years ago

Postman updated, add requests for creating and update Bills and Invoices, it's a bit complex because need more information to make it but hope that will be useful :)
(https://drive.google.com/file/d/1ykZ-GNYpQPh7CcI8B3dAZCEXwadWzdT2/view?usp=sharing)

Luca Pierabella   ( User )

Commented 2 years ago

Thanks..those are useful...but I do not see any sample on how to upload an attachment...Am I wrong?

Stojan   ( User )

Commented 2 years ago

@Luca where you like to add attachment?

Luca Pierabella   ( User )

Commented 2 years ago

@Stojan in the attachment section of the the Invoice

Stojan   ( User )

Commented 2 years ago

I am not sure is that possible to send an attachment... you can try with your code with the additional parameter "attachment".

Luca Pierabella   ( User )

Commented 2 years ago

it will not work,I already tried ....must be a way passing contentType multipart/formdata and passing the file...I tried for hours..but this is something that normally is documented

Luca Pierabella   ( User )

Commented 2 years ago

I just tried passing the file to the attachment argument in base64...doesn't work either, it gives me a "414 Request-URI Too Large"

Stojan   ( User )

Commented 2 years ago

it really needs to be a file, like from with "multipart/form-data form". In which cases you need to add files into invoices, to me it's not clear :) Maybe because I do not have much experience with invoicing :)

Luca Pierabella   ( User )

Commented 2 years ago

I was trying with invoices because they are like bills...there is an attachment property...the goal for me is to automatically attach a document to bills. But aside from the goal...I still no find a proper way to do it. Is there any reason to no document that?...is there another way other that post request to programmatically add an attachment in my akaunting database?

Stojan   ( User )

Commented 2 years ago

If you use your own version of akaunting at your hosting, you can make that part using adding your own code which uses the response for this API response to add atachments.

Please login or register to leave a response.

Showing 31 to 40 of 61 discussions