curl --request POST \
--url http://localhost/mogl/mogl-backend/api/partner/cancel-the-contract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"job_id": 100,
"athlete_id": 200,
"cancelled_reason": "Budget constraints",
"surface": "web_dashboard"
}
'{
"status": "success",
"message": "Contract cancelled successfully",
"chatData": []
}Comprehensive contract termination workflow: updates contract status to ‘cancelled’, cancels milestone payment statuses (is_paid = 4), sends chat notifications with cancellation reason, resets job status for single-athlete positions, triggers multi-channel notifications (Slack, email, SMS, in-app), and records analytics events.
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/partner/cancel-the-contract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"job_id": 100,
"athlete_id": 200,
"cancelled_reason": "Budget constraints",
"surface": "web_dashboard"
}
'{
"status": "success",
"message": "Contract cancelled successfully",
"chatData": []
}Documentation Index
Fetch the complete documentation index at: https://developer.mogl.online/llms.txt
Use this file to discover all available pages before exploring further.
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.