> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dc.ag/llms.txt
> Use this file to discover all available pages before exploring further.

# Coupon Codes - Setup

> Basic setup of the dynamic commerce Coupon Codes extension

After installing the "dynamic commerce Coupon Codes" extension, some basic settings must first be configured. The following provides a brief overview of how this setup works and the options available to you.

<Steps>
  <Step>
    ## Step 1: Navigate to the Setup

    You can access the Coupon Codes setup by entering "Coupon Codes Setup" in the search bar and clicking on the corresponding search result.

    A new tab with the heading "Coupon Codes Setup" should then open.

    <Columns cols={2}>
      <Column>
        <Frame>
          <img src="https://mintcdn.com/dcag/ci5dr2UmacB3fTe9/images/bc-coupon-codes/einrichtung/navigation-zur-einrichtung.png?fit=max&auto=format&n=ci5dr2UmacB3fTe9&q=85&s=11b21b25398c33e0ddad770b06be8e37" alt="Search bar with Coupon Codes Setup" width="1080" height="643" data-path="images/bc-coupon-codes/einrichtung/navigation-zur-einrichtung.png" />
        </Frame>
      </Column>

      <Column>
        <Frame>
          <img src="https://mintcdn.com/dcag/ci5dr2UmacB3fTe9/images/bc-coupon-codes/einrichtung/gutschein-codes-setup-tab.png?fit=max&auto=format&n=ci5dr2UmacB3fTe9&q=85&s=8f1a90bdc3d16606ce2b68f0dc2a98c6" alt="Coupon Codes Setup Tab" width="1080" height="643" data-path="images/bc-coupon-codes/einrichtung/gutschein-codes-setup-tab.png" />
        </Frame>
      </Column>
    </Columns>
  </Step>

  <Step>
    ## Step 2: Configure General Settings

    First, the general settings must be configured.

    The following fields in the "General" menu must be filled in or edited:

    * **Voucher Posting Account No.:** Here you select the account to which the value vouchers are posted. In our example, this is account "1700".
    * **Voucher Journal Template:** Here you can select a journal template for the value vouchers. In our example, we have selected the template "General".
    * **Voucher Journal Batch Name:** Here you can select the journal batch name with which the value voucher is posted. In our example, this is the journal batch name "Standard".

    <Columns cols={3}>
      <Column>
        <Frame>
          <img src="https://mintcdn.com/dcag/ci5dr2UmacB3fTe9/images/bc-coupon-codes/einrichtung/gutschein-buchung-konto.png?fit=max&auto=format&n=ci5dr2UmacB3fTe9&q=85&s=891cd8d7d7bf37c7a65de8e46d701e15" alt="Voucher Posting Account No. field" width="1080" height="643" data-path="images/bc-coupon-codes/einrichtung/gutschein-buchung-konto.png" />
        </Frame>
      </Column>

      <Column>
        <Frame>
          <img src="https://mintcdn.com/dcag/ci5dr2UmacB3fTe9/images/bc-coupon-codes/einrichtung/gutschein-blattvorlage.png?fit=max&auto=format&n=ci5dr2UmacB3fTe9&q=85&s=530d1648666278d35b37408329e3f78e" alt="Voucher Journal Template field" width="1080" height="643" data-path="images/bc-coupon-codes/einrichtung/gutschein-blattvorlage.png" />
        </Frame>
      </Column>

      <Column>
        <Frame>
          <img src="https://mintcdn.com/dcag/ci5dr2UmacB3fTe9/images/bc-coupon-codes/einrichtung/gutschein-blattname.png?fit=max&auto=format&n=ci5dr2UmacB3fTe9&q=85&s=91cd300cf6cf68daeb38ef5bad0263d4" alt="Voucher Journal Batch Name field" width="1080" height="643" data-path="images/bc-coupon-codes/einrichtung/gutschein-blattname.png" />
        </Frame>
      </Column>
    </Columns>
  </Step>

  <Step>
    ## Step 3: Configure Posting Settings

    Next, the posting settings must be configured.

    First, use the "Posting Type Coupons" field to define the posting type for the coupons. This affects the posting type used to determine how coupons are to be added to orders.

    The following options are available for posting types:

    * G/L Account
    * Resource
    * Item
    * Charge

    In our example, we select the posting type "Resource".

    A sales number for the discount coupons can then also be defined. This is done via the "Sales No. Discount Coupons" field.

    <Info>
      This sales number should be selected based on the posting type that will subsequently be inserted into the order.
    </Info>

    <Columns cols={3}>
      <Column>
        <Frame>
          <img src="https://mintcdn.com/dcag/ci5dr2UmacB3fTe9/images/bc-coupon-codes/einrichtung/buchungstyp-gutscheine.png?fit=max&auto=format&n=ci5dr2UmacB3fTe9&q=85&s=2986d8b72407063e130b180e6b04197f" alt="Posting Type Coupons field" width="1080" height="643" data-path="images/bc-coupon-codes/einrichtung/buchungstyp-gutscheine.png" />
        </Frame>
      </Column>

      <Column>
        <Frame>
          <img src="https://mintcdn.com/dcag/ci5dr2UmacB3fTe9/images/bc-coupon-codes/einrichtung/buchungstyp-auswahl.png?fit=max&auto=format&n=ci5dr2UmacB3fTe9&q=85&s=c0661c2eb7a6bebecdc9b040548b1367" alt="Posting Type selection menu" width="1080" height="643" data-path="images/bc-coupon-codes/einrichtung/buchungstyp-auswahl.png" />
        </Frame>
      </Column>

      <Column>
        <Frame>
          <img src="https://mintcdn.com/dcag/ci5dr2UmacB3fTe9/images/bc-coupon-codes/einrichtung/vk-nr-rabattgutscheine.png?fit=max&auto=format&n=ci5dr2UmacB3fTe9&q=85&s=93f32aacadb785c72d9c129d42543ea0" alt="Sales No. Discount Coupons field" width="1080" height="643" data-path="images/bc-coupon-codes/einrichtung/vk-nr-rabattgutscheine.png" />
        </Frame>
      </Column>
    </Columns>
  </Step>

  <Step>
    ## Step 4: Define VAT Identifiers

    Finally, you can define various VAT identifiers.

    In the fields "VAT Identifier 1", "VAT Identifier 2", and "VAT Identifier 3", you can define three VAT product groups for the different VAT types in a given country.

    The coupon in the order is split based on these VAT types.

    It is also possible to define different sales numbers, based on the posting type, for the three VAT types.

    You can simply assign these in the fields "Sales No. Discount Coupons VAT Identifier 1", "Sales No. Discount Coupons VAT Identifier 2", and "Sales No. Discount Coupons VAT Identifier 3" for the individual VAT identifiers.

    <Columns cols={2}>
      <Column>
        <Frame>
          <img src="https://mintcdn.com/dcag/ci5dr2UmacB3fTe9/images/bc-coupon-codes/einrichtung/mwst-kennzeichen-felder.png?fit=max&auto=format&n=ci5dr2UmacB3fTe9&q=85&s=ff6a27d01de0a6c879c48c1f026af473" alt="VAT Identifier fields" width="1080" height="643" data-path="images/bc-coupon-codes/einrichtung/mwst-kennzeichen-felder.png" />
        </Frame>
      </Column>

      <Column>
        <Frame>
          <img src="https://mintcdn.com/dcag/ci5dr2UmacB3fTe9/images/bc-coupon-codes/einrichtung/vk-nr-mwst-kennzeichen.png?fit=max&auto=format&n=ci5dr2UmacB3fTe9&q=85&s=408dd1c3f0b625b0b6587ef5121bcf5f" alt="Sales numbers for VAT identifiers" width="1080" height="643" data-path="images/bc-coupon-codes/einrichtung/vk-nr-mwst-kennzeichen.png" />
        </Frame>
      </Column>
    </Columns>

    <Check>
      The extension is now ready for use. In the next step, you can create a coupon code.
    </Check>
  </Step>
</Steps>

## Related Topics

<CardGroup cols={2}>
  <Card title="Create Coupon Codes" icon="ticket" href="/docs/en/bc-coupon-codes/user-guide/gutschein-codes-erstellen">
    Create a new coupon code and define the value type.
  </Card>

  <Card title="Generate Coupon Lines" icon="wand-magic-sparkles" href="/docs/en/bc-coupon-codes/user-guide/gutscheinzeilen-erzeugen">
    Generate coupon lines automatically with prefix, suffix, and conditions.
  </Card>
</CardGroup>
