cURL
curl --request POST \ --url https://api.sandbox.teal.dev/v0/journal-entry-files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --header 'teal-instance-id: <teal-instance-id>' \ --form 'journal_entry_id=<string>' \ --form file='@example-file'
{ "id": "<string>", "file_name": "invoice.pdf" }
Uploads a file and associates it with a Journal Entry.
The access token received from the authorization server in the OAuth 2.0 flow.
The Teal instance ID
The Journal entry ID
A file to be associated with the Journal Entry.
Successful Response
The unique ID of the object.
The name of the file uploaded to the Journal Entry. If no value is provided or null is specified, defaults to the name of the file.
null
"invoice.pdf"