curl --request POST \
--url http://localhost/mogl/mogl-backend/api/partner/cancel-the-contract-admin-req \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"job_id": 100,
"athlete_id": 200,
"cancelled_reason": "Admin requested termination",
"surface": "back_office",
"brand_id": 50,
"cancelled_by": "admin@mogl.online"
}
'{
"status": "success",
"message": "Contract cancelled successfully"
}Administrative contract cancellation with elevated permissions. Requires server-to-server API key. Includes brand_id and cancelled_by for audit trail.
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/partner/cancel-the-contract-admin-req \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"job_id": 100,
"athlete_id": 200,
"cancelled_reason": "Admin requested termination",
"surface": "back_office",
"brand_id": 50,
"cancelled_by": "admin@mogl.online"
}
'{
"status": "success",
"message": "Contract cancelled successfully"
}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.
Server-to-Server API Key for internal/lambda/cron calls
Job/deal ID to cancel
100
Athlete user ID
200
Reason for cancellation
"Admin requested termination"
Platform context
"back_office"
Brand/partner ID whose contract is cancelled (required for correct DB queries)
50
Admin user who performed the cancellation
"admin@mogl.online"