Solved

What format is PurchaserInfo?

  • 20 July 2021
  • 1 reply
  • 99 views

Badge +4

Using RevenueCat for Unity, I am receiving json return values from RC in response to GetOfferings, RestorePurchases, etc. They usually come in the form of a PurchaserInfo object. I can’t find any documentation anywhere on the exact details of what is in this object.

Specifically the date values look like this:

"originalPurchaseDate":1626733276,"latestPurchaseDate":1626733275

EDIT: Ohhh, these Ints are just the values shown by the XCode debugger, in C# the object contains dates in DateTime type. I was looking at the raw json data and wondering what those date numbers stood for. Still trying to find in-depth docs for the C# Type PurchaserInfo, what all is in it and how it behaves.

What are these integers and how does one make them into a date? Does any documentation exist detailing the return values from RC calls?

Thanks!

icon

Best answer by ryan 20 July 2021, 04:10

View original

1 reply

Userlevel 5
Badge +9

There’s some information on the PurchaserInfo object here: https://docs.revenuecat.com/docs/purchaserinfo#get-user-information. Does that help? The C# examples are lacking unfortunately, so let us know if there’s anything we can clarify!

 

Details on the API JSON can be found in the API docs here along with a sample response: https://docs.revenuecat.com/reference#basic

 

Regarding the dates, those numbers are unix timestamps, and sometimes the Xcode debugger can even show things in a different format than the raw request.

 

 

Reply