Skip to main content
Answer

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

  • March 15, 2025
  • 2 replies
  • 59 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!

This post has been closed for comments

2 replies

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • Answer
  • March 19, 2025

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
  • March 19, 2025

Hi ​@kaitlin 

Got it. Thanks for your answer.