Clienvy API documentation

List invoice styles

GET
https://api.clienvy.io/employee/v1
/invoice-styles

Returns all invoice styles, optionally filtered by a search term.

List invoice styles › query Parameters

search
​string

Full-text search across the style name.

List invoice styles › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List invoice styles › Responses

Array of InvoiceStyleResource

id
​string · uuid
name
​string
​FileResource | null
​FileResource | null
logo_display_width
​integer | null
​object[]
​object[]
updated_at
​string · date-time
created_at
​string · date-time

Create an invoice style

POST
https://api.clienvy.io/employee/v1
/invoice-styles

Creates a new invoice style. The new invoice style will inherit default values.

Create an invoice style › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Create an invoice style › Request Body

name
​string · maxLength: 64 · required

Create an invoice style › Responses

InvoiceStyleResource

id
​string · uuid
name
​string
​FileResource | null
​FileResource | null
logo_display_width
​integer | null
​object[]
​object[]
updated_at
​string · date-time
created_at
​string · date-time

Get an invoice style

GET
https://api.clienvy.io/employee/v1
/invoice-styles/{invoiceStyle}

Returns a single invoice style by ID, including its logo and address templates.

Get an invoice style › path Parameters

invoiceStyle
​string · uuid · required

The invoice style UUID

Get an invoice style › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Get an invoice style › Responses

InvoiceStyleResource

id
​string · uuid
name
​string
​FileResource | null
​FileResource | null
logo_display_width
​integer | null
​object[]
​object[]
updated_at
​string · date-time
created_at
​string · date-time

Update an invoice style

PUT
https://api.clienvy.io/employee/v1
/invoice-styles/{invoiceStyle}

Updates the style. Every change stores a new version, so the styling of already-sent invoices is preserved. Only the fields present in the request are changed.

Update an invoice style › path Parameters

invoiceStyle
​string · uuid · required

The invoice style UUID

Update an invoice style › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update an invoice style › Request Body

name
​string · maxLength: 64
logo_display_width
​integer · min: 1 · max: 100
logo_id
​string | null · uuid

UUID of an uploaded logo file (jpeg, png or jpg).

light_logo_id
​string | null · uuid

UUID of an uploaded light-variant logo file (jpeg, png or jpg).

​object[]

Lines rendered as the receiver (customer) address block.

​object[]

Lines rendered as the sender (own) address block.

Update an invoice style › Responses

InvoiceStyleResource

id
​string · uuid
name
​string
​FileResource | null
​FileResource | null
logo_display_width
​integer | null
​object[]
​object[]
updated_at
​string · date-time
created_at
​string · date-time

Delete an invoice style

DELETE
https://api.clienvy.io/employee/v1
/invoice-styles/{invoiceStyle}

Deletes an invoice style. A style that is still used by an invoice or subscription cannot be deleted, and at least one style must always remain.

Delete an invoice style › path Parameters

invoiceStyle
​string · uuid · required

The invoice style UUID

Delete an invoice style › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Delete an invoice style › Responses

InvoiceStyleResource

id
​string · uuid
name
​string
​FileResource | null
​FileResource | null
logo_display_width
​integer | null
​object[]
​object[]
updated_at
​string · date-time
created_at
​string · date-time