# Sales Line Discounts _(Realtime-enabled)_

`GET` `POST` `PATCH` `DELETE` _(Table: Sales Line Discount)_

```
eOne/core/v1.0/salesLineDiscounts
```

The classic line-discount table, a discount percentage for an item (or item discount group) scoped by sales type/code, unit of measure, minimum quantity, currency and a validity date range.

Resolve the item with `itemIntegrationId`. See [Resolver fields](https://eonesolutions.github.io/eone-bc-integration/resolvers.md); it sets `type` = Item and `code`. `lineDiscountPct` is the percentage applied when the scope and quantity break match. Create, update and delete rows, and batch many in one OData `$batch` request.

> **Caution:** Legacy discount model. Writes here only take effect when the **New Sales Pricing Experience is off**; when it is on, use the discount columns on [Price List Lines](https://eonesolutions.github.io/eone-bc-integration/core-priceListHeaders.md).

## Sales Line Discounts 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)_ |
| `type` | Type | Item or Item Disc. Group. _(req)_ |
| `code` | Code | Item no. or discount group code. |
| `itemIntegrationId` | itemIntegrationId | Resolve the item by your key instead of type+code. Sets Type = Item and Code. _(res)_ |
| `salesType` | Sales Type | All / Customer / Price Group / Campaign. |
| `salesCode` | Sales Code | The customer / group code for the scope. |
| `variantCode` | Variant Code |  |
| `unitOfMeasureCode` | Unit of Measure Code |  |
| `minimumQuantity` | Minimum Quantity | Quantity break. |
| `currencyCode` | currencyCode | ISO code; blank = LCY. _(cur)_ |
| `lineDiscountPct` | Line Discount % | Discount applied when scope + quantity match. _(req)_ |
| `startingDate` | Starting Date | Validity start. |
| `endingDate` | Ending Date | Validity end. |
| `lastModifiedDateTime` | SystemModifiedAt | _(ro)_ |

## Related pages

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