Skip to main content
POST
Cancel contract (admin/back-office request)

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"