Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pv-pushkarverma/SkillRise/llms.txt
Use this file to discover all available pages before exploring further.
Get All Purchases
Retrieve all purchase transactions with optional filtering by status.Authentication
Bearer token with admin role required
Query Parameters
Filter purchases by status. Available values:
created- Purchase record created but payment not initiatedpending- Payment in progresscompleted- Payment successful and enrollment confirmedfailed- Payment failedrefunded- Purchase refundedall- Returns all purchases regardless of status (default)
Response
Indicates if the request was successful
Array of purchases sorted by creation date (newest first)
Example Requests
Notes
- Purchases are sorted by creation date in descending order (newest first)
- The
amountfield represents the final price after any discounts applied - Revenue calculations should only include purchases with
status: 'completed' - The
courseIdfield is populated with basic course information (ID and title) - If no
statusquery parameter is provided orstatus=all, all purchases are returned - Currency defaults to ‘INR’ (Indian Rupee) for all transactions