Cancel Customer
POST /api/customers/:customerPublicId/cancel
Cancel Customer
POST /api/customers/:customerPublicId/cancel
Marks a customer for cancellation and starts the 3-day grace period immediately.
Authentication
This endpoint requires authentication.
BASE_URL="https://uptimeify.io"
TOKEN="wsm_<your-api-token>"
Example Request
curl -X POST "$BASE_URL/api/customers/6bfec6f6-245a-47ce-843b-157d97d56f88/cancel" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"
Example Response
{
"id": 101,
"publicId": "6bfec6f6-245a-47ce-843b-157d97d56f88",
"organizationId": 1,
"name": "Customer A GmbH",
"email": "contact@customer-a.de",
"notificationPhoneNumber": "+491701234567",
"notificationEmail": "alerts@customer-a.de",
"packageId": 3,
"packageType": "acquisition_test",
"status": "marked_for_cancellation",
"cancellationDate": "2026-03-01T19:37:00.000Z",
"cancelledAt": "2026-02-26T19:37:00.000Z",
"customFields": {
"internalReference": "KD-999"
},
"monthlyReportsEnabled": true,
"notificationChannels": null,
"notificationTargets": null,
"notificationRules": null,
"smsUsageCurrentMonth": 0,
"createdAt": "2026-02-20T09:15:00.000Z",
"updatedAt": "2026-02-26T19:37:00.000Z"
}
Notes:
cancelledAtis the timestamp when the cancellation was requested and the grace period started.cancellationDateis the effective end of the grace period. This endpoint currently sets it to 3 days aftercancelledAt.
Common Errors
400Invalid Customer identifier401Unauthorized403Forbidden / Organization ID not found404Customer not found500Failed to mark customer for cancellation