Hi ammonify2025,
Thank you for your follow-up question.
Currently, LearnPress doesn’t have a dedicated Orders API for fetching order data directly. However, you can retrieve a user’s order list using the /wp-json/learnpress/v1/users/ API endpoint with the order
parameter.
For detailed implementation, you can refer to the get_lp_data_tabs function located in the wp-content/plugins/learnpress/inc/jwt/rest-api/version1/class-lp-rest-users-v1-controller.php file. This function provides the logic for retrieving user order information.
Please let me know if you have any further questions or require additional assistance.
Best regards,
Brianvu-tp