Solved

original_purchase_date and re-subscribing to subscription

  • 2 October 2021
  • 2 replies
  • 66 views

Badge +3

Hi,

I am processing the REST JSON output from https://docs.revenuecat.com/reference#section-the-non-subscription-object . For a scenario I need the date when the user started the current subscription. As far as I understand the “original_purchase_date” provides the original date of purchase. This is fine as long as the user does not cancel and later re-subscribes. Is there a way to get the original purchase date of the re-subscription?

Best regards,

icon

Best answer by cody 8 October 2021, 17:49

View original

2 replies

Userlevel 5
Badge +8

Hey @MobApp!

We currently include a purchase_date property, which is the date of the latest renewal or purchase, and we include the original_purchase_date property, which is the first recorded purchase of that product.

We don’t currently include a field for the first purchase date after a cancellation, but you might be able to calculate this on your end by subscribing to webhooks and storing the dates in your own database based on the specific logic that you need. For example, you could store a cancellation date, then once a user resubscribes, store that date as the ‘new’ subscription start date.

 

@cody et al

Is original_purchase_date the same as the one Apple describes here?

https://developer.apple.com/documentation/storekit/apptransaction


If not, is that App Tx available via RevenueCat (possibly a dumb question and I can call StoreKit myself).

 

I’m interested in the original purchase date of the app itself so I can "grandfather” older users in (i.e., not make older users suffer as I switch to subscription model).

Thanks for any insight (or links).

Best!
Dan

Reply