Docs home

Course Purchase List

Lists the course purchases (enrollments and their payments) of the signed-in learner, or of a parent's linked children. Use it in a learner portal to show "My purchases".

GET/institution/bookings
Course Purchase List
curl --request GET \
  --url 'https://<your-api-host>/nuSource/api/v1/institution/bookings' \
  --header 'APIKEY: <your-api-key>' \
  --header 'ORGID: <your-org-id>'
{
  "code": 200,
  "message": "Success",
  "bookings": [
    {
      "package_id": 62567,
      "institution_id": 126,
      "payment_id": 3881340,
      "payment_status": "cleared",
      "payment_scheme": 324,
      "discount": 0,
      "amount": 5000,
      "currency_symbol": "₹",
      "position": 1,
      "payment_gateway": 8,
      "date_of_commencement": "",
      "institution_name": "demo. Academy Edmingle",
      "package_name": "Gen AI Course",
      "student_name": "Asit",
      "student_email": "hemal+test9809@edmingle.com",
      "student_contact_number": "7898093461",
      "student_bundle_status": 1,
      "final_amount": 5000,
      "date_of_enrolment": "18/06/2026",
      "enrollment_id": 3889789,
      "is_online_package": 1,
      "is_test_series": 0,
      "is_free_enrolment": 0,
      "course_type": 2,
      "institution_bundle_id": 92821,
      "organization_id": 212,
      "enrollment_expiration_date": 1803340800,
      "promocode_text": "",
      "timestamp_date_of_enrolment": 1781772555,
      "bundle_img_url": null,
      "enrollment_source": 1
    },
    {
      "package_id": 1951,
      "institution_id": 126,
      "payment_id": 3783273,
      "payment_status": "pending",
      "payment_scheme": 344,
      "discount": 0,
      "amount": 5,
      "currency_symbol": "₹",
      "position": 1,
      "payment_gateway": 8,
      "date_of_commencement": "",
      "institution_name": "demo. Academy Edmingle",
      "package_name": "Physics",
      "student_name": "Asit",
      "student_email": "hemal+test9809@edmingle.com",
      "student_contact_number": "7898093461",
      "student_bundle_status": 1,
      "final_amount": 5.9,
      "date_of_enrolment": "22/05/2026",
      "enrollment_id": 3791721,
      "is_online_package": 1,
      "is_test_series": 0,
      "is_free_enrolment": 0,
      "course_type": 1,
      "institution_bundle_id": 2182,
      "organization_id": 241,
      "enrollment_expiration_date": 0,
      "promocode_text": "",
      "timestamp_date_of_enrolment": 1779440917,
      "bundle_img_url": "https://dme2wmiz2suov.cloudfront.net/User(3846680)/CourseBundles(1951)/4237523-Screenshot_2025-07-09_at_12.21.58%E2%80%AFPM.png",
      "enrollment_source": 1
    },
    {
      "package_id": 24162,
      "institution_id": 126,
      "payment_id": 1819581,
      "payment_status": "cleared",
      "payment_scheme": 290,
      "discount": 0,
      "amount": 1,
      "currency_symbol": "₹",
      "position": 1,
      "payment_gateway": 8,
      "date_of_commencement": "",
      "institution_name": "demo. Academy Edmingle",
      "package_name": "2026 Welcome to India Course",
      "student_name": "Asit",
      "student_email": "hemal+test9809@edmingle.com",
      "student_contact_number": "7898093461",
      "student_bundle_status": 1,
      "final_amount": 1,
      "date_of_enrolment": "07/02/2025",
      "enrollment_id": 1828001,
      "is_online_package": 1,
      "is_test_series": 0,
      "is_free_enrolment": 0,
      "course_type": 1,
      "institution_bundle_id": 44840,
      "organization_id": 212,
      "enrollment_expiration_date": 0,
      "promocode_text": "",
      "timestamp_date_of_enrolment": 1738915059,
      "bundle_img_url": "https://dme2wmiz2suov.cloudfront.net/User(53044146)/CourseBundles(24162)/3684846-124855-Gspace.png",
      "enrollment_source": 1
    },
    {
      "package_id": 12511,
      "institution_id": 126,
      "payment_id": 1819580,
      "payment_status": "cleared",
      "payment_scheme": 290,
      "discount": 0,
      "amount": 1120,
      "currency_symbol": "₹",
      "position": 1,
      "payment_gateway": 8,
      "date_of_commencement": "",
      "institution_name": "demo. Academy Edmingle",
      "package_name": "Paid course test data single installment",
      "student_name": "Asit",
      "student_email": "hemal+test9809@edmingle.com",
      "student_contact_number": "7898093461",
      "student_bundle_status": 1,
      "final_amount": 1120,
      "date_of_enrolment": "07/02/2025",
      "enrollment_id": 1828000,
      "is_online_package": 1,
      "is_test_series": 0,
      "is_free_enrolment": 0,
      "course_type": 1,
      "institution_bundle_id": 28658,
      "organization_id": 212,
      "enrollment_expiration_date": 0,
      "promocode_text": "",
      "timestamp_date_of_enrolment": 1738886400,
      "bundle_img_url": "https://dme2wmiz2suov.cloudfront.net/User(3846680)/CourseBundles(12511)/2205450-Krishna.jpg",
      "enrollment_source": 1
    },
    {
      "package_id": 1370,
      "institution_id": 126,
      "payment_id": 1552651,
      "payment_status": "cleared",
      "payment_scheme": 290,
      "discount": 1,
      "amount": 1,
      "currency_symbol": "$",
      "position": 1,
      "payment_gateway": -1,
      "date_of_commencement": "",
      "institution_name": "demo. Academy Edmingle",
      "package_name": "Commerce",
      "student_name": "Asit",
      "student_email": "hemal+test9809@edmingle.com",
      "student_contact_number": "7898093461",
      "student_bundle_status": 1,
      "final_amount": 0,
      "date_of_enrolment": "10/10/2024",
      "enrollment_id": 1561065,
      "is_online_package": 1,
      "is_test_series": 0,
      "is_free_enrolment": 0,
      "course_type": 2,
      "institution_bundle_id": 1516,
      "organization_id": 212,
      "enrollment_expiration_date": 0,
      "promocode_text": "",
      "timestamp_date_of_enrolment": 1728560709,
      "bundle_img_url": "https://dme2wmiz2suov.cloudfront.net/User(3846680)/CourseBundles(1370)/1890676-clay-banks-E2HgkL3LaFE-unsplash.jpg",
      "enrollment_source": 2
    }
  ],
  "registrations": [],
  "special_fees": [
    {
      "payment_id": 46577,
      "institution_id": 126,
      "organization_id": 212,
      "user_id": 91139236,
      "template_id": 333,
      "amount": 0,
      "created_at_gmt": 1738915079,
      "due_date_gmt": 1738915079,
      "payment_status": "cleared",
      "notes": "Mettl Exam Course Enrollment By Course",
      "paid_on": 0,
      "template_name": "Assessment Fees template",
      "invoice_id": 2284364,
      "amount_due": 0,
      "invoice_number": 4080,
      "discount": 0,
      "final_amount": 0,
      "credits_applied": 0,
      "is_igst": 0,
      "igst_per": "0.00000",
      "igst_amount": 0,
      "cgst_per": "0.00000",
      "cgst_amount": 0,
      "sgst_per": "0.00000",
      "sgst_amount": 0,
      "enable_gst": 0,
      "place_of_supply": "KARNATAKA",
      "currency_symbol": "₹",
      "position": 1,
      "currency_id": 49,
      "base_currency_id": 49,
      "conversion_rate": "1.00000",
      "adjustment_rate": "0.00000",
      "num_of_decimals": 2
    },
    {
      "payment_id": 60165,
      "institution_id": 126,
      "organization_id": 241,
      "user_id": 91139236,
      "template_id": 333,
      "amount": 0,
      "created_at_gmt": 1779440933,
      "due_date_gmt": 1779440933,
      "payment_status": "cleared",
      "notes": "Mettl Exam Course Enrollment By Course",
      "paid_on": 0,
      "template_name": "Assessment Fees template",
      "invoice_id": 4467882,
      "amount_due": 0,
      "invoice_number": 255,
      "discount": 0,
      "final_amount": 0,
      "credits_applied": 0,
      "is_igst": 0,
      "igst_per": "0.00000",
      "igst_amount": 0,
      "cgst_per": "0.00000",
      "cgst_amount": 0,
      "sgst_per": "0.00000",
      "sgst_amount": 0,
      "enable_gst": 0,
      "place_of_supply": "KARNATAKA",
      "currency_symbol": "₹",
      "position": 1,
      "currency_id": 49,
      "base_currency_id": 49,
      "conversion_rate": "1.00000",
      "adjustment_rate": "0.00000",
      "num_of_decimals": 2
    }
  ]
}

Access: Learners (their own purchases) and parents (their children's). Other roles get an empty list.

Query parameters
payment_idinteger
Return only this purchase.
Return only courses of this course type.
1 also returns cancelled enrollments to learners. Default 0.
Response200application/json
codeinteger
Example: 200
messagestring
Example: Success
bookingsobject[]
Show child attributesHide child attributes
Course ID
Example: 62567
Example: 126
Example: 3881340
pending or cleared
Example: cleared
Fee template
Example: 324
Example: 0
Example: 5000
Example: ₹
Where the symbol goes
Example: 1
-1 enrolled by an admin (no gateway), 1 PayUBiz, 2 Instamojo, 3 PayPal, 4 Paytm, 5 CCAvenue, 6 Stripe, 7 PayUMoney, 8 Razorpay, 9 Apple Pay, 10 Easebuzz, 11 NMI
Example: 8
Example: demo. Academy Edmingle
Example: Gen AI Course
Example: Asit
Example: hemal+test9809@edmingle.com
Example: 7898093461
1 enrolled, 2 cancelled, 5 expired
Example: 1
Formatted strings
Example: 5000
Dd/mm/yyyy
Example: 18/06/2026
Example: 3889789
Example: 0
Example: 2
Example: 92821
Example: 212
Unix, 0 none
Example: 1803340800
Unix
Example: 1781772555
Course registrations
special_feesobject[]
Other fee invoices (template name, amount, amount due, GST details, invoice number, status)
Show child attributesHide child attributes
Example: 46577
Example: 126
Example: 212
Example: 91139236
Example: 333
Example: 0
Example: 1738915079
Example: 1738915079
pending or cleared
Example: cleared
Example: Mettl Exam Course Enrollment By Course
Example: 0
Example: Assessment Fees template
Example: 2284364
Example: 0
Example: 4080
Example: 0
Formatted strings
Example: 0
Example: 0
Example: 0.00000
Example: 0
Example: 0.00000
Example: 0
Example: 0.00000
Example: 0
Example: 0
Example: KARNATAKA
Where the symbol goes
Example: 1
Example: 49
Example: 1.00000
Example: 0.00000

Notes: Only purchases in organizations that let learners see their purchases are returned. Payment-in-progress and failed enrollments are never listed. Rate limit: 30 requests per minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI