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

# Promotion Tier Object

<div class="prose dark:prose-invert custom-html">
  <h2 id="promotion-tier">Promotion Tier</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Unique promotion tier ID.</p>

          <p>
            <strong>Example:</strong>
            promo\_63fYCt81Aw0h7lzyRkrGZh9p
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            created\_at

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the promotion tier was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2021-12-15T11:34:01.333Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            updated\_at

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the promotion tier was updated. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-02-09T09:20:05.603Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Name of the promotion tier.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            banner

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Text to be displayed to your customers on your website.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            action

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Contains details about the discount applied by the promotion tier.</p>

          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>discount</p>
                </td>

                <td>
                  See:
                  <a href="#discount">Discount</a>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            metadata

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>The metadata object stores all custom attributes assigned to the promotion tier. A set of key/value pairs that you can attach to a promotion tier object. It can be useful for storing additional information about the promotion tier in a structured format.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            hierarchy

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>The promotions hierarchy defines the order in which the discounts from different tiers will be applied to a customer's order. If a customer qualifies for discounts from more than one tier, discounts will be applied in the order defined in the hierarchy.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            promotion\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Promotion unique ID.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            campaign

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Contains details about promotion tier's parent campaign.</p>

          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    id

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>Unique campaign ID.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    start\_date

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>
                    Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is
                    <em>inactive before</em>
                    this date.
                  </p>

                  <p>
                    <strong>Example:</strong>
                    2022-09-22T00:00:00.000Z
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    expiration\_date

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>
                    Expiration timestamp defines when the campaign expires in ISO 8601 format. Campaign is
                    <em>inactive after</em>
                    this date.
                  </p>

                  <p>
                    <strong>Example:</strong>
                    2022-09-30T00:00:00.000Z
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>validity\_timeframe</p>
                </td>

                <td>
                  See:
                  <a href="#validity-timeframe">Validity Timeframe</a>
                </td>
              </tr>

              <tr>
                <td>
                  <p>validity\_day\_of\_week</p>
                </td>

                <td>
                  See:
                  <a href="#validity-day-of-week">Validity Day Of Week</a>
                </td>
              </tr>

              <tr>
                <td>
                  <p>validity\_hours</p>
                </td>

                <td>
                  See:
                  <a href="#validity-hours">Validity Hours</a>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    active

                    <br />

                    <code>boolean</code>
                  </p>
                </td>

                <td>
                  <p>
                    A flag indicating whether the campaign is active or not active. A campaign can be disabled even though it's within the active period defined by the
                    <code>start\_date</code>
                    and
                    <code>expiration\_date</code>
                    using the
                    <a href="/api-reference/disable-campaign">Disable Campaign</a>
                    endpoint.
                  </p>

                  <ul>
                    <li>
                      <code>true</code>
                      indicates an
                      <em>active</em>
                      campaign
                    </li>

                    <li>
                      <code>false</code>
                      indicates an
                      <em>inactive</em>
                      campaign
                    </li>
                  </ul>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    category\_id

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>Unique category ID that this campaign belongs to.</p>

                  <p>
                    <strong>Example:</strong>
                    cat\_0b688929a2476386a6
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    object

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>The type of the object represented by the campaign object. This object stores information about the campaign.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            campaign\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Promotion tier's parent campaign's unique ID.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            active

            <br />

            <code>boolean</code>
          </p>
        </td>

        <td>
          <p>
            A flag to toggle the promotion tier on or off. You can disable a promotion tier even though it's within the active period defined by the
            <code>start\_date</code>
            and
            <code>expiration\_date</code>.
          </p>

          <ul>
            <li>
              <code>true</code>
              indicates an
              <em>active</em>
              promotion tier
            </li>

            <li>
              <code>false</code>
              indicates an
              <em>inactive</em>
              promotion tier
            </li>
          </ul>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            start\_date

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            Activation timestamp defines when the promotion tier starts to be active in ISO 8601 format. Promotion tier is
            <em>inactive before</em>
            this date.
          </p>

          <p>
            <strong>Example:</strong>
            2022-09-23T00:00:00.000Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            expiration\_date

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            Activation timestamp defines when the promotion tier expires in ISO 8601 format. Promotion tier is
            <em>inactive after</em>
            this date.
          </p>

          <p>
            <strong>Example:</strong>
            2022-09-26T00:00:00.000Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>validity\_timeframe</p>
        </td>

        <td>
          See:
          <a href="#validity-timeframe">Validity Timeframe</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>validity\_day\_of\_week</p>
        </td>

        <td>
          See:
          <a href="#validity-day-of-week">Validity Day Of Week</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>validity\_hours</p>
        </td>

        <td>
          See:
          <a href="#validity-hours">Validity Hours</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            summary

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Contains statistics about promotion tier redemptions and orders.</p>

          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    redemptions

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Contains statistics about promotion tier redemptions.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            total\_redeemed

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Number of times the promotion tier was redeemed.</p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    orders

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Contains statistics about orders related to the promotion tier.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            total\_amount

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Sum of order totals.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            total\_discount\_amount

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Sum of total discount applied using the promotion tier.</p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            object

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The type of the object represented by JSON. This object stores information about the promotion tier.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>validation\_rule\_assignments</p>
        </td>

        <td>
          See:
          <a href="#validation-rule-assignments-list">Validation Rule Assignments List</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            category\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Promotion tier category ID.</p>

          <p>
            <strong>Example:</strong>
            cat\_0c9da30e7116ba6bba
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            categories

            <br />

            <code>array</code>
          </p>
        </td>

        <td>
          Array of
          <a href="#category">Category</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="discount">Discount</h2>
  <p>Contains information about discount.</p>
  <p>One of:</p>

  <ol>
    <li>
      <a href="#amount">Amount</a>
    </li>

    <li>
      <a href="#unit">Unit</a>
    </li>

    <li>
      <a href="#unit-multiple">Unit Multiple</a>
    </li>

    <li>
      <a href="#percent">Percent</a>
    </li>

    <li>
      <a href="#fixed">Fixed</a>
    </li>
  </ol>

  <h2 id="validity-timeframe">Validity Timeframe</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            duration

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            Defines the amount of time an earning rule will be active in ISO 8601 format. For example, an earning rule with a
            <code>duration</code>
            of
            <code>PT1H</code>
            will be valid for a duration of one hour.
          </p>

          <p>
            <strong>Example:</strong>
            PT1H
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            interval

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            Defines the intervening time between two time points in ISO 8601 format, expressed as a duration. For example, an earning rule with an
            <code>interval</code>
            of
            <code>P2D</code>
            will be valid every other day.
          </p>

          <p>
            <strong>Example:</strong>
            P2D
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="validity-day-of-week">Validity Day Of Week</h2>
  <p>Integer array corresponding to the particular days of the week in which the voucher is valid.</p>

  <ul>
    <li>
      <code>0</code>
      Sunday
    </li>

    <li>
      <code>1</code>
      Monday
    </li>

    <li>
      <code>2</code>
      Tuesday
    </li>

    <li>
      <code>3</code>
      Wednesday
    </li>

    <li>
      <code>4</code>
      Thursday
    </li>

    <li>
      <code>5</code>
      Friday
    </li>

    <li>
      <code>6</code>
      Saturday
    </li>
  </ul>

  <h2 id="validity-hours">Validity Hours</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            daily

            <br />

            <code>array</code>
          </p>
        </td>

        <td>
          <p>Defines the recurring period(s) when the resource is active. The periods should not overlap.</p>
          Array of:

          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    start\_time

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>
                    Defines the starting hour of validity in the HH:mm format. The resource is
                    <em>inactive before</em>
                    this time.
                  </p>

                  <p>
                    <strong>Example:</strong>
                    12:00
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    days\_of\_week

                    <br />

                    <code>array</code>
                  </p>
                </td>

                <td>
                  <p>Integer array corresponding to the particular days of the week in which the resource is valid.</p>

                  <ul>
                    <li>
                      <code>0</code>
                      Sunday
                    </li>

                    <li>
                      <code>1</code>
                      Monday
                    </li>

                    <li>
                      <code>2</code>
                      Tuesday
                    </li>

                    <li>
                      <code>3</code>
                      Wednesday
                    </li>

                    <li>
                      <code>4</code>
                      Thursday
                    </li>

                    <li>
                      <code>5</code>
                      Friday
                    </li>

                    <li>
                      <code>6</code>
                      Saturday
                    </li>
                  </ul>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    expiration\_time

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>
                    Defines the ending hour of validity in the HH:mm format. The resource is
                    <em>inactive after</em>
                    this time.
                  </p>

                  <p>
                    <strong>Example:</strong>
                    14:00
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="validation-rule-assignments-list">Validation Rule Assignments List</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            object

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The type of the object represented by JSON. This object stores information about validation rule assignments.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            data\_ref

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Identifies the name of the JSON property that contains the array of validation rule assignments.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            data

            <br />

            <code>array</code>
          </p>
        </td>

        <td>
          <p>A dictionary that contains an array of validation rule assignments.</p>
          Array of
          <a href="#validation-rule-assignment">Validation Rule Assignment</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            total

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Total number of validation rule assignments.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="category">Category</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Unique category ID assigned by Voucherify.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Category name.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            hierarchy

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            object

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The type of the object represented by the JSON. This object stores information about the category.</p>

          <p>
            Available values:
            <code>category</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            created\_at

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the category was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-07-14T10:45:13.156Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            updated\_at

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the category was updated. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-08-16T10:52:08.094Z
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="amount">Amount</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Defines the type of the voucher.</p>

          <p>
            Available values:
            <code>AMOUNT</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            amount\_off

            <br />

            <code>number</code>
          </p>
        </td>

        <td>
          <p>Amount taken off the subtotal of a price. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a \$10 discount is written as 1000.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            amount\_off\_formula

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Formula used to dynamically calculate the discount.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            aggregated\_amount\_limit

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Maximum discount amount per order.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>effect</p>
        </td>

        <td>
          <p>Defines how the discount is applied to the customer's order.</p>
          <a href="#discount-amount-vouchers-effect-types">Discount Amount Vouchers Effect Types</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            is\_dynamic

            <br />

            <code>boolean</code>
          </p>
        </td>

        <td>
          <p>Flag indicating whether the discount was calculated using a formula.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="unit">Unit</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Discount type.</p>

          <p>
            Available values:
            <code>UNIT</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            unit\_off

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Number of units to be granted a full value discount.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            unit\_off\_formula

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Formula used to dynamically calculate the number of units.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>effect</p>
        </td>

        <td>
          <p>Defines how the unit is added to the customer's order.</p>
          <a href="#discount-unit-vouchers-effect-types">Discount Unit Vouchers Effect Types</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            unit\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The product deemed as free, chosen from product inventory (e.g. time, items).</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>product</p>
        </td>

        <td>
          <p>Contains information about the product.</p>
          <a href="#simple-product-discount-unit">Simple Product Discount Unit</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>sku</p>
        </td>

        <td>
          See:
          <a href="#simple-sku-discount-unit">Simple Sku Discount Unit</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            is\_dynamic

            <br />

            <code>boolean</code>
          </p>
        </td>

        <td>
          <p>Flag indicating whether the discount was calculated using a formula.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="unit-multiple">Unit Multiple</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Discount type.</p>

          <p>
            Available values:
            <code>UNIT</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            effect

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Defines how the discount is applied to the customer's order.</p>

          <p>
            Available values:
            <code>ADD\_MANY\_ITEMS</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            units

            <br />

            <code>array</code>
          </p>
        </td>

        <td>
          Array of
          <a href="#one-unit">One Unit</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="percent">Percent</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Defines the type of the voucher.</p>

          <p>
            Available values:
            <code>PERCENT</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            percent\_off

            <br />

            <code>number</code>
          </p>
        </td>

        <td>
          <p>The percent discount that the customer will receive.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            percent\_off\_formula

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Formula used to dynamically calculate the discount.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            amount\_limit

            <br />

            <code>number</code>
          </p>
        </td>

        <td>
          <p>Upper limit allowed to be applied as a discount. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a \$6 maximum discount is written as 600.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            aggregated\_amount\_limit

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Maximum discount amount per order.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>effect</p>
        </td>

        <td>
          <p>Defines how the discount is applied to the customer's order.</p>
          <a href="#discount-percent-vouchers-effect-types">Discount Percent Vouchers Effect Types</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            is\_dynamic

            <br />

            <code>boolean</code>
          </p>
        </td>

        <td>
          <p>Flag indicating whether the discount was calculated using a formula.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="fixed">Fixed</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Defines the type of the voucher.</p>

          <p>
            Available values:
            <code>FIXED</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            fixed\_amount

            <br />

            <code>number</code>
          </p>
        </td>

        <td>
          <p>
            Sets a fixed value for an order total or the item price. The value is multiplied by 100 to precisely represent 2 decimal places. For example, a \$10 discount is written as 1000. If the fixed amount is calculated by the formula, i.e. the
            <code>fixed\_amount\_formula</code>
            parameter is present in the fixed amount definition, this value becomes the
            <strong>fallback value</strong>.
            As a result, if the formula cannot be calculated due to missing metadata, for example, this value will be used as the fixed value.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            fixed\_amount\_formula

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Formula used to dynamically calculate the discount.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>effect</p>
        </td>

        <td>
          <p>Defines how the discount is applied to the customer's order.</p>
          <a href="#discount-fixed-vouchers-effect-types">Discount Fixed Vouchers Effect Types</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            is\_dynamic

            <br />

            <code>boolean</code>
          </p>
        </td>

        <td>
          <p>Flag indicating whether the discount was calculated using a formula.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="validation-rule-assignment">Validation Rule Assignment</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Validation rule assignment ID.</p>

          <p>
            <strong>Example:</strong>
            asgm\_74F7QZoYbUoljwQO
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            rule\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Validation rule ID.</p>

          <p>
            <strong>Example:</strong>
            val\_4j7DCRm2IS59
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            related\_object\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The resource ID to which the validation rule was assigned.</p>

          <p>
            <strong>Example:</strong>
            v\_JtWunK6jUo7X2qOFj0SyRHq4p9tgENlT
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            related\_object\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The type of resource to which the validation rule was assigned.</p>

          <p>
            Available values:
            <code>voucher</code>,
            <code>campaign</code>,
            <code>earning\_rule</code>,
            <code>reward\_assignment</code>,
            <code>promotion\_tier</code>,
            <code>distribution</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            created\_at

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the validation rule assignment was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-02-17T08:18:15.085Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            object

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The type of the object represented by the ID.</p>

          <p>
            Available values:
            <code>validation\_rules\_assignment</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="discount-amount-vouchers-effect-types">Discount Amount Vouchers Effect Types</h2>

  <p>
    Available values:
    <code>APPLY\_TO\_ORDER</code>,
    <code>APPLY\_TO\_ITEMS</code>,
    <code>APPLY\_TO\_ITEMS\_PROPORTIONALLY</code>,
    <code>APPLY\_TO\_ITEMS\_PROPORTIONALLY\_BY\_QUANTITY</code>,
    <code>APPLY\_TO\_ITEMS\_BY\_QUANTITY</code>
  </p>

  <h2 id="discount-unit-vouchers-effect-types">Discount Unit Vouchers Effect Types</h2>

  <p>
    Available values:
    <code>ADD\_MISSING\_ITEMS</code>,
    <code>ADD\_NEW\_ITEMS</code>,
    <code>ADD\_MANY\_ITEMS</code>,
    <code>ADD\_SAME\_ITEMS</code>
  </p>

  <h2 id="simple-product-discount-unit">Simple Product Discount Unit</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Unique product ID, assigned by Voucherify.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            source\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Product's source ID.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Product name.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="simple-sku-discount-unit">Simple Sku Discount Unit</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Unique SKU ID, assigned by Voucherify.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            source\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Product variant's source ID.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Sku name</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="one-unit">One Unit</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            unit\_off

            <br />

            <code>number</code>
          </p>
        </td>

        <td>
          <p>Number of units to be granted a full value discount.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            unit\_off\_formula

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Formula used to dynamically calculate the number of units.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            effect

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Defines how the unit is added to the customer's order.</p>

          <p>
            Available values:
            <code>ADD\_NEW\_ITEMS</code>,
            <code>ADD\_MISSING\_ITEMS</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            unit\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The product deemed as free, chosen from product inventory (e.g. time, items).</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>product</p>
        </td>

        <td>
          <p>Contains information about the product.</p>
          <a href="#simple-product-discount-unit">Simple Product Discount Unit</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>sku</p>
        </td>

        <td>
          <p>Contains information about the sku.</p>
          <a href="#simple-sku-discount-unit">Simple Sku Discount Unit</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="discount-percent-vouchers-effect-types">Discount Percent Vouchers Effect Types</h2>

  <p>
    Available values:
    <code>APPLY\_TO\_ORDER</code>,
    <code>APPLY\_TO\_ITEMS</code>
  </p>

  <h2 id="discount-fixed-vouchers-effect-types">Discount Fixed Vouchers Effect Types</h2>

  <p>
    Available values:
    <code>APPLY\_TO\_ORDER</code>,
    <code>APPLY\_TO\_ITEMS</code>
  </p>
</div>
