Rivo Loyalty: Rewards

{
  list: [
    {
      code: "ONE_TIME_SHOPIFY_DISCOUNT_CODE",
      createdAt: "2023-04-25T16:54:36.293Z",
      enabled: true,
      expiryMonths: null,
      id: 168906,
      loading: false,
      minOrderValueInCents: null,
      name: "$10 reward",
      pointsAmount: 1000,
      pointsType: "fixed",
      prettyDisplayRewards: "$10 reward (1000 points required)",
      redeemedCount: 3,
      rewardType: "fixed_amount",
      rewardValue: 10,
      source: "points",
      termsOfService: {
        appliesTo: "entire",
        rewardType: "fixed_amount",
        showTos: false,
      },
      updatedAt: "2023-06-13T22:43:11.235Z",
    },
    {
      createdAt: "2023-04-25T16:54:36.356Z",
      enabled: true,
      error: "Error message",
      expiryMonths: null,
      id: 168907,
      minOrderValueInCents: null,
      name: "$25 reward",
      pointsAmount: 2500,
      pointsType: "fixed",
      prettyDisplayRewards: "$25 reward (2500 points required)",
      redeemedCount: 4,
      rewardType: "fixed_amount",
      rewardValue: 25,
      source: "points",
      termsOfService: {
        appliesTo: "entire",
        rewardType: "fixed_amount",
        showTos: false,
      },
      updatedAt: "2023-06-13T22:42:26.953Z",
    },
    {
      createdAt: "2023-04-25T16:54:36.482Z",
      enabled: true,
      expiryMonths: null,
      id: 168908,
      minOrderValueInCents: null,
      name: "$5 off coupon",
      pointsAmount: 0,
      pointsType: "fixed",
      prettyDisplayRewards: "$5 off coupon (0 points required)",
      redeemedCount: 1,
      rewardType: "fixed_amount",
      rewardValue: 5,
      source: "referrer",
      termsOfService: {
        appliesTo: "entire",
        rewardType: "fixed_amount",
        showTos: false,
      },
      updatedAt: "2023-04-25T16:54:36.482Z",
    },
  ],
  pagination: {
    amountOfPages: 3,
    hasNextPage: false,
    hasPreviousPage: false,
    page: 1,
    pageSize: 3,
    totalElements: 9,
  },
}

Properties

array

List of rewards

object

Returns a pagination object.