---
title: "DiscountLine"
description: "Object representing information about single discount line."
image: "https://developer.sumup.com/og/index.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.sumup.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: SumUp REST API

Object representing information about single discount line.

## Fields

- `level` (`DiscountLine.level`; string, required) — Specifies where discount was applied by user (either merchant or consumer): - CART: Applied to the whole cart (calculated and distributed per sale item) - ITEM: Applied to specific sale item *Accepted values:* ["ITEM", "CART"].
  - minLength 4; maxLength 4; example `"CART"`
- `source` (`DiscountLine.source`; object, required) — The source of discount. Exactly one property must be set.
  - `ad_hoc` (`DiscountLine.source.ad_hoc`; object, optional) — Discount created ad-hoc on device during checkout.
    - `id` (`DiscountLine.source.ad_hoc.id`; string, optional) — The unique identifier of the ad-hoc discount.
      - format `uuid`; example `"075b0b5c-a1f4-46da-9aca-92fb6dd5905d"`
    - `name` (`DiscountLine.source.ad_hoc.name`; string, optional) — The name of the ad-hoc discount.
      - maxLength 100; example `"Happy Hour"`
    - `description` (`DiscountLine.source.ad_hoc.description`; string, optional) — The description of the ad-hoc discount.
      - maxLength 250; example `"Happy Hour from 10 to 12."`
  - `basic` (`DiscountLine.source.basic`; object, optional) — Preset discount applied manually on the POS.
    - `id` (`DiscountLine.source.basic.id`; string, required) — The unique identifier of the basic discount.
      - format `uuid`; example `"075b0b5c-a1f4-46da-9aca-92fb6dd5905d"`
    - `name` (`DiscountLine.source.basic.name`; string, required) — The name of the basic discount.
      - maxLength 100; example `"Staff discount"`
    - `application_mode` (`DiscountLine.source.basic.application_mode`; string, required) — Method of applying the discount to the items or cart.
      - one of `"MANUAL"`, `"AUTOMATIC"`; example `"MANUAL"`
    - `description` (`DiscountLine.source.basic.description`; string, optional, nullable) — The description of the loyalty discount.
      - maxLength 250; example `"10% off food for staff members."`
  - `coupon` (`DiscountLine.source.coupon`; object, optional) — Discount applied manually when entering a coupon code at checkout.
    - `id` (`DiscountLine.source.coupon.id`; string, required) — The unique identifier of the coupon discount.
      - format `uuid`; example `"075b0b5c-a1f4-46da-9aca-92fb6dd5905d"`
    - `code` (`DiscountLine.source.coupon.code`; string, required) — The coupon code.
      - maxLength 100; example `"FREE_COFFEE"`
    - `name` (`DiscountLine.source.coupon.name`; string, required) — The name of the coupon discount.
      - maxLength 100; example `"Free coffee"`
    - `application_mode` (`DiscountLine.source.coupon.application_mode`; string, required) — Method of applying the discount to the items or cart.
      - one of `"MANUAL"`, `"AUTOMATIC"`; example `"MANUAL"`
    - `description` (`DiscountLine.source.coupon.description`; string, optional, nullable) — The description of the coupon discount.
      - maxLength 250; example `"Free coffee with this coupon."`
    - `discount_class` (`DiscountLine.source.coupon.discount_class`; string, optional, nullable) — The method used to target items to discount. Must be populated for ITEM level discounts, and must be null for CART level discounts (CART level targets all items, therefore none of these categories apply).
      - one of `"ITEM"`, `"CATEGORY"`, `"BUNDLE"`, `"BUY_X_GET_Y"`, `"MEAL_DEAL"`; example `"ITEM"`
  - `offer` (`DiscountLine.source.offer`; object, optional) — Discount applied automatically when cart is updated based on preset promotions.
    - `id` (`DiscountLine.source.offer.id`; string, required) — The unique identifier of the offer discount.
      - format `uuid`; example `"075b0b5c-a1f4-46da-9aca-92fb6dd5905d"`
    - `name` (`DiscountLine.source.offer.name`; string, required) — The name of the offer discount.
      - maxLength 100; example `"Breakfast combo deal"`
    - `application_mode` (`DiscountLine.source.offer.application_mode`; string, required) — Method of applying the discount to the items or cart.
      - one of `"MANUAL"`, `"AUTOMATIC"`; example `"MANUAL"`
    - `description` (`DiscountLine.source.offer.description`; string, optional, nullable) — The description of the offer discount.
      - maxLength 250; example `"Buy a Croissant, get a coffee for £1"`
    - `discount_class` (`DiscountLine.source.offer.discount_class`; string, optional, nullable) — The method used to target items to discount. Must be populated for ITEM level discounts, and must be null for CART level discounts (CART level targets all items, therefore none of these categories apply).
      - one of `"ITEM"`, `"CATEGORY"`, `"BUNDLE"`, `"BUY_X_GET_Y"`, `"MEAL_DEAL"`; example `"ITEM"`
  - `loyalty` (`DiscountLine.source.loyalty`; object, optional) — Discount applied when redeeming a reward from the merchant's loyalty scheme.
    - `id` (`DiscountLine.source.loyalty.id`; string, required) — The unique identifier of the promotion or reward.
      - format `uuid`; example `"075b0b5c-a1f4-46da-9aca-92fb6dd5905d"`
    - `loyalty_type` (`DiscountLine.source.loyalty.loyalty_type`; string, required) — The type of loyalty discount, either a promotion (e.g. new customer discount) or a reward (free coffee after completing stamp card).
      - one of `"PROMOTION"`, `"REWARD"`; example `"REWARD"`
    - `scheme_type` (`DiscountLine.source.loyalty.scheme_type`; string, required) — The scheme type of the loyalty program.
      - one of `"STAMPS"`, `"POINTS"`; example `"POINTS"`
    - `name` (`DiscountLine.source.loyalty.name`; string, required) — The name of the loyalty discount.
      - maxLength 100; example `"Free coffee"`
    - `application_mode` (`DiscountLine.source.loyalty.application_mode`; string, required) — Method of applying the discount to the items or cart.
      - one of `"MANUAL"`, `"AUTOMATIC"`; example `"MANUAL"`
    - `points` (`DiscountLine.source.loyalty.points`; integer, optional, nullable) — The number of points used for this loyalty discount. Must be a positive integer if the scheme type is POINTS. Must not be populated if the scheme type is STAMPS.
      - format `int64`; min 1; example `50`
    - `description` (`DiscountLine.source.loyalty.description`; string, optional, nullable) — The description of the loyalty discount.
      - maxLength 250; example `"Free coffee for 50 points"`
    - `discount_class` (`DiscountLine.source.loyalty.discount_class`; string, optional, nullable) — The method used to target items to discount. Must be populated for ITEM level discounts, and must be null for CART level discounts (CART level targets all items, therefore none of these categories apply).
      - one of `"ITEM"`, `"CATEGORY"`, `"BUNDLE"`, `"BUY_X_GET_Y"`, `"MEAL_DEAL"`; example `"ITEM"`
- `value` (`DiscountLine.value`; object, required) — The value type of the discount, either a percentage based or absolute monetary value. It is required that only one of the following is set: - absolute - percentage.
  - `absolute` (`DiscountLine.value.absolute`; integer, optional) — The absolute value in minor units of the currency according to the Sale.currency.scale. Example: 10000 = 10.00
    - format `int64`; min 0; example `100`
  - `percentage` (`DiscountLine.value.percentage`; integer, optional) — The percentage in minor units (1/100000). Examples: - 10% -> 0.10 (decimal) = 10000 (minor units) - 15.5% -> 0.155 (decimal) = 15500 (minor units) - 0.001% -> 0.00001 (decimal) = 1 (minor units)
    - format `int64`; min 0; example `10000`
- `net_amount` (`DiscountLine.net_amount`; integer, required) — The net amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.
  - format `int64`; min 0; example `100`
- `gross_amount` (`DiscountLine.gross_amount`; integer, required) — The gross amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.
  - format `int64`; min 0; example `100`
- `tax_amount` (`DiscountLine.tax_amount`; integer, required) — The tax amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.
  - format `int64`; min 0; example `100`
- `id` (`DiscountLine.id`; string, optional) — An id used to associate a discount line with a specific discount. Since we can apply multiple discounts (e.g. 2x 10% whole cart off) we need to be able to identify which discount line belongs to which cart discount. Recommended to use UUID identifiers.
  - maxLength 100; example `"075b0b5c-a1f4-46da-9aca-92fb6dd5905d"`
- `description` (`DiscountLine.description`; string, optional) — A description or reason of the discount.
  - maxLength 250; example `"Happy Hour"`


Source: https://developer.sumup.com/api/schemas/DiscountLine/index.md
