Skip to main content
POST
/
partner
/
cancel-the-contract-admin-req
Cancel contract (admin/back-office request)
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.

Authorizations

X-API-KEY
string
header
required

Server-to-Server API Key for internal/lambda/cron calls

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:

"Admin requested termination"

surface
string
required

Platform context

Example:

"back_office"

brand_id
integer
required

Brand/partner ID whose contract is cancelled (required for correct DB queries)

Example:

50

cancelled_by
string | null

Admin user who performed the cancellation

Example:

"admin@mogl.online"

Response

Contract cancelled by admin

status
string
Example:

"success"

message
string
Example:

"Contract cancelled successfully"