Delete Customer
curl --request DELETE \
--url https://app-api.my-virtual-office.com/api/customers/{id} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://app-api.my-virtual-office.com/api/customers/{id}"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://app-api.my-virtual-office.com/api/customers/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app-api.my-virtual-office.com/api/customers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app-api.my-virtual-office.com/api/customers/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://app-api.my-virtual-office.com/api/customers/{id}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app-api.my-virtual-office.com/api/customers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"error": "Unauthorized",
"message": "API key is required. Provide it via X-API-Key header or Authorization Bearer token."
}
API Reference
Delete Customer
Delete a customer from your My Virtual Office account
DELETE
/
api
/
customers
/
{id}
Delete Customer
curl --request DELETE \
--url https://app-api.my-virtual-office.com/api/customers/{id} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://app-api.my-virtual-office.com/api/customers/{id}"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://app-api.my-virtual-office.com/api/customers/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app-api.my-virtual-office.com/api/customers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app-api.my-virtual-office.com/api/customers/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://app-api.my-virtual-office.com/api/customers/{id}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app-api.my-virtual-office.com/api/customers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"error": "Unauthorized",
"message": "API key is required. Provide it via X-API-Key header or Authorization Bearer token."
}
Delete Customer
Permanently delete a customer from your seller account. This action cannot be undone.Authentication
string
required
Your API key. Can also be provided via
Authorization: Bearer header.Path Parameters
string
required
The UUID of the customer to delete.
Response
Returns204 No Content on success with an empty body.
Example Request
curl -X DELETE https://app-api.my-virtual-office.com/api/customers/550e8400-e29b-41d4-a716-446655440000 \
-H "X-API-Key: sk_live_your_api_key_here"
const response = await fetch(
'https://app-api.my-virtual-office.com/api/customers/550e8400-e29b-41d4-a716-446655440000',
{
method: 'DELETE',
headers: {
'X-API-Key': 'sk_live_your_api_key_here',
},
}
);
// 204 No Content - no response body
import requests
response = requests.delete(
'https://app-api.my-virtual-office.com/api/customers/550e8400-e29b-41d4-a716-446655440000',
headers={
'X-API-Key': 'sk_live_your_api_key_here',
}
)
# 204 No Content - no response body
Error Responses
{
"error": "Unauthorized",
"message": "API key is required. Provide it via X-API-Key header or Authorization Bearer token."
}
{
"error": "Not Found",
"message": "Customer not found"
}
Error Codes
| HTTP Code | Error | Description |
|---|---|---|
| 401 | Unauthorized | Missing or invalid API key |
| 404 | Not Found | Customer not found or does not belong to your account |
| 500 | Internal Server Error | Unexpected server error |
⌘I

