Rivo Loyalty: Customer

{
  acceptsMarketing: true,
  dob: "11-25",
  dobLastUpdatedAt: "2023-10-04T10:51:12.079Z",
  email: "test@nyla.app",
  firstName: "First Name",
  id: 7583186842956,
  lastName: "Last Name",
  list: [
    {
      appliedAt: "2023-10-04T10:51:26.739Z",
      externalNote: "Redeemed a Reward",
      id: 20759719,
      internalNote: null,
      pointsAmount: 1000,
      pointsDiff: -1000,
      source: "points_purchase",
    },
    {
      appliedAt: "2023-10-02T15:31:10.325Z",
      externalNote: "Redeemed a Reward",
      id: 20639295,
      internalNote: null,
      pointsAmount: 0,
      pointsDiff: 0,
      source: "points_purchase",
    },
    {
      appliedAt: "2023-10-02T15:28:40.003Z",
      externalNote: "Redeemed a Reward",
      id: 20639255,
      internalNote: null,
      pointsAmount: 0,
      pointsDiff: 0,
      source: "points_purchase",
    },
    {
      appliedAt: "2023-10-02T15:25:32.611Z",
      externalNote: "Redeemed a Reward",
      id: 20639208,
      internalNote: null,
      pointsAmount: 0,
      pointsDiff: 0,
      source: "points_purchase",
    },
  ],
  loyaltyStatus: "member",
  ordersCount: 0,
  pagination: {
    amountOfPages: 4,
    hasNextPage: true,
    hasPreviousPage: false,
    page: 1,
    pageSize: 4,
    totalElements: 16,
  },
  pointsExpireAt: "October 04, 2024",
  pointsTally: 11400,
  referralCode: "pXJAY1FbqddA2x7",
  referralUrl: "https://www.alvies.com?referral_code=pXJAY1FbqddA2x7",
  rewards: [
    {
      appliedAt: "2023-09-20T21:42:57.867Z",
      code: "NYLA-TEST-CODE",
      expiresAt: null,
      id: 931612,
      name: "$25 reward",
      pointsAmount: 2500,
      refundedAt: null,
      revokedAt: null,
      reward: {
        createdAt: "2023-04-25T16:54:36.356Z",
        enabled: true,
        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",
      },
      usedAt: null,
    },
    {
      appliedAt: "2023-09-22T14:16:00.141Z",
      code: "NYLA-TEST-CODE",
      expiresAt: null,
      id: 933470,
      name: "$25 reward",
      pointsAmount: 2500,
      refundedAt: null,
      revokedAt: null,
      reward: {
        createdAt: "2023-04-25T16:54:36.356Z",
        enabled: true,
        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",
      },
      usedAt: null,
    },
    {
      appliedAt: "2023-09-26T06:31:11.343Z",
      code: "NYLA-TEST-CODE",
      expiresAt: null,
      id: 937697,
      name: "$25 reward",
      pointsAmount: 2500,
      refundedAt: null,
      revokedAt: null,
      reward: {
        createdAt: "2023-04-25T16:54:36.356Z",
        enabled: true,
        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",
      },
      usedAt: null,
    },
    {
      appliedAt: "2023-09-29T10:13:45.852Z",
      code: "NYLA-TEST-CODE",
      expiresAt: null,
      id: 941928,
      name: "$10 reward",
      pointsAmount: 1000,
      refundedAt: null,
      revokedAt: null,
      reward: {
        createdAt: "2023-04-25T16:54:36.293Z",
        enabled: true,
        expiryMonths: null,
        id: 168906,
        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",
      },
      usedAt: null,
    },
    {
      appliedAt: "2023-10-02T15:25:16.252Z",
      code: "NYLA-TEST-CODE",
      expiresAt: null,
      id: 945732,
      name: "$50 off boot coupon",
      pointsAmount: 0,
      refundedAt: null,
      revokedAt: null,
      reward: {
        createdAt: "2023-04-25T16:54:36.546Z",
        enabled: true,
        expiryMonths: null,
        id: 168909,
        minOrderValueInCents: 26500,
        name: "$50 off boot coupon",
        pointsAmount: 0,
        pointsType: "fixed",
        prettyDisplayRewards: "$50 off boot coupon (0 points required)",
        redeemedCount: 7,
        rewardType: "fixed_amount",
        rewardValue: 50,
        source: "referred",
        termsOfService: {
          appliesTo: "entire",
          minOrderAmount: 265,
          rewardType: "fixed_amount",
          showTos: true,
        },
        updatedAt: "2023-04-25T20:05:11.657Z",
      },
      usedAt: null,
    },
    {
      appliedAt: "2023-10-02T15:25:28.947Z",
      code: "NYLA-TEST-CODE",
      expiresAt: null,
      id: 945733,
      name: "$50 off boot coupon",
      pointsAmount: 0,
      refundedAt: null,
      revokedAt: null,
      reward: {
        createdAt: "2023-04-25T16:54:36.546Z",
        enabled: true,
        expiryMonths: null,
        id: 168909,
        minOrderValueInCents: 26500,
        name: "$50 off boot coupon",
        pointsAmount: 0,
        pointsType: "fixed",
        prettyDisplayRewards: "$50 off boot coupon (0 points required)",
        redeemedCount: 7,
        rewardType: "fixed_amount",
        rewardValue: 50,
        source: "referred",
        termsOfService: {
          appliesTo: "entire",
          minOrderAmount: 265,
          rewardType: "fixed_amount",
          showTos: true,
        },
        updatedAt: "2023-04-25T20:05:11.657Z",
      },
      usedAt: null,
    },
    {
      appliedAt: "2023-10-02T15:25:32.611Z",
      code: "NYLA-TEST-CODE",
      expiresAt: null,
      id: 945734,
      name: "$50 off boot coupon",
      pointsAmount: 0,
      refundedAt: null,
      revokedAt: null,
      reward: {
        createdAt: "2023-04-25T16:54:36.546Z",
        enabled: true,
        expiryMonths: null,
        id: 168909,
        minOrderValueInCents: 26500,
        name: "$50 off boot coupon",
        pointsAmount: 0,
        pointsType: "fixed",
        prettyDisplayRewards: "$50 off boot coupon (0 points required)",
        redeemedCount: 7,
        rewardType: "fixed_amount",
        rewardValue: 50,
        source: "referred",
        termsOfService: {
          appliesTo: "entire",
          minOrderAmount: 265,
          rewardType: "fixed_amount",
          showTos: true,
        },
        updatedAt: "2023-04-25T20:05:11.657Z",
      },
      usedAt: null,
    },
    {
      appliedAt: "2023-10-02T15:28:40.003Z",
      code: "NYLA-TEST-CODE",
      expiresAt: null,
      id: 945738,
      name: "$50 off boot coupon",
      pointsAmount: 0,
      refundedAt: null,
      revokedAt: null,
      reward: {
        createdAt: "2023-04-25T16:54:36.546Z",
        enabled: true,
        expiryMonths: null,
        id: 168909,
        minOrderValueInCents: 26500,
        name: "$50 off boot coupon",
        pointsAmount: 0,
        pointsType: "fixed",
        prettyDisplayRewards: "$50 off boot coupon (0 points required)",
        redeemedCount: 7,
        rewardType: "fixed_amount",
        rewardValue: 50,
        source: "referred",
        termsOfService: {
          appliesTo: "entire",
          minOrderAmount: 265,
          rewardType: "fixed_amount",
          showTos: true,
        },
        updatedAt: "2023-04-25T20:05:11.657Z",
      },
      usedAt: null,
    },
    {
      appliedAt: "2023-10-02T15:31:10.325Z",
      code: "NYLA-TEST-CODE",
      expiresAt: null,
      id: 945746,
      name: "$50 off boot coupon",
      pointsAmount: 0,
      refundedAt: null,
      revokedAt: null,
      reward: {
        createdAt: "2023-04-25T16:54:36.546Z",
        enabled: true,
        expiryMonths: null,
        id: 168909,
        minOrderValueInCents: 26500,
        name: "$50 off boot coupon",
        pointsAmount: 0,
        pointsType: "fixed",
        prettyDisplayRewards: "$50 off boot coupon (0 points required)",
        redeemedCount: 7,
        rewardType: "fixed_amount",
        rewardValue: 50,
        source: "referred",
        termsOfService: {
          appliesTo: "entire",
          minOrderAmount: 265,
          rewardType: "fixed_amount",
          showTos: true,
        },
        updatedAt: "2023-04-25T20:05:11.657Z",
      },
      usedAt: null,
    },
    {
      appliedAt: "2023-10-04T10:51:26.739Z",
      code: "NYLA-TEST-CODE",
      expiresAt: null,
      id: 948044,
      name: "$10 reward",
      pointsAmount: 1000,
      refundedAt: null,
      revokedAt: null,
      reward: {
        createdAt: "2023-04-25T16:54:36.293Z",
        enabled: true,
        expiryMonths: null,
        id: 168906,
        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",
      },
      usedAt: null,
    },
  ],
  shopifyTags: null,
  totalSpent: 0,
  verifiedEmail: false,
  vipTier: null,
}

Properties

boolean

Whether the customer accepts marketing emails.

string

The date of birth of the customer.

date

The date and time when the date of birth was last updated.

string

The email address of the customer.

string

The first name of the customer.

number

The customer id assigned by Shopify.

string

The last name of the customer.

array

The list of loyalty points transactions for the customer.

string

The loyalty status of the customer.

number

The number of orders the customer has placed.

object

Returns a pagination object.

string

The date and time when the customer's loyalty points will expire.

number

The number of loyalty points the customer has earned.

string

The referral code for the customer.

string

The referral URL for the customer.

array

The list of rewards associated with the customer.

array

The Shopify tags associated with the customer.

number

The total amount spent by the customer.

boolean

Whether the customer has verified their email address.

object

The VIP tier of the customer.