# DirectCostLineItem


## 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:                                                                                                                                                                                                                                                                                  | 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:                                                                                                                                                                                                                                                                                  | 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:                                                                                                                                                                                                                                                                                  | Amount of the line, inclusive of discounts but exclusive of tax.                                                                                                                                                                                                                                    |
| `taxAmount`                                                                                                                                                                                                                                                                                         | *number*                                                                                                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | Amount of tax for the line.                                                                                                                                                                                                                                                                         |
| `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:                                                                                                                                                                                                                                                                                  | Total amount of the line, including tax.                                                                                                                                                                                                                                                            |
| `tracking`                                                                                                                                                                                                                                                                                          | [shared.Tracking](../../../sdk/models/shared/tracking.md)                                                                                                                                                                                                                                           | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | N/A                                                                                                                                                                                                                                                                                                 |
| ~~`trackingCategoryRefs`~~                                                                                                                                                                                                                                                                          | [shared.TrackingCategoryRef](../../../sdk/models/shared/trackingcategoryref.md)[]                                                                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                                                                                                                                                  | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>Collection of categories against which this direct cost is tracked.                                                                                                |
| `unitAmount`                                                                                                                                                                                                                                                                                        | *number*                                                                                                                                                                                                                                                                                            | :heavy_check_mark:                                                                                                                                                                                                                                                                                  | 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.                                                                                                                                           |