Cancel a lesson order after collection
POST/api/admin/lesson-orders/:id/cancellation
Cancels the lessons, reverses the family document, refunds the card and, on request, the insurance premium. Safe to repeat: a run that stopped half-way is resumed with the options stored by the first one, and a completed cancellation answers already_completed. Options: reason (free text, max 2000), refund_insurance, release_promotion, allow_past (booleans, default false).
Request
Responses
- 200
- 400
- 403
- 404
- 409
- 500
{status: ok, cancellation: LessonOrderCancellationResult} with outcome completed or already_completed
Invalid options, or the order is not cancellable: errors lists the blockers keyed by code
Not an admin
Order not found
Another run holds the order, or the options differ from those of the cancellation in progress
A step failed; repeating the request resumes from that step