Skip to content

Document Styles

Manage your Document Styles in Moneybird.

Working with Document Styles

This section covers how to interact with Moneybird’s Document Styles API. You can retrieve document styles information.

Basic Operations

Get a Document Style

Retrieve a document style by its ID.

$documentStyle = $client->documentStyles()->get('123456789');

List Document Styles

Get a list of all document styles.

$documentStyles = $client->documentStyles()->all();
// Iterate through the document styles
foreach ($documentStyles as $documentStyle) {
echo $documentStyle->name;
}

Document Style Properties

When working with document styles, you’ll have access to the following properties:

PropertyTypeDescription
idstringUnique identifier
administration_idstringID of the administration the document style belongs to
namestringName of the document style
identity_idstringID of the identity associated with this style
defaultbooleanWhether this is the default document style
logo_hashstringHash of the logo image
logo_container_full_widthbooleanWhether the logo container uses full width
logo_display_widthstringDisplay width of the logo
logo_positionstringPosition of the logo on the document
background_hashstringHash of the background image
paper_sizestringSize of the paper (e.g., ‘a4’)
address_positionstringPosition of the address on the document
font_familystringFont family used in the document
colorstringPrimary color used in the document
languagestringLanguage of the document
created_atstringISO 8601 timestamp of when the document style was created
updated_atstringISO 8601 timestamp of when the document style was last updated

Note: See the official API reference for the complete list of available properties.

Further reading