60% Off for 3 Months

Invoice Presentation and Attachments

Invoice Presentation

Invoice Presentations are used to style an invoice including font, colors, and logos.

By default, when a new invoice is created, it automatically uses the presentation style of the most recently created invoice (including logos, colors, and fonts). If you wish to change the style of an invoice via the API, or if the user has not styled their invoices (such as in a brand new account), then you can pass a presentation object as part of the invoice call. Subsequent invoices will use this style until an invoice is created with a new style. If you do not wish for an invoice to use any styles, you can include use_default_presentation: false in the invoice call.

Access Requirements

Access

Requires Authorization

Scopes

user:invoices:write
user:uploads:read
user:uploads:write

Field Descriptions

Field

Type

Description

id

int

the unique id for the invoice presentation, generated on creation

date_format

string

string format of: "mm/dd/yyyy", "dd/mm/yyyy", or "yyyy-mm-dd"

image_banner_src

string

"/uploads/images/"

image_logo_src

string

"/uploads/images/"

theme_layout

string

"simple", "modern", or "classic"

theme_font_name

string

"modern" or "classic"

theme_primary_color

string

eg. "#345beb"

For simple and classic invoices, the image_logo_src is used to display the logo, for modern invoices, the image_banner_src is used.

Invoice Images and Attachments

Invoice presentations can have a company logo or banner image. Invoices can also have images or pdfs attached to them. All images and attachments first need to be uploaded to the system via the /images or /attachments endpoints first (see side examples). The endpoints will then return a path to your file with a JWT. This path will can then be passed in the body of your invoice request for your file to be included.

To include an uploaded attachment on an invoice, the invoice request must include an attachments object.

Field Descriptions

Field

Type

Description

expenseid

int

If the attachment if from an expense receipt upload, include the expense id can be included

jwt

string

JWT token from the /attachments upload response.

media_type

string

Media type from /attachments upload response. Eg. "image/jpeg"

Invoice Presentation and Attachments - FreshBooks