You can record how many items you bought and at what price on an expense or on each of its line items. Payhawk calculates the amount for you and sends the quantity and unit price to your accounting system when you export.
Before you start
You can find the necessary prerequisites in the following table:
What you need | Details |
Payhawk role | A Payhawk Administrator turns on the field and chooses who sees it. |
Where it works | Quantity and unit price work in the Payhawk Web Portal. |
Spend types | Card, cash, bill, and reimbursement expenses. Mileage and per diem expenses don't have the field, because Payhawk calculates their amounts itself. |
Enabling the quantity and unit price field
Quantity & Unit price is disabled until a Payhawk Administrator enables it. Expenses created before you enable it stay as they are.
To enable the field:
In the Payhawk Web Portal, open the app switcher in the top-left corner and go to Settings > Expense fields.
Under Built-in fields, click on Quantity & Unit price.
Enable the Enable field toggle button.
Under Visibility, select the roles that can see and change the value of the field. The Payhawk Administrator and Payhawk Accountant roles are always selected and can't be removed.
(Optional) Under Required, enable the Required for submission or Required for review toggle buttons. The Required for submission option appears when you select the Payhawk Employee role.
Click on Save changes.

Entering quantity and unit price
To enter the quantity and unit price on an expense:
Open the expense.
Find Quantity & Unit price in the Amount section. If the expense is split into line items, each line has its own quantity and unit price.
Enter the Quantity and the Unit price.

Payhawk multiplies the quantity by the unit price to get the net amount, then adds tax to give the total. For example, 2 × EUR 10.00 with 20% VAT gives a total of EUR 24.00.
On line items, the quantity and unit price appear as follows, depending on the layout:
Table layout - The Quantity and Unit price columns come before Discount.
List layout - Each line shows its quantity and unit price in a single row.
In Quantity, type
xor*to go straight to Unit price.
Calculating the amount
You can see how Payhawk calculates the amount in different use cases in the following table:
Use case | What happens |
You enter both quantity and unit price. | Payhawk calculates the total, and you can't edit Total directly. |
You want to enter the total yourself. | Clear the quantity or the unit price. Total becomes editable again. |
You enter only one of the two values. | Payhawk doesn't recalculate the amount, as it needs both values. |
The expense is a credit note. | The unit price is negative. |
The expense is paid. | Quantity and unit price become read-only. |
The values must meet the following criteria:
Quantity must be greater than zero and can have up to 4 decimal places, for example, 22.5 days.
Unit price is the price of one unit before tax, in the expense currency. It can have up to 4 decimal places.
Adding documents
You can see what Payhawk fills in when you add an invoice or a receipt to an expense in the following table:
What you do | What Payhawk fills in |
You upload an invoice or a receipt. | Quantity 1, with the unit price set to the net amount. For e-invoices, or when the net amount is 0, these fields stay empty. Enter them yourself if you need them. |
You split the expense by document lines. | Each line takes the quantity and unit price printed on that line of the document. |
Card and cash expenses that already had an amount before you added a document keep that amount. Payhawk doesn't fill in quantity and unit price on them.
Splitting and merging line items
When you split an expense into line items by document lines, request lines, or purchase order lines, each new line keeps its quantity and unit price.
When you merge line items, the result depends on the lines you merge:
Lines you merge | Result |
Lines with the same unit price | One line with the quantities added together |
Lines with different unit prices | One line with quantity 1 and the combined net amount |
The lines have different tax rates, items or purchase order items, only some of them are linked to a purchase order, or they're purchase order lines with different unit prices | These lines can't be merged. Merge only lines that match. |
Using quantity and unit price with purchase orders and workflows
You can use the quantity and unit price on your expenses to check invoices against purchase orders and to route expenses for approval.
Matching quantities against purchase orders
When the purchase order has quantities, Payhawk checks each linked line. It flags the expense as a discrepancy and sends it for approval when more is invoiced than was ordered, when the unit price is higher than on the purchase order by more than your discrepancy threshold, or when a line has no quantity or unit price. Your threshold applies to unit price only, not to quantity.
Using quantity and unit price in workflows
In expense workflows, you can use a line's item and its Unit price as conditions, for example, to send an expense to a second approver when the unit price is above 1,000. Item conditions are available at entity level when inventory items are on. To act on Quantity, use automation rules.
Troubleshooting
You can find the most common issues, their causes, and solutions in the following table:
Issue | Cause | Solution |
You don't see Quantity & Unit price. | The field is off, or your role or this spend type isn't set to see it. | Ask a Payhawk Administrator to check the field settings. |
You don't see the field in the Payhawk Mobile App. | Quantity and unit price are available in the web portal only. | Use the Payhawk Web Portal. |
You see the "Enter a quantity greater than 0 with up to 4 decimal places." error. | The quantity is 0, negative, or has too many decimal places. | Enter a positive number with up to 4 decimal places. |
You see the "Enter a valid unit price." error. | The unit price is empty or isn't a number. | Enter the price of one unit before tax. |
You can't edit Total. | Both quantity and unit price are filled in. | Clear one of them to enter the total yourself. |
The field isn't on a mileage or per diem expense. | Payhawk calculates those amounts. | No action is needed. |
Xero or MS Business Central shows quantity 1. | The unit price couldn't be rounded to add back up to the line amount, so Payhawk exported a quantity of 1 and the full line amount. | No action is needed. Payhawk sends the full amount so your totals always match. |
Xero or MS Business Central shows a higher unit price. | The unit price there includes tax (for MS Business Central, outside the US). | No action is needed. The line total is correct. |
Oracle NetSuite doesn't show the quantity or unit price. | The line is booked to an account instead of an item, or your Payhawk SuiteApp is older than version 3.10.0. For credit card charges, only the quantity is sent. | Ask your Oracle NetSuite administrator to update the SuiteApp. Lines booked to an account carry the amount only. |
The expense is flagged as a discrepancy. | More was invoiced than was ordered, the unit price is above your discrepancy threshold, or a line has no quantity or unit price. | Check the invoice against the purchase order, then approve or return the expense. |