Zum Hauptinhalt springen

Schedule the Termination of a Contract

POST/contracts/{contractId}/termination/
v2
POST
contract-terminate-contract

Request

  • contractIdstring
    required

    The uuid of the Contract to be terminated.

Responses

application/json

Returns the contractId, the date on which the Termination will take place and the list of affected ContractItems.

  • contractIdstring (uuid)
  • explanationstring
  • itemsScheduledForTerminationarray of string (uuid)
    • Array[
      • *string (uuid)
      ]
  • reasonstring
  • terminationTargetDatestring (date-time)

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"explanation":"The website for my temporary project is no longer needed","reason":"Projekt wird nicht mehr benötigt","terminationTargetDate":"1985-10-26T01:21:00.000Z"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/contracts/string/termination