Skip to main content

Cancel and restart contract schedules via API

Cancel and restart contract schedules through the DDCMS API with simple, automated requests.

Written by Gemma Langley
Updated this week

The DDCMS API supports cancelling and restarting contract schedules directly from integrated systems, allowing schedule changes to be automated without accessing the DDCMS interface.


Requirements

To use the Cancel and Restart actions, the following are needed:

  • Client Prefix

  • API Key

All API requests must include the header apiKey: {apiKey}.

πŸ“ŒNote: If your Client Prefix or API Key is not available, please contact us via the Access Digital Assistant. A member of the Support team will provide the details you need.


Cancel a schedule

Cancelling a schedule stops all future payments associated with that contract schedule. A cancellation request is sent as a POST request to:
​{ddcmsurl}/api/v3/client/{clientPrefix}/contract/{contractId}/cancelSchedule

  1. Send a POST request to the cancellation endpoint.

  2. Add the API Key to the request header.

  3. Include the correct contractId in the URL.

  4. Submit the request.

  5. A 200 OK confirms the schedule has been cancelled.

πŸ“ŒNote: A cancelled schedule moves to a Terminated status. Payments will not resume unless the schedule is restarted.


Restart a schedule

Restarting a schedule resumes payments for a contract schedule previously set to Terminated. A restart request is sent as a POST request to:
​{ddcmsurl}/api/v3/client/{clientPrefix}/contract/{contractId}/restartSchedule

  1. Send a POST request to the restart endpoint.

  2. Add the API Key to the header.

  3. Include the contractId in the URL.

  4. Add an optional comment as a query parameter.

  5. A 200 OK confirms the schedule has been restarted.

πŸ“ŒNote: Only schedules currently in a Terminated state can be restarted.


Response codes

Status Code

Meaning

200 OK

Schedule cancelled or restarted successfully

400 Bad Request

Request validation failed (details returned)

403 Forbidden

Contract is protected and cannot be modified

404 Not Found

No contract found for the provided ID

500 Internal Server Error

An unexpected error occurred during processing


Troubleshooting

If a request fails, check the following:

  • The contractId is correct

  • The contract is not protected

  • The API Key is valid and copied correctly

  • User permissions allow API access

  • The endpoint URL is accurate and complete

πŸ“ŒNote: Protected contracts cannot be updated via the API.

Did this answer your question?