Skip to main content
POST
/
partner
/
cancel-the-contract
Cancel active contract with athlete
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.

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Body

application/json
job_id
integer
required

Job/deal ID to cancel

Example:

100

athlete_id
integer
required

Athlete user ID

Example:

200

cancelled_reason
string
required

Reason for cancellation

Example:

"Budget constraints"

surface
string
required

Platform/interface where cancellation was initiated

Example:

"web_dashboard"

Response

Contract cancelled

status
string
Example:

"success"

message
string
Example:

"Contract cancelled successfully"

chatData
object

Chat context if applicable

Example:
[]