Complete list of custom fields for templates

Hello @ all,

sorry for opening a thread for this, but I cannot find a complete list of all available custom fields for Invoice-Templates.

By the way: What’s the difference between a template and a design?

Regards

Hi,

Here’s the list of fields:

Templates are more flexible than designs, this video provides a good overview:

Hi Hillel,

I already found that list before I opened this topic. I thought it was not complete.

However I also watch that video, but where can I get the syntax or the variable lists for that all? What does it mean to set { } brackets or double {{ }} brackets? When to write % and when not. Are spaces between brackets and values necessary? And so on.

Do you have a manual for that?

Thanks a lot!

If you’re aware of any fields which are missing we’re happy to add them.

You can refer to the TWIG documentation for specifics: https://twig.symfony.com

Thanks, that’s cool. But where do I get the variables and stuff?

The variables are listed in the page linked above, unless I’m misunderstanding?

I mean those one must use for the TWIG stuff. Like

{ item.notes }
{{ % set invoice = invoices|first }}

‘n’ stuff. I’m sorry, maybe I’m slowly in understanding it all.

You can use the API docs to reference the object fields. For example, at the bottom of this page check out example/schema section.

https://api-docs.invoicing.co/#get-/api/v1/invoices

Hey @hillel , I am missig a few fields:

Taxes 1/2/3
I can’t seem to find how to access individual Total Tax Names and Amounts. All I found is
$total_tax_labels and $total_tax_values, but I need them separated for each Tax 1, 2, 3,. Can you please let me know the variable used to access them?

Client/Contact Email
Also, $client.email is not working for me, despite having a contact added to the client / invoice. This one is in the documentation as an alias of $email so it should work.

Net Amount
Have tried a number of variations but can’t get it to work.

Would appreciate your help very much. Thanks in advance!

Hi, I suggest asking in a discussion on GitHub.

OK, thanks. I’ve done so.

1 Like