Skip to main content
Solved

The response from the "Get Purchases" endpoint in REST API v2 isn't ordered by time.

  • Mar 15, 2025 6:00 AM UTC
  • 2 replies
  • 409 views

Forum|alt.badge.img

The response from the "Get Purchases" endpoint (https://api.revenuecat.com/v2/projects/{project_id}/customers/{customer_id}/purchases) isn’t ordered by the customer's purchase time. Is this expected?

 

It’s weird that the Customer History is ordered by time in the dashboard, but it’s not in the REST API.

Best answer by kaitlin

Hey ​@YU Chen,

I understand that’s a bit confusing, but it is expected that the Get Purchases response isn’t ordered by purchase date at this time!

View original
This post has been closed for comments

2 replies

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • Answer
  • Mar 19, 2025 4:10 PM UTC

Hey ​@YU Chen,

I understand that’s a bit confusing, but it is expected that the Get Purchases response isn’t ordered by purchase date at this time!


Forum|alt.badge.img
  • Author
  • New Member
  • Mar 19, 2025 9:45 PM UTC

Hi ​@kaitlin 

Got it. Thanks for your answer.