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).
Endpoints
Section titled “Endpoints”GET /api/v1/course_orders- List with filters, sorting and pagination (scopecourses:read)GET /api/v1/course_orders/{id}- A record by id (scopecourses: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. (scopecourses:write)POST /api/v1/course_orders/{id}/invoice- Creates the invoice of a paid order, if there is none. (scopecourses:write)POST /api/v1/course_orders/{id}/check- Checks a pending order with the processor. (scopecourses:write)
Fields
Section titled “Fields”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).
Events
Section titled “Events”course_orders.createdcourse_orders.updatedcourse_orders.deleted