Skip to main content
Solved

Question Regarding the originalPurchaseDate

  • October 26, 2024
  • 1 reply
  • 50 views

Forum|alt.badge.img

Hello,

We are currently using the React-Native SDK. The getCustomerInfo() method provides a PurchasesEntitlementInfo object that contains both the originalPurchaseDate and latestPurchaseDate.

  • originalPurchaseDate: The first date this entitlement was purchased, in ISO8601 format.
  • latestPurchaseDate: The latest purchase or renewal date for the entitlement, in ISO8601 format.

Does the originalPurchaseDate refer to the start date of the current subscription cycle? Or does it represent the very first date the subscription was ever started?

For example, if Customer A initially began a 1-month premium subscription on 2024-03-01, canceled in 2024-06, skipped payments in 2024-07 and 2024-08, and then resumed the same 1-month premium subscription on 2024-09-01, what would be considered the originalPurchaseDate?

In this case:

  • If the originalPurchaseDate is 2024-03-01, is there a way to identify the start date of the current subscription cycle?
  • If the originalPurchaseDate is 2024-09-01, is there a way to retrieve the date of the very first purchase?

In summary, we need access to both the current subscription start date and the very first purchase date.

Best answer by joan-cardona

Hi @bang9,

The `originalPurchaseDate` in CustomerInfo refers to the purchase date for the version of the application when the user bought the app. This can be used for grandfathering users when migrating to subscriptions.

In the case of the subscription, is the initial date of purchase - the very first. You may have noticed that for every cycle, the transaction id keeps being the same in iOS. In this case, originalPurchaseDate is the first time this was generated.

I would recommend setting up webhooks, there you can keep track of all the subscription lifecycle and you can know both the very start of the subscription and the start of the cycle.

Let me know if this works!

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 313 replies
  • Answer
  • October 30, 2024

Hi @bang9,

The `originalPurchaseDate` in CustomerInfo refers to the purchase date for the version of the application when the user bought the app. This can be used for grandfathering users when migrating to subscriptions.

In the case of the subscription, is the initial date of purchase - the very first. You may have noticed that for every cycle, the transaction id keeps being the same in iOS. In this case, originalPurchaseDate is the first time this was generated.

I would recommend setting up webhooks, there you can keep track of all the subscription lifecycle and you can know both the very start of the subscription and the start of the cycle.

Let me know if this works!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings