Skip to content

Commit

Permalink
Merge pull request #286 from getlago/doc-invoice-custom-section
Browse files Browse the repository at this point in the history
Doc invoice custom section
  • Loading branch information
michaelponrajah authored Jan 15, 2025
2 parents ad78e39 + 5599d24 commit 37ccdff
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 55 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 36 additions & 16 deletions changelog/product.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,53 @@
title: "Product updates"
description: "New updates and improvements to Lago."
---
<Update label="January 2025">

## Display custom invoice sections
<Frame>
<img src="/changelog/images/20250113-custom-invoice-section.png" />
</Frame>

Tailor invoices to each customer by adding personalized bank details!
With the custom invoice section, you can easily personalize templates and include essential details like legal information, all conveniently displayed in the footer.

Head to **Settings > Invoices > Invoice Custom Section** to try out this new feature.

[Learn more](../guide/invoicing/download-invoices#add-custom-invoice-section)

</Update>

<Update label="December 2024">

## Filter and export credit notes
Users can now filter the list of credit notes (e.g. by currency, customer, issuing date, amount, reason, etc.) and the filtered list can then be exported from the user interface.
<Frame>
<img src="/changelog/images/20250102-export-credit-notes.png" />
</Frame>

Users can now filter the list of credit notes (e.g. by currency, customer, issuing date, amount, reason, etc.) and the filtered list can then be exported from the user interface.

Two export options are available:
- Standard, including the list of credit notes and credit note amounts (i.e. one row per credit note); and
- Advanced, including the list of credit note line items (i.e. one row per line item, so multiple rows per credit note if it includes multiple items).
Two export options are available:
- Standard, including the list of credit notes and credit note amounts (i.e. one row per credit note); and
- Advanced, including the list of credit note line items (i.e. one row per line item, so multiple rows per credit note if it includes multiple items).

The list is automatically emailed to the requester in a CSV file.
The list is automatically emailed to the requester in a CSV file.

<Frame>
<img src="/changelog/images/20250102-export-credit-notes.png" />
</Frame>


## Granular API key permissions
You can now customize permissions for API keys in Lago! 🔒
<Frame>
<img src="/changelog/images/20241104-api-permissions.png"/>
</Frame>

When creating or editing an API key, you can define **read**, **write**, or **read and write** access for every object in the Lago API. This gives you full control over which endpoints can be accessed and how.
You can now customize permissions for API keys in Lago! 🔒

If an API key doesn’t have the required permissions, the API will block the request, ensuring enhanced security and precise access control.

[Learn more](../guide/security/api-keys#set-api-key-permissions)
When creating or editing an API key, you can define **read**, **write**, or **read and write** access for every object in the Lago API. This gives you full control over which endpoints can be accessed and how.

<Frame>
<img src="/changelog/images/20241104-api-permissions.png"/>
</Frame>
If an API key doesn’t have the required permissions, the API will block the request, ensuring enhanced security and precise access control.

[Learn more](../guide/security/api-keys#set-api-key-permissions)




</Update>
Expand Down
97 changes: 58 additions & 39 deletions guide/invoicing/download-invoices.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,68 @@ To update your organization's information and logo:
For the logo, you can upload a JPG or PNG file with a maximum size of 800 KB.
</Info>

### Add a custom invoice section[](#add-custom-invoice-section "Direct link to heading")
A custom invoice section is an additional section displayed above the custom footer on an invoice.
It allows you to set a title and include specific details (e.g. bank details).
Custom invoice sections can be applied at the organization level, impacting all customer invoices, or set per customer for greater granularity.

To create an invoice custom section:
1. Click **"Settings"** in the side menu;
2. Open the **"Invoice"** tab;
3. Click on **"Add"** in the **"Invoice custom section** block;
4. Provide the necessary details, including the title and content.
5. Click **Preview** to see how the section will appear on an invoice.
6. Toggle the switch to apply the custom section to all customer invoices within the organization.

<Info>
You can display multiple custom invoice sections on invoices. Note that they will be sorted alphabetically by the custom section name.
</Info>

You can override the organization-level setting for specific customers by either assigning a different invoice custom section or deactivating the option for that customer. To do so:
<Tabs>
<Tab title="Dashboard">
1. Click on a specific customer;
2. Navigate to the **Settings** tab;
3. Click on **Edit** in the Invoice custom section;
4. Add a specific custom invoice section for the customer; or
5. Choose to deactivate the invoice custom section for this customer.
</Tab>
<Tab title="API">
<CodeGroup>
```bash Update the customer invoice custom section
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request POST "$LAGO_URL/api/v1/customers" \
--header "Authorization: Bearer $API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"customer": {
"skip_invoice_custom_sections": false, // If true, no invoice custom sections will be applied to the customer
"invoice_custom_section_codes": ["eu_bank_details"] // Leave an empty array to use the organization-level settings
}
}'
```
</CodeGroup>
</Tab>
</Tabs>

Once the settings are updated, all newly finalized invoices for the organization or specific customer will reflect the changes.



### Add a custom footer
A custom footer is a universal footer applied to all invoices and credit notes across all customers.
It is typically used to display your company’s legal information or other standard details.
If you need granularity per customer, please refer to the **custom invoice section** above.
<Tabs>
<Tab title="Dashboard">
To update the footer of the invoice:
1. Click **"Settings"** in the side menu;
2. Open the **"Invoice"** tab;
3. Select **"Edit"** in the **"Invoice default footer"** block;
3. Click on **"Edit"** in the **"Invoice default footer"** block;
4. Enter your text (maximum 600 characters); and
5. Click **"Save information"** to confirm.

Expand All @@ -77,27 +132,9 @@ For the logo, you can upload a JPG or PNG file with a maximum size of 800 KB.
--header 'Content-Type: application/json' \
--data-raw '{
"organization": {
"name": "Name1",
"webhook_url": "https://test-example.example",
"country": "CZ",
"address_line1": "address1",
"address_line2": null,
"state": "state1",
"zipcode": "10000",
"email": "[email protected]",
"city": "city125",
"legal_name": null,
"legal_number": null,
"tax_identification_number": "EU123456789",
"timezone": "Europe/Paris",
"email_settings": [
"invoice.finalized",
"credit_note.created"
],
"billing_configuration": {
"invoice_footer": "footer custom",
"invoice_grace_period": 3,
"document_locale": "fr",
}
}
}'
Expand Down Expand Up @@ -131,26 +168,8 @@ For the logo, you can upload a JPG or PNG file with a maximum size of 800 KB.
--header 'Content-Type: application/json' \
--data-raw '{
"organization": {
"name": "Name1",
"webhook_url": "https://test-example.example",
"country": "CZ",
"address_line1": "address1",
"address_line2": null,
"state": "state1",
"zipcode": "10000",
"email": "[email protected]",
"city": "city125",
"legal_name": null,
"legal_number": null,
"tax_identification_number": "EU123456789",
"timezone": "Europe/Paris",
"email_settings": [
"invoice.finalized",
"credit_note.created"
],
"billing_configuration": {
"invoice_footer": "footer custom",
"invoice_grace_period": 3,
"document_locale": "fr"
}
}
Expand Down

0 comments on commit 37ccdff

Please sign in to comment.