repairshopr_* — RepairShopr

The RepairShopr tool namespace — the system of record for tickets and customers. CRUD by entity type, ticket comments, and cross-entity search.

RepairShopr (RS) is the system of record for tickets, customers, and invoices. Every tool here is entity-typed: you pass an entity_type string (ticket, customer, invoice, …) plus the operation. The shape is a thin, uniform CRUD wrapper over the RS API.

Reading

repairshopr_get

Get a single record by ID, or list/filter records of a type.

repairshopr_get(entity_type, id=None, filters=None)
ParamTypeNotes
entity_typestringRequired — ticket, customer, invoice, etc.
idintFetch one record; omit to list
filtersobjectField filters when listing

Cross-entity search by free-text query. Use this when you don’t know the ID and want RS to find the match.

repairshopr_search(query, search_type="all")

search_type defaults to "all"; narrow it (e.g. to a single entity) when you know what you’re looking for.

Writing

repairshopr_create

repairshopr_create(entity_type, data)

data is the full record payload as an object. Shape depends on the entity — when in doubt, repairshopr_get an existing record of the same type to see the field names.

repairshopr_update

repairshopr_update(entity_type, id, data)

All three are required. data carries only the fields you’re changing.

repairshopr_delete

repairshopr_delete(entity_type, id)

Destructive. RS is the system of record — confirm before deleting anything that downstream syncs (the RS ticket sync) read from.

Ticket comments

repairshopr_comment

Add a comment to a ticket, with control over customer-visibility and email.

repairshopr_comment(ticket_id, comment, hidden=False, do_not_email=False)
ParamDefaultEffect
hiddenFalseTrue keeps the comment internal (not customer-visible)
do_not_emailFalseTrue suppresses the customer notification email

For an automated/internal note you don’t want the customer to see or be emailed about, set both hidden=True and do_not_email=True.

How this feeds the rest of the system

RS is upstream of the order pipeline: