SafeWeb API

Offboard a customer

POST
/api/integrations/customer/offboard

Header Parameters

SW-PARTNER-ID*string

Partner organization identifier

SW-API-KEY*string

API authentication key

Request Body

application/json

customerId*string

UUID of the customer to offboard (deactivate)

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://connect.safeweb.co/api/integrations/customer/offboard" \  -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 offboarded successfully"
}

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

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

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