| name | repairshopr-customer-create |
| description | Create a new customer in RepairShopr |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"technicians, kiosk applications","api":"POST /customers"} |
What I do
I create a new customer record in RepairShopr with the provided details.
When to use me
Use this when:
- Customer lookup returned no results
- New customer is registering for the first time
- You need to add a customer to the system
How to use
Required API base URL (set in environment):
VITE_REPAIRSHOPR_SUBDOMAIN
VITE_REPAIRSHOPR_API_KEY
Parameters (all optional except at least one contact field):
firstname (string) - Customer's first name
lastname (string) - Customer's last name
email (string) - Email address (validated)
phone (string) - Phone number
mobile (string) - Mobile number
address, address_2, city, state, zip - Address fields
get_sms (boolean) - Whether to send SMS notifications
notes (string) - Additional notes
Example call:
const result = await skill({ name: "repairshopr-customer-create" }, {
firstname: "John",
lastname: "Doe",
email: "john@example.com",
phone: "555-1234"
})
Response includes:
customer object with created customer data including id, fullname, etc.
Validation
- Email must be valid format
- At minimum, provide either email or phone
- Returns 422 with error messages if validation fails
Notes
- Requires "Customers - Create" permission
- Created customers are NOT sent an invite automatically
- Consider using the search skill first to avoid duplicates