Management
Archive Customer
Soft-delete a customer by marking it as archived
DELETE
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Soft-delete a customer by marking it as archived
curl -X DELETE "https://api.trusset.org/customers/api/manage/cust_abc123" \
-H "X-API-Key: trusset_abc123xy_secret..."
const response = await fetch(
'https://api.trusset.org/customers/api/manage/cust_abc123',
{
method: 'DELETE',
headers: { 'X-API-Key': 'trusset_abc123xy_secret...' }
}
);
const { data } = await response.json();
// data.archived === true
{
"success": true,
"data": {
"archived": true
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z"
}
}
includeArchived=true. This is a soft delete - no data is permanently removed.
curl -X DELETE "https://api.trusset.org/customers/api/manage/cust_abc123" \
-H "X-API-Key: trusset_abc123xy_secret..."
const response = await fetch(
'https://api.trusset.org/customers/api/manage/cust_abc123',
{
method: 'DELETE',
headers: { 'X-API-Key': 'trusset_abc123xy_secret...' }
}
);
const { data } = await response.json();
// data.archived === true
{
"success": true,
"data": {
"archived": true
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z"
}
}
curl -X DELETE "https://api.trusset.org/customers/api/manage/cust_abc123" \
-H "X-API-Key: trusset_abc123xy_secret..."
const response = await fetch(
'https://api.trusset.org/customers/api/manage/cust_abc123',
{
method: 'DELETE',
headers: { 'X-API-Key': 'trusset_abc123xy_secret...' }
}
);
const { data } = await response.json();
// data.archived === true
{
"success": true,
"data": {
"archived": true
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z"
}
}
