Skip to navigation

Create a termination request for the contract

Starts the termination of a contractor contract, either immediately or on a future date, in which case the termination stays pending until that date. A pending termination can be cancelled with DELETE /contracts/{contract_id}/terminations before it takes effect, but once it has taken effect this action is irreversible through the public API. Use GET /contracts/termination-reasons to get the reasons to present.

Token scopes: contracts:write

Authentication

AuthorizationBearer

Authentication

The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail.

curl -X GET 'https://api.deel.training/rest/v2/contracts' \
  -H 'Authorization: Bearer YOUR-TOKEN-HERE'

Learn more about authentication

OR
AuthorizationBearer

Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/

Path parameters

contract_idstringRequired
The unique identifier of the contractor contract

Request

This endpoint expects an object.
dataobjectRequired

Termination data. At minimum, you must provide either terminate_now: true (for immediate termination) OR completion_date (for scheduled termination).

Response

Successful operation
dataobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error