Documentation
Services
services.create
REST
ShippingPOST /api/v1/services/createMCP tool
Liveservices.createExposed on: REST API · Shop MCP server · Claude connector · Dash (in-app copilot) · Zapier. Part of the Services domain.
Operating contract
Adds one service to the price book. pricing_model decides which price you must give: flat, per_sqft and per_hour need a base_price; tiered needs tiers, one per vehicle size the shop will sell it at; custom is by-quote and takes no price at all.
category is matched against the shop's existing categories BY NAME, and a name that does not match CREATES a new one. Call services.categories first — a typo here is a new, near-empty section of the shop's menu that somebody has to find and tidy up later.
bookable defaults to true, which puts the service on the shop's PUBLIC booking page the moment it is saved. Pass false when you are not certain the price is right: a service in the catalog and off the storefront is a draft, and a wrong price on the storefront is a commitment the shop did not make. That is the safe default for anything a model priced by estimation.
A tiered service left with a size unpriced simply cannot be booked at that size, which is better than being booked at a guess.
Returns the created service. Its id is what every other capability here takes.
Who may call it
- Permission
shop.manageThe caller must hold shop.manage at the ACT level. A read-only dashboard grant on the same section is refused.- Plan
- Every planNo plan gate. Available on every Service VIN plan.
- Retries
noneA repeat genuinely does it twice and no key can make it not. Read before you write; the operating contract says what to read.- Rate class
writeCounted against the write budget, which is tighter than a read.
Input
| Field | Type | Description |
|---|---|---|
| namerequired | stringmax 120 chars, min 1 chars | What the shop calls it. |
| pricing_modelrequired | string | flat, tiered, per_sqft, per_hour or custom. It decides which price is required. One of:flat, tiered, per_sqft, per_hour, custom |
| category | stringmax 80 chars | The menu section, matched by name against services.categories. An unmatched name creates a new category. |
| description | stringmax 500 chars | What the customer reads about it on the booking page and a quote. |
| base_price | number0–1000000 | The price, for flat / per_sqft / per_hour. Ignored for tiered and custom. |
| duration_minutes | integer0–100000 | How long the hands-on work takes. It is what the booking grid reserves. |
| tiers | object[] | Per-vehicle-size prices. Required for a tiered service, ignored otherwise. |
| tiers[].vehicle_typerequired | string | — One of:car, truck, suv, van, coupe, motorcycle, commercial, exotic |
| tiers[].pricerequired | number0–1000000 | — |
| bookable | boolean | Show it on the public booking page. Pass false for a price you are not certain of. Default:true |
| addon | boolean | True makes it an EXTRA sold alongside other work rather than booked on its own. Default:false |
Output
| Field | Type | Description |
|---|---|---|
| id | string | — |
| name | string | — |
| description | string | null | — |
| category | string | null | — |
| pricing_model | string | — |
| base_price | number | null | — |
| duration_minutes | number | null | — |
| cure_time_hours | number | null | — |
| active | boolean | — |
| bookable | boolean | — |
| addon | boolean | — |
| tax_exempt | boolean | — |
| sku | string | null | — |
Examples
Built from this capability's own schema — required fields and the ones carrying a default, and nothing invented. Paste one and it validates.
export SERVICEVIN_API_KEY=svk_live_…
curl -X POST https://www.servicevin.com/api/v1/services/create \
-H "Authorization: Bearer $SERVICEVIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Sam Henderson","pricing_model":"flat","bookable":true,"addon":false}'const res = await fetch("https://www.servicevin.com/api/v1/services/create", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SERVICEVIN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Sam Henderson",
"pricing_model": "flat",
"bookable": true,
"addon": false
}),
});
// Success and failure are both envelopes. Switch on error.code, never
// on error.message — the codes are stable, the messages are for people.
const payload = await res.json();
if (!res.ok) throw new Error(payload.error.code);
const data = payload.data;import os, requests
res = requests.post(
"https://www.servicevin.com/api/v1/services/create",
headers={"Authorization": f"Bearer {os.environ['SERVICEVIN_API_KEY']}"},
json={
"name": "Sam Henderson",
"pricing_model": "flat",
"bookable": True,
"addon": False
},
timeout=30,
)
payload = res.json()
if not res.ok:
raise RuntimeError(payload["error"]["code"])
data = payload["data"]{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "services.create",
"arguments": {
"name": "Sam Henderson",
"pricing_model": "flat",
"bookable": true,
"addon": false
}
}
}Refusals
The four gates run in this order on every surface, and the order is not arbitrary — see Authentication.
| Status | Code | When |
|---|---|---|
| 404 | not_found | The id is unknown, or the feature is not enabled for this account. Deliberately the same answer for both. |
| 403 | forbidden | This login does not hold shop.manage. |
| 403 | insufficient_scope | The credential is read-only and this capability writes. |
| 422 | validation_error | An argument was wrong. The message names the field. |
| 429 | rate_limited | Too many write calls. Back off and retry. |
| 500 | internal_error | Something failed on our side. Nothing was changed. |