Skip to content

Delete vendor

DELETE
/v1/vendors/{id}
curl --request DELETE \
--url https://api.varman.io/v1/vendors/vnd_abc123def456 \
--header 'X-API-Key: <X-API-Key>'

Permanently removes a vendor from the organization. This action cannot be undone.

id
required
string

Example

vnd_abc123def456

Vendor ID

Vendor deleted successfully

Media typeapplication/json
object
message
string
deletedVendor
object
id

Deleted vendor ID

string
name

Deleted vendor name

string
authType

How the request was authenticated

string
Allowed values: api-key session
authenticatedUser

User information (only for session auth)

object
id
string
email
string

Example

{
"message": "Vendor deleted successfully",
"deletedVendor": {
"id": "vnd_abc123def456",
"name": "CloudTech Solutions Inc."
},
"authType": "api-key",
"authenticatedUser": {
"id": "usr_def456ghi789",
"email": "user@example.com"
}
}

Unauthorized - Invalid authentication or insufficient permissions

Media typeapplication/json
object
message
string

Example

{
"message": "Invalid or expired API key"
}

Vendor not found

Media typeapplication/json
object
message
string

Example

{
"message": "Vendor with ID vnd_abc123def456 not found in organization org_abc123def456"
}

Internal server error

Media typeapplication/json
object
message
string

Example

{
"message": "Internal server error"
}