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

# Publication Object

<div class="prose dark:prose-invert custom-html">
  <h2 id="publications-create-response-body">Publications Create Response Body</h2>

  <p>
    Response body schema for
    <strong>POST</strong>
    <code>v1/publication</code>
    and
    <strong>GET</strong>
    <code>v1/publications/create</code>.
  </p>

  <p>One of:</p>

  <ol>
    <li>
      <a href="#publications-create-voucher-response-body">Publications Create Voucher Response Body</a>
    </li>

    <li>
      <a href="#publications-create-vouchers-response-body">Publications Create Vouchers Response Body</a>
    </li>
  </ol>

  <h2 id="publications-create-voucher-response-body">Publications Create Voucher Response Body</h2>

  <p>
    Response body schema for
    <strong>POST</strong>
    <code>v1/publication</code>
    and
    <strong>GET</strong>
    <code>v1/publications/create</code>.
  </p>

  <p>All of:</p>

  <ol>
    <li>
      <a href="#publications-create-base-response-body">Publications Create Base Response Body</a>
    </li>

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

        <tbody>
          <tr>
            <td>
              <p>voucher</p>
            </td>

            <td>
              See:
              <a href="#voucher">Voucher</a>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="publications-create-vouchers-response-body">Publications Create Vouchers Response Body</h2>

  <p>
    Response body schema for
    <strong>POST</strong>
    <code>v1/publication</code>
    and
    <strong>GET</strong>
    <code>v1/publications/create</code>.
  </p>

  <p>All of:</p>

  <ol>
    <li>
      <a href="#publications-create-base-response-body">Publications Create Base Response Body</a>
    </li>

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

        <tbody>
          <tr>
            <td>
              <p>
                vouchers

                <br />

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

            <td>
              <p>Contains the unique voucher codes that was assigned by Voucherify.</p>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="publications-create-base-response-body">Publications Create Base Response Body</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 publication ID, assigned by Voucherify.</p>

          <p>
            <strong>Example:</strong>
            pub\_BbjAXnmm8e0SIm3zG8qvvFCP0KuLywtp
          </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
            <code>publication</code>.
          </p>

          <p>
            Available values:
            <code>publication</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 publication was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-09-23T09:57:00.434Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            customer\_id

            <br />

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

        <td>
          <p>Unique customer ID of the customer receiving the publication.</p>

          <p>
            <strong>Example:</strong>
            cust\_eWgXlBBiY6THFRJwX45Iakv4
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            tracking\_id

            <br />

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

        <td>
          <p>
            Customer's
            <code>source\_id</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            metadata

            <br />

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

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

      <tr>
        <td>
          <p>
            channel

            <br />

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

        <td>
          <p>How the publication was originated. It can be your own custom channel or an example value provided here.</p>

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

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

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>The merchant's publication ID if it is different from the Voucherify publication ID. It's an optional tracking identifier of a publication. It is really useful in case of an integration between multiple systems. It can be a publication ID from a CRM system, database or 3rd-party service.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            result

            <br />

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

        <td>
          <p>Status of the publication attempt.</p>

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

      <tr>
        <td>
          <p>customer</p>
        </td>

        <td>
          See:
          <a href="#customer-with-summary-loyalty-referrals">Customer With Summary Loyalty Referrals</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            vouchers\_id

            <br />

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

        <td>
          <p>Contains the unique internal voucher ID that was assigned by Voucherify.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="voucher">Voucher</h2>
  <p>This is an object representing a voucher with categories and validation rules assignments.</p>
  <p>All of:</p>

  <ol>
    <li>
      <a href="#voucher-base">Voucher Base</a>
    </li>

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

        <tbody>
          <tr>
            <td>
              <p>
                categories

                <br />

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

            <td>
              <p>Contains details about the category.</p>
              Array of
              <a href="#category">Category</a>
            </td>
          </tr>

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

            <td>
              See:
              <a href="#validation-rules-assignments-list">Validation Rules Assignments List</a>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="customer-with-summary-loyalty-referrals">Customer With Summary Loyalty Referrals</h2>
  <p>All of:</p>

  <ol>
    <li>
      <h3>Customer Response Data</h3>

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

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

                <br />

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

            <td>
              <p>The ID of an existing customer that will be linked to redemption in this request.</p>
            </td>
          </tr>

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

                <br />

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

            <td>
              <p>A unique identifier of the customer who validates a voucher. It can be a customer ID or email from a CRM system, database, or a third-party service. If you also pass a customer ID (unique ID assigned by Voucherify), the source ID will be ignored.</p>
            </td>
          </tr>

          <tr>
            <td>
              <p>summary</p>
            </td>

            <td>
              <a href="#customer-summary">Customer Summary</a>
            </td>
          </tr>

          <tr>
            <td>
              <p>loyalty</p>
            </td>

            <td>
              <a href="#customer-loyalty">Customer Loyalty</a>
            </td>
          </tr>

          <tr>
            <td>
              <p>referrals</p>
            </td>

            <td>
              <a href="#customer-referrals">Customer Referrals</a>
            </td>
          </tr>

          <tr>
            <td>
              <p>
                system\_metadata

                <br />

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

            <td>
              <p>Object used to store system metadata information.</p>
            </td>
          </tr>

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

                <br />

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

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

              <p>
                <strong>Example:</strong>
                2022-08-30T06:32:07.380Z
              </p>
            </td>
          </tr>

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

                <br />

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

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

              <p>
                <strong>Example:</strong>
                2022-08-31T06:32:07.380Z
              </p>
            </td>
          </tr>

          <tr>
            <td>
              <p>
                assets

                <br />

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

            <td>
              <p>Contains information about the customer's cockpit.</p>
              <p>⚠️ Warning: Customer cockpits were removed. The customer cockpit URLs redirect to customer preference center.</p>

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

                <tbody>
                  <tr>
                    <td>
                      <p>
                        cockpit\_url

                        <br />

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

                    <td>
                      <p>URL address to customer preference center. Previously, a customer's cockpit URL address.</p>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        cockpit\_preference\_center\_url

                        <br />

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

                    <td>
                      <p>URL address to customer preference center.</p>
                    </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.</p>

              <p>
                Available values:
                <code>customer</code>
              </p>
            </td>
          </tr>
        </tbody>
      </table>
    </li>

    <li>
      <a href="#customer-base">Customer Base</a>
    </li>
  </ol>

  <h2 id="voucher-base">Voucher Base</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>Assigned by the Voucherify API, identifies the voucher.</p>

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

      <tr>
        <td>
          <p>
            code

            <br />

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

        <td>
          <p>A code that identifies a voucher. Pattern can use all letters of the English alphabet, Arabic numerals, and special characters.</p>

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

      <tr>
        <td>
          <p>
            campaign

            <br />

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

        <td>
          <p>A unique campaign name, identifies the voucher's parent campaign.</p>

          <p>
            <strong>Example:</strong>
            Gift Card Campaign
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Assigned by the Voucherify API, identifies the voucher's parent campaign.</p>

          <p>
            <strong>Example:</strong>
            camp\_FNYR4jhqZBM9xTptxDGgeNBV
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            category

            <br />

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

        <td>
          <p>Tag defining the category that this voucher belongs to. Useful when listing vouchers using the List Vouchers endpoint.</p>
        </td>
      </tr>

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

            <br />

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

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

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

      <tr>
        <td>
          <p>
            type

            <br />

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

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

          <p>
            Available values:
            <code>GIFT\_VOUCHER</code>,
            <code>DISCOUNT\_VOUCHER</code>,
            <code>LOYALTY\_CARD</code>
          </p>
        </td>
      </tr>

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

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

      <tr>
        <td>
          <p>
            gift

            <br />

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

        <td>
          <p>
            Object representing gift parameters. Child attributes are present only if
            <code>type</code>
            is
            <code>GIFT\_VOUCHER</code>.
            Defaults to
            <code>null</code>.
          </p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    amount

                    <br />

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

                <td>
                  <p>
                    Total gift card income over the lifetime of the card. The value is multiplied by 100 to represent 2 decimal places. For example
                    <code>10000 cents</code>
                    for
                    <code>\$100.00</code>.
                  </p>

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

              <tr>
                <td>
                  <p>
                    subtracted\_amount

                    <br />

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

                <td>
                  <p>
                    Total amount of subtracted credits over the gift card lifetime. The value is multiplied by 100 to represent 2 decimal places. For example
                    <code>10000 cents</code>
                    for
                    <code>\$100.00</code>.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    balance

                    <br />

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

                <td>
                  <p>
                    Available funds. The value is multiplied by 100 to represent 2 decimal places. For example
                    <code>10000 cents</code>
                    for
                    <code>\$100.00</code>.
                  </p>

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

              <tr>
                <td>
                  <p>
                    effect

                    <br />

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

                <td>
                  <p>Defines how the credits are applied to the customer's order.</p>

                  <p>
                    Available values:
                    <code>APPLY\_TO\_ORDER</code>,
                    <code>APPLY\_TO\_ITEMS</code>
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            loyalty\_card

            <br />

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

        <td>
          <p>
            Object representing loyalty card parameters. Child attributes are present only if
            <code>type</code>
            is
            <code>LOYALTY\_CARD</code>.
            Defaults to
            <code>null</code>.
          </p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    points

                    <br />

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

                <td>
                  <p>Total number of points added to the loyalty card over its lifespan.</p>

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

              <tr>
                <td>
                  <p>
                    balance

                    <br />

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

                <td>
                  <p>
                    Points available for reward redemption. This is calculated as follows:
                    <code>balance</code>
                    \=
                    <code>points</code>
                    \-
                    <code>expired\_points</code>
                    \-
                    <code>subtracted\_points</code>
                    \-
                    <code>redemption.redeemed\_points</code>.
                  </p>

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

              <tr>
                <td>
                  <p>
                    next\_expiration\_date

                    <br />

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

                <td>
                  <p>The next closest date when the next set of points are due to expire.</p>

                  <p>
                    <strong>Example:</strong>
                    2023-05-30
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    next\_expiration\_points

                    <br />

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

                <td>
                  <p>The amount of points that are set to expire next.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    pending\_points

                    <br />

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

                <td>
                  <p>Shows the number of pending points that will be added to the loyalty card when they are activated automatically or manually.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    expired\_points

                    <br />

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

                <td>
                  <p>Shows the total number of expired points over the lifetime of the loyalty card.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    subtracted\_points

                    <br />

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

                <td>
                  <p>Shows the total number of subtracted points over the lifetime of the loyalty card.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

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

            <br />

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

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

          <p>
            <strong>Example:</strong>
            2021-12-01T00:00:00.000Z
          </p>
        </td>
      </tr>

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

            <br />

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

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

          <p>
            <strong>Example:</strong>
            2021-12-31T00: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>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>
            A flag to toggle the voucher on or off. You can disable a voucher 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>
              voucher
            </li>

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

      <tr>
        <td>
          <p>
            additional\_info

            <br />

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

        <td>
          <p>An optional field to keep any extra textual information about the code such as a code description and details.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            metadata

            <br />

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

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

      <tr>
        <td>
          <p>assets</p>
        </td>

        <td>
          See:
          <a href="#voucher-assets">Voucher Assets</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            is\_referral\_code

            <br />

            <code>boolean</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>
            Flag indicating whether this voucher is a referral code;
            <code>true</code>
            for campaign type
            <code>REFERRAL\_PROGRAM</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 voucher was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2021-12-22T10:13:06.487Z
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Timestamp representing the date and time when the voucher was last updated in ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2021-12-22T10:14:45.316Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            holder\_id

            <br />

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

        <td>
          <p>Unique customer identifier of the redeemable holder. It equals to the customer ID assigned by Voucherify.</p>

          <p>
            <strong>Example:</strong>
            cust\_eWgXlBBiY6THFRJwX45Iakv4
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            referrer\_id

            <br />

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

        <td>
          <p>Unique identifier of the referring person.</p>

          <p>
            <strong>Example:</strong>
            cust\_Vzck5i8U3OhcEUFY6MKhN9Rv
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            object

            <br />

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

        <td>
          <p>
            The type of the object represented by JSON. Default is
            <code>voucher</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            publish

            <br />

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

        <td>
          <p>Stores a summary of publication events: an event counter and endpoint to return details of each event. Publication is an assignment of a code to a customer, e.g. through a distribution.</p>

          <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 is by default
                    <code>list</code>.
                    To get this list, you need to make a call to the endpoint returned in the
                    <code>url</code>
                    attribute.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    count

                    <br />

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

                <td>
                  <p>Publication events counter.</p>

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

              <tr>
                <td>
                  <p>
                    url

                    <br />

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

                <td>
                  <p>
                    The endpoint where this list of publications can be accessed using a
                    <strong>GET</strong>
                    method.
                    <code>/v1/vouchers/{voucher_code}/publications</code>
                  </p>

                  <p>
                    <strong>Example:</strong>
                    /v1/vouchers/WVPblOYX/publications?page=1\&limit=10
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            redemption

            <br />

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

        <td>
          <p>Stores a summary of redemptions that have been applied to the voucher.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    quantity

                    <br />

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

                <td>
                  <p>
                    How many times a voucher can be redeemed. A
                    <code>null</code>
                    value means unlimited.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    redeemed\_quantity

                    <br />

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

                <td>
                  <p>How many times a voucher has already been redeemed.</p>

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

              <tr>
                <td>
                  <p>
                    redeemed\_points

                    <br />

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

                <td>
                  <p>Total loyalty points redeemed.</p>

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

              <tr>
                <td>
                  <p>
                    object

                    <br />

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

                <td>
                  <p>
                    The type of the object represented is by default
                    <code>list</code>.
                    To get this list, you need to make a call to the endpoint returned in the url attribute.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    url

                    <br />

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

                <td>
                  <p>
                    The endpoint where this list of redemptions can be accessed using a
                    <strong>GET</strong>
                    method.
                    <code>/v1/vouchers/{voucher_code}/redemptions</code>
                  </p>

                  <p>
                    <strong>Example:</strong>
                    /v1/vouchers/WVPblOYX/redemptions?page=1\&limit=10
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </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="validation-rules-assignments-list">Validation Rules 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 rules assignments.</p>

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

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

            <br />

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

        <td>
          <p>Identifies the name of the attribute that contains the array of validation rules assignments.</p>

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

      <tr>
        <td>
          <p>
            data

            <br />

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

        <td>
          <p>Contains array of validation rules assignments.</p>
          Array of
          <a href="#business-validation-rule-assignment">Business Validation Rule Assignment</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            total

            <br />

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

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

  <h2 id="customer-summary">Customer Summary</h2>

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

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

        <td>
          See:
          <a href="#customer-summary-redemptions">Customer Summary Redemptions</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>orders</p>
        </td>

        <td>
          See:
          <a href="#customer-summary-orders">Customer Summary Orders</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="customer-loyalty">Customer Loyalty</h2>

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

    <tbody>
      <tr>
        <td>
          <p>
            points

            <br />

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

        <td>
          <p>Customer's loyalty points minus expired for all loyalty cards which the customer has.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            referred\_customers

            <br />

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

        <td>
          <p>Total number of customers referred by the customer.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            campaigns

            <br />

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

        <td>
          <p>Contains campaigns with details about point balances and how many customers were referred by the customer.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    \[propertyName]

                    <br />

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

                <td>
                  <p>Contains details about the point balances left on loyalty cards and the number of referred customers in each campaign.</p>

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

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            points

                            <br />

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

                        <td>
                          <p>Remaining point balance in campaign.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            loyalty\_tier

                            <br />

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

                        <td>
                          <p>Customer's loyalty tier within the campaign.</p>

                          <p>
                            <strong>Example:</strong>
                            ltr\_UJ5Q54Q0OvEhua87Qfv2Ki5x
                          </p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            referred\_customers

                            <br />

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

                        <td>
                          <p>Number of customers referred by the customer in campaign.</p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="customer-referrals">Customer Referrals</h2>

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

    <tbody>
      <tr>
        <td>
          <p>
            total

            <br />

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

        <td>
          <p>Total number of times this customer received a referral, i.e. was referred by another customer.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            campaigns

            <br />

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

        <td>
          <p>Contains an array of campaigns that served as the source of a referral for the customer.</p>
          Array of:
          <h3>Customer Referrals Campaigns Item</h3>

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

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

                    <br />

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

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

                  <p>
                    <strong>Example:</strong>
                    camp\_rRsfatlwN7unSeUIJDCYedal
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    referrer\_id

                    <br />

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

                <td>
                  <p>Unique referrer ID, assigned by Voucherify. This is the customer ID of a customer that is referring this customer.</p>

                  <p>
                    <strong>Example:</strong>
                    cust\_sehkNIi8Uq2qQuRqSr7xn4Zi
                  </p>
                </td>
              </tr>

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

                    <br />

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

                <td>
                  <p>Related object id</p>

                  <p>
                    <strong>Example:</strong>
                    r\_0b9d4cc4aa164dd073
                  </p>
                </td>
              </tr>

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

                    <br />

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

                <td>
                  <p>
                    Related object type, i.e.
                    <code>redemption</code>.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    date

                    <br />

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

                <td>
                  <p>Timestamp representing the date and time when the customer was referred in ISO 8601 format.</p>

                  <p>
                    <strong>Example:</strong>
                    2022-08-30T10:19:39.196Z
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="customer-base">Customer Base</h2>

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

    <tbody>
      <tr>
        <td>
          <p>
            name

            <br />

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

        <td>
          <p>Customer's first and last name.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            description

            <br />

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

        <td>
          <p>An arbitrary string that you can attach to a customer object.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            email

            <br />

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

        <td>
          <p>Customer's email address.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            phone

            <br />

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

        <td>
          <p>Customer's phone number. This parameter is mandatory when you try to send out codes to customers via an SMS channel.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            birthday

            <br />

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

        <td>
          <p>
            <code>Deprecated</code>.
            <s>Customer's birthdate; format YYYY-MM-DD</s>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            birthdate

            <br />

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

        <td>
          <p>Customer's birthdate; format YYYY-MM-DD.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            address

            <br />

            <code>object</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>Customer's address.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    city

                    <br />

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

                <td>
                  <p>City</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    state

                    <br />

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

                <td>
                  <p>State</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    line\_1

                    <br />

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

                <td>
                  <p>First line of address.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    line\_2

                    <br />

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

                <td>
                  <p>Second line of address.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    country

                    <br />

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

                <td>
                  <p>Country.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    postal\_code

                    <br />

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

                <td>
                  <p>Postal code.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            metadata

            <br />

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

        <td>
          <p>A set of custom key/value pairs that you can attach to a customer. The metadata object stores all custom attributes assigned to the customer. It can be useful for storing additional information about the customer in a structured format. This metadata can be used for validating whether the customer qualifies for a discount or it can be used in building customer segments.</p>
        </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="voucher-assets">Voucher Assets</h2>

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

    <tbody>
      <tr>
        <td>
          <p>
            qr

            <br />

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

        <td>
          <p>Stores Quick Response (QR) representation of encrypted code.</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>Encrypted voucher code ID.</p>

                  <p>
                    <strong>Example:</strong>
                    U2FsdGVkX19ucFhvVmBVpVYG5KoswTsjSIaqoKg5L9ie4BK+t4pp7U7oFzjGJzj9q/bmuMOj9mEFiVKDMIkSaruKedMvHbKoPX5Sg+BaZk5QwXMf8k/OzSlOEVybpwSq+AiqPoNtjeuqtIgkDyvT6Q==
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    url

                    <br />

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

                <td>
                  <p>URL to QR code</p>

                  <p>
                    <em>Optional:</em>
                    Attach query parameters to base URL to customize the image of the encrypted voucher code.
                  </p>

                  <ul>
                    <li>
                      <code>size</code>
                      : integer value from
                      <code>1</code>
                      to
                      <code>100</code>
                    </li>

                    <li>
                      <code>format</code>
                      : string, either
                      <code>png</code>
                      (default) or
                      <code>svg</code>
                    </li>
                  </ul>

                  <p>
                    <strong>Example:</strong>
                    [https://dev.dl.voucherify.io/api/v1/assets/qr/U2FsdGVkX19ucFhvVmBVpVYG5KoswTsjSIaqoKg5L9ie4BK%2Bt4pp7U7oFzjGJzj9q%2FbmuMOj9mEFiVKDMIkSaruKedMvHbKoPX5Sg%2BBaZk5QwXMf8k%2FOzSlOEVybpwSq%2BAiqPoNtjeuqtIgkDyvT6Q%3D%3D](https://dev.dl.voucherify.io/api/v1/assets/qr/U2FsdGVkX19ucFhvVmBVpVYG5KoswTsjSIaqoKg5L9ie4BK%2Bt4pp7U7oFzjGJzj9q%2FbmuMOj9mEFiVKDMIkSaruKedMvHbKoPX5Sg%2BBaZk5QwXMf8k%2FOzSlOEVybpwSq%2BAiqPoNtjeuqtIgkDyvT6Q%3D%3D)
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            barcode

            <br />

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

        <td>
          <p>Stores barcode representation of encrypted code.</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>Encrypted voucher code ID.</p>

                  <p>
                    <strong>Example:</strong>
                    U2FsdGVkX19eJhGfWwUrH9+tulBkON+AnMktic+N6CVWzZ9+fHVxuVx22WakrzxiWXy0skuvvEHSeZIw9HlgyIJ+kJ1iPdUKpyENuNYJKzoZlO0mmTf6WQM6/pFs61apEn9SJx32ttCF6d3oxKISQQ==
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    url

                    <br />

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

                <td>
                  <p>URL to barcode</p>

                  <p>
                    <em>Optional:</em>
                    Attach query parameters to base URL to customize the image of the encrypted voucher code.
                  </p>

                  <ul>
                    <li>
                      <code>size</code>
                      : integer value from
                      <code>1</code>
                      to
                      <code>100</code>
                    </li>

                    <li>
                      <code>format</code>
                      : string, either
                      <code>png</code>
                      (default) or
                      <code>svg</code>
                    </li>
                  </ul>

                  <p>
                    <strong>Example:</strong>
                    [https://dev.dl.voucherify.io/api/v1/assets/barcode/U2FsdGVkX19eJhGfWwUrH9%2BtulBkON%2BAnMktic%2BN6CVWzZ9%2BfHVxuVx22WakrzxiWXy0skuvvEHSeZIw9HlgyIJ%2BkJ1iPdUKpyENuNYJKzoZlO0mmTf6WQM6%2FpFs61apEn9SJx32ttCF6d3oxKISQQ%3D%3D](https://dev.dl.voucherify.io/api/v1/assets/barcode/U2FsdGVkX19eJhGfWwUrH9%2BtulBkON%2BAnMktic%2BN6CVWzZ9%2BfHVxuVx22WakrzxiWXy0skuvvEHSeZIw9HlgyIJ%2BkJ1iPdUKpyENuNYJKzoZlO0mmTf6WQM6%2FpFs61apEn9SJx32ttCF6d3oxKISQQ%3D%3D)
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="business-validation-rule-assignment">Business 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>The unique identifier for a assignment</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>The unique identifier for a rule</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>The unique identifier for a related object</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>The type of related object</p>
        </td>
      </tr>

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

            <br />

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

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

          <p>
            <strong>Example:</strong>
            2022-03-09T11:19:04.819Z
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Timestamp representing the date and time when the object was last updated in ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-03-09T11:19:04.819Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            object

            <br />

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

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

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

      <tr>
        <td>
          <p>
            validation\_status

            <br />

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

        <td>
          <p>The validation status of the assignment</p>

          <p>
            Available values:
            <code>VALID</code>,
            <code>PARTIALLY\_VALID</code>,
            <code>INVALID</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            validation\_omitted\_rules

            <br />

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

        <td>
          <p>The list of omitted rules</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="customer-summary-redemptions">Customer Summary Redemptions</h2>

  <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>Total number of redemptions made by the customer.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            total\_failed

            <br />

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

        <td>
          <p>Total number of redemptions that failed.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            total\_succeeded

            <br />

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

        <td>
          <p>Total number of redemptions that succeeded.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            total\_rolled\_back

            <br />

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

        <td>
          <p>Total number of redemptions that were rolled back for the customer.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            total\_rollback\_failed

            <br />

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

        <td>
          <p>Total number of redemption rollbacks that failed.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            total\_rollback\_succeeded

            <br />

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

        <td>
          <p>Total number of redemption rollbacks that succeeded.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            gift

            <br />

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

        <td>
          <p>Summary of gift card credits.</p>

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

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

                    <br />

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

                <td>
                  <p>
                    Total amount of gift card credits redeemed by customer. The value is multiplied by 100 to represent 2 decimal places. For example
                    <code>10000 cents</code>
                    for
                    <code>\$100.00</code>.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    amount\_to\_go

                    <br />

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

                <td>
                  <p>
                    Remaining gift card balance across all gift cards. The value is multiplied by 100 to represent 2 decimal places. For example
                    <code>10000 cents</code>
                    for
                    <code>\$100.00</code>.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            loyalty\_card

            <br />

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

        <td>
          <p>Summary of loyalty points.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    redeemed\_points

                    <br />

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

                <td>
                  <p>Total number of loyalty points redeemed by the customer.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    points\_to\_go

                    <br />

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

                <td>
                  <p>Sum of remaining available point balance across all loyalty cards.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="customer-summary-orders">Customer Summary Orders</h2>

  <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>
            The total amount spent by the customer. The value is multiplied by 100 to represent 2 decimal places. For example
            <code>10000 cents</code>
            for
            <code>\$100.00</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            total\_count

            <br />

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

        <td>
          <p>Total number of orders made by the customer.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            average\_amount

            <br />

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

        <td>
          <p>
            Average amount spent on orders.
            <code>total\_amount</code>
            ÷
            <code>total\_count</code>.
            The value is multiplied by 100 to represent 2 decimal places. For example
            <code>10000 cents</code>
            for
            <code>\$100.00</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            last\_order\_amount

            <br />

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

        <td>
          <p>
            Amount spent on last order. The value is multiplied by 100 to represent 2 decimal places. For example
            <code>10000 cents</code>
            for
            <code>\$100.00</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            last\_order\_date

            <br />

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

        <td>
          <p>Timestamp representing the date and time of the customer's last order in ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-08-30T11:51:08.029Z
          </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="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>
