Global search across RepairShopr entities (customers, tickets, invoices, etc.)
I perform a global search across multiple entity types in RepairShopr. I can search customers, contacts, assets, leads, tickets, invoices, estimates, products, purchase orders, vendors, reports, and wiki pages. Results are returned with type indicators.
Use this when:
Required API base URL:
VITE_REPAIRSHOPR_SUBDOMAINVITE_REPAIRSHOPR_API_KEYPermissions: Additional permissions required depending on result types (Customers - List/Search for customers/assets/contacts, Leads - List/Search for leads, Invoices - List/Search for invoices, etc.)
Search (GET /search)
query (string, optional) - Search term. The documentation shows query as integer but that's likely a mistake; use string.Example call:
const result = await skill({ name: "repairshopr-search" }, {
query: "John Doe"
})
// Or with partial info
const result2 = await skill({ name: "repairshopr-search" }, {
query: "555-123"
})
Response includes:
{
"quick_result": null,
"results": [
{
"table": {
"_id": 1,
"_type": "customer",
"_index": "customers",
"_source": {
"table": {
"firstname": "Walkin",
"lastname": "Customer",
"email": "[email protected]",
"phones": [...]
}
}
}
},
{
"table": {
"_type": "ticket",
// ticket data
}
}
// various types
]
}
The results array contains heterogeneous objects; each has a _type field indicating the entity type ("customer", "contact", "asset", "lead", "ticket", "invoice", "estimate", "product", "purchase_order", "vendor", "report", "wiki", etc.). The actual data is nested under _source.
_type to interpret each resultrepairshopr-customer-search - Customer-specific searchrepairshopr-ticket - For detailed ticket lookups after finding via search