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
Whether the customer accepts marketing emails.
The date of birth of the customer.
The date and time when the date of birth was last updated.
The email address of the customer.
The first name of the customer.
The customer id assigned by Shopify.
The last name of the customer.
The list of loyalty points transactions for the customer.
The date and time when the transaction was applied.
An external note associated with the transaction.
The transaction id.
An internal note associated with the transaction.
The number of points associated with the transaction.
The difference in points associated with the transaction.
The source of the transaction.
The loyalty status of the customer.
The number of orders the customer has placed.
Returns a pagination object.
Returns the total number of pages.
Returns true if there is a next page.
Returns true if there is a previous page.
Returns the current page number.
Returns the number of items per page.
Returns the total number of items.
The date and time when the customer's loyalty points will expire.
The number of loyalty points the customer has earned.
The referral code for the customer.
The referral URL for the customer.
The list of rewards associated with the customer.
The date and time when the reward was applied.
The discount code associated with the reward.
The date and time when the reward expires.
The ID of the reward.
The name of the reward.
The number of points required to redeem the reward.
The type of points required to redeem the reward.
The date and time when the reward was revoked.
The reward object associated with.
The date and time when the reward was created.
Whether the reward is enabled.
The number of months the reward is valid for.
The ID of the reward.
The minimum order value required to redeem the reward, in cents.
The name of the reward.
The number of points required to redeem the reward.
The type of points required to redeem the reward.
A string representation of the reward.
The number of times the reward has been redeemed.
The type of reward.
The value of the reward.
The source of the reward.
The terms of service for the reward.
The products the reward applies to.
The minimum order amount required to redeem the reward.
The type of reward.
Whether to show the terms of service for the reward.
The date and time when the reward was last updated.
The date and time when the reward was used.
The Shopify tags associated with the customer.
The total amount spent by the customer.
Whether the customer has verified their email address.
The VIP tier of the customer.
The creation date of the VIP tier.
The ID of the VIP tier.
The name of the VIP tier.
The perks of the VIP tier.
The threshold for the VIP tier.
The last update date of the VIP tier.