Skip to main content
Question

Get regular user's transactions from API - including course/product reference

  • December 16, 2025
  • 2 replies
  • 35 views

Authenticated as a regular user, I would like to get all the user’s transactions, with course reference included (course ID).

The endpoint /ecommerce/v1/transaction can be called by regular users, but it doesn’t include a reference to the course in question. On the other hand, /ecommerce/v1/transaction/list does include a course reference; however, it only works for elevated users.

Any guidance appreciated.

2 replies

brandonbillings
Helper II
Forum|alt.badge.img+1

We use an external e-commerce system, so i’m not very familiar with these endpoints, but do you need to call /ecommerce/v1/transaction to get the transaction ID, then a GET /ecommerce/v1/transaction/get and pass the transaction ID to get the details? The schema on the second API indicates it will return items (which i assume might include the course info).

"items": [
{
"item_id": 0,
"item_code": "string",
"item_title": "string",
"item_price": 0,
"item_seats": 0,
"item_type": "string"
}

 


  • Author
  • Novice II
  • December 18, 2025

@brandonbillings Thanks for the comment. Exactly, first we need to make that first API request to get all transactions, then get each transaction with that second endpoint. This leads to quite a few requests, hence the question.