SaleLineItemV10

A single line of a sale.

The envelope (id, type, name, quantity, unit_of_measure, price) is stable and type-agnostic: any consumer can render and total a line from these fields alone. Type-specific data is in features. There is no per-type object and no discriminator, so a new item type does not change this schema.

Fields

  • idstringrequired
    maxLength: 100

    Stable identifier of the line within the sale. Used for linking (e.g. deposits).

    Example: "line-1"

  • typestringrequired

    Classifies a sale line. Not a schema subclass.

    Known values: CATALOG, DEPOSIT, GIFT_CARD, CUSTOM, FEE.

    FEE lines represent merchant-charged fees on the sale (e.g. shipping, service charge, surcharge, cancellation). They participate in sale totals like any other line; type-specific data is carried in features (see Feature for the conventional feature keys).

    This is intentionally an open string, NOT a closed enum: new values are added over time as pure data and consumers MUST tolerate unknown values, rendering the line from the generic envelope (name, quantity, price, taxes) and reading any extra information from features.

    Example: "CATALOG"

  • namestringrequired
    maxLength: 250

    Display name of the line.

    Example: "Cappuccino"

  • quantitynumberrequired
    format: doubleminimum: 0

    The numerical value representing the quantity in the specified unit.

    Example: 2.15332

  • unit_of_measureobjectrequired

    The unit of measure of the item.

    Show 3 properties
    • group_idstringrequired
      maxLength: 100

      The group of the unit of measure.

      Example: "weight"

    • unit_idstringrequired
      maxLength: 100

      The specific unit of measure within the group.

      Example: "weight.kilogram"

    • unit_rationumberrequired
      format: double

      The ratio of the specified unit to the base unit of the group.

      Example: 1.24412

  • priceobjectrequired

    Pricing for a single line, valid for every item type.

    Merges the standard amounts (with tax breakdown) and the final amounts (after discounts/modifiers).

    Totals and tax amounts can be negative for return-like operations (for example a deposit with operation_type = RETURN).

    Show 8 properties
    • unit_amountintegerrequired
      format: int64minimum: 0

      The price of a single unit. If the tax_mode is GROSS it includes taxes, otherwise no tax is included. It does NOT include discounts.

      Example: 300

    • total_net_amountobjectrequired

      The net amount (including modifiers if applied). It does NOT include discounts.

      Example: 252

      Show 2 properties
      • currencystringrequired

        Currency ISO 4217 code

        Example: "MXN"

      • valueintegerrequired

        Amount in minor units (e.g. cents).

        Example: 1000

    • total_gross_amountobjectrequired

      The gross amount (including modifiers if applied). It does NOT include discounts.

      Example: 300

      Show 2 properties
      • currencystringrequired

        Currency ISO 4217 code

        Example: "MXN"

      • valueintegerrequired

        Amount in minor units (e.g. cents).

        Example: 1000

    • taxesarray<object>required

      Taxes applied on top of the net amount resulting in the gross amount.

      Example: [{"id":"tax-vat-19","net_amount":252,"gross_amount":300,"tax_amount":48}]

      Show 6 properties
      • idstringrequired
        maxLength: 100

        Tax ID from the Tax Service (External Id)

        Example: "b064ed44-66e1-45a1-a963-b783808f0436"

      • net_amountobjectrequired

        Net amount before applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Show 2 properties
        • currencystringrequired

          Currency ISO 4217 code

          Example: "MXN"

        • valueintegerrequired

          Amount in minor units (e.g. cents).

          Example: 1000

      • gross_amountobjectrequired

        Gross amount after applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Show 2 properties
        • currencystringrequired

          Currency ISO 4217 code

          Example: "MXN"

        • valueintegerrequired

          Amount in minor units (e.g. cents).

          Example: 1000

      • tax_amountobjectrequired

        Amount of tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Show 2 properties
        • currencystringrequired

          Currency ISO 4217 code

          Example: "MXN"

        • valueintegerrequired

          Amount in minor units (e.g. cents).

          Example: 1000

      • namestring
        maxLength: 255

        Tax name, e.g. "MwSt."

      • percentageinteger
        format: int64minimum: 0

        The tax rate percentage in minor units (1/100000). For example 19000 = 19%.

        Example: 19000

    • The final net amount including discounts and modifiers. Equals total_net_amount if no discounts apply.

      Example: 210

      Show 2 properties
      • currencystringrequired

        Currency ISO 4217 code

        Example: "MXN"

      • valueintegerrequired

        Amount in minor units (e.g. cents).

        Example: 1000

    • The final gross amount including discounts, modifiers and taxes. Equals total_gross_amount if no discounts apply.

      Example: 250

      Show 2 properties
      • currencystringrequired

        Currency ISO 4217 code

        Example: "MXN"

      • valueintegerrequired

        Amount in minor units (e.g. cents).

        Example: 1000

    • taxes_finalarray<object>required

      Taxes applied on top of total_net_amount_final resulting in total_gross_amount_final. Equals taxes if no discounts apply.

      Example: [{"id":"tax-vat-19","net_amount":210,"gross_amount":250,"tax_amount":40}]

      Show 6 properties
      • idstringrequired
        maxLength: 100

        Tax ID from the Tax Service (External Id)

        Example: "b064ed44-66e1-45a1-a963-b783808f0436"

      • net_amountobjectrequired

        Net amount before applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Show 2 properties
        • currencystringrequired

          Currency ISO 4217 code

          Example: "MXN"

        • valueintegerrequired

          Amount in minor units (e.g. cents).

          Example: 1000

      • gross_amountobjectrequired

        Gross amount after applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Show 2 properties
        • currencystringrequired

          Currency ISO 4217 code

          Example: "MXN"

        • valueintegerrequired

          Amount in minor units (e.g. cents).

          Example: 1000

      • tax_amountobjectrequired

        Amount of tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Show 2 properties
        • currencystringrequired

          Currency ISO 4217 code

          Example: "MXN"

        • valueintegerrequired

          Amount in minor units (e.g. cents).

          Example: 1000

      • namestring
        maxLength: 255

        Tax name, e.g. "MwSt."

      • percentageinteger
        format: int64minimum: 0

        The tax rate percentage in minor units (1/100000). For example 19000 = 19%.

        Example: 19000

    • discountsarray<object>

      Discounts applied. Discount amounts do not affect total_net_amount / total_gross_amount; they are reflected in the *_final amounts.

      Example: []

      Show 8 properties
      • levelstringrequired
        minLength: 4maxLength: 4

        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"].

        Example: "CART"

      • sourceobjectrequired

        The source of discount. Exactly one property must be set.

        Show 5 properties
        • ad_hocobject

          Discount created ad-hoc on device during checkout.

          Show 3 properties
          • idstring
            format: uuid

            The unique identifier of the ad-hoc discount.

            Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

          • namestring
            maxLength: 100

            The name of the ad-hoc discount.

            Example: "Happy Hour"

          • maxLength: 250

            The description of the ad-hoc discount.

            Example: "Happy Hour from 10 to 12."

        • basicobject

          Preset discount applied manually on the POS.

          Show 4 properties
          • idstringrequired
            format: uuid

            The unique identifier of the basic discount.

            Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

          • namestringrequired
            maxLength: 100

            The name of the basic discount.

            Example: "Staff discount"

          • application_modestringrequired
            Options:"MANUAL""AUTOMATIC"

            Method of applying the discount to the items or cart.

            Example: "MANUAL"

          • descriptionstringnullable
            maxLength: 250

            The description of the loyalty discount.

            Example: "10% off food for staff members."

        • couponobject

          Discount applied manually when entering a coupon code at checkout.

          Show 6 properties
          • idstringrequired
            format: uuid

            The unique identifier of the coupon discount.

            Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

          • codestringrequired
            maxLength: 100

            The coupon code.

            Example: "FREE_COFFEE"

          • namestringrequired
            maxLength: 100

            The name of the coupon discount.

            Example: "Free coffee"

          • application_modestringrequired
            Options:"MANUAL""AUTOMATIC"

            Method of applying the discount to the items or cart.

            Example: "MANUAL"

          • descriptionstringnullable
            maxLength: 250

            The description of the coupon discount.

            Example: "Free coffee with this coupon."

          • discount_classstringnullable
            Options:"ITEM""CATEGORY""BUNDLE""BUY_X_GET_Y""MEAL_DEAL"

            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).

            Example: "ITEM"

        • offerobject

          Discount applied automatically when cart is updated based on preset promotions.

          Show 5 properties
          • idstringrequired
            format: uuid

            The unique identifier of the offer discount.

            Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

          • namestringrequired
            maxLength: 100

            The name of the offer discount.

            Example: "Breakfast combo deal"

          • application_modestringrequired
            Options:"MANUAL""AUTOMATIC"

            Method of applying the discount to the items or cart.

            Example: "MANUAL"

          • descriptionstringnullable
            maxLength: 250

            The description of the offer discount.

            Example: "Buy a Croissant, get a coffee for £1"

          • discount_classstringnullable
            Options:"ITEM""CATEGORY""BUNDLE""BUY_X_GET_Y""MEAL_DEAL"

            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).

            Example: "ITEM"

        • loyaltyobject

          Discount applied when redeeming a reward from the merchant's loyalty scheme.

          Show 8 properties
          • idstringrequired
            format: uuid

            The unique identifier of the promotion or reward.

            Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

          • loyalty_typestringrequired
            Options:"PROMOTION""REWARD"

            The type of loyalty discount, either a promotion (e.g. new customer discount) or a reward (free coffee after completing stamp card).

            Example: "REWARD"

          • scheme_typestringrequired
            Options:"STAMPS""POINTS"

            The scheme type of the loyalty program.

            Example: "POINTS"

          • namestringrequired
            maxLength: 100

            The name of the loyalty discount.

            Example: "Free coffee"

          • application_modestringrequired
            Options:"MANUAL""AUTOMATIC"

            Method of applying the discount to the items or cart.

            Example: "MANUAL"

          • pointsintegernullable
            format: int64minimum: 1

            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.

            Example: 50

          • descriptionstringnullable
            maxLength: 250

            The description of the loyalty discount.

            Example: "Free coffee for 50 points"

          • discount_classstringnullable
            Options:"ITEM""CATEGORY""BUNDLE""BUY_X_GET_Y""MEAL_DEAL"

            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).

            Example: "ITEM"

      • valueobjectrequired

        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.
        Show 2 properties
        • absoluteinteger
          format: int64minimum: 0

          The absolute value in minor units of the currency according to the Sale.currency.scale. Example: 10000 = 10.00

          Example: 100

        • percentageinteger
          format: int64minimum: 0

          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)

          Example: 10000

      • net_amountintegerrequired
        format: int64minimum: 0

        The net amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • gross_amountintegerrequired
        format: int64minimum: 0

        The gross amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • tax_amountintegerrequired
        format: int64minimum: 0

        The tax amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • idstring
        maxLength: 100

        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.

        Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

      • maxLength: 250

        A description or reason of the discount.

        Example: "Happy Hour"

  • Options:"IN_HOUSE""TAKE_AWAY"

    The type of service for this line.

    Example: "IN_HOUSE"

  • notestring
    maxLength: 300

    Optional free-text note attached to the line, visible on receipts.

    Example: "extra hot"

  • categoriesarray<object>

    Categories the line belongs to. A shared optional structure available to any line; not a per-type field.

    Example: [{"id":"cat-hot-drinks","name":"Hot Drinks"}]

    Show 2 properties
    • idstringrequired
      maxLength: 100

      The category id. Usually a UUID, but not always (legacy cases).

      Example: "b064ed44-66e1-45a1-a963-b783808f0436"

    • namestringrequired
      maxLength: 30

      The category name.

      Example: "Food"

  • modifiersarray<object>

    Modifiers customise a line (e.g. "oat milk" on a cappuccino). A shared optional structure available to any line; not a per-type field.

    Example: []

    Show 12 properties
    • unit_amountintegerrequired
      format: int64minimum: 0

      The price of a single unit. If the tax_mode is GROSS, it includes taxes, otherwise no tax included. It doesn't include discounts.

      Example: 100

    • total_net_amountintegerrequired
      format: int64minimum: 0

      The value of the amount in minor units of the currency according to the Sale.currency.scale. value can get large for some currencies and applications. Use Long type or a similar data type when parsing value.

      Example: 100

    • total_gross_amountintegerrequired
      format: int64minimum: 0

      The value of the amount in minor units of the currency according to the Sale.currency.scale. value can get large for some currencies and applications. Use Long type or a similar data type when parsing value.

      Example: 100

    • taxesarray<unknown>required

      Taxes applied on top of net amount resulting in gross amount.

      Show 6 properties
      • idstringrequired
        maxLength: 100

        Tax ID from the Tax Service (External Id)

        Example: "b064ed44-66e1-45a1-a963-b783808f0436"

      • net_amountintegerrequired
        format: int64minimum: 0

        Net amount before applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • gross_amountintegerrequired
        format: int64minimum: 0

        Gross amount after applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • tax_amountintegerrequired
        format: int64minimum: 0

        Amount of tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • namestring
        maxLength: 255

        Tax name, e.g. "MwSt."

      • percentageinteger
        format: int64minimum: 0

        The tax rate percentage in minor units (1/100000). For example 19000 = 19%.

        Example: 19000

    • total_net_amount_finalintegerrequired
      format: int64minimum: 0

      The final net amount includes discounts and modifiers. It does NOT include taxes. If no discounts are applied, it should be equal to total_net_amount.

      Example: 100

    • format: int64minimum: 0

      The final gross amount includes discounts, modifiers, and taxes. If no discounts are applied, it should be equal to total_gross_amount.

      Example: 100

    • taxes_finalarray<unknown>required

      Taxes applied on top of total_net_amount_final amount resulting in total_gross_amount_final amount. If no discounts are applied, it should be equal to taxes.

      Show 6 properties
      • idstringrequired
        maxLength: 100

        Tax ID from the Tax Service (External Id)

        Example: "b064ed44-66e1-45a1-a963-b783808f0436"

      • net_amountintegerrequired
        format: int64minimum: 0

        Net amount before applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • gross_amountintegerrequired
        format: int64minimum: 0

        Gross amount after applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • tax_amountintegerrequired
        format: int64minimum: 0

        Amount of tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • namestring
        maxLength: 255

        Tax name, e.g. "MwSt."

      • percentageinteger
        format: int64minimum: 0

        The tax rate percentage in minor units (1/100000). For example 19000 = 19%.

        Example: 19000

    • idstringrequired
      maxLength: 100

      Modifier id, coming from the Item Catalog

      Example: "b064ed44-66e1-45a1-a963-b783808f0436"

    • namestringrequired
      maxLength: 150

      Modifier name, coming from the Item Catalog

      Example: "Extra Cheese"

    • setobjectrequired

      Modifier set attached to an item.

      Show 2 properties
      • idstringrequired
        maxLength: 100

        The id of the modifier set that modifier belongs to.

        Example: "b064ed44-66e1-45a1-a963-b783808f0436"

      • namestringrequired
        minLength: 1maxLength: 150

        The name of the modifier set that the modifier belongs to.

        Example: "Burger Toppings"

    • quantitynumberrequired
      format: doubleminimum: 0

      The numerical value representing the quantity in the specified unit.

      Example: 2.15332

    • discountsarray<object>

      Discounts applied.

      Important: Discount amounts shouldn't take effect on net and gross amounts.

      Discount money amounts depend on where discount was applied:

      • for item level discount: whole discount money amount is applied
      • for cart level discount: only part of the whole amount is applied (discount money value is split on each line item)
      Show 8 properties
      • levelstringrequired
        minLength: 4maxLength: 4

        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"].

        Example: "CART"

      • sourceobjectrequired

        The source of discount. Exactly one property must be set.

        Show 5 properties
        • ad_hocobject

          Discount created ad-hoc on device during checkout.

          Show 3 properties
          • idstring
            format: uuid

            The unique identifier of the ad-hoc discount.

            Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

          • namestring
            maxLength: 100

            The name of the ad-hoc discount.

            Example: "Happy Hour"

          • maxLength: 250

            The description of the ad-hoc discount.

            Example: "Happy Hour from 10 to 12."

        • basicobject

          Preset discount applied manually on the POS.

          Show 4 properties
          • idstringrequired
            format: uuid

            The unique identifier of the basic discount.

            Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

          • namestringrequired
            maxLength: 100

            The name of the basic discount.

            Example: "Staff discount"

          • application_modestringrequired
            Options:"MANUAL""AUTOMATIC"

            Method of applying the discount to the items or cart.

            Example: "MANUAL"

          • descriptionstringnullable
            maxLength: 250

            The description of the loyalty discount.

            Example: "10% off food for staff members."

        • couponobject

          Discount applied manually when entering a coupon code at checkout.

          Show 6 properties
          • idstringrequired
            format: uuid

            The unique identifier of the coupon discount.

            Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

          • codestringrequired
            maxLength: 100

            The coupon code.

            Example: "FREE_COFFEE"

          • namestringrequired
            maxLength: 100

            The name of the coupon discount.

            Example: "Free coffee"

          • application_modestringrequired
            Options:"MANUAL""AUTOMATIC"

            Method of applying the discount to the items or cart.

            Example: "MANUAL"

          • descriptionstringnullable
            maxLength: 250

            The description of the coupon discount.

            Example: "Free coffee with this coupon."

          • discount_classstringnullable
            Options:"ITEM""CATEGORY""BUNDLE""BUY_X_GET_Y""MEAL_DEAL"

            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).

            Example: "ITEM"

        • offerobject

          Discount applied automatically when cart is updated based on preset promotions.

          Show 5 properties
          • idstringrequired
            format: uuid

            The unique identifier of the offer discount.

            Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

          • namestringrequired
            maxLength: 100

            The name of the offer discount.

            Example: "Breakfast combo deal"

          • application_modestringrequired
            Options:"MANUAL""AUTOMATIC"

            Method of applying the discount to the items or cart.

            Example: "MANUAL"

          • descriptionstringnullable
            maxLength: 250

            The description of the offer discount.

            Example: "Buy a Croissant, get a coffee for £1"

          • discount_classstringnullable
            Options:"ITEM""CATEGORY""BUNDLE""BUY_X_GET_Y""MEAL_DEAL"

            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).

            Example: "ITEM"

        • loyaltyobject

          Discount applied when redeeming a reward from the merchant's loyalty scheme.

          Show 8 properties
          • idstringrequired
            format: uuid

            The unique identifier of the promotion or reward.

            Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

          • loyalty_typestringrequired
            Options:"PROMOTION""REWARD"

            The type of loyalty discount, either a promotion (e.g. new customer discount) or a reward (free coffee after completing stamp card).

            Example: "REWARD"

          • scheme_typestringrequired
            Options:"STAMPS""POINTS"

            The scheme type of the loyalty program.

            Example: "POINTS"

          • namestringrequired
            maxLength: 100

            The name of the loyalty discount.

            Example: "Free coffee"

          • application_modestringrequired
            Options:"MANUAL""AUTOMATIC"

            Method of applying the discount to the items or cart.

            Example: "MANUAL"

          • pointsintegernullable
            format: int64minimum: 1

            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.

            Example: 50

          • descriptionstringnullable
            maxLength: 250

            The description of the loyalty discount.

            Example: "Free coffee for 50 points"

          • discount_classstringnullable
            Options:"ITEM""CATEGORY""BUNDLE""BUY_X_GET_Y""MEAL_DEAL"

            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).

            Example: "ITEM"

      • valueobjectrequired

        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.
        Show 2 properties
        • absoluteinteger
          format: int64minimum: 0

          The absolute value in minor units of the currency according to the Sale.currency.scale. Example: 10000 = 10.00

          Example: 100

        • percentageinteger
          format: int64minimum: 0

          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)

          Example: 10000

      • net_amountintegerrequired
        format: int64minimum: 0

        The net amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • gross_amountintegerrequired
        format: int64minimum: 0

        The gross amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • tax_amountintegerrequired
        format: int64minimum: 0

        The tax amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.

        Example: 100

      • idstring
        maxLength: 100

        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.

        Example: "075b0b5c-a1f4-46da-9aca-92fb6dd5905d"

      • maxLength: 250

        A description or reason of the discount.

        Example: "Happy Hour"

  • Outward identifiers and links for a line, kept in one place rather than scattered per item type.

    Show 4 properties
    • Options:"SUMUP""EXTERNAL"
      default: "SUMUP"

      The source of the catalog the line originates from.

      Example: "SUMUP"

    • maxLength: 255

      Reference to the backing catalog entity (item variant, deposit, ...), typically a URN such as urn:sumup:pos:variant:${MERCHANT_CODE}:${ITEM_ID}:${VARIANT_ID} or urn:sumup:pos:deposit:${MERCHANT_CODE}:${DEPOSIT_ID}. Empty for ad-hoc / manual lines. Type-agnostic on purpose: a new item type backed by a catalog entity reuses this field instead of adding its own.

      Example: "urn:sumup:pos:variant:MCGLE7VC:9736e947-6f1f-487f-846a-c5954fb06a5a:7fff192f-ce29-4673-890f-2d68ba557946"

    • maxLength: 250

      An external reference id connecting this line to another system.

      Example: "POS-LINE-001"

    • skustring
      maxLength: 100

      Stock keeping unit, enriched from the Catalog when available.

      Example: "COFFEE-LARGE"

  • featuresarray<object>

    Named, typed, type-specific data. New item types add their data here as features instead of new schema variants. See Feature for per-type examples.

    Example: [{"name":"variant_name","value_type":"TEXT","value":"Large"}]

    Show 3 properties
    • namestringrequired
      maxLength: 100

      The feature name/key.

      Example: "operation_type"

    • value_typestringrequired
      Options:"TEXT""INTEGER""DECIMAL""DATE""BOOLEAN"

      The data type of a feature value. The wire value is always a string and is parsed according to this type.

      Example: "TEXT"

    • valuestringrequired
      maxLength: 1000

      The feature value in canonical string form, to be parsed per value_type (e.g. INTEGER -> "3", DECIMAL -> "1.50", DATE -> "2026-07-02", BOOLEAN -> "true"). Carrying it as a string keeps the wire format stable as new feature names and value types are introduced.

      Example: "SALE"

Type to search…