Skip to content

Course orders

Bought courses: price, discount, state (pending, paid, cancelled, refunded), invoice and what a person needs to check (issue). Created from the client account. Actions: refund, invoice, check.

Module: Courses (courses).

  • GET /api/v1/course_orders - List with filters, sorting and pagination (scope courses:read)
  • GET /api/v1/course_orders/{id} - A record by id (scope courses:read)
  • POST /api/v1/course_orders/{id}/refund - Marks the order as refunded and withdraws access. The money is returned from the payment processor’s panel. (scope courses:write)
  • POST /api/v1/course_orders/{id}/invoice - Creates the invoice of a paid order, if there is none. (scope courses:write)
  • POST /api/v1/course_orders/{id}/check - Checks a pending order with the processor. (scope courses:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • course_id (string, uuid; read)
  • course_title (string; read)
  • party_id (string, uuid; read)
  • buyer_name (string; read)
  • email (string; read)
  • list_price (number; read)
  • discount (number; read)
  • total (number; read)
  • currency (string; read): Currency (ISO code, e.g. RON).
  • coupon_id (string, uuid; read)
  • coupon_code (string; read)
  • status (string; read)
  • provider (string; read)
  • account_id (string; read)
  • mode (string; read)
  • external_id (string; read)
  • checkout_url (string; read)
  • issue (string; read)
  • enrollment_id (string, uuid; read)
  • invoice_id (string, uuid; read)
  • invoice_error (string; read)
  • invoice_claimed_at (string, date-time; read)
  • paid_at (string, date-time; read)
  • refunded_at (string, date-time; read)
  • refund_note (string; read)
  • refunded_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_orders.created
  • course_orders.updated
  • course_orders.deleted