Skip to main content
GET
/
api
/
customers
/
{id}
Get Customer
curl --request GET \
  --url https://app-api.my-virtual-office.com/api/customers/{id} \
  --header 'X-API-Key: <x-api-key>'
{
  "error": "Unauthorized",
  "message": "API key is required. Provide it via X-API-Key header or Authorization Bearer token."
}

Get Customer

Retrieve the full details of a single customer by their unique ID.

Authentication

X-API-Key
string
required
Your API key. Can also be provided via Authorization: Bearer header.

Path Parameters

id
string
required
The UUID of the customer to retrieve.

Response

id
string
Unique identifier for the customer (UUID)
seller_id
string
Your seller account ID (UUID)
first_name
string
Customer’s first name
last_name
string
Customer’s last name
email
string
Customer’s email address
company_name
string | null
Company name if provided
Legal entity type if provided
language
string | null
Preferred language
address_data
object | null
Address information if provided
postal_redirect_address
object | null
Postal redirect address if set
status
string
Customer status. One of active, inactive, or suspended. Inactive or suspended customers cannot log in to the portal.
source
string
Source of customer creation (e.g., “api”)
created_at
string
ISO 8601 timestamp of when the customer was created
updated_at
string
ISO 8601 timestamp of when the customer was last updated

Example Request

curl -X GET https://app-api.my-virtual-office.com/api/customers/550e8400-e29b-41d4-a716-446655440000 \
  -H "X-API-Key: sk_live_your_api_key_here"

Example Response

200 OK
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "seller_id": "660e8400-e29b-41d4-a716-446655440001",
  "first_name": "John",
  "last_name": "Doe",
  "email": "john.doe@example.com",
  "company_name": "Acme Corp",
  "legal_entity": "GmbH",
  "language": "en",
  "address_data": {
    "street": "Musterstraße 123",
    "city": "Berlin",
    "postal_code": "10115",
    "country": "Germany"
  },
  "postal_redirect_address": null,
  "status": "active",
  "source": "api",
  "created_at": "2024-01-15T10:30:00.000Z",
  "updated_at": "2024-02-20T14:15:00.000Z"
}

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 CodeErrorDescription
401UnauthorizedMissing or invalid API key
404Not FoundCustomer not found or does not belong to your account
500Internal Server ErrorUnexpected server error