Note Templates
Invoice note templates are useful when you frequently include the same or similar note in your invoices (payment instructions, tax specific details etc). By default, ActiveCollab will not provide any template:
You can defined them like this:
Payload:
1 2 3 4
{ "name": "Payment instructions", "content": "Please make payment to this account: ABC" }
Response:
1 2 3 4 5 6 7 8 9 10
{ "single": { "id": 1, "class": "InvoiceNoteTemplate", "url_path": "\/invoice-note-templates\/1", "name": "Payment instructions", "content": "Please make payment to this account: ABC", "is_default": false } }
To update a template, simply send PUT command:
Payload:
1 2 3
{ "content": "Please make payment to this account: XYZ" }
Response:
1 2 3 4 5 6 7 8 9 10
{ "single": { "id": 1, "class": "InvoiceNoteTemplate", "url_path": "\/invoice-note-templates\/1", "name": "Payment instructions", "content": "Please make payment to this account: XYZ", "is_default": false } }
Default Note Template #
ActiveCollab lets you set up a default note template. Default note template can save you time by automatically adding a note to all your new templates. By default, there is no default note template:
Payload:
1 2 3
{ "invoice_note_template_id": 1 }
Response:
1 2 3 4 5 6 7 8 9 10
{ "single": { "id": 1, "class": "InvoiceNoteTemplate", "url_path": "\/invoice-note-templates\/1", "name": "Payment instructions", "content": "Please make payment to this account: XYZ", "is_default": true } }
To unset default note template, simply send DELETE request:
Deleting a Note Template #
To delete a note template, send DELETE command to /invoice-note-templates/:invoice_note_template_id: