Skip to main content
Solved

What format is PurchaserInfo?

  • 20 July 2021
  • 1 reply
  • 107 views

Forum|alt.badge.img+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!

Best answer by ryan

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.

 

 

View original
Did this post help you find an answer to your question?

1 reply

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 391 replies
  • Answer
  • July 20, 2021

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


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