Manage service contract cancellation
Schedule a service contract cancellation or remove a scheduled service contract cancellation.
Schedule service contract cancellation
Schedule a service contract cancellation.
Request
| Endpoint: | /api/services/<service_id>/service/cancel | 
| Method: | POST | 
| Headers: | Accept: application/vnd.cloudlx.v1+json | 
| Authorization: Bearer <access_token> | 
Example Request:
                                
    {
        "cancellation_date": "2025-05-16"
    }
                                
                            
                        Request Values
| cancellation_date | Description | The date on which you wish the contract to cancel. | 
| Type | Date | |
| Example | 2025-05-16 | 
Response
Example:
                                
    {
        "success": true,
        "message": "Service updated successfully",
        "warnings": [
            "Service is within the minimum contract term. Additional penalty charges apply."
        ],
    }
                                
                            
                        Response Values
| warnings | Description | An array of strings indicating potential warnings about the selected date. An empty array means there are no warnings. | 
| Type | Array[String] | |
| Example | [ "Service is within the minimum contract term. Additional penalty charges apply." ] | 
Remove scheduled service contract cancellation
Remove a scheduled a service contract cancellation.
Request
| Endpoint: | /api/services/<service_id>/cancel | 
| Method: | POST | 
| Headers: | Accept: application/vnd.cloudlx.v1+json | 
| Authorization: Bearer <access_token> | 
Example Request:
                                
    {
        "cancellation_date": null
    }
                                
                            
                        Request Values
| cancellation_date | Description | The date on which you wish the contract to cancel. | 
| Type | Null | |
| Example | null | 
Response
Example:
                                
    {
        "success": true,
        "message": "Service updated successfully"
    }