Skip to main content
Question

subscriber.original_purchase_date is incorrect

  • 23 February 2022
  • 1 reply
  • 106 views

Forum|alt.badge.img+4

I would like to track on my server when each user first subscribed. I hit the /subscriptions endpoint and check `subscriber.original_purchase_date`, but it is set to some date in 2013 (I only started implementing IAPs in the past couple of weeks). The property under `subscriptions.<product>.original_purchase_date` seems correct, but I would prefer not to have to check every product in that `subscriptions` dictionary for the earliest date, especially not knowing right now which products I will want to add later, and which of those I will count as subscriptions.

What is the purpose of `subscriber.original_purchase_date` and why is it set so early? Is it an artifact of Sandbox testing? A bug?

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • February 28, 2022

Hey @Ben Packard!

The original_purchase_date property of a subscriber is an iOS-only property indicating the date that they first downloaded the app from the App Store. In sandbox, Apple sets this date to a date in 2013, and they also set the original_application_version property to 1.0. In production, these dates will be the actual values that applied when the customer actually downloaded the app.

If you’re looking to keep track of when a user’s specific subscription started, you should use the property in subscriptions.<product>.original_purchase_date like you mentioned.


Reply


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