Skip to main content
Documentation

Services

services.create

Add a new service to the shop's menu with its price
WritesSensitiveWrite budget

REST

Shipping
POST /api/v1/services/create

MCP tool

Live
services.create

Exposed 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

FieldTypeDescription
namerequiredstringmax 120 chars, min 1 chars

What the shop calls it.

pricing_modelrequiredstring

flat, tiered, per_sqft, per_hour or custom. It decides which price is required.

One of: flat, tiered, per_sqft, per_hour, custom
categorystringmax 80 chars

The menu section, matched by name against services.categories. An unmatched name creates a new category.

descriptionstringmax 500 chars

What the customer reads about it on the booking page and a quote.

base_pricenumber0–1000000

The price, for flat / per_sqft / per_hour. Ignored for tiered and custom.

duration_minutesinteger0–100000

How long the hands-on work takes. It is what the booking grid reserves.

tiersobject[]

Per-vehicle-size prices. Required for a tiered service, ignored otherwise.

tiers[].vehicle_typerequiredstring

One of: car, truck, suv, van, coupe, motorcycle, commercial, exotic
tiers[].pricerequirednumber0–1000000

bookableboolean

Show it on the public booking page. Pass false for a price you are not certain of.

Default: true
addonboolean

True makes it an EXTRA sold alongside other work rather than booked on its own.

Default: false

Output

FieldTypeDescription
idstring

namestring

descriptionstring | null

categorystring | null

pricing_modelstring

base_pricenumber | null

duration_minutesnumber | null

cure_time_hoursnumber | null

activeboolean

bookableboolean

addonboolean

tax_exemptboolean

skustring | 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.

curl
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}'

TypeScript (fetch)
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;

Python (requests)
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"]

MCP tools/call — https://www.servicevin.com/api/mcp
{
  "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.

StatusCodeWhen
404not_foundThe id is unknown, or the feature is not enabled for this account. Deliberately the same answer for both.
403forbiddenThis login does not hold shop.manage.
403insufficient_scopeThe credential is read-only and this capability writes.
422validation_errorAn argument was wrong. The message names the field.
429rate_limitedToo many write calls. Back off and retry.
500internal_errorSomething failed on our side. Nothing was changed.