Once a user purchased a course, they have the option to get unassigned from the course and get a refund for the money or credit that they spent. However, there are some rules that need to apply in order for a course to be refundable.
First of all, a user could get a refund for a course if they have not started or completed the course yet. A course is considered to be refundable for a user if the user status for this course is either pending or registered. In any other case, the course is not considered refundable and the user can not get a refund for this course.
Even in the case where a user took a course, started it or completed it, and then their status on the course changed (by some professor or admin) to pending or registered, the course is not considered to be refundable because the user already changed their original status for the course once.
A second rule, that applies to blended learning courses, is that the course is considered to be refundable if no cancellation deadline is met for any of its sessions.
To clarify this, consider a blended learning course with some learning sessions in it. A user buys this courses and registers for one or more sessions of this course. For each session, there is a cancellation deadline, where the user is able to cancel their attendance.
Past this deadline, a user is no longer able to cancel attendance. If a user tries to get a refund for a blended course where they are registered to a session and missed the cancellation deadline, they will not get a refund for the money or credit they paid.
Finally, a user can get a refund for a curriculum also, if they have purchased a curriculum, but in order for a curriculum to be refunded, all courses within the curriculum must be refunded according to the rules described before.
A course is refundable if:
The user's status in the course is pending or registered and has not yet changed from this status
In case of a blended learning course, not cancellation deadline is met for the sessions of the course.
In case of a curriculum, all courses are refundable according to the above rules