V2 Alpha — This endpoint is part of the V2 API preview. Breaking changes may occur.
Overview
Delete a user account belonging to the authenticated vendor. Returns 404 if the user does not exist or does not belong to the vendor.
Vendor Token Required — This endpoint requires a vendor-scoped JWT token. Merchant tokens will receive a 403 error.
Use Cases
- Remove team members who no longer need portal access
- Clean up inactive accounts from the vendor user list
Path Parameters
The user ObjectId to delete.
Response
{
"success": true,
"data": {
"deleted": true
}
}
Error Responses
{
"success": false,
"error": "User not found"
}
Example
curl -X DELETE "https://api.puppetvendors.com/v2/vendor/users/507f1f77bcf86cd799439022" \
-H "x-access-token: YOUR_VENDOR_JWT_TOKEN"