Course coupons
Discount codes: percent or amount, validity, number of uses, optionally for one course only.
Module: Courses (courses).
Endpoints
Section titled “Endpoints”GET /api/v1/course_coupons- List with filters, sorting and pagination (scopecourses:read)GET /api/v1/course_coupons/{id}- A record by id (scopecourses:read)POST /api/v1/course_coupons- Create a record (scopecourses:write)PATCH /api/v1/course_coupons/{id}- Modify the submitted fields (scopecourses:write)DELETE /api/v1/course_coupons/{id}- Delete or deactivate (scopecourses:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).code(string; write, required)kind(string; write)value(number; write, required)currency(string; write): Currency (ISO code, e.g. RON).course_id(string; write)starts_at(string; write)ends_at(string; write)max_uses(number; write)is_active(boolean; write): Whether the record is active.created_by(string; read)created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).
Events
Section titled “Events”course_coupons.createdcourse_coupons.updatedcourse_coupons.deleted