# Price List Lines _(Realtime-enabled)_

`GET` `POST` `PATCH` `DELETE` _(Table: Price List Line)_

```
eOne/core/v1.0/priceListLines
```

Read and write the individual price and discount lines of a price list. Unlike the payment/expense lines, this is **also a standalone writable endpoint** (its own `priceListLines` collection, OData `$batch`, and webhook), as well as an `$expand` child of [Price Lists](https://eonesolutions.github.io/eone-bc-integration/core-priceListHeaders.md) and of [items](https://eonesolutions.github.io/eone-bc-integration/core-items.md). It writes the standard Business Central `Price List Line` table directly.

## Creating a line

Supply `priceListCode` (required) to attach the line to an existing header, and leave `lineNo` at `0` to auto-assign the next number (or send an explicit one). Identify the priced item with `itemIntegrationId`, a [resolver](https://eonesolutions.github.io/eone-bc-integration/resolvers.md) that looks the [item](https://eonesolutions.github.io/eone-bc-integration/core-items.md) up by your key and sets `assetType`/`assetNo` for you. Or set `assetNo` directly.

> **Note:** `currencyCode` is the ISO code; blank means LCY. `projectIntegrationId` scopes a price to a project (Business Central Job) and requires the eOne Integration - Project app. It is blank on read and errors on write when that app is not installed. Subscribe to this entity for webhook notifications when prices change.

> **Caution:** The legacy [salesPrices](https://eonesolutions.github.io/eone-bc-integration/core-salesPrices.md) / [salesLineDiscounts](https://eonesolutions.github.io/eone-bc-integration/core-salesLineDiscounts.md) endpoints target the old V16 pricing tables and are only valid when the **New Sales Pricing** experience is off. On a modern price-list configuration, write here instead.

## Price List Lines fields

_API column → BC field._

**Legend**

- _(req)_ required on create
- _(res)_ resolver
- _(cur)_ currency-translated
- _(ro)_ read-only
- _(ext)_ added to this endpoint by another extension (BC field name shown; its API column name is not known here)

| API | BC field | Notes |
| --- | --- | --- |
| `id` | SystemId | BC record GUID. _(ro)_ |
| `bcCompanyId` | bcCompanyId | The company this row belongs to - the same GUID that appears in the request URL. Present on every endpoint so a store pooling several companies can keep them apart without relying on which URL it called. _(ro)_ |
| `bcCompanyName` | bcCompanyName | The name of the company this row belongs to. _(ro)_ |
| `priceListCode` | Price List Code | Parent price list header — must already exist. _(req)_ |
| `lineNo` | Line No. | Line within the list. Leave 0 on insert to auto-assign the next number. |
| `priceType` | Price Type | Sale or Purchase. |
| `amountType` | Amount Type | Price / Discount / Any. |
| `status` | Status | Draft / Active / Inactive. |
| `sourceType` | Source Type | Who the price applies to (All / Customer / group...). |
| `sourceNo` | Source No. | The source record number. |
| `parentSourceNo` | Parent Source No. | Parent source for hierarchical sources. |
| `assetType` | Asset Type | Item / Resource / G/L Account... |
| `assetNo` | Asset No. | The priced asset number. |
| `itemIntegrationId` | itemIntegrationId | Resolve the priced item by your key instead of assetNo. Sets Asset Type = Item and Asset No. _(res)_ |
| `projectIntegrationId` | projectIntegrationId | Resolve the price scope to a project (BC Job) by your key instead of sourceType/sourceNo. Requires the eOne Integration - Project app. See resolvers. _(res)_ |
| `description` | Description |  |
| `variantCode` | Variant Code |  |
| `unitOfMeasureCode` | Unit of Measure Code |  |
| `minimumQuantity` | Minimum Quantity | Quantity break. |
| `currencyCode` | currencyCode | ISO code; blank = LCY. _(cur)_ |
| `unitPrice` | Unit Price |  |
| `costFactor` | Cost Factor |  |
| `lineDiscountPct` | Line Discount % |  |
| `lineAmount` | Line Amount |  |
| `allowLineDisc` | Allow Line Disc. |  |
| `allowInvoiceDisc` | Allow Invoice Disc. |  |
| `startingDate` | Starting Date | Validity start. |
| `endingDate` | Ending Date | Validity end. |
| `priceIncludesVAT` | Price Includes VAT |  |
| `vatBusPostingGrPrice` | VAT Bus. Posting Gr. (Price) |  |
| `lastModifiedDateTime` | SystemModifiedAt | _(ro)_ |

## Related pages

Nested under [Items](https://eonesolutions.github.io/eone-bc-integration/core-items.md) and [Price Lists](https://eonesolutions.github.io/eone-bc-integration/core-priceListHeaders.md).
