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

# Customer Activity Object

<div class="prose dark:prose-invert custom-html">
  <h2 id="customer-activity">Customer Activity</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 event ID, assigned by Voucherify.</p>

          <p>
            <strong>Example:</strong>
            evcus\_0c150c51730c6b60b1
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            type

            <br />

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

        <td>
          <p>Event type.</p>

          <p>
            Available values:
            <code>customer.confirmed</code>,
            <code>customer.created</code>,
            <code>customer.updated</code>,
            <code>customer.deleted</code>,
            <code>customer.referred</code>,
            <code>customer.custom\_event</code>,
            <code>customer.segment.entered</code>,
            <code>customer.segment.left</code>,
            <code>customer.sms.sent</code>,
            <code>customer.sms.recovered</code>,
            <code>customer.sms.failed</code>,
            <code>customer.email.sent</code>,
            <code>customer.email.recovered</code>,
            <code>customer.email.failed</code>,
            <code>customer.activecampaign.sent</code>,
            <code>customer.activecampaign.recovered</code>,
            <code>customer.activecampaign.failed</code>,
            <code>customer.braze.sent</code>,
            <code>customer.braze.recovered</code>,
            <code>customer.braze.failed</code>,
            <code>customer.mailchimp.sent</code>,
            <code>customer.mailchimp.recovered</code>,
            <code>customer.mailchimp.failed</code>,
            <code>customer.intercom.sent</code>,
            <code>customer.intercom.recovered</code>,
            <code>customer.intercom.failed</code>,
            <code>customer.shopify.sent</code>,
            <code>customer.shopify.recovered</code>,
            <code>customer.shopify.failed</code>,
            <code>customer.klaviyo.sent</code>,
            <code>customer.klaviyo.recovered</code>,
            <code>customer.klaviyo.failed</code>,
            <code>customer.batch.sent</code>,
            <code>customer.batch.recovered</code>,
            <code>customer.batch.failed</code>,
            <code>customer.rewarded</code>,
            <code>customer.rewarded.loyalty\_points</code>,
            <code>customer.voucher.gift.balance\_added</code>,
            <code>customer.voucher.loyalty\_card.pending\_points.activated</code>,
            <code>customer.voucher.loyalty\_card.pending\_points.added</code>,
            <code>customer.voucher.loyalty\_card.pending\_points.canceled</code>,
            <code>customer.voucher.loyalty\_card.pending\_points.updated</code>,
            <code>customer.voucher.loyalty\_card.points\_activated</code>,
            <code>customer.voucher.loyalty\_card.points\_added</code>,
            <code>customer.voucher.loyalty\_card.points\_transferred</code>,
            <code>customer.voucher.loyalty\_card.points\_expired</code>,
            <code>customer.voucher.deleted</code>,
            <code>customer.publication.succeeded</code>,
            <code>customer.publication.failed</code>,
            <code>customer.validation.succeeded</code>,
            <code>customer.validation.failed</code>,
            <code>customer.redemption.failed</code>,
            <code>customer.redemption.succeeded</code>,
            <code>customer.redemption.rollback.failed</code>,
            <code>customer.redemption.rollback.succeeded</code>,
            <code>customer.order.canceled</code>,
            <code>customer.order.created</code>,
            <code>customer.order.fulfilled</code>,
            <code>customer.order.paid</code>,
            <code>customer.order.processing</code>,
            <code>customer.order.updated</code>,
            <code>customer.reward\_redemptions.created</code>,
            <code>customer.reward\_redemptions.pending</code>,
            <code>customer.reward\_redemptions.completed</code>,
            <code>customer.reward\_redemptions.rolledback</code>,
            <code>customer.loyalty.updated</code>,
            <code>customer.loyalty.tier.upgraded</code>,
            <code>customer.loyalty.tier.downgraded</code>,
            <code>customer.loyalty.tier.prolonged</code>,
            <code>customer.loyalty.tier.expiration.changed</code>,
            <code>customer.loyalty.tier.joined</code>,
            <code>customer.loyalty.tier.left</code>,
            <code>customer.holder.assignment.created</code>,
            <code>customer.holder.assignment.deleted</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            data

            <br />

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

        <td>
          <p>Contains details about the event. The objects that are returned in the data attribute differ based on the context of the event type.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>data</p>
                </td>

                <td>
                  See:
                  <a href="#customer-activity-data">Customer Activity Data</a>
                </td>
              </tr>

              <tr>
                <td>
                  <p>event\_source</p>
                </td>

                <td>
                  See:
                  <a href="#event-source">Event Source</a>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

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

            <br />

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

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

          <p>
            <strong>Example:</strong>
            2022-08-30T09:14:07.660Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            group\_id

            <br />

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

        <td>
          <p>Unique identifier of the request that caused the event.</p>

          <p>
            <strong>Example:</strong>
            v-1f36113948e50fc4ge
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="customer-activity-data">Customer Activity Data</h2>
  <p>Event data object schema.</p>
  <p>One of:</p>

  <ol>
    <li>
      <a href="#event-customer-confirmed">Event Customer Confirmed</a>
    </li>

    <li>
      <a href="#event-customer-created">Event Customer Created</a>
    </li>

    <li>
      <a href="#event-customer-updated">Event Customer Updated</a>
    </li>

    <li>
      <a href="#event-customer-deleted">Event Customer Deleted</a>
    </li>

    <li>
      <a href="#event-customer-referred">Event Customer Referred</a>
    </li>

    <li>
      <a href="#event-customer-custom-event">Event Customer Custom Event</a>
    </li>

    <li>
      <a href="#event-customer-segment-entered">Event Customer Segment Entered</a>
    </li>

    <li>
      <a href="#event-customer-segment-left">Event Customer Segment Left</a>
    </li>

    <li>
      <a href="#event-customer-sms-sent">Event Customer SMS Sent</a>
    </li>

    <li>
      <a href="#event-customer-sms-recovered">Event Customer SMS Recovered</a>
    </li>

    <li>
      <a href="#event-customer-sms-failed">Event Customer SMS Failed</a>
    </li>

    <li>
      <a href="#event-customer-email-sent">Event Customer Email Sent</a>
    </li>

    <li>
      <a href="#event-customer-email-recovered">Event Customer Email Recovered</a>
    </li>

    <li>
      <a href="#event-customer-email-failed">Event Customer Email Failed</a>
    </li>

    <li>
      <a href="#event-customer-activecampaign-sent">Event Customer ActiveCampaign Sent</a>
    </li>

    <li>
      <a href="#event-customer-activecampaign-recovered">Event Customer ActiveCampaign Recovered</a>
    </li>

    <li>
      <a href="#event-customer-activecampaign-failed">Event Customer ActiveCampaign Failed</a>
    </li>

    <li>
      <a href="#event-customer-braze-sent">Event Customer Braze Sent</a>
    </li>

    <li>
      <a href="#event-customer-braze-recovered">Event Customer Braze Recovered</a>
    </li>

    <li>
      <a href="#event-customer-braze-failed">Event Customer Braze Failed</a>
    </li>

    <li>
      <a href="#event-customer-mailchimp-sent">Event Customer Mailchimp Sent</a>
    </li>

    <li>
      <a href="#event-customer-mailchimp-recovered">Event Customer Mailchimp Recovered</a>
    </li>

    <li>
      <a href="#event-customer-mailchimp-failed">Event Customer Mailchimp Failed</a>
    </li>

    <li>
      <a href="#event-customer-intercom-sent">Event Customer Intercom Sent</a>
    </li>

    <li>
      <a href="#event-customer-intercom-recovered">Event Customer Intercom Recovered</a>
    </li>

    <li>
      <a href="#event-customer-intercom-failed">Event Customer Intercom Failed</a>
    </li>

    <li>
      <a href="#event-customer-shopify-sent">Event Customer Shopify Sent</a>
    </li>

    <li>
      <a href="#event-customer-shopify-recovered">Event Customer Shopify Recovered</a>
    </li>

    <li>
      <a href="#event-customer-shopify-failed">Event Customer Shopify Failed</a>
    </li>

    <li>
      <a href="#event-customer-klaviyo-sent">Event Customer Klaviyo Sent</a>
    </li>

    <li>
      <a href="#event-customer-klaviyo-recovered">Event Customer Klaviyo Recovered</a>
    </li>

    <li>
      <a href="#event-customer-klaviyo-failed">Event Customer Klaviyo Failed</a>
    </li>

    <li>
      <a href="#event-customer-batch-sent">Event Customer Batch Sent</a>
    </li>

    <li>
      <a href="#event-customer-batch-recovered">Event Customer Batch Recovered</a>
    </li>

    <li>
      <a href="#event-customer-batch-failed">Event Customer Batch Failed</a>
    </li>

    <li>
      <a href="#event-customer-rewarded">Event Customer Rewarded</a>
    </li>

    <li>
      <a href="#event-customer-rewarded-loyalty-points">Event Customer Rewarded Loyalty Points</a>
    </li>

    <li>
      <a href="#event-customer-gift-voucher-balance-added">Event Customer Gift Voucher Balance Added</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-card-pending-points-activated">Event Customer Loyalty Card Pending Points Activated</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-card-pending-points-added">Event Customer Loyalty Card Pending Points Added</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-card-pending-points-canceled">Event Customer Loyalty Card Pending Points Canceled</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-card-pending-points-updated">Event Customer Loyalty Card Pending Points Updated</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-card-points-added">Event Customer Loyalty Card Points Added</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-card-points-transferred">Event Customer Loyalty Card Points Transferred</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-card-points-expired">Event Customer Loyalty Card Points Expired</a>
    </li>

    <li>
      <a href="#event-customer-voucher-deleted">Event Customer Voucher Deleted</a>
    </li>

    <li>
      <a href="#event-customer-publication-succeeded">Event Customer Publication Succeeded</a>
    </li>

    <li>
      <a href="#event-customer-publication-failed">Event Customer Publication Failed</a>
    </li>

    <li>
      <a href="#event-customer-validation-succeeded">Event Customer Validation Succeeded</a>
    </li>

    <li>
      <a href="#event-customer-validation-failed">Event Customer Validation Failed</a>
    </li>

    <li>
      <a href="#event-customer-redemption-succeeded">Event Customer Redemption Succeeded</a>
    </li>

    <li>
      <a href="#event-customer-redemption-failed">Event Customer Redemption Failed</a>
    </li>

    <li>
      <a href="#event-customer-redemption-rollback-succeeded">Event Customer Redemption Rollback Succeeded</a>
    </li>

    <li>
      <a href="#event-customer-redemption-rollback-failed">Event Customer Redemption Rollback Failed</a>
    </li>

    <li>
      <a href="#event-customer-order-canceled">Event Customer Order Canceled</a>
    </li>

    <li>
      <a href="#event-customer-order-created">Event Customer Order Created</a>
    </li>

    <li>
      <a href="#event-customer-order-fulfilled">Event Customer Order Fulfilled</a>
    </li>

    <li>
      <a href="#event-customer-order-paid">Event Customer Order Paid</a>
    </li>

    <li>
      <a href="#event-customer-order-processing">Event Customer Order Processing</a>
    </li>

    <li>
      <a href="#event-customer-order-updated">Event Customer Order Updated</a>
    </li>

    <li>
      <a href="#event-customer-reward-redemptions-created">Event Customer Reward Redemptions Created</a>
    </li>

    <li>
      <a href="#event-customer-reward-redemptions-pending">Event Customer Reward Redemptions Pending</a>
    </li>

    <li>
      <a href="#event-customer-reward-redemptions-completed">Event Customer Reward Redemptions Completed</a>
    </li>

    <li>
      <a href="#event-customer-reward-redemptions-rolled-back">Event Customer Reward Redemptions Rolled Back</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-updated">Event Customer Loyalty Updated</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-tier-upgraded">Event Customer Loyalty Tier Upgraded</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-tier-downgraded">Event Customer Loyalty Tier Downgraded</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-tier-prolonged">Event Customer Loyalty Tier Prolonged</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-tier-expiration-changed">Event Customer Loyalty Tier Expiration Changed</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-tier-joined">Event Customer Loyalty Tier Joined</a>
    </li>

    <li>
      <a href="#event-customer-loyalty-tier-left">Event Customer Loyalty Tier Left</a>
    </li>

    <li>
      <a href="#event-customer-holder-assignment-created">Event Customer Holder Assignment Created</a>
    </li>

    <li>
      <a href="#event-customer-holder-assignment-deleted">Event Customer Holder Assignment Deleted</a>
    </li>
  </ol>

  <h2 id="event-source">Event Source</h2>

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

    <tbody>
      <tr>
        <td>
          <p>
            channel

            <br />

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

        <td>
          <p>Determines the channel that initiated the event.</p>

          <p>
            Available values:
            <code>USER\_PORTAL</code>,
            <code>API</code>,
            <code>CLIENT\_API</code>,
            <code>INTERNAL</code>
          </p>

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

      <tr>
        <td>
          <p>
            user

            <br />

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

        <td>
          <p>Determines the Voucherify user who triggered the event.</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 identifier of the user.</p>

                  <p>
                    <strong>Example:</strong>
                    user\_xyzfghSTprSTUVWXYlk6tuvXYst7FGH7
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            api\_key

            <br />

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

        <td>
          <p>Determines the API key used to initiate the event.</p>

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

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

                    <br />

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

                <td>
                  <p>Channel name in the application keys.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    app\_id

                    <br />

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

                <td>
                  <p>Contains the application ID from the Voucherify API key pair.</p>

                  <p>
                    <strong>Example:</strong>
                    1XXXX5XX-0XXX-XXXb-X7XX-XX2XXaXXX6XX
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-confirmed">Event Customer Confirmed</h2>

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

    <tbody>
      <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>
            unconfirmed\_customer

            <br />

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

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

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

                    <br />

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

                <td>
                  <p>
                    <strong>Example:</strong>
                    ucust\_1qa70mVfYkl11Ab0ZxDPdWNa
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-created">Event Customer Created</h2>

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

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

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

  <h2 id="event-customer-updated">Event Customer Updated</h2>

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

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

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

  <h2 id="event-customer-deleted">Event Customer Deleted</h2>

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

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

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

  <h2 id="event-customer-referred">Event Customer Referred</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>referrer</p>
        </td>

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>custom\_event</p>
        </td>

        <td>
          See:
          <a href="#custom-event">Custom Event</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>redemption</p>
        </td>

        <td>
          See:
          <a href="#redemption-internal">Redemption Internal</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-custom-event">Event Customer Custom Event</h2>

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

    <tbody>
      <tr>
        <td>
          <p>event</p>
        </td>

        <td>
          See:
          <a href="#custom-event">Custom Event</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>event\_schema</p>
        </td>

        <td>
          See:
          <a href="#simple-custom-event">Simple Custom Event</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            referral

            <br />

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

        <td>
          <p>Details about the referral.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>referrer</p>
                </td>

                <td>
                  <p>Details about the referrer.</p>
                  <a href="#simple-customer">Simple Customer</a>
                </td>
              </tr>

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

                <td>
                  <p>Details about the referral code.</p>
                  <a href="#simple-voucher">Simple Voucher</a>
                </td>
              </tr>

              <tr>
                <td>
                  <p>campaign</p>
                </td>

                <td>
                  <p>Details about the referral campaign.</p>
                  <a href="#simple-campaign">Simple Campaign</a>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            loyalty

            <br />

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

        <td>
          <p>Details about the loyalty activity.</p>

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

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

                <td>
                  <p>Details about the loyalty code.</p>
                  <a href="#simple-voucher">Simple Voucher</a>
                </td>
              </tr>

              <tr>
                <td>
                  <p>campaign</p>
                </td>

                <td>
                  <p>Details about the loyalty campaign.</p>
                  <a href="#simple-campaign">Simple Campaign</a>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-segment-entered">Event Customer Segment Entered</h2>

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

    <tbody>
      <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>segment</p>
        </td>

        <td>
          See:
          <a href="#simple-segment">Simple Segment</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-segment-left">Event Customer Segment Left</h2>

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

    <tbody>
      <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>segment</p>
        </td>

        <td>
          See:
          <a href="#simple-segment">Simple Segment</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-sms-sent">Event Customer SMS Sent</h2>

  <p>
    Event data object schema for
    <code>customer.sms.sent</code>.
  </p>

  <p>
    <a href="#event-customer-sent">Event Customer Sent</a>
  </p>

  <h2 id="event-customer-sms-recovered">Event Customer SMS Recovered</h2>

  <p>
    Event data object schema for
    <code>customer.sms.recovered</code>.
  </p>

  <p>
    <a href="#event-customer-recovered">Event Customer Recovered</a>
  </p>

  <h2 id="event-customer-sms-failed">Event Customer SMS Failed</h2>

  <p>
    Event data object schema for
    <code>customer.sms.failed</code>.
  </p>

  <p>
    <a href="#event-customer-failed">Event Customer Failed</a>
  </p>

  <h2 id="event-customer-email-sent">Event Customer Email Sent</h2>

  <p>
    Event data object schema for
    <code>customer.email.sent</code>.
  </p>

  <p>
    <a href="#event-customer-sent">Event Customer Sent</a>
  </p>

  <h2 id="event-customer-email-recovered">Event Customer Email Recovered</h2>

  <p>
    Event data object schema for
    <code>customer.email.recovered</code>.
  </p>

  <p>
    <a href="#event-customer-recovered">Event Customer Recovered</a>
  </p>

  <h2 id="event-customer-email-failed">Event Customer Email Failed</h2>

  <p>
    Event data object schema for
    <code>customer.email.failed</code>.
  </p>

  <p>
    <a href="#event-customer-failed">Event Customer Failed</a>
  </p>

  <h2 id="event-customer-activecampaign-sent">Event Customer ActiveCampaign Sent</h2>

  <p>
    Event data object schema for
    <code>customer.activecampaign.sent</code>.
  </p>

  <p>
    <a href="#event-customer-sent">Event Customer Sent</a>
  </p>

  <h2 id="event-customer-activecampaign-recovered">Event Customer ActiveCampaign Recovered</h2>

  <p>
    Event data object schema for
    <code>customer.activecampaign.recovered</code>.
  </p>

  <p>
    <a href="#event-customer-recovered">Event Customer Recovered</a>
  </p>

  <h2 id="event-customer-activecampaign-failed">Event Customer ActiveCampaign Failed</h2>

  <p>
    Event data object schema for
    <code>customer.activecampaign.failed</code>.
  </p>

  <p>
    <a href="#event-customer-failed">Event Customer Failed</a>
  </p>

  <h2 id="event-customer-braze-sent">Event Customer Braze Sent</h2>

  <p>
    Event data object schema for
    <code>customer.braze.sent</code>.
  </p>

  <p>
    <a href="#event-customer-sent">Event Customer Sent</a>
  </p>

  <h2 id="event-customer-braze-recovered">Event Customer Braze Recovered</h2>

  <p>
    Event data object schema for
    <code>customer.braze.recovered</code>.
  </p>

  <p>
    <a href="#event-customer-recovered">Event Customer Recovered</a>
  </p>

  <h2 id="event-customer-braze-failed">Event Customer Braze Failed</h2>

  <p>
    Event data object schema for
    <code>customer.braze.failed</code>.
  </p>

  <p>
    <a href="#event-customer-failed">Event Customer Failed</a>
  </p>

  <h2 id="event-customer-mailchimp-sent">Event Customer Mailchimp Sent</h2>

  <p>
    Event data object schema for
    <code>customer.mailchimp.sent</code>.
  </p>

  <p>
    <a href="#event-customer-sent">Event Customer Sent</a>
  </p>

  <h2 id="event-customer-mailchimp-recovered">Event Customer Mailchimp Recovered</h2>

  <p>
    Event data object schema for
    <code>customer.mailchimp.recovered</code>.
  </p>

  <p>
    <a href="#event-customer-recovered">Event Customer Recovered</a>
  </p>

  <h2 id="event-customer-mailchimp-failed">Event Customer Mailchimp Failed</h2>

  <p>
    Event data object schema for
    <code>customer.mailchimp.failed</code>.
  </p>

  <p>
    <a href="#event-customer-failed">Event Customer Failed</a>
  </p>

  <h2 id="event-customer-intercom-sent">Event Customer Intercom Sent</h2>

  <p>
    Event data object schema for
    <code>customer.intercom.sent</code>.
  </p>

  <p>
    <a href="#event-customer-sent">Event Customer Sent</a>
  </p>

  <h2 id="event-customer-intercom-recovered">Event Customer Intercom Recovered</h2>

  <p>
    Event data object schema for
    <code>customer.intercom.recovered</code>.
  </p>

  <p>
    <a href="#event-customer-recovered">Event Customer Recovered</a>
  </p>

  <h2 id="event-customer-intercom-failed">Event Customer Intercom Failed</h2>

  <p>
    Event data object schema for
    <code>customer.intercom.failed</code>.
  </p>

  <p>
    <a href="#event-customer-failed">Event Customer Failed</a>
  </p>

  <h2 id="event-customer-shopify-sent">Event Customer Shopify Sent</h2>

  <p>
    Event data object schema for
    <code>customer.shopify.sent</code>.
  </p>

  <p>
    <a href="#event-customer-sent">Event Customer Sent</a>
  </p>

  <h2 id="event-customer-shopify-recovered">Event Customer Shopify Recovered</h2>

  <p>
    Event data object schema for
    <code>customer.shopify.recovered</code>.
  </p>

  <p>
    <a href="#event-customer-recovered">Event Customer Recovered</a>
  </p>

  <h2 id="event-customer-shopify-failed">Event Customer Shopify Failed</h2>

  <p>
    Event data object schema for
    <code>customer.shopify.failed</code>.
  </p>

  <p>
    <a href="#event-customer-failed">Event Customer Failed</a>
  </p>

  <h2 id="event-customer-klaviyo-sent">Event Customer Klaviyo Sent</h2>

  <p>
    Event data object schema for
    <code>customer.klaviyo.sent</code>.
  </p>

  <p>
    <a href="#event-customer-sent">Event Customer Sent</a>
  </p>

  <h2 id="event-customer-klaviyo-recovered">Event Customer Klaviyo Recovered</h2>

  <p>
    Event data object schema for
    <code>customer.klaviyo.recovered</code>.
  </p>

  <p>
    <a href="#event-customer-recovered">Event Customer Recovered</a>
  </p>

  <h2 id="event-customer-klaviyo-failed">Event Customer Klaviyo Failed</h2>

  <p>
    Event data object schema for
    <code>customer.klaviyo.failed</code>.
  </p>

  <p>
    <a href="#event-customer-failed">Event Customer Failed</a>
  </p>

  <h2 id="event-customer-batch-sent">Event Customer Batch Sent</h2>

  <p>
    Event data object schema for
    <code>customer.batch.sent</code>.
  </p>

  <p>
    <a href="#event-customer-sent">Event Customer Sent</a>
  </p>

  <h2 id="event-customer-batch-recovered">Event Customer Batch Recovered</h2>

  <p>
    Event data object schema for
    <code>customer.batch.recovered</code>.
  </p>

  <p>
    <a href="#event-customer-recovered">Event Customer Recovered</a>
  </p>

  <h2 id="event-customer-batch-failed">Event Customer Batch Failed</h2>

  <p>
    Event data object schema for
    <code>customer.batch.failed</code>.
  </p>

  <p>
    <a href="#event-customer-failed">Event Customer Failed</a>
  </p>

  <h2 id="event-customer-rewarded">Event Customer Rewarded</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>holder</p>
        </td>

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>redemption</p>
        </td>

        <td>
          See:
          <a href="#redemption-internal">Redemption Internal</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>reward</p>
        </td>

        <td>
          See:
          <a href="#simple-redemption-reward-result">Simple Redemption Reward Result</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>referral\_tier</p>
        </td>

        <td>
          See:
          <a href="#simple-referral-tier">Simple Referral Tier</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            balance

            <br />

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

        <td>
          <p>
            Balance changed by the event. The
            <code>amount</code>
            property details a change in a gift card. The
            <code>points</code>
            property details a change in a loyalty card.
          </p>

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

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

                    <br />

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

                <td />
              </tr>

              <tr>
                <td>
                  <p>
                    points

                    <br />

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

                <td />
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>custom\_event</p>
        </td>

        <td>
          See:
          <a href="#custom-event">Custom Event</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            customer\_event

            <br />

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

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

            <tbody>
              <tr>
                <td>
                  <p>segment</p>
                </td>

                <td>
                  See:
                  <a href="#simple-segment">Simple Segment</a>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    event\_type

                    <br />

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

                <td>
                  <p>Type of activity that triggered the event.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-rewarded-loyalty-points">Event Customer Rewarded Loyalty Points</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>holder</p>
        </td>

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#loyalty-tier">Loyalty Tier</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>earning\_rule</p>
        </td>

        <td>
          See:
          <a href="#earning-rule">Earning Rule</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>balance</p>
        </td>

        <td>
          See:
          <a href="#voucher-balance">Voucher Balance</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>order</p>
        </td>

        <td>
          All of:

          <ol>
            <li>
              <a href="#order-calculated-no-customer-data">Order Calculated No Customer Data</a>
            </li>

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

                <tbody>
                  <tr>
                    <td>
                      <p>
                        items

                        <br />

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

                    <td>
                      <p>Array of items applied to the order. It can include up to 500 items.</p>
                      Array of
                      <a href="#order-item-calculated">Order Item Calculated</a>
                    </td>
                  </tr>
                </tbody>
              </table>
            </li>
          </ol>
        </td>
      </tr>

      <tr>
        <td>
          <p>event</p>
        </td>

        <td>
          See:
          <a href="#simple-event">Simple Event</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-gift-voucher-balance-added">Event Customer Gift Voucher Balance Added</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>balance</p>
        </td>

        <td>
          See:
          <a href="#voucher-balance">Voucher Balance</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>transaction</p>
        </td>

        <td>
          All of:

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

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

                <tbody>
                  <tr>
                    <td>
                      <p>
                        details

                        <br />

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

                    <td>
                      <p>Contains the detailed information about the transaction.</p>

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

                        <tbody>
                          <tr>
                            <td>
                              <p>balance</p>
                            </td>

                            <td>
                              See:
                              <a href="#voucher-balance">Voucher Balance</a>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                order

                                <br />

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

                            <td>
                              <p>Contains information about the original order.</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 order ID.</p>
                                    </td>
                                  </tr>

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

                                        <br />

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

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

                          <tr>
                            <td>
                              <p>
                                event

                                <br />

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

                            <td>
                              <p>Contains information about the event that triggers the point accrual.</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 event ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        type

                                        <br />

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

                                    <td>
                                      <p>Type of event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                earning\_rule

                                <br />

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

                            <td>
                              <p>Contains information about the earning rule.</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 identifier of an earning rule, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        source

                                        <br />

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

                                    <td>
                                      <p>Contains the custom earning rule name.</p>

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

                                        <tbody>
                                          <tr>
                                            <td>
                                              <p>
                                                banner

                                                <br />

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

                                            <td>
                                              <p>Name of the earning rule. This is displayed as a header for the earning rule in the Dashboard.</p>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                segment

                                <br />

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

                            <td>
                              <p>Contains information about the segment.</p>

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

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

                                        <br />

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

                                    <td />
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td />
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

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

                                <br />

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

                            <td>
                              <p>Contains information about the loyalty tier.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>User-defined name of the loyalty tier.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                redemption

                                <br />

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

                            <td>
                              <p>Contains information about the original redemption.</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 redemption ID.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                rollback

                                <br />

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

                            <td>
                              <p>Contains information about the redemption rollback.</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 redemption rollback ID.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                custom\_event

                                <br />

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

                            <td>
                              <p>Contains information about the custom event that triggers the point accrual.</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 event ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        type

                                        <br />

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

                                    <td>
                                      <p>Type of custom event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                event\_schema

                                <br />

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

                            <td>
                              <p>Contains information about the custom event metadata schema.</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 metadata schema ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>Type of custom event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                reward

                                <br />

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

                            <td>
                              <p>Contains information about the pay with points reward.</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 reward ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

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

                          <tr>
                            <td>
                              <p>source\_voucher</p>
                            </td>

                            <td>
                              <p>Contains information on how the balance on the donor loyalty card was affected by the transaction.</p>
                              <a href="#simple-voucher">Simple Voucher</a>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>destination\_voucher</p>
                            </td>

                            <td>
                              <p>Contains information on how the balance on the receiving loyalty card was affected by the transaction.</p>
                              <a href="#simple-voucher">Simple Voucher</a>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        type

                        <br />

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

                    <td>
                      <p>Transaction type concerning gift card credits.</p>

                      <p>
                        Available values:
                        <code>CREDITS\_ADDITION</code>
                      </p>
                    </td>
                  </tr>
                </tbody>
              </table>
            </li>
          </ol>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-loyalty-card-pending-points-activated">Event Customer Loyalty Card Pending Points Activated</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>balance</p>
        </td>

        <td>
          See:
          <a href="#voucher-balance">Voucher Balance</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>order</p>
        </td>

        <td>
          See:
          <a href="#simple-order">Simple Order</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>transaction</p>
        </td>

        <td>
          See:
          <a href="#voucher-transaction">Voucher Transaction</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#loyalty-pending-point-entry">Loyalty Pending Point Entry</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-loyalty-card-pending-points-added">Event Customer Loyalty Card Pending Points Added</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>voucher\_pending\_points\_balance</p>
        </td>

        <td>
          See:
          <a href="#voucher-balance">Voucher Balance</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>order</p>
        </td>

        <td>
          See:
          <a href="#simple-order">Simple Order</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#loyalty-pending-point-entry">Loyalty Pending Point Entry</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-loyalty-card-pending-points-canceled">Event Customer Loyalty Card Pending Points Canceled</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>voucher\_pending\_points\_balance</p>
        </td>

        <td>
          See:
          <a href="#voucher-balance">Voucher Balance</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>order</p>
        </td>

        <td>
          See:
          <a href="#simple-order">Simple Order</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#loyalty-pending-point-entry">Loyalty Pending Point Entry</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-loyalty-card-pending-points-updated">Event Customer Loyalty Card Pending Points Updated</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>voucher\_pending\_points\_balance</p>
        </td>

        <td>
          See:
          <a href="#voucher-balance">Voucher Balance</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>order</p>
        </td>

        <td>
          See:
          <a href="#simple-order">Simple Order</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#loyalty-pending-point-entry">Loyalty Pending Point Entry</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-loyalty-card-points-added">Event Customer Loyalty Card Points Added</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>balance</p>
        </td>

        <td>
          See:
          <a href="#voucher-balance">Voucher Balance</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>transaction</p>
        </td>

        <td>
          All of:

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

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

                <tbody>
                  <tr>
                    <td>
                      <p>
                        details

                        <br />

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

                    <td>
                      <p>Contains the detailed information about the transaction.</p>

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

                        <tbody>
                          <tr>
                            <td>
                              <p>balance</p>
                            </td>

                            <td>
                              See:
                              <a href="#voucher-balance">Voucher Balance</a>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                order

                                <br />

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

                            <td>
                              <p>Contains information about the original order.</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 order ID.</p>
                                    </td>
                                  </tr>

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

                                        <br />

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

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

                          <tr>
                            <td>
                              <p>
                                event

                                <br />

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

                            <td>
                              <p>Contains information about the event that triggers the point accrual.</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 event ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        type

                                        <br />

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

                                    <td>
                                      <p>Type of event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                earning\_rule

                                <br />

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

                            <td>
                              <p>Contains information about the earning rule.</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 identifier of an earning rule, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        source

                                        <br />

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

                                    <td>
                                      <p>Contains the custom earning rule name.</p>

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

                                        <tbody>
                                          <tr>
                                            <td>
                                              <p>
                                                banner

                                                <br />

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

                                            <td>
                                              <p>Name of the earning rule. This is displayed as a header for the earning rule in the Dashboard.</p>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                segment

                                <br />

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

                            <td>
                              <p>Contains information about the segment.</p>

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

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

                                        <br />

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

                                    <td />
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td />
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

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

                                <br />

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

                            <td>
                              <p>Contains information about the loyalty tier.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>User-defined name of the loyalty tier.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                redemption

                                <br />

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

                            <td>
                              <p>Contains information about the original redemption.</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 redemption ID.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                rollback

                                <br />

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

                            <td>
                              <p>Contains information about the redemption rollback.</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 redemption rollback ID.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                custom\_event

                                <br />

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

                            <td>
                              <p>Contains information about the custom event that triggers the point accrual.</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 event ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        type

                                        <br />

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

                                    <td>
                                      <p>Type of custom event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                holder\_loyalty\_tier

                                <br />

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

                            <td>
                              <p>Loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was before the loyalty point balance changed.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>User-defined name of the loyalty tier.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                event\_schema

                                <br />

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

                            <td>
                              <p>Contains information about the custom event metadata schema.</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 metadata schema ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>Type of custom event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                reward

                                <br />

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

                            <td>
                              <p>Contains information about the pay with points reward.</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 reward ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

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

                          <tr>
                            <td>
                              <p>source\_voucher</p>
                            </td>

                            <td>
                              <p>Contains information on how the balance on the donor loyalty card was affected by the transaction.</p>
                              <a href="#simple-voucher">Simple Voucher</a>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>destination\_voucher</p>
                            </td>

                            <td>
                              <p>Contains information on how the balance on the receiving loyalty card was affected by the transaction.</p>
                              <a href="#simple-voucher">Simple Voucher</a>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        type

                        <br />

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

                    <td>
                      <p>Transaction type concerning loyalty card points.</p>

                      <p>
                        Available values:
                        <code>POINTS\_ACCRUAL</code>
                      </p>
                    </td>
                  </tr>
                </tbody>
              </table>
            </li>
          </ol>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-loyalty-card-points-transferred">Event Customer Loyalty Card Points Transferred</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>source\_voucher</p>
        </td>

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>destination\_voucher</p>
        </td>

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>balance</p>
        </td>

        <td>
          See:
          <a href="#voucher-balance">Voucher Balance</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>transaction</p>
        </td>

        <td>
          All of:

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

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

                <tbody>
                  <tr>
                    <td>
                      <p>
                        details

                        <br />

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

                    <td>
                      <p>Contains the detailed information about the transaction.</p>

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

                        <tbody>
                          <tr>
                            <td>
                              <p>balance</p>
                            </td>

                            <td>
                              See:
                              <a href="#voucher-balance">Voucher Balance</a>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                order

                                <br />

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

                            <td>
                              <p>Contains information about the original order.</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 order ID.</p>
                                    </td>
                                  </tr>

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

                                        <br />

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

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

                          <tr>
                            <td>
                              <p>
                                event

                                <br />

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

                            <td>
                              <p>Contains information about the event that triggers the point accrual.</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 event ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        type

                                        <br />

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

                                    <td>
                                      <p>Type of event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                earning\_rule

                                <br />

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

                            <td>
                              <p>Contains information about the earning rule.</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 identifier of an earning rule, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        source

                                        <br />

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

                                    <td>
                                      <p>Contains the custom earning rule name.</p>

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

                                        <tbody>
                                          <tr>
                                            <td>
                                              <p>
                                                banner

                                                <br />

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

                                            <td>
                                              <p>Name of the earning rule. This is displayed as a header for the earning rule in the Dashboard.</p>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                segment

                                <br />

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

                            <td>
                              <p>Contains information about the segment.</p>

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

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

                                        <br />

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

                                    <td />
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td />
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

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

                                <br />

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

                            <td>
                              <p>Contains information about the loyalty tier.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>User-defined name of the loyalty tier.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                redemption

                                <br />

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

                            <td>
                              <p>Contains information about the original redemption.</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 redemption ID.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                rollback

                                <br />

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

                            <td>
                              <p>Contains information about the redemption rollback.</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 redemption rollback ID.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                custom\_event

                                <br />

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

                            <td>
                              <p>Contains information about the custom event that triggers the point accrual.</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 event ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        type

                                        <br />

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

                                    <td>
                                      <p>Type of custom event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                event\_schema

                                <br />

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

                            <td>
                              <p>Contains information about the custom event metadata schema.</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 metadata schema ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>Type of custom event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                holder\_loyalty\_tier

                                <br />

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

                            <td>
                              <p>Loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was before the loyalty point balance changed.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>User-defined name of the loyalty tier.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                reward

                                <br />

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

                            <td>
                              <p>Contains information about the pay with points reward.</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 reward ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

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

                          <tr>
                            <td>
                              <p>source\_voucher</p>
                            </td>

                            <td>
                              <p>Contains information on how the balance on the donor loyalty card was affected by the transaction.</p>
                              <a href="#simple-voucher">Simple Voucher</a>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>destination\_voucher</p>
                            </td>

                            <td>
                              <p>Contains information on how the balance on the receiving loyalty card was affected by the transaction.</p>
                              <a href="#simple-voucher">Simple Voucher</a>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        type

                        <br />

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

                    <td>
                      <p>Transaction type concerning loyalty card points.</p>

                      <p>
                        Available values:
                        <code>POINTS\_TRANSFER\_IN</code>,
                        <code>POINTS\_TRANSFER\_OUT</code>
                      </p>
                    </td>
                  </tr>
                </tbody>
              </table>
            </li>
          </ol>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-loyalty-card-points-expired">Event Customer Loyalty Card Points Expired</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            points

            <br />

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

        <td>
          <p>The number of expired points.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            buckets

            <br />

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

        <td>
          Array of
          <a href="#loyalty-point-bucket">Loyalty Point Bucket</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>transaction</p>
        </td>

        <td>
          All of:

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

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

                <tbody>
                  <tr>
                    <td>
                      <p>
                        details

                        <br />

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

                    <td>
                      <p>Contains the detailed information about the transaction.</p>

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

                        <tbody>
                          <tr>
                            <td>
                              <p>balance</p>
                            </td>

                            <td>
                              See:
                              <a href="#voucher-balance">Voucher Balance</a>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                order

                                <br />

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

                            <td>
                              <p>Contains information about the original order.</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 order ID.</p>
                                    </td>
                                  </tr>

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

                                        <br />

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

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

                          <tr>
                            <td>
                              <p>
                                event

                                <br />

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

                            <td>
                              <p>Contains information about the event that triggers the point accrual.</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 event ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        type

                                        <br />

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

                                    <td>
                                      <p>Type of event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                earning\_rule

                                <br />

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

                            <td>
                              <p>Contains information about the earning rule.</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 identifier of an earning rule, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        source

                                        <br />

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

                                    <td>
                                      <p>Contains the custom earning rule name.</p>

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

                                        <tbody>
                                          <tr>
                                            <td>
                                              <p>
                                                banner

                                                <br />

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

                                            <td>
                                              <p>Name of the earning rule. This is displayed as a header for the earning rule in the Dashboard.</p>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                segment

                                <br />

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

                            <td>
                              <p>Contains information about the segment.</p>

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

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

                                        <br />

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

                                    <td />
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td />
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

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

                                <br />

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

                            <td>
                              <p>Contains information about the loyalty tier.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>User-defined name of the loyalty tier.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                redemption

                                <br />

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

                            <td>
                              <p>Contains information about the original redemption.</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 redemption ID.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                rollback

                                <br />

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

                            <td>
                              <p>Contains information about the redemption rollback.</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 redemption rollback ID.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                custom\_event

                                <br />

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

                            <td>
                              <p>Contains information about the custom event that triggers the point accrual.</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 event ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        type

                                        <br />

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

                                    <td>
                                      <p>Type of custom event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                event\_schema

                                <br />

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

                            <td>
                              <p>Contains information about the custom event metadata schema.</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 metadata schema ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>Type of custom event.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                holder\_loyalty\_tier

                                <br />

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

                            <td>
                              <p>Loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was before the loyalty point balance changed.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

                                    <td>
                                      <p>User-defined name of the loyalty tier.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                reward

                                <br />

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

                            <td>
                              <p>Contains information about the pay with points reward.</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 reward ID.</p>
                                    </td>
                                  </tr>

                                  <tr>
                                    <td>
                                      <p>
                                        name

                                        <br />

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

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

                          <tr>
                            <td>
                              <p>source\_voucher</p>
                            </td>

                            <td>
                              <p>Contains information on how the balance on the donor loyalty card was affected by the transaction.</p>
                              <a href="#simple-voucher">Simple Voucher</a>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>destination\_voucher</p>
                            </td>

                            <td>
                              <p>Contains information on how the balance on the receiving loyalty card was affected by the transaction.</p>
                              <a href="#simple-voucher">Simple Voucher</a>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        type

                        <br />

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

                    <td>
                      <p>Transaction type concerning loyalty card points.</p>

                      <p>
                        Available values:
                        <code>POINTS\_EXPIRATION</code>
                      </p>
                    </td>
                  </tr>
                </tbody>
              </table>
            </li>
          </ol>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-voucher-deleted">Event Customer Voucher Deleted</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-publication-succeeded">Event Customer Publication Succeeded</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>publication</p>
        </td>

        <td>
          See:
          <a href="#valid-single-voucher">Valid Single Voucher</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-publication-failed">Event Customer Publication Failed</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>publication</p>
        </td>

        <td>
          See:
          <a href="#valid-single-voucher">Valid Single Voucher</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-validation-succeeded">Event Customer Validation Succeeded</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>validation</p>
        </td>

        <td>
          See:
          <a href="#validation-entity">Validation Entity</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-validation-failed">Event Customer Validation Failed</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>validation</p>
        </td>

        <td>
          See:
          <a href="#validation-entity">Validation Entity</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-redemption-succeeded">Event Customer Redemption Succeeded</h2>

  <p>
    Event data object schema for
    <code>customer.redemption.succeeded</code>.
  </p>

  <p>
    <a href="#event-customer-redemption">Event Customer Redemption</a>
  </p>

  <h2 id="event-customer-redemption-failed">Event Customer Redemption Failed</h2>

  <p>
    Event data object schema for
    <code>customer.redemption.failed</code>.
  </p>

  <p>
    <a href="#event-customer-redemption">Event Customer Redemption</a>
  </p>

  <h2 id="event-customer-redemption-rollback-succeeded">Event Customer Redemption Rollback Succeeded</h2>

  <p>
    Event data object schema for
    <code>customer.redemption.rollback.succeeded</code>.
  </p>

  <p>All of:</p>

  <ol>
    <li>
      <a href="#event-customer-redemption">Event Customer Redemption</a>
    </li>

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

        <tbody>
          <tr>
            <td>
              <p>redemption\_rollback</p>
            </td>

            <td>
              See:
              <a href="#simple-redemption">Simple Redemption</a>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="event-customer-redemption-rollback-failed">Event Customer Redemption Rollback Failed</h2>

  <p>
    Event data object schema for
    <code>customer.redemption.rollback.failed</code>.
  </p>

  <p>All of:</p>

  <ol>
    <li>
      <a href="#event-customer-redemption">Event Customer Redemption</a>
    </li>

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

        <tbody>
          <tr>
            <td>
              <p>redemption\_rollback</p>
            </td>

            <td>
              See:
              <a href="#simple-redemption">Simple Redemption</a>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="event-customer-order-canceled">Event Customer Order Canceled</h2>

  <p>
    Event data object schema for
    <code>customer.order.canceled</code>.
  </p>

  <p>
    <a href="#event-customer-order">Event Customer Order</a>
  </p>

  <h2 id="event-customer-order-created">Event Customer Order Created</h2>

  <p>
    Event data object schema for
    <code>customer.order.created</code>.
  </p>

  <p>
    <a href="#event-customer-order">Event Customer Order</a>
  </p>

  <h2 id="event-customer-order-fulfilled">Event Customer Order Fulfilled</h2>

  <p>
    Event data object schema for
    <code>customer.order.fulfilled</code>.
  </p>

  <p>
    <a href="#event-customer-order">Event Customer Order</a>
  </p>

  <h2 id="event-customer-order-paid">Event Customer Order Paid</h2>

  <p>
    Event data object schema for
    <code>customer.order.paid</code>.
  </p>

  <p>
    <a href="#event-customer-order">Event Customer Order</a>
  </p>

  <h2 id="event-customer-order-processing">Event Customer Order Processing</h2>

  <p>
    Event data object schema for
    <code>customer.order.processing</code>.
  </p>

  <p>
    <a href="#event-customer-order">Event Customer Order</a>
  </p>

  <h2 id="event-customer-order-updated">Event Customer Order Updated</h2>

  <p>
    Event data object schema for
    <code>customer.order.updated</code>.
  </p>

  <p>
    <a href="#event-customer-order">Event Customer Order</a>
  </p>

  <h2 id="event-customer-reward-redemptions-created">Event Customer Reward Redemptions Created</h2>

  <p>
    Event data object schema for
    <code>customer.reward\_redemptions.created</code>.
  </p>

  <p>
    <a href="#event-customer-reward-redemptions">Event Customer Reward Redemptions</a>
  </p>

  <h2 id="event-customer-reward-redemptions-pending">Event Customer Reward Redemptions Pending</h2>

  <p>
    Event data object schema for
    <code>customer.reward\_redemptions.pending</code>.
  </p>

  <p>
    <a href="#event-customer-reward-redemptions">Event Customer Reward Redemptions</a>
  </p>

  <h2 id="event-customer-reward-redemptions-completed">Event Customer Reward Redemptions Completed</h2>

  <p>
    Event data object schema for
    <code>customer.reward\_redemptions.completed</code>.
  </p>

  <p>
    <a href="#event-customer-reward-redemptions">Event Customer Reward Redemptions</a>
  </p>

  <h2 id="event-customer-reward-redemptions-rolled-back">Event Customer Reward Redemptions Rolled Back</h2>

  <p>
    Event data object schema for
    <code>customer.reward\_redemptions.rolledback</code>.
  </p>

  <p>
    <a href="#event-customer-reward-redemptions">Event Customer Reward Redemptions</a>
  </p>

  <h2 id="event-customer-loyalty-updated">Event Customer Loyalty Updated</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            loyalty

            <br />

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

        <td />
      </tr>

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

            <br />

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

        <td>
          <p>
            <strong>Example:</strong>
            2022-02-25T13:32:08.734Z
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-loyalty-tier-upgraded">Event Customer Loyalty Tier Upgraded</h2>

  <p>
    Event data object schema for
    <code>customer.loyalty.tier.upgraded</code>.
  </p>

  <p>All of:</p>

  <ol>
    <li>
      <a href="#event-customer-loyalty-tier-base">Event Customer Loyalty Tier Base</a>
    </li>

    <li>
      <h3>Loyalty Tier Upgraded</h3>

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

        <tbody>
          <tr>
            <td>
              <p>loyalty\_tier\_from</p>
            </td>

            <td>
              See:
              <a href="#loyalty-tier">Loyalty Tier</a>
            </td>
          </tr>

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

            <td>
              See:
              <a href="#loyalty-tier">Loyalty Tier</a>
            </td>
          </tr>

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

                <br />

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

            <td>
              <p>
                <strong>Example:</strong>
                2022-02-25T13:32:08.734Z
              </p>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="event-customer-loyalty-tier-downgraded">Event Customer Loyalty Tier Downgraded</h2>

  <p>
    Event data object schema for
    <code>customer.loyalty.tier.downgraded</code>.
  </p>

  <p>All of:</p>

  <ol>
    <li>
      <a href="#event-customer-loyalty-tier-base">Event Customer Loyalty Tier Base</a>
    </li>

    <li>
      <h3>Loyalty Tier Downgraded</h3>

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

        <tbody>
          <tr>
            <td>
              <p>loyalty\_tier\_from</p>
            </td>

            <td>
              See:
              <a href="#loyalty-tier">Loyalty Tier</a>
            </td>
          </tr>

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

            <td>
              See:
              <a href="#loyalty-tier">Loyalty Tier</a>
            </td>
          </tr>

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

                <br />

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

            <td>
              <p>
                <strong>Example:</strong>
                2022-02-25T13:32:08.734Z
              </p>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="event-customer-loyalty-tier-prolonged">Event Customer Loyalty Tier Prolonged</h2>

  <p>
    Event data object schema for
    <code>customer.loyalty.tier.prolonged</code>.
  </p>

  <p>All of:</p>

  <ol>
    <li>
      <a href="#event-customer-loyalty-tier-base">Event Customer Loyalty Tier Base</a>
    </li>

    <li>
      <h3>Loyalty Tier Prolonged</h3>

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

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

            <td>
              See:
              <a href="#loyalty-tier">Loyalty Tier</a>
            </td>
          </tr>

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

                <br />

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

            <td>
              <p>
                <strong>Example:</strong>
                2022-02-25T13:32:08.734Z
              </p>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="event-customer-loyalty-tier-expiration-changed">Event Customer Loyalty Tier Expiration Changed</h2>

  <p>
    Event data object schema for
    <code>customer.loyalty.tier.expiration.changed</code>.
  </p>

  <p>All of:</p>

  <ol>
    <li>
      <a href="#event-customer-loyalty-tier-base">Event Customer Loyalty Tier Base</a>
    </li>

    <li>
      <h3>Loyalty Tier Expiration Changed</h3>

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

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

            <td>
              See:
              <a href="#loyalty-tier">Loyalty Tier</a>
            </td>
          </tr>

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

                <br />

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

            <td>
              <p>
                <strong>Example:</strong>
                2022-02-25T13:32:08.734Z
              </p>
            </td>
          </tr>

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

                <br />

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

            <td>
              <p>
                <strong>Example:</strong>
                2022-02-25T13:32:08.734Z
              </p>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="event-customer-loyalty-tier-joined">Event Customer Loyalty Tier Joined</h2>

  <p>
    Event data object schema for
    <code>customer.loyalty.tier.joined</code>.
  </p>

  <p>All of:</p>

  <ol>
    <li>
      <a href="#event-customer-loyalty-tier-base">Event Customer Loyalty Tier Base</a>
    </li>

    <li>
      <h3>Loyalty Tier Joined</h3>

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

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

            <td>
              See:
              <a href="#loyalty-tier">Loyalty Tier</a>
            </td>
          </tr>

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

                <br />

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

            <td>
              <p>
                <strong>Example:</strong>
                2022-02-25T13:32:08.734Z
              </p>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="event-customer-loyalty-tier-left">Event Customer Loyalty Tier Left</h2>

  <p>
    Event data object schema for
    <code>customer.loyalty.tier.left</code>.
  </p>

  <p>All of:</p>

  <ol>
    <li>
      <a href="#event-customer-loyalty-tier-base">Event Customer Loyalty Tier Base</a>
    </li>

    <li>
      <h3>Loyalty Tier Left</h3>

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

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

            <td>
              See:
              <a href="#loyalty-tier">Loyalty Tier</a>
            </td>
          </tr>

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

                <br />

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

            <td>
              <p>
                <strong>Example:</strong>
                2022-02-25T13:32:08.734Z
              </p>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="event-customer-holder-assignment-created">Event Customer Holder Assignment Created</h2>

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

    <tbody>
      <tr>
        <td>
          <p>holder</p>
        </td>

        <td>
          See:
          <a href="#redeemable-holder">Redeemable Holder</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-holder-assignment-deleted">Event Customer Holder Assignment Deleted</h2>

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

    <tbody>
      <tr>
        <td>
          <p>holder</p>
        </td>

        <td>
          See:
          <a href="#redeemable-holder">Redeemable Holder</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>
    </tbody>
  </table>

  <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="simple-customer">Simple Customer</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 identifier of an existing customer. It is assigned by Voucherify.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

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

        <td>
          <p>Customer's first and last name.</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>
            source\_id

            <br />

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

        <td>
          <p>A unique identifier of the customer. It can be a customer ID or email from a CRM system, database, or a third-party service.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            metadata

            <br />

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

        <td>
          <p>A set of custom key/value pairs that are attached to the customer. It stores all custom attributes assigned to the customer.</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>customer</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="simple-campaign">Simple Campaign</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>Campaign ID.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

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

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

      <tr>
        <td>
          <p>
            campaign\_type

            <br />

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

        <td>
          <p>Type of campaign.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            type

            <br />

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

        <td>
          <p>Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (standalone) vouchers.</p>

          <ul>
            <li>
              <code>AUTO\_UPDATE</code>
              : the campaign is dynamic, i.e. vouchers will generate based on set criteria
            </li>

            <li>
              <code>STATIC</code>
              : vouchers need to be manually published
            </li>

            <li>
              <code>STANDALONE</code>
              : campaign for single vouchers
            </li>
          </ul>

          <p>
            Available values:
            <code>AUTO\_UPDATE</code>,
            <code>STATIC</code>,
            <code>STANDALONE</code>
          </p>
        </td>
      </tr>

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

            <br />

            <code>boolean</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>voucher</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign-voucher">Simple Campaign Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>referral\_program</p>
        </td>

        <td>
          See:
          <a href="#referral-program">Referral Program</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            auto\_join

            <br />

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

        <td>
          <p>Indicates whether customers will be able to auto-join the campaign if any earning rule is fulfilled.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            join\_once

            <br />

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

        <td>
          <p>
            If this value is set to
            <code>true</code>,
            customers will be able to join the campaign only once. It is always
            <code>false</code>
            for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always
            <code>true</code>
            for loyalty campaigns and it cannot be changed in them.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            active

            <br />

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

        <td>
          <p>Indicates whether the campaign is active.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>The unique category ID that this campaign belongs to.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            category

            <br />

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

        <td>
          <p>Unique category name.</p>
        </td>
      </tr>

      <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>
            metadata

            <br />

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

        <td>
          <p>A set of custom key/value pairs that you can attach to a campaign. The metadata object stores all custom attributes assigned to the campaign.</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 inactive
            <em>before</em>
            this date.
          </p>

          <p>
            <strong>Example:</strong>
            2022-09-20T00: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 inactive
            <em>after</em>
            this date.
          </p>

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

      <tr>
        <td>
          <p>
            description

            <br />

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

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

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

            <br />

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

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

          <p>
            <strong>Example:</strong>
            2024-01-01T11:11:11.111Z
          </p>
        </td>
      </tr>

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

            <br />

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

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

          <p>
            <strong>Example:</strong>
            2024-01-01T11:11:11.111Z
          </p>
        </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 campaign.</p>

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

  <h2 id="simple-voucher">Simple Voucher</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>A unique identifier that represents the voucher assigned by Voucherify.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            code

            <br />

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

        <td>
          <p>Voucher code.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>gift</p>
        </td>

        <td>
          <p>Gift object response.</p>
          <a href="#gift">Gift</a>
        </td>
      </tr>

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

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

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

            <br />

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

        <td>
          <p>Defines the loyalty card details.</p>
          <a href="#simple-loyalty-card">Simple Loyalty Card</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            type

            <br />

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

        <td>
          <p>Type of the voucher.</p>

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

      <tr>
        <td>
          <p>
            campaign

            <br />

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

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

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

            <br />

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

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

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

            <br />

            <code>boolean</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>
            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 referrer assigned by Voucherify.</p>

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

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

            <br />

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

        <td>
          <p>Unique identifier of the category that this voucher belongs to.</p>

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

      <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>
            active

            <br />

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

        <td>
          <p>
            Shows whether the voucher is on or off.
            <code>true</code>
            indicates an
            <em>active</em>
            voucher and
            <code>false</code>
            indicates an
            <em>inactive</em>
            voucher.
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Timestamp representing the date and time when the order was created 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 order was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2024-01-01T11:11:11.111Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            redemption

            <br />

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

        <td>
          <p>Defines the redemption limits on vouchers.</p>

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

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

                    <br />

                    <code>integer</code>,
                    <code>null</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>
                </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>
            metadata

            <br />

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

        <td>
          <p>A set of custom key/value pairs that you can attach to a voucher. The metadata object stores all custom attributes assigned to the voucher.</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>voucher</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="custom-event">Custom Event</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 custom event ID.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            object

            <br />

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

        <td>
          <p>
            The object represented is an
            <code>event</code>.
          </p>

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

      <tr>
        <td>
          <p>
            type

            <br />

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

        <td>
          <p>The event name.</p>
        </td>
      </tr>

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

        <td>
          <p>A simple customer object</p>
          <a href="#customer-object-required-object-type">Customer Object Required Object Type</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            referral

            <br />

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

        <td>
          <p>Referral object.</p>

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

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

                    <br />

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

                <td>
                  <p>Unique referrer ID.</p>

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

              <tr>
                <td>
                  <p>
                    code

                    <br />

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

                <td>
                  <p>Voucher code.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    id

                    <br />

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

                <td>
                  <p>Unique voucher ID.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            loyalty

            <br />

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

        <td>
          <p>Loyalty object.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    code

                    <br />

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

                <td>
                  <p>Loyalty card 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 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 custom event 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>
    </tbody>
  </table>

  <h2 id="redemption-internal">Redemption Internal</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 redemption ID.</p>

          <p>
            <strong>Example:</strong>
            r\_0bc92f81a6801f9bca
          </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>redemption</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 redemption 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>
            tracking\_id

            <br />

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

        <td>
          <p>Hashed customer source ID.</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 redemption.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            channel\_type

            <br />

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

        <td>
          <p>
            The source of the channel for the redemption rollback. A
            <code>USER</code>
            corresponds to the Voucherify Dashboard and an
            <code>API</code>
            corresponds to the API.
          </p>

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

      <tr>
        <td>
          <p>
            channel\_id

            <br />

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

        <td>
          <p>Unique channel ID of the user performing the redemption. This is either a user ID from a user using the Voucherify Dashboard or an X-APP-Id of a user using the API.</p>

          <p>
            <strong>Example:</strong>
            user\_g24UoRO3Caxu7FCT4n5tpYEa3zUG0FrH
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            failure\_code

            <br />

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

        <td>
          <p>
            If the result is
            <code>FAILURE</code>,
            this parameter will provide a generic reason as to why the redemption failed.
          </p>

          <p>
            <strong>Example:</strong>
            customer\_rules\_violated
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            failure\_message

            <br />

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

        <td>
          <p>
            If the result is
            <code>FAILURE</code>,
            this parameter will provide a more expanded reason as to why the redemption failed.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>order</p>
        </td>

        <td>
          All of:

          <ol>
            <li>
              <a href="#order-calculated-no-customer-data">Order Calculated No Customer Data</a>
            </li>

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

                <tbody>
                  <tr>
                    <td>
                      <p>
                        items

                        <br />

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

                    <td>
                      <p>Array of items applied to the order. It can include up to 500 items.</p>
                      Array of
                      <a href="#order-item-calculated">Order Item Calculated</a>
                    </td>
                  </tr>
                </tbody>
              </table>
            </li>
          </ol>
        </td>
      </tr>

      <tr>
        <td>
          <p>previous\_order</p>
        </td>

        <td>
          All of:

          <ol>
            <li>
              <a href="#order-calculated-no-customer-data">Order Calculated No Customer Data</a>
            </li>

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

                <tbody>
                  <tr>
                    <td>
                      <p>
                        items

                        <br />

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

                    <td>
                      <p>Array of items applied to the order. It can include up to 500 items.</p>
                      Array of
                      <a href="#order-item-calculated">Order Item Calculated</a>
                    </td>
                  </tr>
                </tbody>
              </table>
            </li>
          </ol>
        </td>
      </tr>

      <tr>
        <td>
          <p>reward</p>
        </td>

        <td>
          See:
          <a href="#redemption-reward-result">Redemption Reward Result</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            amount

            <br />

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

        <td>
          <p>
            For gift cards, this is a positive integer in the smallest currency unit (e.g. 100 cents for \$1.00) representing the number of redeemed credits.

            <br />

            For loyalty cards, this is the number of loyalty points used in the transaction.
          </p>

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

      <tr>
        <td>
          <p>
            reason

            <br />

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

        <td>
          <p>System generated cause for the redemption being invalid in the context of the provided parameters.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            result

            <br />

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

        <td>
          <p>Redemption result.</p>

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

      <tr>
        <td>
          <p>
            status

            <br />

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

        <td>
          <p>Redemption status.</p>

          <p>
            Available values:
            <code>SUCCEEDED</code>,
            <code>FAILED</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            related\_redemptions

            <br />

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

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

            <tbody>
              <tr>
                <td>
                  <p>
                    rollbacks

                    <br />

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

                <td>
                  Array of:
                  <h4>Redemption Internal Related Redemptions Rollbacks Item</h4>

                  <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 rollback redemption ID.</p>

                          <p>
                            <strong>Example:</strong>
                            rr\_0bc92f81a6801f9bca
                          </p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            date

                            <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>
                            2021-12-22T10:13:06.487Z
                          </p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    redemptions

                    <br />

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

                <td>
                  Array of:
                  <h4>Redemption Internal Related Redemptions Item</h4>

                  <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 redemption ID.</p>

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

                      <tr>
                        <td>
                          <p>
                            date

                            <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>
                            2021-12-22T10:13:06.487Z
                          </p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            parent\_redemption\_id

            <br />

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

        <td>
          <p>Unique redemption ID of the parent redemption.</p>

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

      <tr>
        <td>
          <p>
            redemption

            <br />

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

        <td>
          <p>Unique redemption ID of the parent redemption.</p>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Unique customer ID of the redeeming customer.</p>

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

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

            <br />

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

        <td>
          <p>Defines the related object.</p>

          <p>
            Available values:
            <code>voucher</code>,
            <code>promotion\_tier</code>
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Unique related object ID assigned by Voucherify, i.e. v\_lfZi4rcEGe0sN9gmnj40bzwK2FH6QUno for a voucher.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Unique related parent object ID assigned by Voucherify, i.e. v\_lfZi4rcEGe0sN9gmnj40bzwK2FH6QUno for a voucher.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            campaign\_name

            <br />

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

        <td>
          <p>Campaign name</p>
        </td>
      </tr>

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

        <td>
          <p>Defines the details of the voucher being redeemed.</p>
          All of:

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

            <li>
              <a href="#voucher-holder">Voucher Holder</a>
            </li>
          </ol>
        </td>
      </tr>

      <tr>
        <td>
          <p>promotion\_tier</p>
        </td>

        <td>
          <p>Contains details of the promotion tier and the parent campaign.</p>
          <a href="#promotion-tier">Promotion Tier</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="simple-custom-event">Simple Custom Event</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 identifier of the custom event.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

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

        <td>
          <p>Name of the custom event.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="simple-segment">Simple Segment</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 segment ID.</p>

          <p>
            <strong>Example:</strong>
            seg\_DNAOhUtJffvX0f57ajLMFBYR
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

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

        <td>
          <p>Segment name.</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>segment</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-sent">Event Customer Sent</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            distribution

            <br />

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

        <td />
      </tr>

      <tr>
        <td>
          <p>
            sent\_at

            <br />

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

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

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

  <h2 id="event-customer-recovered">Event Customer Recovered</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            distribution

            <br />

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

        <td />
      </tr>

      <tr>
        <td>
          <p>
            recovered\_at

            <br />

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

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

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

  <h2 id="event-customer-failed">Event Customer Failed</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            distribution

            <br />

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

        <td />
      </tr>

      <tr>
        <td>
          <p>
            failed\_at

            <br />

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

        <td>
          <p>Timestamp representing the date and time when the distribution failed in ISO 8601 format.</p>

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

  <h2 id="simple-redemption-reward-result">Simple Redemption Reward Result</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            assignment\_id

            <br />

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

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

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

        <td>
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

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

        <td>
          <a href="#simple-product">Simple Product</a>
        </td>
      </tr>

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

        <td>
          <a href="#simple-sku">Simple Sku</a>
        </td>
      </tr>

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

            <br />

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

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

      <tr>
        <td>
          <p>
            id

            <br />

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

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

          <p>
            <strong>Example:</strong>
            rew\_nIy4gHpQHle2c3pNMwuj7G6j
          </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 reward.</p>

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

      <tr>
        <td>
          <p>
            name

            <br />

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

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

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

            <br />

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

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

          <p>
            <strong>Example:</strong>
            2024-01-01T11:11:11.111Z
          </p>
        </td>
      </tr>

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

            <br />

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

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

          <p>
            <strong>Example:</strong>
            2024-01-01T11:11:11.111Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            parameters

            <br />

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

        <td>
          <p>Defines how the reward is generated.</p>
          <a href="#reward-type">Reward type</a>
        </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 reward. The metadata object stores all custom attributes assigned to the reward.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            type

            <br />

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

        <td>
          <p>Reward type.</p>

          <p>
            Available values:
            <code>CAMPAIGN</code>,
            <code>COIN</code>,
            <code>MATERIAL</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="simple-referral-tier">Simple Referral 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 referral tier ID.</p>

          <p>
            <strong>Example:</strong>
            seg\_DNAOhUtJffvX0f57ajLMFBYR
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Campaign Id.</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>
            parameters

            <br />

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

        <td>
          <p>Referral tier parameters</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="loyalty-tier">Loyalty Tier</h2>
  <p>All of:</p>

  <ol>
    <li>
      <a href="#loyalty-tier-base">Loyalty Tier Base</a>
    </li>

    <li>
      <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 loyalty tier ID.</p>
            </td>
          </tr>

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

                <br />

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

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

          <tr>
            <td>
              <p>
                metadata

                <br />

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

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

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

                <br />

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

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

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

                <br />

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

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

          <tr>
            <td>
              <p>
                config

                <br />

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

            <td>
              <p>Defines loyalty tier range in points.</p>

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

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

                        <br />

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

                    <td>
                      <p>Defines range of loyalty tier in points.</p>

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

                        <tbody>
                          <tr>
                            <td>
                              <p>
                                from

                                <br />

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

                            <td>
                              <p>Bottom points threshold value.</p>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                to

                                <br />

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

                            <td>
                              <p>Top points threshold value.</p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>

          <tr>
            <td>
              <p>expiration</p>
            </td>

            <td>
              See:
              <a href="#loyalty-tier-expiration">Loyalty Tier Expiration</a>
            </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 loyalty.</p>

              <p>
                Available values:
                <code>loyalty\_tier</code>
              </p>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="earning-rule">Earning Rule</h2>
  <p>All of:</p>

  <ol>
    <li>
      <a href="#earningrulebase">EarningRuleBase</a>
    </li>

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

        <tbody>
          <tr>
            <td>
              <p>
                validation\_rule\_id

                <br />

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

            <td>
              <p>A unique validation rule identifier assigned by the Voucherify API. The validation rule is verified before points are added to the balance.</p>
            </td>
          </tr>

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

                <br />

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

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

          <tr>
            <td>
              <p>
                active

                <br />

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

            <td>
              <p>A flag to toggle the earning rule on or off. You can disable an earning rule even though it's within the active period defined by the start\_date and expiration\_date of the campaign or the earning rule's own start\_date and expiration\_date.</p>

              <ul>
                <li>
                  <code>true</code>
                  indicates an active earning rule
                </li>

                <li>
                  <code>false</code>
                  indicates an inactive earning rule
                </li>
              </ul>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="voucher-balance">Voucher Balance</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>The type of voucher whose balance is being adjusted due to the transaction.</p>

          <p>
            Available values:
            <code>loyalty\_card</code>,
            <code>gift\_voucher</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            total

            <br />

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

        <td>
          <p>The number of all points or credits accumulated on the card as affected by add or subtract operations.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            object

            <br />

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

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

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

      <tr>
        <td>
          <p>
            amount

            <br />

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

        <td>
          <p>Credits added or subtracted on a gift card.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            points

            <br />

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

        <td>
          <p>Points added or subtracted in the transaction of a loyalty card.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            balance

            <br />

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

        <td>
          <p>The available points or credits on the card after the transaction as affected by redemption or rollback.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            operation\_type

            <br />

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

        <td>
          <p>
            The type of the operation being performed. The operation type is
            <code>AUTOMATIC</code>
            if it is an automatic redemption.
          </p>

          <p>
            Available values:
            <code>MANUAL</code>,
            <code>AUTOMATIC</code>
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Defines the resource that is being modified with the values that are returned in the balance object.</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>Identifies the voucher that is being modified. The ID is assigned by the Voucherify API.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    type

                    <br />

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

                <td>
                  <p>The object being modified, i.e. voucher.</p>

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

  <h2 id="order-calculated-no-customer-data">Order Calculated No Customer Data</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 ID assigned by Voucherify of an existing order that will be linked to the redemption of this request.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Unique source ID of an existing order that will be linked to the redemption of this request.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            status

            <br />

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

        <td>
          <p>The order status.</p>

          <p>
            Available values:
            <code>CREATED</code>,
            <code>PAID</code>,
            <code>CANCELED</code>,
            <code>FULFILLED</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            amount

            <br />

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

        <td>
          <p>This is the sum of the order items' amounts. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            initial\_amount

            <br />

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

        <td>
          <p>This is the sum of the order items' amounts before any discount or other effect (e.g. add missing units) is applied. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            discount\_amount

            <br />

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

        <td>
          <p>Sum of all order-level discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Sum of all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Sum of all order-level AND all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Order amount after undoing all the discounts through the rollback redemption. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>This field shows the order-level discount applied. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            items\_applied\_discount\_amount

            <br />

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

        <td>
          <p>
            Sum of all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).

            <br />

            <code>sum(items, i =>i.applied\_discount\_amount)</code>
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>
            Sum of all order-level AND all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).

            <br />

            <code>total\_applied\_discount\_amount</code>
            \=
            <code>applied\_discount\_amount</code>
            \+
            <code>items\_applied\_discount\_amount</code>
          </p>
        </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 an order. It can be useful for storing additional information about the order in a structured format. It can be used to define business validation rules or discount formulas.</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>order</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 order 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>,
            <code>null</code>
          </p>
        </td>

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

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

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

            <br />

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

        <td>
          <p>Unique customer identifier of the customer making the purchase. The ID is assigned by Voucherify.</p>

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

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

            <br />

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

        <td>
          <p>Unique referrer ID.</p>

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

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

        <td>
          <a href="#customer-id">Customer Id</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>referrer</p>
        </td>

        <td>
          <a href="#referrer-id">Referrer Id</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            redemptions

            <br />

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

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

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

                <td>
                  See:
                  <a href="#order-redemptions">Order Redemptions</a>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="order-item-calculated">Order Item Calculated</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 identifier of the order line item.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            sku\_id

            <br />

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

        <td>
          <p>Unique identifier of the SKU. It is assigned by Voucherify.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            product\_id

            <br />

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

        <td>
          <p>Unique identifier of the product. It is assigned by Voucherify.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Used along with the source\_id property, can be set to either sku or product.</p>

          <p>
            Available values:
            <code>product</code>,
            <code>sku</code>
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>The merchant's product/SKU ID (if it is different from the Voucherify product/SKU ID). It is useful in the integration between multiple systems. It can be an ID from an eCommerce site, a database, or a third-party service.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            quantity

            <br />

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

        <td>
          <p>The quantity of the particular item in the cart.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            discount\_quantity

            <br />

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

        <td>
          <p>Number of dicounted items.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            initial\_quantity

            <br />

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

        <td>
          <p>A positive integer in the smallest unit quantity representing the total amount of the order; this is the sum of the order items' quantity.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            amount

            <br />

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

        <td>
          <p>The total amount of the order item (price \* quantity).</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            discount\_amount

            <br />

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

        <td>
          <p>Sum of all order-item-level discounts applied to the order.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>This field shows the order-level discount applied.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            applied\_discount\_quantity

            <br />

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

        <td>
          <p>Number of the discounted items applied in the transaction.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            applied\_quantity

            <br />

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

        <td>
          <p>Quantity of items changed by the application of a new quantity items. It can be positive when an item is added or negative if an item is replaced.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            applied\_quantity\_amount

            <br />

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

        <td>
          <p>Amount for the items changed by the application of a new quantity items. It can be positive when an item is added or negative if an item is replaced.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            initial\_amount

            <br />

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

        <td>
          <p>A positive integer in the smallest currency unit (e.g. 100 cents for \$1.00) representing the total amount of the order. This is the sum of the order items' amounts.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            price

            <br />

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

        <td>
          <p>
            Unit price of an item. 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>
            subtotal\_amount

            <br />

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

        <td>
          <p>
            Final order item amount after the applied item-level discount. If there are no item-level discounts applied, this item is equal to the
            <code>amount</code>.

            <br />

            <code>subtotal\_amount</code>
            \=
            <code>amount</code>
            \-
            <code>applied\_discount\_amount</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            product

            <br />

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

        <td>
          <p>An object containing details of the related product.</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>A unique identifier that represents the product and is assigned by Voucherify.</p>
                </td>
              </tr>

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

                    <br />

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

                <td>
                  <p>The merchant's product ID (if it is different than Voucherify's product ID). It is really useful in case of integration between multiple systems. It can be an ID from an eCommerce site, a database or a 3rd party service.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    override

                    <br />

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

                <td>
                  <p>
                    The override set to
                    <code>true</code>
                    is used to store the product information in the system. If the product does not exist, it will be created with a source\_id; if it does exist, the provided values for the name, price, and metadata will replace those already stored in the system.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    name

                    <br />

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

                <td>
                  <p>Product name.</p>
                </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 product. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    price

                    <br />

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

                <td>
                  <p>Product price. A positive integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            sku

            <br />

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

        <td>
          <p>An object containing details of the related SKU.</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>A unique identifier that represents the SKU and is assigned by Voucherify.</p>
                </td>
              </tr>

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

                    <br />

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

                <td>
                  <p>The merchant's SKU ID (if it is different than Voucherify's SKU ID). It is really useful in case of integration between multiple systems. It can be an ID from an eCommerce site, a database or a 3rd party service.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    override

                    <br />

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

                <td>
                  <p>
                    The override set to
                    <code>true</code>
                    is used to store the product information in the system. If the product does not exist, it will be created with a source\_id; if it does exist, the provided values for the name, price, and metadata will replace those already stored in the system.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    sku

                    <br />

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

                <td>
                  <p>The SKU name.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    price

                    <br />

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

                <td>
                  <p>SKU price. A positive integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
                </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 an SKU. It can be useful for storing additional information about the SKU in a structured format. It can be used to create product collections.</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>order\_item</code>
          </p>
        </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 an item object. It can be useful for storing additional information about the item in a structured format. It can be used to define business validation rules or discount formulas.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="simple-event">Simple Event</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 identifier assigned by Voucherify that will be linked to the this event.</p>

          <p>
            <strong>Example:</strong>
            evcus\_0e3070fef399b70b00
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            type

            <br />

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

        <td>
          <p>Type of the triggering event.</p>

          <p>
            <strong>Example:</strong>
            customer.order.paid
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            category

            <br />

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

        <td>
          <p>Type of the event.</p>

          <p>
            Available values:
            <code>EFFECT</code>,
            <code>ACTION</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            entity\_id

            <br />

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

        <td>
          <p>ID of the entity that initiated the event.</p>

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

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

            <br />

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

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

          <p>
            <strong>Example:</strong>
            2024-01-01T11:11:11.111Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            group\_id

            <br />

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

        <td>
          <p>Unique identifier of the request that triggered the event.</p>

          <p>
            <strong>Example:</strong>
            v-1f36113948e50fc4ge
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="voucher-transaction-base">Voucher Transaction 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>Unique transaction ID.</p>
        </td>
      </tr>

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

            <br />

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

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

      <tr>
        <td>
          <p>
            voucher\_id

            <br />

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

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

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

            <br />

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

        <td>
          <p>Unqiue campaign ID of the voucher's parent campaign if it is part of campaign that generates bulk codes.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            source

            <br />

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

        <td>
          <p>The channel through which the transaction took place, whether through the API or the Dashboard. In case of a redemption, this value is null.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            reason

            <br />

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

        <td>
          <p>Reason why the transaction occurred. In case of a redemption, this value is null.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>The related transaction ID on the receiving card.</p>
        </td>
      </tr>

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

            <br />

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

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

  <h2 id="simple-order">Simple Order</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 identifier of an existing order that will be linked to the redemption of this request.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Unique source identifier of an existing order that will be linked to the redemption of this request.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            status

            <br />

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

        <td>
          <p>The order status.</p>

          <p>
            Available values:
            <code>CREATED</code>,
            <code>PAID</code>,
            <code>CANCELED</code>,
            <code>FULFILLED</code>
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Unique customer identifier of the customer making the purchase. The ID is assigned by Voucherify.</p>

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

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

            <br />

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

        <td>
          <p>Unique identifier of the referrer assigned by Voucherify.</p>

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

      <tr>
        <td>
          <p>
            amount

            <br />

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

        <td>
          <p>A positive integer in the smallest currency unit (e.g. 100 cents for \$1.00) representing the total amount of the order. This is the sum of the order items' amounts.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            discount\_amount

            <br />

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

        <td>
          <p>Sum of all order-level discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>This field shows the order-level discount applied. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Sum of all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            items\_applied\_discount\_amount

            <br />

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

        <td>
          <p>
            Sum of all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).

            <br />

            <code>sum(items, i =>i.applied\_discount\_amount)</code>
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Sum of all order-level AND all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>
            Sum of all order-level AND all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).

            <br />

            <code>total\_applied\_discount\_amount</code>
            \=
            <code>applied\_discount\_amount</code>
            \+
            <code>items\_applied\_discount\_amount</code>
          </p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Order amount after undoing all the discounts through the rollback redemption. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for \$1.00).</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            items

            <br />

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

        <td>
          <p>Array of items applied to the order. It can include up to 500 items.</p>
          Array of
          <a href="#simple-order-item">Simple Order Item</a>
        </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 an order. It can be useful for storing additional information about the order in a structured format. It can be used to define business validation rules or discount formulas.</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>order</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="voucher-transaction">Voucher Transaction</h2>
  <p>All of:</p>

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

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

        <tbody>
          <tr>
            <td>
              <p>
                details

                <br />

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

            <td>
              <p>Contains the detailed information about the transaction.</p>

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

                <tbody>
                  <tr>
                    <td>
                      <p>balance</p>
                    </td>

                    <td>
                      See:
                      <a href="#voucher-balance">Voucher Balance</a>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        order

                        <br />

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

                    <td>
                      <p>Contains information about the original order.</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 order ID.</p>
                            </td>
                          </tr>

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

                                <br />

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

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

                  <tr>
                    <td>
                      <p>
                        event

                        <br />

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

                    <td>
                      <p>Contains information about the event that triggers the point accrual.</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 event ID.</p>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                type

                                <br />

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

                            <td>
                              <p>Type of event.</p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        earning\_rule

                        <br />

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

                    <td>
                      <p>Contains information about the earning rule.</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 identifier of an earning rule, assigned by Voucherify.</p>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                source

                                <br />

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

                            <td>
                              <p>Contains the custom earning rule name.</p>

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

                                <tbody>
                                  <tr>
                                    <td>
                                      <p>
                                        banner

                                        <br />

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

                                    <td>
                                      <p>Name of the earning rule. This is displayed as a header for the earning rule in the Dashboard.</p>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        segment

                        <br />

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

                    <td>
                      <p>Contains information about the segment.</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 identifier of the segment.</p>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                name

                                <br />

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

                            <td>
                              <p>Name of the segment.</p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

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

                        <br />

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

                    <td>
                      <p>Contains information about the loyalty tier that is mapped for the earning rule and used in the transaction.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                name

                                <br />

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

                            <td>
                              <p>User-defined name of the loyalty tier.</p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        redemption

                        <br />

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

                    <td>
                      <p>Contains information about the original redemption.</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 redemption ID.</p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        rollback

                        <br />

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

                    <td>
                      <p>Contains information about the redemption rollback.</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 identifier of the redemption rollback.</p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        custom\_event

                        <br />

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

                    <td>
                      <p>Contains information about the custom event that triggers the point accrual.</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 identifier of the event.</p>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                type

                                <br />

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

                            <td>
                              <p>Type of the custom event.</p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        event\_schema

                        <br />

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

                    <td>
                      <p>Contains information about the custom event metadata schema.</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 identifier of the metadata schema.</p>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                name

                                <br />

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

                            <td>
                              <p>Type of the custom event.</p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        holder\_loyalty\_tier

                        <br />

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

                    <td>
                      <p>Loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was before the loyalty point balance changed.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                name

                                <br />

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

                            <td>
                              <p>User-defined name of the loyalty tier.</p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>

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

                    <td>
                      See:
                      <a href="#loyalty-pending-point-entry">Loyalty Pending Point Entry</a>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>
                        reward

                        <br />

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

                    <td>
                      <p>Contains information about the pay with points reward.</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 reward ID.</p>
                            </td>
                          </tr>

                          <tr>
                            <td>
                              <p>
                                name

                                <br />

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

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

                  <tr>
                    <td>
                      <p>source\_voucher</p>
                    </td>

                    <td>
                      <p>Contains information on how the balance on the donor loyalty card was affected by the transaction.</p>
                      <a href="#simple-voucher">Simple Voucher</a>
                    </td>
                  </tr>

                  <tr>
                    <td>
                      <p>destination\_voucher</p>
                    </td>

                    <td>
                      <p>Contains information on how the balance on the receiving loyalty card was affected by the transaction.</p>
                      <a href="#simple-voucher">Simple Voucher</a>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>

          <tr>
            <td>
              <p>type</p>
            </td>

            <td>
              One of:

              <ol>
                <li>
                  <a href="#gift-card-transactions-type">Gift Card Transactions Type</a>
                </li>

                <li>
                  <a href="#loyalty-card-transactions-type">Loyalty Card Transactions Type</a>
                </li>
              </ol>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="loyalty-pending-point-entry">Loyalty Pending Point Entry</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 identifier of the pending point entry, assigned by Voucherify.</p>

          <p>
            <strong>Example:</strong>
            lopp\_0ffd593d5ad207ba6b
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            voucher\_id

            <br />

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

        <td>
          <p>Unique identifier of the loyalty card, assigned by Voucherify.</p>

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

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

            <br />

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

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

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

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

            <br />

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

        <td>
          <p>Unique customer identifier, assigned by Voucherify.</p>

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

      <tr>
        <td>
          <p>
            order\_id

            <br />

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

        <td>
          <p>Unique order identifier, assigned by Voucherify.</p>

          <p>
            <strong>Example:</strong>
            ord\_0ffc0fa65f15d2df17
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            points

            <br />

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

        <td>
          <p>Number of points in the pending state.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            activates\_at

            <br />

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

        <td>
          <p>Date when the pending points are activated and added to the customer's loyalty card.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>details</p>
        </td>

        <td>
          See:
          <a href="#pending-point-details">Pending Point Details</a>
        </td>
      </tr>

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

            <br />

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

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

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

            <br />

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

        <td>
          <p>Timestamp representing the date and time when the pending point entry was modified. The value is shown in the ISO 8601 format.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="loyalty-point-bucket">Loyalty Point Bucket</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 identifier of the loyalty points bucket.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            voucher\_id

            <br />

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

        <td>
          <p>Unique identifier of the parent loyalty card.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Unique identifier of the parent campaign.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            bucket

            <br />

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

        <td>
          <p>Defines the number of points stored in this loyalty point bucket.</p>

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

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

                    <br />

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

                <td>
                  <p>Total number of points in the loyalty point bucket.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            status

            <br />

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

        <td>
          <p>Loyalty point bucket status.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            expires\_at

            <br />

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

        <td>
          <p>Date when the number of points defined in the bucket object are due to expire.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Timestamp representing the date and time when the loyalty point bucket object was created in ISO 8601 format.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Timestamp representing the date and time when the loyalty point bucket object was updated in ISO 8601 format.</p>
        </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 loyalty point bucket.</p>

          <p>
            Available values:
            <code>loyalty\_points\_bucket</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="valid-single-voucher">Valid Single Voucher</h2>
  <p>All of:</p>

  <ol>
    <li>
      <a href="#list-publications-item-base">List Publications Item Base</a>
    </li>

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

        <tbody>
          <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>voucher</p>
            </td>

            <td>
              See:
              <a href="#list-publications-item-voucher">List Publications Item Voucher</a>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="validation-entity">Validation Entity</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 validation id.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            session\_id

            <br />

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

        <td>
          <p>Unique session id.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            status

            <br />

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

        <td>
          <p>The validation status</p>

          <p>
            Available values:
            <code>VALID</code>,
            <code>INVALID</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 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>
            customer\_id

            <br />

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

        <td>
          <p>Unique customer identifier of the customer making the purchase. The ID is assigned by Voucherify.</p>

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

      <tr>
        <td>
          <p>
            redeemables

            <br />

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

        <td>
          <p>Lists validation results of each redeemable.</p>
          Array of:

          <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 identifier of the redeemable, assigned by Voucherify.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    type

                    <br />

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

                <td>
                  <p>Type of the redeemable.</p>

                  <p>
                    Available values:
                    <code>voucher</code>,
                    <code>promotion\_tier</code>
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            skipped\_redeemables

            <br />

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

        <td>
          <p>Lists validation results of each redeemable.</p>
          Array of:

          <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 identifier of the redeemable, assigned by Voucherify.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    type

                    <br />

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

                <td>
                  <p>Type of the redeemable.</p>

                  <p>
                    Available values:
                    <code>voucher</code>,
                    <code>promotion\_tier</code>
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            inapplicable\_redeemables

            <br />

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

        <td>
          <p>Lists validation results of each redeemable.</p>
          Array of:

          <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 identifier of the redeemable, assigned by Voucherify.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    type

                    <br />

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

                <td>
                  <p>Type of the redeemable.</p>

                  <p>
                    Available values:
                    <code>voucher</code>,
                    <code>promotion\_tier</code>
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-redemption">Event Customer Redemption</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>order</p>
        </td>

        <td>
          See:
          <a href="#simple-order">Simple Order</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>holder</p>
        </td>

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>promotion\_tier</p>
        </td>

        <td>
          See:
          <a href="#simple-promotion-tier">Simple Promotion Tier</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>promotion\_stack</p>
        </td>

        <td>
          See:
          <a href="#simple-promotion-stack">Simple Promotion Stack</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>redemption</p>
        </td>

        <td>
          See:
          <a href="#simple-redemption">Simple Redemption</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="simple-redemption">Simple Redemption</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 redemption ID.</p>

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

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

            <br />

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

        <td>
          <p>Unique customer ID of the redeeming customer.</p>

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

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

            <br />

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

        <td>
          <p>Hashed customer source ID.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            date

            <br />

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

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

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

      <tr>
        <td>
          <p>
            amount

            <br />

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

        <td>
          <p>
            For gift cards, this is a positive integer in the smallest currency unit (e.g. 100 cents for \$1.00) representing the number of redeemed credits.

            <br />

            For loyalty cards, this is the number of loyalty points used in the transaction.

            <br />

            In the case of redemption rollback, the numbers are expressed as negative integers.
          </p>

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

      <tr>
        <td>
          <p>order</p>
        </td>

        <td>
          See:
          <a href="#simple-order">Simple Order</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>reward</p>
        </td>

        <td>
          See:
          <a href="#simple-redemption-reward-result">Simple Redemption Reward Result</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            result

            <br />

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

        <td>
          <p>Redemption result.</p>

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

      <tr>
        <td>
          <p>
            status

            <br />

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

        <td>
          <p>
            Available values:
            <code>SUCCEEDED</code>,
            <code>FAILED</code>,
            <code>ROLLED BACK</code>
          </p>
        </td>
      </tr>

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

        <td>
          <p>Defines the details of the voucher being redeemed.</p>
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>promotion\_tier</p>
        </td>

        <td>
          See:
          <a href="#simple-promotion-tier">Simple Promotion Tier</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            redemption

            <br />

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

        <td>
          <p>Unique redemption ID of the parent redemption.</p>

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

      <tr>
        <td>
          <p>
            metadata

            <br />

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

        <td>
          <p>The metadata object stores all custom attributes in the form of key/value pairs assigned to the redemption.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            failure\_code

            <br />

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

        <td>
          <p>
            If the result is
            <code>FAILURE</code>,
            this parameter will provide a generic reason as to why the redemption failed.
          </p>

          <p>
            <strong>Example:</strong>
            customer\_rules\_violated
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            failure\_message

            <br />

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

        <td>
          <p>
            If the result is
            <code>FAILURE</code>,
            this parameter will provide an expanded reason as to why the redemption failed.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            reason

            <br />

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

        <td>
          <p>The reason for the redemption rollback.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            channel

            <br />

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

        <td>
          <p>Defines the details of the channel through which the redemption was issued.</p>

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

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

                    <br />

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

                <td>
                  <p>Unique channel ID of the user performing the redemption. This is either a user ID from a user using the Voucherify Dashboard, an X-APP-Id of a user using the API, or the reward assignment ID for automatic reward redemption.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    channel\_type

                    <br />

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

                <td>
                  <p>
                    The source of the channel for the redemption:

                    <br />

                    <code>USER</code>
                    \- the redemption was made in the Voucherify Dashboard by a user,

                    <br />

                    <code>API</code>
                    \- redemption was made through the API,

                    <br />

                    <code>AUTO\_REDEEM</code>
                    \- the redemption was made automatically for a reward.
                  </p>

                  <p>
                    Available values:
                    <code>API</code>,
                    <code>AUTO\_REDEEM</code>,
                    <code>USER</code>
                  </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 the JSON. This object stores information about the
            <code>redemption</code>.
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-order">Event Customer Order</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>referrer</p>
        </td>

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>order</p>
        </td>

        <td>
          All of:

          <ol>
            <li>
              <a href="#order-calculated-no-customer-data">Order Calculated No Customer Data</a>
            </li>

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

                <tbody>
                  <tr>
                    <td>
                      <p>
                        items

                        <br />

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

                    <td>
                      <p>Array of items applied to the order. It can include up to 500 items.</p>
                      Array of
                      <a href="#order-item-calculated">Order Item Calculated</a>
                    </td>
                  </tr>
                </tbody>
              </table>
            </li>
          </ol>
        </td>
      </tr>

      <tr>
        <td>
          <p>redemption</p>
        </td>

        <td>
          See:
          <a href="#redemption-internal">Redemption Internal</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-reward-redemptions">Event Customer Reward Redemptions</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>holder</p>
        </td>

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

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

        <td>
          See:
          <a href="#simple-voucher">Simple Voucher</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            reward\_redemption

            <br />

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

        <td />
      </tr>

      <tr>
        <td>
          <p>reward</p>
        </td>

        <td>
          See:
          <a href="#simple-redemption-reward-result">Simple Redemption Reward Result</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>reward\_assignment</p>
        </td>

        <td>
          See:
          <a href="#reward-assignment">Reward Assignment</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            source

            <br />

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

        <td />
      </tr>

      <tr>
        <td>
          <p>
            balance

            <br />

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

        <td />
      </tr>
    </tbody>
  </table>

  <h2 id="event-customer-loyalty-tier-base">Event Customer Loyalty Tier Base</h2>

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

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

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>campaign</p>
        </td>

        <td>
          See:
          <a href="#simple-campaign">Simple Campaign</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="redeemable-holder">Redeemable Holder</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 identifier of the redeemable holder.</p>

          <p>
            <strong>Example:</strong>
            rh\_0e7b8db4700106a852
          </p>
        </td>
      </tr>

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

            <br />

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

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

          <p>
            <strong>Example:</strong>
            2024-03-22T17:48:25.910Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            redeemable\_id

            <br />

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

        <td>
          <p>Identifier of the redeemable item.</p>

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

      <tr>
        <td>
          <p>
            redeemable\_object

            <br />

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

        <td>
          <p>Type of the redeemable.</p>

          <p>
            Available values:
            <code>voucher</code>
          </p>

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

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

            <br />

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

        <td>
          <p>Unique identifier of the campaign as assigned by Voucherify.</p>

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

      <tr>
        <td>
          <p>
            campaign\_type

            <br />

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

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

          <p>
            Available values:
            <code>REFERRAL\_PROGRAM</code>
          </p>

          <p>
            <strong>Example:</strong>
            REFERRAL\_PROGRAM
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            voucher\_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>

          <p>
            <strong>Example:</strong>
            DISCOUNT\_VOUCHER
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            publication\_id

            <br />

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

        <td>
          <p>Unique identifier of the publication.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Unique identifier of the customer.</p>

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

      <tr>
        <td>
          <p>
            holder\_role

            <br />

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

        <td>
          <p>Role of the holder.</p>

          <p>
            Available values:
            <code>OWNER</code>,
            <code>REFERRER</code>,
            <code>REFEREE</code>
          </p>

          <p>
            <strong>Example:</strong>
            REFERRER
          </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>redeemable\_holder</code>
          </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="simple-campaign-voucher">Simple Campaign Voucher</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>Type of the voucher.</p>

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

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

        <td>
          <p>Defines the voucher discount type and details.</p>
          <a href="#discount">Discount</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>gift</p>
        </td>

        <td>
          <p>Defines the voucher gift details.</p>
          <a href="#gift">Gift</a>
        </td>
      </tr>

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

        <td>
          <p>Defines the voucher loyalty card details.</p>
          <a href="#campaign-loyalty-card">Campaign Loyalty Card</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            redemption

            <br />

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

        <td>
          <p>Defines the redemption limits on vouchers.</p>

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

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

                    <br />

                    <code>integer</code>,
                    <code>null</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>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>code\_config</p>
        </td>

        <td>
          <a href="#code-config">Code Config</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="referral-program">Referral Program</h2>

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

    <tbody>
      <tr>
        <td>
          <p>
            conversion\_event\_type

            <br />

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

        <td>
          <p>Define how a referral is triggered.</p>

          <p>
            Available values:
            <code>redemption</code>,
            <code>custom\_event</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            custom\_event

            <br />

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

        <td>
          <p>Contains details about the custom event.</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 custom event ID.</p>

                  <p>
                    <strong>Example:</strong>
                    ms\_Ll9enAm2BCN0M1s4VxWobLFM
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    name

                    <br />

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

                <td>
                  <p>Custom event name.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            referee\_reward

            <br />

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

        <td>
          <p>Defines the referee reward.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    related\_object\_parent

                    <br />

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

                <td>
                  <p>Details of the resource from which the reward originates.</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 ID of the reward source.</p>

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

                      <tr>
                        <td>
                          <p>
                            name

                            <br />

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

                        <td>
                          <p>Name of the reward source.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            object

                            <br />

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

                        <td>
                          <p>Type of resource represented by the source of the reward.</p>

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

              <tr>
                <td>
                  <p>
                    type

                    <br />

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

                <td>
                  <p>Type of reward.</p>

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

              <tr>
                <td>
                  <p>
                    amount

                    <br />

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

                <td>
                  <p>
                    Define the number of
                    <code>points</code>
                    to add to a loyalty card or
                    <code>credits</code>
                    to the balance on a gift card. In case of the gift card, the value is multiplied by 100 to precisely represent 2 decimal places. For example, \$100 amount is written as 10000.
                  </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="gift">Gift</h2>

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

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

            <br />

            <code>number</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>
        </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.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            balance

            <br />

            <code>number</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>.
            <code>balance</code>
            \=
            <code>amount</code>
            \-
            <code>subtracted\_amount</code>
            \-
            <code>redemption.redeemed\_amount</code>.
          </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>

  <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="simple-loyalty-card">Simple Loyalty Card</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>Total number of points added to the loyalty card over its lifespan.</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>
        </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>
        </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>

  <h2 id="customer-object-required-object-type">Customer Object Required Object Type</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 ID of a customer that is assigned by Voucherify.</p>

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

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

            <br />

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

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

      <tr>
        <td>
          <p>
            name

            <br />

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

        <td>
          <p>Customer's first and last name.</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>
            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>

      <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 customer.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="redemption-reward-result">Redemption Reward Result</h2>

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

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

        <td>
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            assignment\_id

            <br />

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

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

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

        <td>
          <a href="#voucher">Voucher</a>
        </td>
      </tr>

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

        <td>
          <a href="#product">Product</a>
        </td>
      </tr>

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

        <td>
          <a href="#sku-object">SKU Object</a>
        </td>
      </tr>

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

            <br />

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

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

      <tr>
        <td>
          <p>
            id

            <br />

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

        <td>
          <p>Unique reward ID.</p>

          <p>
            <strong>Example:</strong>
            rew\_0bc92f81a6801f9bca
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

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

        <td>
          <p>Name of the reward.</p>

          <p>
            <strong>Example:</strong>
            Reward Name
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            object

            <br />

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

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

          <p>
            Available values:
            <code>reward</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 redemption 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 in ISO 8601 format indicating when the reward was updated.</p>

          <p>
            <strong>Example:</strong>
            2022-10-03T12:24:58.008Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            parameters

            <br />

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

        <td>
          <p>These are parameters representing a material reward.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    campaign

                    <br />

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

                <td>
                  <p>Defines the product redeemed as a reward.</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>Campaign unique ID.</p>

                          <p>
                            <strong>Example:</strong>
                            camp\_13BbZ0kQsNinhqsX3wUts2UP
                          </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>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            type

                            <br />

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

                        <td>
                          <p>Defines the type of the campaign.</p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    product

                    <br />

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

                <td>
                  <p>Defines the product redeemed as a reward.</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 product ID, assigned by Voucherify.</p>

                          <p>
                            <strong>Example:</strong>
                            prod\_0b7d7dfb05cbe5c616
                          </p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            sku\_id

                            <br />

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

                        <td>
                          <p>Unique identifier of the SKU. It is assigned by Voucherify.</p>

                          <p>
                            <strong>Example:</strong>
                            sku\_0a41e31c7b41c28358
                          </p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    coin

                    <br />

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

                <td>
                  <p>
                    Defines the ratio by mapping the number of loyalty points in
                    <code>points\_ratio</code>
                    to a predefined cash amount in
                    <code>exchange\_ratio</code>.
                  </p>

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

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            exchange\_ratio

                            <br />

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

                        <td>
                          <p>
                            The cash equivalent of the points defined in the
                            <code>points\_ratio</code>
                            property.
                          </p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points\_ratio

                            <br />

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

                        <td>
                          <p>
                            The number of loyalty points that will map to the predefined cash amount defined by the
                            <code>exchange\_ratio</code>
                            property.
                          </p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </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 reward. The metadata object stores all custom attributes assigned to the reward.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            type

            <br />

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

        <td>
          <p>Reward type.</p>

          <p>
            Available values:
            <code>CAMPAIGN</code>,
            <code>COIN</code>,
            <code>MATERIAL</code>
          </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="voucher-holder">Voucher Holder</h2>

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

    <tbody>
      <tr>
        <td>
          <p>holder</p>
        </td>

        <td>
          See:
          <a href="#simple-customer">Simple Customer</a>
        </td>
      </tr>
    </tbody>
  </table>

  <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="simple-product">Simple Product</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.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Product 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">Simple Sku</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.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Sku source id.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            sku

            <br />

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

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

  <h2 id="reward-type">Reward type</h2>
  <p>One of:</p>

  <ol>
    <li>
      <a href="#digital">Digital</a>
    </li>

    <li>
      <a href="#pay-with-points">Pay with Points</a>
    </li>

    <li>
      <a href="#material">Material</a>
    </li>
  </ol>

  <h2 id="loyalty-tier-base">Loyalty Tier 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>Loyalty Tier name.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            earning\_rules

            <br />

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

        <td>
          <p>Contains a list of earning rule IDs and their points mapping for the given earning rule.</p>

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

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

                <td>
                  See:
                  <a href="#mappingpoints">MappingPoints</a>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            rewards

            <br />

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

        <td>
          <p>Contains a list of reward IDs and their points mapping for the given reward.</p>

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

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

                <td>
                  See:
                  <a href="#mappingpoints">MappingPoints</a>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            points

            <br />

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

        <td>
          <p>Defines range of loyalty tier in points.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    from

                    <br />

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

                <td>
                  <p>Bottom points threshold value.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    to

                    <br />

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

                <td>
                  <p>Top points threshold value.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="loyalty-tier-expiration">Loyalty Tier Expiration</h2>

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

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

            <br />

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

        <td>
          <p>Unique customer identifier of the customer making the purchase. The ID is assigned by Voucherify.</p>

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

      <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>
            tier\_id

            <br />

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

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

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

            <br />

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

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

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

            <br />

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

        <td>
          <p>Expiration timestamp defines when the loyalty tier expires in ISO 8601 format. Loyalty tier is inactive after this date.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Timestamp representing the date and time when the loyalty tier 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 loyalty tier was updated. The value is shown in the ISO 8601 format.</p>

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

  <h2 id="earningrulebase">EarningRuleBase</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 earning rule 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 earning rule was created. The value is shown in the ISO 8601 format.</p>
        </td>
      </tr>

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

        <td>
          One of:

          <ol>
            <li>
              <a href="#define-fixed-amount-of-points">Define fixed amount of points</a>
            </li>

            <li>
              <a href="#calculate-points-proportionally">Calculate points proportionally</a>
            </li>
          </ol>
        </td>
      </tr>

      <tr>
        <td>
          <p>event</p>
        </td>

        <td>
          <p>Defines the event which triggers the earning rule to add points to a loyalty card.</p>
          <a href="#earning-rule-event">Earning Rule Event</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            custom\_event

            <br />

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

        <td>
          <p>Contains details about the custom event.</p>

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

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

                    <br />

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

                <td>
                  <p>Unique identifier of the custom event schema</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            segment

            <br />

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

        <td>
          <p>
            Contains the ID of a customer segment. Required for the
            <code>customer.segment.entered</code>
            option in the event.
          </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>Contains a unique identifier of a customer segment. Assigned by the Voucherify API.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Defines the tier associated with the earning rule definition.</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 loyalty tier ID associated with the earning rule.</p>

                  <ul>
                    <li>
                      <code>**ANY**</code>
                      : any loyalty tier within the campaign
                    </li>
                  </ul>

                  <p>
                    <strong>Example:</strong>
                    ltr\_pudTGWasuIqxdiDM0go31OV1
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>
            Defines the configuration for pending points. Pending points can be used only with the
            <code>order.paid</code>
            event.
          </p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    period\_type

                    <br />

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

                <td>
                  <p>
                    Defines the type of the period during which the points are in the pending state. Currently, only
                    <code>DAY</code>
                    value is accepted.
                  </p>

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

              <tr>
                <td>
                  <p>
                    period\_value

                    <br />

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

                <td>
                  <p>Defines for how long the points are in the pending state. The minimum value is 1, maximum is 90.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            source

            <br />

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

        <td>
          <p>Contains the custom earning rule name and parent campaign.</p>

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

            <tbody>
              <tr>
                <td>
                  <p>
                    banner

                    <br />

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

                <td>
                  <p>Name of the earning rule. This is displayed as a header for the earning rule in the Dashboard.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    object\_id

                    <br />

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

                <td>
                  <p>A unique campaign identifier assigned by the Voucherify API.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    object\_type

                    <br />

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

                <td>
                  <p>
                    Defines the object associated with the earning rule. Defaults to
                    <code>campaign</code>.
                  </p>

                  <p>
                    Available values:
                    <code>campaign</code>
                  </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. Default is earning\_rule.</p>

          <p>
            Available values:
            <code>earning\_rule</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            automation\_id

            <br />

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

        <td>
          <p>For internal use by Voucherify.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Start date defines when the earning rule starts to be active. Activation timestamp is presented in the ISO 8601 format. The earning rule is inactive before this date. If you do not define the start date for an earning rule, it will inherit the campaign start date by default.</p>
        </td>
      </tr>

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

            <br />

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

        <td>
          <p>Expiration date defines when the earning rule expires. Expiration timestamp is presented in the ISO 8601 format. The earning rule is inactive after this date. If you do not define the expiration date for an earning rule, it will inherit the campaign expiration date by default.</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>
            metadata

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>The metadata object stores all custom attributes assigned to the earning rule. A set of key/value pairs that you can attach to an earning rule object. It can be useful for storing additional information about the earning rule in a structured format.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>expiration\_rules</p>
        </td>

        <td>
          See:
          <a href="#earning-rule-expiration-rules">Earning Rule Expiration Rules</a>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="customer-id">Customer Id</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>A unique identifier of an existing customer.</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>customer</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="referrer-id">Referrer Id</h2>

  <p>
    <a href="#customer-id">Customer Id</a>
  </p>

  <h2 id="order-redemptions">Order Redemptions</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            date

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the redemption was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-09-02T17:06:56.649Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            rollback\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Unique ID of the redemption rollback.</p>

          <p>
            <strong>Example:</strong>
            rr\_0c63c84eb78ee0a6c0
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            rollback\_date

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the redemption rollback was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2023-01-31T14:18:37.150Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            related\_object\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The source of the incentive.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            related\_object\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Unique ID of the parent redemption.</p>

          <p>
            <strong>Example:</strong>
            r\_0ba186c4824e4881e1
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            related\_object\_parent\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Represent's the campaign ID of the voucher if the redemption was based on a voucher that was part of bulk codes generated within a campaign. In case of a promotion tier, this represents the campaign ID of the promotion tier's parent campaign.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            stacked

            <br />

            <code>array</code>
          </p>
        </td>

        <td>
          <p>Contains a list of unique IDs of child redemptions, which belong to the stacked incentives.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            rollback\_stacked

            <br />

            <code>array</code>
          </p>
        </td>

        <td>
          <p>Lists the rollback redemption IDs of the particular child redemptions.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="simple-order-item">Simple Order Item</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 identifier of the order line item.</p>
        </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
            <code>order\_item</code>.
          </p>

          <p>
            Available values:
            <code>order\_item</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            source\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The merchant's product/SKU ID (if it is different from the Voucherify product/SKU ID). It is useful in the integration between multiple systems. It can be an ID from an eCommerce site, a database, or a third-party service.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            related\_object

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            Used along with the
            <code>source\_id</code>
            property, can be set to either SKU or product.
          </p>

          <p>
            Available values:
            <code>product</code>,
            <code>sku</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            product\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Unique identifier of the product. It is assigned by Voucherify.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            sku\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Unique identifier of the SKU. It is assigned by Voucherify.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            quantity

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Quantity of the particular item in the cart.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            applied\_quantity

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Quantity of items changed by the application of a new quantity items. It can be positive when an item is added or negative if an item is replaced.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            applied\_quantity\_amount

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Amount for the items changed by the application of a new quantity items. It can be positive when an item is added or negative if an item is replaced.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            discount\_quantity

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Number of discounted items.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            applied\_discount\_quantity

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Number of the discounted items applied in the transaction.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            amount

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Total amount of the order item (price \* quantity).</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            discount\_amount

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Sum of all order-item-level discounts applied to the order.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            applied\_discount\_amount

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Order-level discount amount applied in the transaction.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            price

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>
            Unit price of an item. 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>
            subtotal\_amount

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>
            Final order item amount after the applied item-level discount. If there are no item-level discounts applied, this item is equal to the
            <code>amount</code>.

            <br />

            <code>subtotal\_amount</code>
            \=
            <code>amount</code>
            \-
            <code>discount\_amount</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="gift-card-transactions-type">Gift Card Transactions Type</h2>
  <p>Transaction types concerning gift card credits.</p>

  <p>
    Available values:
    <code>CREDITS\_REDEMPTION</code>,
    <code>CREDITS\_REFUND</code>,
    <code>CREDITS\_ADDITION</code>,
    <code>CREDITS\_REMOVAL</code>
  </p>

  <h2 id="loyalty-card-transactions-type">Loyalty Card Transactions Type</h2>
  <p>Transaction types concerning loyalty points.</p>

  <p>
    Available values:
    <code>PENDING\_POINTS\_ACTIVATION</code>,
    <code>POINTS\_ACCRUAL</code>,
    <code>POINTS\_REDEMPTION</code>,
    <code>POINTS\_REFUND</code>,
    <code>POINTS\_ADDITION</code>,
    <code>POINTS\_REMOVAL</code>,
    <code>POINTS\_EXPIRATION</code>,
    <code>POINTS\_TRANSFER\_IN</code>,
    <code>POINTS\_TRANSFER\_OUT</code>
  </p>

  <h2 id="pending-point-details">Pending Point Details</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            loyalty\_tier

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>The loyalty tier that is mapped for the earning rule and used in the pending point transaction.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    name

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>User-defined name of the loyalty tier.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            holder\_loyalty\_tier

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Loyalty tier of the loyalty card holder at the moment when the transaction occurred. The loyalty tier is the tier in which the holder was at the moment pending points were created.</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 identifier of the loyalty tier, assigned by Voucherify.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    name

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>User-defined name of the loyalty tier.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            event

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Details about the event that created pending points.</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 event identifier, assigned by Voucherify.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    type

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>Type of the event that triggered the creation of pending points.</p>

                  <p>
                    Available values:
                    <code>customer.order.paid</code>
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    group\_id

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>Unique identifier of the request that triggered the event, assigned by Voucherify.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    entity\_id

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>
                    Unique identifier of the entity that triggered the event, assigned by Voucherify. For pending points, it is the
                    <code>customer\_id</code>
                    of the customer who paid for the order.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    created\_at

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>Timestamp representing the date and time when the event occurred. The value is shown in the ISO 8601 format.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    category

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>Type of the event.</p>

                  <p>
                    Available values:
                    <code>ACTION</code>,
                    <code>EFFECT</code>
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>event\_source</p>
                </td>

                <td>
                  See:
                  <a href="#event-source">Event Source</a>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            earning\_rule

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Contains information about the earning rule.</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 identifier of an earning rule, assigned by Voucherify.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    source

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Contains the custom earning rule name.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            banner

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Name of the earning rule. This is displayed as a header for the earning rule in the Dashboard.</p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            order

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Details about the order that caused adding pending points.</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 order identifier, assigned by Voucherify.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    source\_id

                    <br />

                    <code>string</code>,
                    <code>null</code>
                  </p>
                </td>

                <td>
                  <p>User-defined order identifier.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="list-publications-item-base">List Publications Item 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>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>

          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    source\_type

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>Defines the type of the distribution source.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    source\_id

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>Unique identifier of the distribution source.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    distribution\_id

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>Unique identifier of the distribution.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </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>
        </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>customer</p>
        </td>

        <td>
          See:
          <a href="#customer-with-summary-loyalty-referrals">Customer With Summary Loyalty Referrals</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            vouchers

            <br />

            <code>array</code>
          </p>
        </td>

        <td>
          <p>Contains the voucher IDs that was assigned by Voucherify.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            vouchers\_id

            <br />

            <code>array</code>
          </p>
        </td>

        <td>
          <p>Contains the unique internal voucher IDs that was assigned by Voucherify.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="list-publications-item-voucher">List Publications Item Voucher</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            code

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Voucher code.</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>voucher</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            campaign

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Campaign name</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>gift</p>
        </td>

        <td>
          <p>Gift object response</p>
          <a href="#gift">Gift</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            loyalty\_card

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Defines the loyalty card details.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>discount</p>
        </td>

        <td>
          See:
          <a href="#discount">Discount</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            is\_referral\_code

            <br />

            <code>boolean</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>
    </tbody>
  </table>

  <h2 id="simple-promotion-tier">Simple 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>
            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>
            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>
            </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 promotion tier. The metadata object stores all custom attributes assigned to the promotion tier.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="simple-promotion-stack">Simple Promotion Stack</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 identifier of the promotion stack.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Name of the promotion stack.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            category\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Unique identifier of the category of the promotion stack.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            campaign

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Represents simplified promotion stack campaign data.</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 identifier of the campaign.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            tiers

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Contains the tier configuration. A promotion stack can include up to 30 tiers.</p>

          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    ids

                    <br />

                    <code>array</code>
                  </p>
                </td>

                <td>
                  <p>Contains the list of tiers in a pre-defined sequence.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    hierarchy\_mode

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>
                    Available values:
                    <code>MANUAL</code>
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="reward-assignment">Reward Assignment</h2>
  <p>All of:</p>

  <ol>
    <li>
      <a href="#reward-assignment-base">Reward Assignment Base</a>
    </li>

    <li>
      <a href="#digital-or-material-reward---parameters">Digital or Material Reward - Parameters</a>
    </li>
  </ol>

  <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="campaign-loyalty-card">Campaign Loyalty Card</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>The initial number of points to assign to the loyalty card. This is the current loyalty card score i.e. the number of loyalty points on the card.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            expiration\_rules

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>
            Defines the loyalty point expiration rule. This expiration rule applies when there are no
            <code>expiration\_rules</code>
            defined for an earning rule.
          </p>

          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    period\_type

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>
                    Type of period. Can be set for
                    <code>MONTH</code>
                    or
                    <code>FIXED\_DAY\_OF\_YEAR</code>.
                    <code>MONTH</code>
                    requires the
                    <code>period\_value</code>
                    field.
                    <code>FIXED\_DAY\_OF\_YEAR</code>
                    requires the
                    <code>fixed\_month</code>
                    and
                    <code>fixed\_day</code>
                    fields.
                  </p>

                  <p>
                    Available values:
                    <code>FIXED\_DAY\_OF\_YEAR</code>,
                    <code>MONTH</code>
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    period\_value

                    <br />

                    <code>integer</code>
                  </p>
                </td>

                <td>
                  <p>
                    Value of the period. Required for the
                    <code>period\_type: MONTH</code>.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    rounding\_type

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>
                    Type of rounding of the expiration period. Optional for the
                    <code>period\_type: MONTH</code>.
                  </p>

                  <p>
                    Available values:
                    <code>END\_OF\_MONTH</code>,
                    <code>END\_OF\_QUARTER</code>,
                    <code>END\_OF\_HALF\_YEAR</code>,
                    <code>END\_OF\_YEAR</code>,
                    <code>PARTICULAR\_MONTH</code>
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    rounding\_value

                    <br />

                    <code>integer</code>
                  </p>
                </td>

                <td>
                  <p>
                    Value of rounding of the expiration period. Required for the
                    <code>rounding\_type</code>.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    fixed\_month

                    <br />

                    <code>integer</code>
                  </p>
                </td>

                <td>
                  <p>
                    Determines the month when the points expire;
                    <code>1</code>
                    is January,
                    <code>2</code>
                    is February, and so on. Required for the
                    <code>period\_type: FIXED\_DAY\_OF\_YEAR</code>.
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    fixed\_day

                    <br />

                    <code>integer</code>
                  </p>
                </td>

                <td>
                  <p>
                    Determines the day of the month when the points expire. Required for the
                    <code>period\_type: FIXED\_DAY\_OF\_YEAR</code>.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="code-config">Code Config</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            length

            <br />

            <code>number</code>
          </p>
        </td>

        <td>
          <p>Number of characters in a generated code (excluding prefix and postfix).</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            charset

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Characters that can appear in the code.</p>
          <p>Examples:</p>

          <ul>
            <li>
              Alphanumeric:
              <code>0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</code>
            </li>

            <li>
              Alphabetic:
              <code>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</code>
            </li>

            <li>
              Alphabetic Lowercase:
              <code>abcdefghijklmnopqrstuvwxyz</code>
            </li>

            <li>
              Alphabetic Uppercase:
              <code>ABCDEFGHIJKLMNOPQRSTUVWXYZ</code>
            </li>

            <li>
              Numbers:
              <code>0123456789</code>
            </li>

            <li>Custom: a custom character set</li>
          </ul>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            prefix

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>A text appended before the code.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            postfix

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>A text appended after the code.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            pattern

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            A pattern for codes where hashes (#) will be replaced with random characters. Overrides
            <code>length</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            initial\_count

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Internal value, does not change anything if provided.</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="product">Product</h2>
  <p>This is an object representing a product.</p>
  <p>This entity should be used to map product items from your inventory management system. The aim of products is to build which reflect product-specific campaigns.</p>
  <p>All of:</p>

  <ol>
    <li>
      <a href="#product-without-skus-object">Product without Skus Object</a>
    </li>

    <li>
      <table>
        <thead>
          <tr>
            <th>Attributes</th>
            <th>Description</th>
          </tr>
        </thead>

        <tbody>
          <tr>
            <td>
              <p>skus</p>
            </td>

            <td>
              See:
              <a href="#skus-list-for-product">Skus List For Product</a>
            </td>
          </tr>
        </tbody>
      </table>
    </li>
  </ol>

  <h2 id="sku-object">SKU Object</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>A unique identifier that represents the SKU and is assigned by Voucherify.</p>

          <p>
            <strong>Example:</strong>
            sku\_0b1621b319d248b79f
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            source\_id

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>A unique SKU identifier from your inventory system.</p>

          <p>
            <strong>Example:</strong>
            sku\_source\_id\_4
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            product\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>The parent product's unique ID.</p>

          <p>
            <strong>Example:</strong>
            prod\_0b15f6b9f650c16990
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            sku

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>Unique user-defined SKU name.</p>

          <p>
            <strong>Example:</strong>
            Large Pink Shirt
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            price

            <br />

            <code>integer</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>
            Unit price. It is represented by a value multiplied by 100 to accurately reflect 2 decimal places, such as
            <code>\$100.00</code>
            being expressed as
            <code>10000</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            currency

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>SKU price currency.</p>

          <p>
            <strong>Example:</strong>
            USD
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            attributes

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>The attributes object stores values for all custom attributes inherited by the SKU from the parent product. A set of key/value pairs that are attached to a SKU object and are unique to each SKU within a product family.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            image\_url

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>The HTTPS URL pointing to the .png or .jpg file that will be used to render the SKU image.</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 SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format. It can be used to create product collections.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            created\_at

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the SKU was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-05-17T10:36:30.187Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            updated\_at

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the SKU was updated. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-05-17T10:55:09.137Z
          </p>
        </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
            <code>SKU</code>.
          </p>

          <p>
            Available values:
            <code>sku</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <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="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="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="digital">Digital</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            campaign

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Objects stores information about the campaign related to the reward.</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, assigned by Voucherify.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    balance

                    <br />

                    <code>integer</code>
                  </p>
                </td>

                <td>
                  <p>The number of points to be added to a loyalty card or the amount to be added to the current balance on the gift card.</p>
                  <p>For gift cards, the value is multiplied by 100 to precisely represent 2 decimal places. For example, \$100 amount is written as 10000.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    type

                    <br />

                    <code>string</code>
                  </p>
                </td>

                <td>
                  <p>Campaign type.</p>

                  <p>
                    Available values:
                    <code>DISCOUNT\_COUPONS</code>,
                    <code>GIFT\_VOUCHERS</code>,
                    <code>LOYALTY\_PROGRAM</code>
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="pay-with-points">Pay with Points</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            coin

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Defines the ratio by mapping the number of loyalty points in points\_ratio to a predefined cash amount in exchange\_ratio.</p>

          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    exchange\_ratio

                    <br />

                    <code>number</code>
                  </p>
                </td>

                <td>
                  <p>The cash equivalent of the points defined in the points\_ratio property.</p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    points\_ratio

                    <br />

                    <code>integer</code>
                  </p>
                </td>

                <td>
                  <p>The number of loyalty points that will map to the predefined cash amount defined by the exchange\_ratio property.</p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="material">Material</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            product

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Contains information about the product given as a reward.</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 product ID, assigned by Voucherify.</p>

                  <p>
                    <strong>Example:</strong>
                    prod\_0b7d7dfb05cbe5c616
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <p>
                    sku\_id

                    <br />

                    <code>string</code>,
                    <code>null</code>
                  </p>
                </td>

                <td>
                  <p>Unique SKU ID, assigned by Voucherify, of the SKU given as a reward.</p>

                  <p>
                    <strong>Example:</strong>
                    sku\_0b7d7dfb090be5c619
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="mappingpoints">MappingPoints</h2>
  <p>One of:</p>

  <ol>
    <li>
      <a href="#mappingmultiply">MappingMultiply</a>
    </li>

    <li>
      <a href="#mappingfixed">MappingFixed</a>
    </li>
  </ol>

  <h2 id="define-fixed-amount-of-points">Define fixed amount of points</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>The number of points to be added to the loyalty card.</p>

          <p>
            Available values:
            <code>FIXED</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            points

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            points\_formula

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Formula used to dynamically calculate the rewarded points.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="calculate-points-proportionally">Calculate points proportionally</h2>
  <p>One of:</p>

  <ol>
    <li>
      <a href="#define-amount-of-points-proportional-to-the-order">Define amount of points proportional to the order</a>
    </li>

    <li>
      <a href="#define-amount-of-points-proportional-to-order-items">Define amount of points proportional to order items</a>
    </li>

    <li>
      <a href="#define-amount-of-points-proportional-to-customer-metadata">Define amount of points proportional to customer metadata</a>
    </li>

    <li>
      <a href="#earning-rule-proportional-custom-event">Earning Rule Proportional Custom Event</a>
    </li>
  </ol>

  <h2 id="earning-rule-event">Earning Rule Event</h2>
  <h2 id="earning-rule-expiration-rules">Earning Rule Expiration Rules</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            period\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            Type of period. Can be set for
            <code>MONTH</code>
            or
            <code>FIXED\_DAY\_OF\_YEAR</code>.
            <code>MONTH</code>
            requires the
            <code>period\_value</code>
            field.
            <code>FIXED\_DAY\_OF\_YEAR</code>
            requires the
            <code>fixed\_month</code>
            and
            <code>fixed\_day</code>
            fields.
          </p>

          <p>
            Available values:
            <code>FIXED\_DAY\_OF\_YEAR</code>,
            <code>MONTH</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            period\_value

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>
            Value of the period. Required for the
            <code>period\_type: MONTH</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            rounding\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            Type of rounding of the expiration period. Optional for the
            <code>period\_type: MONTH</code>.
          </p>

          <p>
            Available values:
            <code>END\_OF\_MONTH</code>,
            <code>END\_OF\_QUARTER</code>,
            <code>END\_OF\_HALF\_YEAR</code>,
            <code>END\_OF\_YEAR</code>,
            <code>PARTICULAR\_MONTH</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            rounding\_value

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>
            Value of rounding of the expiration period. Required for the
            <code>rounding\_type</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            fixed\_month

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>
            Determines the month when the points expire;
            <code>1</code>
            is January,
            <code>2</code>
            is February, and so on. Required for the
            <code>period\_type: FIXED\_DAY\_OF\_YEAR</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            fixed\_day

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>
            Determines the day of the month when the points expire. Required for the
            <code>period\_type: FIXED\_DAY\_OF\_YEAR</code>.
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="reward-assignment-base">Reward Assignment 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>Unique reward assignment ID, assigned by Voucherify.</p>

          <p>
            <strong>Example:</strong>
            rewa\_PbIRoMXpwe5QhobW4JKu0VjH
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            reward\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Associated reward ID.</p>

          <p>
            <strong>Example:</strong>
            rew\_C7wS9eHFDN4CIbXI5PpLSkGY
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            created\_at

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-08-11T14:49:22.586Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            updated\_at

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-08-11T16:01:34.885Z
          </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 reward assignment.</p>

          <p>
            Available values:
            <code>reward\_assignment</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            related\_object\_id

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Related object ID to which the reward was assigned.</p>

          <p>
            <strong>Example:</strong>
            camp\_wciTvaOfYmAa3EmIIW3QpXXZ
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            related\_object\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Related object type to which the reward was assigned.</p>

          <p>
            Available values:
            <code>campaign</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="digital-or-material-reward---parameters">Digital or Material Reward - Parameters</h2>

  <table>
    <thead>
      <tr>
        <th>Attributes</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <p>
            parameters

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Defines the cost of the reward.</p>

          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    loyalty

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Defines the equivalent points value of the reward.</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>The number of points required to redeem the reward.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            auto\_redeem

                            <br />

                            <code>boolean</code>,
                            <code>null</code>
                          </p>
                        </td>

                        <td>
                          <p>
                            Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value
                            <code>true</code>
                            means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value
                            <code>true</code>.
                          </p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </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>

  <h2 id="product-without-skus-object">Product without Skus Object</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>

          <p>
            <strong>Example:</strong>
            prod\_0b1da8105693710357
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            source\_id

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>Unique product source ID.</p>

          <p>
            <strong>Example:</strong>
            productSourceID16
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            name

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>Unique user-defined product name.</p>

          <p>
            <strong>Example:</strong>
            T-shirt
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            price

            <br />

            <code>integer</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>
            Unit price. It is represented by a value multiplied by 100 to accurately reflect 2 decimal places, such as
            <code>\$100.00</code>
            being expressed as
            <code>10000</code>.
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            attributes

            <br />

            <code>array</code>
          </p>
        </td>

        <td>
          <p>
            A list of product attributes whose values you can customize for given SKUs:
            <code>\["color","size","ranking"]</code>.
            Each child SKU can have a unique value for a given attribute.
          </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 product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            image\_url

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.</p>

          <p>
            <strong>Example:</strong>
            [https://images.com/original.jpg](https://images.com/original.jpg)
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            created\_at

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the product was created. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-05-23T06:52:55.008Z
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            updated\_at

            <br />

            <code>string</code>,
            <code>null</code>
          </p>
        </td>

        <td>
          <p>Timestamp representing the date and time when the product was updated. The value is shown in the ISO 8601 format.</p>

          <p>
            <strong>Example:</strong>
            2022-05-23T09:24:07.405Z
          </p>
        </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 product.</p>

          <p>
            Available values:
            <code>product</code>
          </p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="skus-list-for-product">Skus List For Product</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 SKUs.</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 SKUs.</p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            data

            <br />

            <code>array</code>
          </p>
        </td>

        <td>
          <p>A dictionary that contains an array of SKUs.</p>
          Array of
          <a href="#sku-object">SKU Object</a>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            total

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Total number of SKUs in the product.</p>
        </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="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="mappingmultiply">MappingMultiply</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>Type of calculation.</p>

          <p>
            Available values:
            <code>MULTIPLY</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            multiplier

            <br />

            <code>number</code>
          </p>
        </td>

        <td>
          <p>Multiplication factor used to multiply the points to obtain the mapped points.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="mappingfixed">MappingFixed</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>Type of calculation.</p>

          <p>
            Available values:
            <code>CUSTOM</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            points

            <br />

            <code>integer</code>
          </p>
        </td>

        <td>
          <p>Fixed number of points to be applied.</p>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="define-amount-of-points-proportional-to-the-order">Define amount of points proportional to the order</h2>
  <p>One of:</p>

  <ol>
    <li>
      <a href="#order-amount">Order Amount</a>
    </li>

    <li>
      <a href="#order-total-amount">Order Total Amount</a>
    </li>

    <li>
      <a href="#order-metadata">Order Metadata</a>
    </li>
  </ol>

  <h2 id="define-amount-of-points-proportional-to-order-items">Define amount of points proportional to order items</h2>
  <p>One of:</p>

  <ol>
    <li>
      <a href="#order-items-quantity">Order Items Quantity</a>
    </li>

    <li>
      <a href="#order-items-amount">Order Items Amount</a>
    </li>

    <li>
      <a href="#order-items-subtotal-amount">Order Items Subtotal Amount</a>
    </li>
  </ol>

  <h2 id="define-amount-of-points-proportional-to-customer-metadata">Define amount of points proportional to customer metadata</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 how the points will be added to the loyalty card.PROPORTIONAL adds points based on a pre-defined ratio.</p>

          <p>
            Available values:
            <code>PROPORTIONAL</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            calculation\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>CUSTOMER\_METADATA: Customer Metadata (X points for every Y in metadata attribute, defined in the property key under the customer.metadata object)</p>

          <p>
            Available values:
            <code>CUSTOMER\_METADATA</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            customer

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    metadata

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Defines the ratio based on the property defined in the calculation\_type parameter. For every given increment of value (1, 10, etc) defined in the every parameter for the property defined in calculation\_type, give the customer the number of points defined in the points parameter. In other words, for every order metadata property value, give points.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            every

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>For how many increments of the customer metadata property to grant points for.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Number of points to be awarded, i.e. how many points to be added to the loyalty card.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points\_formula

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Formula used to dynamically calculate the rewarded points.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            property

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Customer metadata property.</p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="earning-rule-proportional-custom-event">Earning Rule Proportional Custom Event</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 how the points will be added to the loyalty card.PROPORTIONAL adds points based on a pre-defined ratio.</p>

          <p>
            Available values:
            <code>PROPORTIONAL</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            calculation\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>CUSTOM\_EVENT\_METADATA: Custom event metadata (X points for every Y in metadata attribute).</p>

          <p>
            Available values:
            <code>CUSTOM\_EVENT\_METADATA</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            custom\_event

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    metadata

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Defines the ratio based on the property defined in the calculation\_type parameter. For every given increment of value (1, 10, etc) defined in the every parameter for the property defined in calculation\_type, give the customer the number of points defined in the points parameter. In other words, for every order metadata property value, give points.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            every

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>For how many increments of the customer metadata property to grant points for.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Number of points to be awarded, i.e. how many points to be added to the loyalty card.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points\_formula

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Formula used to dynamically calculate the rewarded points.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            property

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Custom event metadata property.</p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="order-amount">Order 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 how the points will be added to the loyalty card.PROPORTIONAL adds points based on a pre-defined ratio.</p>

          <p>
            Available values:
            <code>PROPORTIONAL</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            calculation\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            <code>ORDER\_AMOUNT</code>
            : Pre-discount order amount (X points for every Y spent excluding discounts)
          </p>

          <p>
            Available values:
            <code>ORDER\_AMOUNT</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            order

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    amount

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Defines the ratio based on the property defined in the calculation\_type parameter. For every set of value (1, 10, etc) defined in the every parameter for the property defined in calculation\_type, give the customer the number of points defined in the points parameter. In other words, for every calculation\_type, give points.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            every

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Value is multiplied by 100 to precisely represent 2 decimal places. For example, a \$10 order amount is written as 1000.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Number of points to be awarded, i.e. how many points to be added to the loyalty card.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points\_formula

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Formula used to dynamically calculate the rewarded points.</p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="order-total-amount">Order Total 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 how the points will be added to the loyalty card.PROPORTIONAL adds points based on a pre-defined ratio.</p>

          <p>
            Available values:
            <code>PROPORTIONAL</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            calculation\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            <code>ORDER\_TOTAL\_AMOUNT</code>
            : Total order amount (X points for every Y spent including discount)
          </p>

          <p>
            Available values:
            <code>ORDER\_TOTAL\_AMOUNT</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            order

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    total\_amount

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Defines the ratio based on the property defined in the calculation\_type parameter. For every set of value (1, 10, etc) defined in the every parameter for the property defined in calculation\_type, give the customer the number of points defined in the points parameter. In other words, for every calculation\_type, give points.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            every

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Value is multiplied by 100 to precisely represent 2 decimal places. For example, a \$10 order amount is written as 1000.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Number of points to be awarded, i.e. how many points to be added to the loyalty card.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points\_formula

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Formula used to dynamically calculate the rewarded points.</p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="order-metadata">Order Metadata</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 how the points will be added to the loyalty card.PROPORTIONAL adds points based on a pre-defined ratio.</p>

          <p>
            Available values:
            <code>PROPORTIONAL</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            calculation\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            <code>ORDER\_METADATA</code>
            : Order Metadata (X points for every Y in metadata attribute, defined in the property key under the order.metadata object)
          </p>

          <p>
            Available values:
            <code>ORDER\_METADATA</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            order

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <p>Defines the formula for calculating points proportionally.</p>

          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    metadata

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Defines the ratio based on the property defined in the calculation\_type parameter. For every given increment of value (1, 10, etc) defined in the every parameter for the property defined in calculation\_type, give the customer the number of points defined in the points parameter. In other words, for every order metadata property value, give points.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            every

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>For how many increments of the order metadata property to grant points for.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Number of points to be awarded, i.e. how many points to be added to the loyalty card.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points\_formula

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Formula used to dynamically calculate the rewarded points.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            property

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Order metadata property.</p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="order-items-quantity">Order Items Quantity</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 how the points will be added to the loyalty card.PROPORTIONAL adds points based on a pre-defined ratio.</p>

          <p>
            Available values:
            <code>PROPORTIONAL</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            calculation\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            <code>ORDER\_ITEMS\_QUANTITY</code>
            : Quantity of items defined in the
            <code>order\_items.quantity.applicable\_to</code>
            array or
            <code>order\_items.quantity.object</code>
            &
            <code>.id</code>
            (X points for every Y items excluding free items).
          </p>

          <p>
            Available values:
            <code>ORDER\_ITEMS\_QUANTITY</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            order\_items

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    quantity

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Defines the ratio based on the property defined in the calculation\_type parameter. For every set of value (1, 10, etc) defined in the every parameter for the property defined in calculation\_type, give the customer the number of points defined in the points parameter. In other words, for every calculation\_type, give points.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            every

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Value is multiplied by 100 to precisely represent 2 decimal places. For example, a \$10 order amount is written as 1000.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Number of points to be awarded, i.e. how many points to be added to the loyalty card.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points\_formula

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Formula used to dynamically calculate the rewarded points.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            object

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>
                            Type of object which will be covered by the earning rule. This is required together with
                            <code>id</code>.
                            Can be replaced by the
                            <code>applicable\_to</code>
                            array. In response, the value of the first object is returned even if
                            <code>applicable\_to</code>
                            array was used.
                          </p>

                          <p>
                            Available values:
                            <code>products\_collection</code>,
                            <code>product</code>,
                            <code>sku</code>
                          </p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            id

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>
                            Unique ID of the resource assigned by Voucherify. This is required together with
                            <code>object</code>.
                            Can be replaced by the
                            <code>applicable\_to</code>
                            array. In response, the value of the first object is returned even if
                            <code>applicable\_to</code>
                            array was used. Values are, for example,
                            <code>pc\_75U0dHlr7u75BJodrW1AE3t6</code>
                            for product collection,
                            <code>prod\_0bae32322150fd0546</code>
                            for a product, or
                            <code>sku\_0b7d7dfb090be5c619</code>
                            for a SKU.
                          </p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            applicable\_to

                            <br />

                            <code>array</code>
                          </p>
                        </td>

                        <td>
                          <p>
                            Defines products, SKUs, or product collections covered by the earning rule. Can be replaced by
                            <code>object</code>
                            and
                            <code>id</code>
                            to define only one object.
                          </p>

                          Array of:

                          <table>
                            <thead>
                              <tr>
                                <th>Attributes</th>
                                <th>Description</th>
                              </tr>
                            </thead>

                            <tbody>
                              <tr>
                                <td>
                                  <p>
                                    object

                                    <br />

                                    <code>string</code>
                                  </p>
                                </td>

                                <td>
                                  <p>Type of object which will be covered by the earning rule.</p>

                                  <p>
                                    Available values:
                                    <code>products\_collection</code>,
                                    <code>product</code>,
                                    <code>sku</code>
                                  </p>
                                </td>
                              </tr>

                              <tr>
                                <td>
                                  <p>
                                    id

                                    <br />

                                    <code>string</code>
                                  </p>
                                </td>

                                <td>
                                  <p>
                                    Unique ID of the resource assigned by Voucherify. Values are, for example,
                                    <code>pc\_75U0dHlr7u75BJodrW1AE3t6</code>
                                    for product collection,
                                    <code>prod\_0bae32322150fd0546</code>
                                    for a product, or
                                    <code>sku\_0b7d7dfb090be5c619</code>
                                    for a SKU.
                                  </p>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="order-items-amount">Order Items 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 how the points will be added to the loyalty card.PROPORTIONAL adds points based on a pre-defined ratio.</p>

          <p>
            Available values:
            <code>PROPORTIONAL</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            calculation\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>
            ORDER\_ITEMS\_AMOUNT; Pre-discount amount spent on items defined in the
            <code>order\_items.quantity.applicable\_to</code>
            array or
            <code>order\_items.quantity.object</code>
            &
            <code>.id</code>
            (X points for every Y spent on items excluding discounts)
          </p>

          <p>
            Available values:
            <code>ORDER\_ITEMS\_AMOUNT</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            order\_items

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    amount

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Defines the ratio based on the property defined in the calculation\_type parameter. For every set of value (1, 10, etc) defined in the every parameter for the property defined in calculation\_type, give the customer the number of points defined in the points parameter. In other words, for every calculation\_type, give points.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            every

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Value is multiplied by 100 to precisely represent 2 decimal places. For example, a \$10 order amount is written as 1000.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Number of points to be awarded, i.e. how many points to be added to the loyalty card.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points\_formula

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Formula used to dynamically calculate the rewarded points.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            object

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>
                            Type of object which will be covered by the earning rule. This is required together with
                            <code>id</code>.
                            Can be replaced by the
                            <code>applicable\_to</code>
                            array. In response, the value of the first object is returned even if
                            <code>applicable\_to</code>
                            array was used.
                          </p>

                          <p>
                            Available values:
                            <code>products\_collection</code>,
                            <code>product</code>,
                            <code>sku</code>
                          </p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            id

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>
                            Unique ID of the resource assigned by Voucherify. This is required together with
                            <code>object</code>.
                            Can be replaced by the
                            <code>applicable\_to</code>
                            array. In response, the value of the first object is returned even if
                            <code>applicable\_to</code>
                            array was used. Values are, for example,
                            <code>pc\_75U0dHlr7u75BJodrW1AE3t6</code>
                            for product collection,
                            <code>prod\_0bae32322150fd0546</code>
                            for a product, or
                            <code>sku\_0b7d7dfb090be5c619</code>
                            for a SKU.
                          </p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            applicable\_to

                            <br />

                            <code>array</code>
                          </p>
                        </td>

                        <td>
                          <p>
                            Defines products, SKUs, or product collections covered by the earning rule. Can be replaced by
                            <code>object</code>
                            and
                            <code>id</code>
                            to define only one object.
                          </p>

                          Array of:

                          <table>
                            <thead>
                              <tr>
                                <th>Attributes</th>
                                <th>Description</th>
                              </tr>
                            </thead>

                            <tbody>
                              <tr>
                                <td>
                                  <p>
                                    object

                                    <br />

                                    <code>string</code>
                                  </p>
                                </td>

                                <td>
                                  <p>Type of object which will be covered by the earning rule.</p>

                                  <p>
                                    Available values:
                                    <code>products\_collection</code>,
                                    <code>product</code>,
                                    <code>sku</code>
                                  </p>
                                </td>
                              </tr>

                              <tr>
                                <td>
                                  <p>
                                    id

                                    <br />

                                    <code>string</code>
                                  </p>
                                </td>

                                <td>
                                  <p>
                                    Unique ID of the resource assigned by Voucherify. Values are, for example,
                                    <code>pc\_75U0dHlr7u75BJodrW1AE3t6</code>
                                    for product collection,
                                    <code>prod\_0bae32322150fd0546</code>
                                    for a product, or
                                    <code>sku\_0b7d7dfb090be5c619</code>
                                    for a SKU.
                                  </p>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>

  <h2 id="order-items-subtotal-amount">Order Items Subtotal 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 how the points will be added to the loyalty card.PROPORTIONAL adds points based on a pre-defined ratio.</p>

          <p>
            Available values:
            <code>PROPORTIONAL</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            calculation\_type

            <br />

            <code>string</code>
          </p>
        </td>

        <td>
          <p>ORDER\_ITEMS\_SUBTOTAL\_AMOUNT; Amount spent on items defined in the order\_items.subtotal\_amount.object & .id (X points for every Y spent on items including discounts)</p>

          <p>
            Available values:
            <code>ORDER\_ITEMS\_SUBTOTAL\_AMOUNT</code>
          </p>
        </td>
      </tr>

      <tr>
        <td>
          <p>
            order\_items

            <br />

            <code>object</code>
          </p>
        </td>

        <td>
          <table>
            <thead>
              <tr>
                <th>Attributes</th>
                <th>Description</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td>
                  <p>
                    subtotal\_amount

                    <br />

                    <code>object</code>
                  </p>
                </td>

                <td>
                  <p>Defines the ratio based on the property defined in the calculation\_type parameter. For every set of value (1, 10, etc) defined in the every parameter for the property defined in calculation\_type, give the customer the number of points defined in the points parameter. In other words, for every calculation\_type, give points.</p>

                  <table>
                    <thead>
                      <tr>
                        <th>Attributes</th>
                        <th>Description</th>
                      </tr>
                    </thead>

                    <tbody>
                      <tr>
                        <td>
                          <p>
                            every

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Value is multiplied by 100 to precisely represent 2 decimal places. For example, a \$10 order amount is written as 1000.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points

                            <br />

                            <code>integer</code>
                          </p>
                        </td>

                        <td>
                          <p>Number of points to be awarded, i.e. how many points to be added to the loyalty card.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            points\_formula

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>Formula used to dynamically calculate the rewarded points.</p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            object

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>
                            Type of object which will be covered by the earning rule. This is required together with
                            <code>id</code>.
                            Can be replaced by the
                            <code>applicable\_to</code>
                            array. In response, the value of the first object is returned even if
                            <code>applicable\_to</code>
                            array was used.
                          </p>

                          <p>
                            Available values:
                            <code>products\_collection</code>,
                            <code>product</code>,
                            <code>sku</code>
                          </p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            id

                            <br />

                            <code>string</code>
                          </p>
                        </td>

                        <td>
                          <p>
                            Unique ID of the resource assigned by Voucherify. This is required together with
                            <code>object</code>.
                            Can be replaced by the
                            <code>applicable\_to</code>
                            array. In response, the value of the first object is returned even if
                            <code>applicable\_to</code>
                            array was used. Values are, for example,
                            <code>pc\_75U0dHlr7u75BJodrW1AE3t6</code>
                            for product collection,
                            <code>prod\_0bae32322150fd0546</code>
                            for a product, or
                            <code>sku\_0b7d7dfb090be5c619</code>
                            for a SKU.
                          </p>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          <p>
                            applicable\_to

                            <br />

                            <code>array</code>
                          </p>
                        </td>

                        <td>
                          <p>
                            Defines products, SKUs, or product collections covered by the earning rule. Can be replaced by
                            <code>object</code>
                            and
                            <code>id</code>
                            to define only one object.
                          </p>

                          Array of:

                          <table>
                            <thead>
                              <tr>
                                <th>Attributes</th>
                                <th>Description</th>
                              </tr>
                            </thead>

                            <tbody>
                              <tr>
                                <td>
                                  <p>
                                    object

                                    <br />

                                    <code>string</code>
                                  </p>
                                </td>

                                <td>
                                  <p>Type of object which will be covered by the earning rule.</p>

                                  <p>
                                    Available values:
                                    <code>products\_collection</code>,
                                    <code>product</code>,
                                    <code>sku</code>
                                  </p>
                                </td>
                              </tr>

                              <tr>
                                <td>
                                  <p>
                                    id

                                    <br />

                                    <code>string</code>
                                  </p>
                                </td>

                                <td>
                                  <p>
                                    Unique ID of the resource assigned by Voucherify. Values are, for example,
                                    <code>pc\_75U0dHlr7u75BJodrW1AE3t6</code>
                                    for product collection,
                                    <code>prod\_0bae32322150fd0546</code>
                                    for a product, or
                                    <code>sku\_0b7d7dfb090be5c619</code>
                                    for a SKU.
                                  </p>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>
</div>
