Skip to navigation

get_customers

List, get or search customers. Entitlements, contacts, seats, shipping addresses, VAT check

Live server: available on mcp.solvimon.com as well as on the test server.

Read-only access to customers and what hangs off them. Customers are the legal counterparties on invoices.

Actions: list, get, search, entitlements, contacts, contact, seat_assignments, shipping_addresses, validate_tax_id

  • get resolves a reference as well as an id.
  • search takes a body of search_fields and filter_fields. search_fields does a substring match on name, reference, email or custom field value. filter_fields does an exact match on status, role, type, id, parent_customer_id, processing_only or custom_field. type, id, parent_customer_id, processing_only and custom_field take a single value, not values. Paging and ordering go in filter.
  • entitlements returns the feature values from the customer’s active pricing plan, including per-subscription overrides.
  • contacts lists the people at a customer who receive its invoices or sign its quotes, with receives_invoice_email. contact reads one.
  • seat_assignments shows who holds the seats of a parent customer’s per-seat items.
  • validate_tax_id checks VAT numbers against VIES without storing anything. UNKNOWN means VIES couldn’t answer, not that the number is wrong.
Search active customers
{
"action": "search",
"body": {
"search_fields": [{"value": "acme"}],
"filter_fields": [{"name": "status", "values": ["ACTIVE"]}]
},
"filter": {"limit": "15"}
}
Check a VAT number
{"action": "validate_tax_id", "country": "NL", "tax_ids": [{"id": "NL859048767B01"}]}

Customers have no top-level name. Organizations have organization.legal_name. To identify an individual, use email. reference is an external id (often a CRM record id), not a display name.

Example prompts

  • “Which customers are still in draft?”
  • “Who at Acme Inc. receives our invoices by email?”
  • “What entitlements does Acme Inc. get from its current plan?”
  • “How many seats is Acme Inc. using, and who holds them?”
  • “Is VAT number NL859048767B01 valid?”

Example output

Prompt: “Which customers are still in draft?”

Tool call:

{
"action": "search",
"body": {
"filter_fields": [{"name": "status", "value": "DRAFT"}]
},
"filter": {"limit": "10", "order_by": "created_at", "order_direction": "desc"}
}

Response (trimmed):

{
"data": [
{
"id": "cust_jwDpzo0vA1bAnFCn7D10",
"reference": "docs-example-bv",
"status": "DRAFT",
"type": "ORGANIZATION",
"email": "billing@example.com",
"organization": {
"legal_name": "Docs Example B.V.",
"registered_address": {"city": "Utrecht", "country": "NL"}
}
},
{
"id": "cust_xwDp2A0vzYrcXvCGvi1O",
"reference": "acme-inc",
"status": "DRAFT",
"type": "ORGANIZATION",
"organization": {
"legal_name": "Acme Inc.",
"registered_address": {"city": "Berlin", "country": "DE"}
}
}
],
"page": 1,
"limit": 10
}

Claude’s answer: 10 customers are still in draft. The newest are Docs Example B.V. (Utrecht, NL) and Acme Inc. (Berlin, DE); Acme Inc. has no invoice email yet. A draft customer can be quoted, but must be activated before its quote converts to a subscription.