Attach a document to the journal entry

Hello,

i am using the API v2 to create a journal entry and it is working great but the suggested workaround to paste the document pdf in the description is a bit hacky. Anyone know if there is an api command to attach the pdf url or the pdf itself to the request?

what i would like to do:

What i have now which is ok but not great.

Thanks guys.

Not sure what you mean by

but you can just drag and drop the pdf document onto the New Attachment button while viewing the journal entry if that’s any help.

Yes buddy but i am not connected to the interface, i want to do it via the API as i mentionned.

@lubos Dear, Lubos, can you offer a suggestion please.