Supporting Resources

Files

3min

You can add external files to Invoiced through the API and attach them to invoices. The File Attachments Guide details the entire workflow.

File Object

Represents an external file.

JSON


Parameter

Type

Description

id

integer

The file's unique ID

object

string

Object type, file

name

string

Filename

size

int

File size in bytes

type

string

MIME type

url

string

File URL

created_at

timestamp

Timestamp when created

updated_at

timestamp

Timestamp when updated

Create a new file object with this endpoint.
POST
Request
Body Parameters
file
required
String
The file should be uploaded as multipart/form-data. Any other parts in the request will be ignored. If a part with name=file is not supplied then the request will fail.

This endpoint retrieves a specific file.
GET
Request
Path Params
id
optional
String

This endpoint deletes a specific file.
DELETE
Request
Path Params
id
required
String