Safestate
Partner API

Reactivate a customer

POST
/api/v1/integrations/customer/reactivate

Header Parameters

SW-PARTNER-ID*string

Partner organization identifier

SW-API-KEY*string

API authentication key

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/integrations/customer/reactivate" \  -H "SW-PARTNER-ID: string" \  -H "SW-API-KEY: string" \  -H "Content-Type: application/json" \  -d '{    "customerId": "550e8400-e29b-41d4-a716-446655440000"  }'
{
  "success": true,
  "message": "Customer reactivated successfully",
  "customerId": "550e8400-e29b-41d4-a716-446655440000",
  "status": "active"
}

{
  "success": false,
  "error": "Invalid JSON in request body"
}

{
  "success": false,
  "error": "Partner ID and API key are required in headers"
}

{
  "success": false,
  "error": "You do not have permission to update this customer"
}
{
  "success": false,
  "error": "Customer not found"
}
{
  "success": false,
  "error": "Customer is already active"
}

{
  "success": false,
  "error": "Partner ID and API key are required in headers"
}

{
  "success": false,
  "error": "Failed to reactivate customer"
}