Skip to content

Course coupons

Discount codes: percent or amount, validity, number of uses, optionally for one course only.

Module: Courses (courses).

  • GET /api/v1/course_coupons - List with filters, sorting and pagination (scope courses:read)
  • GET /api/v1/course_coupons/{id} - A record by id (scope courses:read)
  • POST /api/v1/course_coupons - Create a record (scope courses:write)
  • PATCH /api/v1/course_coupons/{id} - Modify the submitted fields (scope courses:write)
  • DELETE /api/v1/course_coupons/{id} - Delete or deactivate (scope courses:write)
  • 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).
  • course_coupons.created
  • course_coupons.updated
  • course_coupons.deleted