New Payhawk offices in Stockholm and Warsaw | Learn more

Splitting expenses into line items in the Portal

Prev Next

Your company may receive an invoice containing expenses related to different pre-defined expense categories, teams, tax rates, or custom fields such as Cost center or Project.

In such cases, you can split expenses that are not yet reviewed into multiple line items, so that you can maintain the correct expense categorization data on each line.

In Payhawk, employees can split expenses into line items too. If your workflows are configured to require approval by a Team Manager or a Custom Field Manager, Payhawk will send expense requests to all relevant approvers based on the data in all line items. For more information, see the article about defining custom approval workflows.

Pro tip

To save time and effort, you can assign a category to the expense before splitting so that it automatically applies to all line items.

Fetching line items from document lines

You can split an expense into line items by fetching the line items from the attached expense document. If you have already split the expense into line items, the new fetch will replace them.

  1. In the Payhawk Web Portal, go to Spend and select the desired expense.

  2. Click on its three-dot menu and select Split.

  3. In the side panel that opens, select the Document lines option.

  4. When ready, click on the Fetch [number] line items to confirm the split.

Overview of line items including services, consulting, materials, and discount details.

Fetching line items from document tax rates

You can also split an expense based on the tax rate of the document line items in the invoice attached to that expense.

  1. In the Payhawk Web Portal, go to Spend and select the desired expense.

  2. Click on its three-dot menu and select Split.

  3. In the side panel that opens, select the Tax rate option.

  4. When ready, click on the Fetch [number] line items to confirm the split.

Display of tax rates and total amounts for line items in a document.

Fetching from previous expenses

You can also apply a previous line split to an expense as long as you have an expense from the same supplier that has been previously split into line items.

  1. In the Payhawk Web Portal, go to Spend and select the desired expense.

  2. Click on its three-dot menu and select Split.

  3. In the side panel that opens, select the Previous expense option.

  4. When ready, click on the Fetch [number] line items to confirm the split.

Interface for fetching previous expense details with search and action buttons.

Splitting into equal parts

You can split an expense into equal parts.

For example, if the expense amount is EUR 100 and you’ve selected to split it in equal parts, Payhawk will split the expense into 2 line items and distribute the amount equally between the two, resulting in each line item’s amount of EUR 50.

Alternatively, if you have already split the expense into, for example, 4 line items, the system will distribute the total into 4 equal parts resulting in 4 line items each amounting to EUR 25.

To split an expense into equal parts:

  1. In the Payhawk Web Portal, go to Spend and select the desired expense.

  2. Click on its three-dot menu and select Split.

  3. In the side panel that opens, select the Equal parts option.

  4. When ready, click on Save.

Equal parts panel showing the line items with equal amounts and the Split the amounts equally button.

Making your own custom line item split

Some allocations aren't printed on the invoice - for example, sharing a cost across two teams, cost centers, projects, or grants, or applying a fixed ratio such as 70/30. In these cases, you can describe the split in your own words and let Payhawk’s Financial Controller AI Agent propose the line items for you.

Custom splits with the Payhawk AI Agent are available in the Payhawk Web Portal only, and only for expenses that haven't been reviewed yet.

To split an expense by using the AI Agent:

  1. In the Payhawk Web Portal, go to Spend and select the desired expense.

  2. Click its three-dot menu and select Split and the line-item split options will open in a side panel.Expense three-dot menu open with the Split option highlighted

  3. Select Describe the split. The Payhawk AI Office dialog loads, and the Financial AI Controller Agent starts the conversation. Split expense panel with the Document lines, Manual split, and Describe the split options

  4. Describe how you want the expense split - for example, "Allocate 70% to Project A and 30% to Project B." The AI Agent proposes a split as line items, each with category, tax rate, cost center, and other fields filled in, with amounts adding up to the invoice total.

  5. Review the proposal and, if needed, tell the agent what to adjust - for example, move an amount to another team or add a line. It'll recalculate so everything still adds up to the invoice total. Once you're happy with it, confirm in the chat to add the line items to the expense.Expense split proposal for Barcelona and Sofia offices with detailed amounts and ratios.

  6. Adjust any line if needed and click on Save.

    An expense split into two line items in the Amount section, next to the AI Office panel where the Financial Controller Agent confirms the 70/30 split has been applied.

Manually splitting an expense into line items

To split an expense into multiple line items:

  1. In the Payhawk Web Portal, go to Spend.

  2. Select the desired expense by clicking on it.

  3. Click on the three-dot menu and select the Split option.

  4. In the Split expense panel that opens, select Manual split. Payhawk splits the expense into two line items in the Amount section: the first one holds the full amount and the second one is empty. To add more line items, click on Add line.

  5. Part of the line item data will be filled in automatically by Payhawk. Review it and manually enter the rest of the required data for each line item, for example:

    • Category.

    • Custom fields such as Cost center and Project.

    • The amount for each line item. Make sure that the amounts add up to the correct total.

      Pro tip

      Instead of entering the exact amount, you can input the percentage that the line item's cost represents of the expense total - for example, go to the line item, select Total amount, and type 50%. The system will then automatically calculate the amount and subtract it from the total.

    • Tax rate, and more.

  6. Click on Save to confirm your changes.  

    Expense three-dot menu with the Split option, and the Amount section showing two line items and the Add line button

LLM-based line item extraction

If the standard data extraction mechanism for line item extraction was not able to match the data as expected, you can run the LLM-based data fetch method. To retry, click on the Scan again button.

Document lines for various shipping charges and options to fetch line items.

Splitting expenses into line items from a linked request

When an expense is linked to a request whose invoice has two or more line items, you can split the expense into the respective line items too.

  1. Select the expense.

  2. In the Details section, go to the Matching request line item field and click on Split into [number] line items.

    Details section of an expense with the linked request in the Related section and the Matching request line item field with the Split into 2 line items option.

If the Split into [number] line items option is selected, it will lead to the following actions:

  • The number of line items that will be added to the expense will be the same as the number of line items in the request.

  • The line item notes of the expense will be populated with the descriptions of the request items.

  • The line item categorization fields of the expense will be populated with the request item fields - category, team, amortization, and custom fields.

  • If the net amount of the expense matches the amount of the request, the splitting will populate the net amounts of the expense line items by using the item amounts of the request.

Once the expense is split, each line item has its own Request and Matching request line item fields in the Amount section, so you can change the request line item that each expense line item matches. For more information, see the article about the Request selector.

Viewing line items

To view an expense line item:

  1. In the Payhawk Web Portal, go to Spend and select the desired expense.

  2. Go to the Amount section. The line items are listed there, each with its tax and total amount.

Expense with line items shown in the Amount section and the line item count next to the title.

Merging line items

You can also merge some of the expense line items:

  1. In Spend, select the desired expense.

  2. In the Amount section, click on EDIT next to LINE ITEM.

  3. Select the checkboxes of the line items you want to merge and click on MERGE.

    Alternatively, to cancel the line item merge, click on CANCEL.

  4. In the flyout dialog, select the target line item from the drop-down list where you want to merge the selected line items.

  5. Click on Merge.

  6. When back to the expense, click on Save.

Line items in edit mode with two lines selected and the Merge 2 line items panel with the target line item.

Editing line items

To edit an expense line item, including splitting the expense in another way, removing a line item, and so on:

  1. In the Payhawk Web Portal, go to Spend and select the desired expense.

  2. Go to the Amount section of the expense, where the line items are listed.

    Amount section of an expense with two line items, the EDIT option, and the Add line button

Deleting line items

To remove an expense line item:

  1. In the Payhawk Web Portal, go to Spend and select the desired expense.

  2. Go to the Amount section of the expense, where the line items are listed.

  3. Hover over the line item and click on the x icon against the line item you want to remove.

    Line items in the Amount section of an expense, with the x icon shown when you hover over a line item.

  • You can delete line items only before the expense has been reviewed.  

  • To be able to remove all existing line items of an expense, make sure you’ve updated the amount of the last one to the amount of the whole expense. When you click on save, the only line item won’t be visible any more.

​Useful resources