---
title: "Action: Discounts"
description: "Imports discounts and their conditions, optionally linking them to search tags, customer categories, product categories, customers and products."
url: https://support.sapera.io/en/articles/609-action-discounts
collection: "SyncTool"
updated: 2026-09-25
language: en
alternates: [da]
---

# Action: Discounts

Imports discounts and their conditions, optionally linking them to search tags, customer categories, product categories, customers and products.

Imports discounts and their conditions, optionally linking them to search tags, customer categories, product categories, customers and products.

## How to use the action

1\. Select the action in the **Action** field. 2. Point to your data source – a **file** (CSV or Excel) or a **SQL query**. 3. Map the source columns to Sapera's fields in the column mapping (see _Source fields_ below). 4. Run **Compare** to see what will be created, changed or stay unchanged – without writing to Sapera. 5. Run **Update Sapera** to perform the import.

Use the **Allow create** and **Allow update** parameters to control whether new rows are created and whether existing ones are updated.

## How matching and updating works

Each row is matched on the discount's **system name** (SystemName). Matching discounts are updated and new ones created.

-   A discount can be linked to **search tags, customer categories, product categories, customers and products** and carry its conditions (amount/percentage, validity, etc.).
    
-   Only the discounts in your source are processed. Direction: from file/SQL into Sapera.
    

## Key parameters

<table data-id="aec39716-1e63-48b5-bed7-e5cd08ab90c6" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="b4207408-3391-4ebb-a223-82ae886fe877" style="text-align: left;"><strong>Parameter</strong></p></td><td colspan="1" rowspan="1"><p data-id="f53ed5de-b6a8-42b0-9b90-db8803f66864" style="text-align: left;"><strong>Explanation</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="4a13e311-7526-4bdb-9c9b-50efc9ccc02c" style="text-align: left;">AllowCreate</p></td><td colspan="1" rowspan="1"><p data-id="34f4e40b-de2a-4050-b2cf-288d76bdf856" style="text-align: left;">When enabled, discounts that do not exist are created.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="e0a263e4-7c2a-456f-aa84-06c8320fb46f" style="text-align: left;">AllowUpdate</p></td><td colspan="1" rowspan="1"><p data-id="562d7703-7ce8-46ac-a5e7-4eee9a76dbfe" style="text-align: left;">When enabled, existing discounts are updated.</p></td></tr></tbody></table>

## Source fields

<table data-id="9c40f8b3-2883-462d-8833-31fbe1ca1d7e" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="db27b197-f071-4b42-bd3c-4dab68c9e40e" style="text-align: left;"><strong>Field</strong></p></td><td colspan="1" rowspan="1"><p data-id="1e3f7b0a-e83c-4537-a49d-42f15dcd9043" style="text-align: left;"><strong>Explanation</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="8a51f065-110c-42b9-a7c2-90f0d4306d6b" style="text-align: left;">Amount</p></td><td colspan="1" rowspan="1"><p data-id="9d32ec74-d4ed-4ebe-bffa-21af8d688fb4" style="text-align: left;">The fixed amount discount; use this or Percent, not both.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="fda8b6f2-9956-440a-9895-22882db47dd7" style="text-align: left;">CategoryIdentifiers</p></td><td colspan="1" rowspan="1"><p data-id="48b3bffd-1614-485e-a90f-774b6138a8d5" style="text-align: left;">Comma-separated product category identifiers the discount applies to.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="75559d1f-68b7-4d49-8022-339eae7b108e" style="text-align: left;">CustomerIdentifiers</p></td><td colspan="1" rowspan="1"><p data-id="048777f8-ff40-4bbb-a152-03fd5dbe92fa" style="text-align: left;">Comma-separated customer identifiers the discount applies to.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="d8f41f44-5b12-45dc-bed1-0fc655306786" style="text-align: left;">DebtorCategories</p></td><td colspan="1" rowspan="1"><p data-id="5b105110-1779-434d-b370-1092a3129027" style="text-align: left;">Comma-separated customer (debtor) category system names the discount applies to.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="0b04a7e4-7204-4b3d-99f2-57b8d263a497" style="text-align: left;">DisplayName</p></td><td colspan="1" rowspan="1"><p data-id="780db4f0-9cd6-4423-80e0-51ac9a7ef79d" style="text-align: left;">The name of the discount shown to users.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="6717cd6c-0cbb-4cd4-b0f9-1ed9205e3f25" style="text-align: left;">FromDate</p></td><td colspan="1" rowspan="1"><p data-id="f665c4f1-2261-4b3f-b382-fa5dafbf5e75" style="text-align: left;">The date from which the discount is valid.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="b02d2f16-7ed0-4b48-ad6a-00ab3f3e10f1" style="text-align: left;">IsManual</p></td><td colspan="1" rowspan="1"><p data-id="e0674527-54bc-431b-a640-ae66b2090eaf" style="text-align: left;">Whether the discount must be applied manually rather than automatically.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="21471ba6-6c35-4082-9c52-0f5313618bd9" style="text-align: left;">Kind</p></td><td colspan="1" rowspan="1"><p data-id="7e1f9eb1-a187-403f-a56a-9843f2897ec4" style="text-align: left;">The discount kind; must match one of the known discount types.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="b873d8be-c268-4ebd-be06-9308e5db2158" style="text-align: left;">Percent</p></td><td colspan="1" rowspan="1"><p data-id="89a98107-d82f-420a-8e03-e0feed3c52d6" style="text-align: left;">The percentage discount; use this or Amount, not both.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="6384651f-f138-4a26-b80a-cf1f1ce2980c" style="text-align: left;">ProductIdentifiers</p></td><td colspan="1" rowspan="1"><p data-id="aa523de0-67c7-4e89-85ec-46eed4455780" style="text-align: left;">Comma-separated product identifiers the discount applies to.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="1b0c13e3-6667-40a3-a8f2-30bb39dcfe5e" style="text-align: left;">QuantityCondition</p></td><td colspan="1" rowspan="1"><p data-id="41d3936a-35c3-4f0d-b7a3-f1efb0787acf" style="text-align: left;">The minimum quantity that must be bought for the discount to apply.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="998ba726-e379-419f-a064-67dcb0e91ac2" style="text-align: left;">SystemName</p></td><td colspan="1" rowspan="1"><p data-id="71f4825c-d551-4c1f-818b-c82f72a07d1c" style="text-align: left;">The unique system name of the discount (the identifier of the row).</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="91fd66be-e72c-469e-a01e-5154781b2d4c" style="text-align: left;">Tags</p></td><td colspan="1" rowspan="1"><p data-id="688c0166-f620-4664-be5e-9c5f96d7f27a" style="text-align: left;">Comma-separated search tag names the discount applies to.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="8be5b16a-b985-4093-98b7-73c124f99996" style="text-align: left;">ToDate</p></td><td colspan="1" rowspan="1"><p data-id="bbff62e3-c347-4852-b074-2523340f225c" style="text-align: left;">The date until which the discount is valid.</p></td></tr></tbody></table>

* * *

See also the overview [SyncTool – actions](https://support.sapera.io/en/articles/547-synctool-handlinger.md).

* * *

**Want to know more?**

Read more in these related articles:

[

Standard parameters for all actions

The general parameters available on most SyncTool actions: step control, error handling, timeout, etc.

](https://support.sapera.io/en/articles/648.md)
