sdk.orders namespace provides access to a customer’s order history, subscriptions, and courses. All methods require the customer to be authenticated (Bearer token set via sdk.setAuthToken()).
Methods
orders.getAll(params?)
Get a paginated list of the customer’s orders.
Returns:
{ data: Order[]; pagination?: Pagination }
orders.getById(id)
Get a specific order by its ID.
Order
orders.getSubscriptions()
Get the customer’s active subscriptions.
any[]
orders.getCourses()
Get courses the customer has purchased access to.
any[]
orders.submitReview(orderId, reviewData)
Submit a review for a completed order.
Returns:
any

