# DirectIncomeLineItem


## Fields

| Field                                                                                                                                                                                                                                                                                               | Type                                                                                                                                                                                                                                                                                                | Required                                                                                                                                                                                                                                                                                            | Description                                                                                                                                                                                                                                                                                         |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `accountRef`                                                                                                                                                                                                                                                                                        | [shared.AccountRef](../../../sdk/models/shared/accountref.md)                                                                                                                                                                                                                                       | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account.                                                                                                                                               |
| `description`                                                                                                                                                                                                                                                                                       | *string*                                                                                                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | A user-friendly name of the goods or services.                                                                                                                                                                                                                                                      |
| `discountAmount`                                                                                                                                                                                                                                                                                    | *number*                                                                                                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | Discount amount for the line before tax.                                                                                                                                                                                                                                                            |
| `discountPercentage`                                                                                                                                                                                                                                                                                | *number*                                                                                                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | Discount percentage for the line before tax.                                                                                                                                                                                                                                                        |
| `itemRef`                                                                                                                                                                                                                                                                                           | [shared.ItemRef](../../../sdk/models/shared/itemref.md)                                                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | N/A                                                                                                                                                                                                                                                                                                 |
| `quantity`                                                                                                                                                                                                                                                                                          | *number*                                                                                                                                                                                                                                                                                            | :heavy_check_mark:                                                                                                                                                                                                                                                                                  | The number of units of goods or services received.<br/><br/>Note: If the platform does not provide this information, the quantity will be mapped as 1.                                                                                                                                              |
| `subTotal`                                                                                                                                                                                                                                                                                          | *number*                                                                                                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | The amount of the line, inclusive of discounts, but exclusive of tax.                                                                                                                                                                                                                               |
| `taxAmount`                                                                                                                                                                                                                                                                                         | *number*                                                                                                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | The amount of tax for the line.<br/>Note: If the platform does not provide this information, the quantity will be mapped as 0.00.                                                                                                                                                                   |
| `taxRateRef`                                                                                                                                                                                                                                                                                        | [shared.TaxRateRef](../../../sdk/models/shared/taxrateref.md)                                                                                                                                                                                                                                       | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | Data types that reference a tax rate, for example invoice and bill line items, use a taxRateRef that includes the ID and name of the linked tax rate.<br/><br/>Found on:<br/><br/>- Bill line items<br/>- Bill Credit Note line items<br/>- Credit Note line items<br/>- Direct incomes line items<br/>- Invoice line items<br/>- Items |
| `totalAmount`                                                                                                                                                                                                                                                                                       | *number*                                                                                                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | The total amount of the line, including tax.                                                                                                                                                                                                                                                        |
| `trackingCategoryRefs`                                                                                                                                                                                                                                                                              | [shared.TrackingCategoryRef](../../../sdk/models/shared/trackingcategoryref.md)[]                                                                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | An array of categories against which this direct cost is tracked.                                                                                                                                                                                                                                   |
| `unitAmount`                                                                                                                                                                                                                                                                                        | *number*                                                                                                                                                                                                                                                                                            | :heavy_check_mark:                                                                                                                                                                                                                                                                                  | The price of each unit of goods or services.<br/>Note: If the platform does not provide this information, the unit amount will be mapped to the total amount.                                                                                                                                       |