Shopmonkey MCP by usefulapi
Look up shop customers, vehicles, work orders and parts, and create orders or book appointments.
使うべきか
品質と安全性
検出事項(15)
- HIGH
- MEDIUMshopmonkey_list_purchase_orders 内
- MEDIUMshopmonkey_delete_service 内
- MEDIUMshopmonkey_delete_labor 内
- MEDIUMshopmonkey_delete_part 内
- LOWshopmonkey_find_customers_by_phone 内
- LOWshopmonkey_find_customers_by_email 内
- LOWshopmonkey_list_customer_vehicles 内
- LOWshopmonkey_list_customer_orders 内
- LOWshopmonkey_list_purchase_orders 内
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"shopmonkey": {
"url": "https://shopmonkey.usefulapi.io/mcp"
}
}
}リモートエンドポイント
https://shopmonkey.usefulapi.io/mcpstreamable-httpできること
ツール一覧
ツール(45)
🟢shopmonkey_get_current_user
Fetch the user this API key acts as — id, name, company, default location and permissions. A cheap way to confirm the key works and to find your locationId. Shopmonkey: GET /v3/user/me.
入力スキーマ
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_search_customers(where, orderBy, limit, skip)
Search customers with a server-side filter, sort and paging. Returns customers with their emails and phone numbers. Shopmonkey: POST /v3/customer/search.
入力スキーマ
{
"type": "object",
"properties": {
"where": {
"description": "Filter object applied server-side, keyed by field name, e.g. {\"lastName\": \"Smith\"} or {\"createdDate\": {\"gte\": \"2026-01-01\"}}.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"orderBy": {
"description": "Sort instructions keyed by field name, e.g. {\"createdDate\": \"desc\"}.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"enum": [
"asc",
"desc"
]
}
},
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_find_customers_by_phone(phoneNumbers, excludeCustomerId)
Find the customers that own any of the given phone numbers — the usual way to identify a caller. Shopmonkey: POST /v3/customer/phone_number/search.
入力スキーマ
{
"type": "object",
"properties": {
"phoneNumbers": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Phone numbers to look up."
},
"excludeCustomerId": {
"description": "A customer id to leave out of the results.",
"type": "string"
}
},
"required": [
"phoneNumbers"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_find_customers_by_email(emails, excludeCustomerId)
Find the customers that own any of the given email addresses. Shopmonkey: POST /v3/customer/email/search.
入力スキーマ
{
"type": "object",
"properties": {
"emails": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 3
},
"description": "Email addresses to look up."
},
"excludeCustomerId": {
"description": "A customer id to leave out of the results.",
"type": "string"
}
},
"required": [
"emails"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_get_customer(customerId)
Fetch a single customer by id — contact details, emails, phone numbers, counts of vehicles/orders/appointments. Shopmonkey: GET /v3/customer/:id.
入力スキーマ
{
"type": "object",
"properties": {
"customerId": {
"type": "string",
"minLength": 1,
"description": "The customer id."
}
},
"required": [
"customerId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_list_customer_vehicles(customerId, limit, skip)
List the vehicles owned by a customer (year/make/model, VIN, plate, mileage). Shopmonkey: GET /v3/customer/:id/vehicle.
入力スキーマ
{
"type": "object",
"properties": {
"customerId": {
"type": "string",
"minLength": 1,
"description": "The customer id."
},
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"customerId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_list_customer_orders(customerId, limit, skip)
List a customer's work orders (estimates, repair orders, invoices) — their service history. Shopmonkey: GET /v3/customer/:id/order.
入力スキーマ
{
"type": "object",
"properties": {
"customerId": {
"type": "string",
"minLength": 1,
"description": "The customer id."
},
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"customerId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_get_vehicle(vehicleId)
Fetch a single vehicle by id, including its mileage and tire-pressure logs. Shopmonkey: GET /v3/vehicle/:id.
入力スキーマ
{
"type": "object",
"properties": {
"vehicleId": {
"type": "string",
"minLength": 1,
"description": "The vehicle id."
}
},
"required": [
"vehicleId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_list_orders(limit, skip, orderBy)
List work orders for the shop, paged. Use orderBy: {createdDate: 'desc'} for newest first. Each order carries its number, status flags, totals in cents, workflow status and assigned technicians. For name/date filters use shopmonkey_search_orders; for one customer's orders use shopmonkey_list_customer_orders. Shopmonkey: GET /v3/order.
入力スキーマ
{
"type": "object",
"properties": {
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"orderBy": {
"description": "Sort instructions keyed by field name, e.g. {\"createdDate\": \"desc\"}.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"enum": [
"asc",
"desc"
]
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_search_orders(nameContains, createdFrom, createdTo, customerId, status, ...)
Find work orders by case-insensitive name substring, creation date, customer or status. Reads pages and checks filters locally because some shops ignore GET filters. Scans 300 orders by default and at most 500 per call; continue with nextScanSkip. On vendor throttling, wait retryAfterSeconds before continuing; do not restart from 0. Matches are sorted by createdDate, newest first, then paged with limit/matchSkip (default 100 results). complete: false means only a segment was scanned: newer matches may exist outside it; continue with nextScanSkip or increase maxOrders. scanSkip is a scan offset, not a matched-result offset. A changing order list can shift offsets; restart from 0 for a fresh search. Shopmonkey: GET /v3/order.
入力スキーマ
{
"type": "object",
"properties": {
"nameContains": {
"description": "Substring of the order's name, coalescedName or generatedName.",
"type": "string",
"minLength": 1
},
"createdFrom": {
"description": "Inclusive createdDate lower bound, ISO 8601 with timezone.",
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"createdTo": {
"description": "Exclusive createdDate upper bound, ISO 8601 with timezone.",
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"customerId": {
"type": "string",
"minLength": 1,
"description": "The customer id."
},
"status": {
"type": "string",
"enum": [
"Estimate",
"RepairOrder",
"Invoice"
]
},
"scanSkip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Matches to return after filtering/sorting, default 100.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"matchSkip": {
"description": "Matched results to skip within this same scan; use nextMatchSkip to page them.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"maxOrders": {
"description": "Requested scan size, default 300. Each call scans at most 500 orders (larger values are capped); at most 100 per vendor request. Continue with nextScanSkip.",
"type": "integer",
"minimum": 1,
"maximum": 5000
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_list_purchase_orders(limit, skip, orderBy)
Read purchase orders with parts, tires, received quantities, inventory links and Draft/Ordered/Received/Fulfilled/Cancelled status. Paged; use orderBy for sorting. The public API documents reads and deletions, but no create/update/receive endpoints: change status, Receive All and inventory linking in the Shopmonkey UI. Shopmonkey: GET /v3/purchase_order.
入力スキーマ
{
"type": "object",
"properties": {
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"orderBy": {
"description": "Sort instructions keyed by field name, e.g. {\"createdDate\": \"desc\"}.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"enum": [
"asc",
"desc"
]
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_get_purchase_order(purchaseOrderId)
Read one purchase order, including its status, vendor, parts/tires, ordered and received quantities, inventory links and associated work order. Purchase-order creation, status changes and receiving are not documented public API operations; use the Shopmonkey UI for those writes. Shopmonkey: GET /v3/purchase_order/:id.
入力スキーマ
{
"type": "object",
"properties": {
"purchaseOrderId": {
"type": "string",
"minLength": 1,
"description": "The purchase order id."
}
},
"required": [
"purchaseOrderId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_get_order(orderId)
Fetch a single work order by id — customer, vehicle, complaint, totals (parts/labor/tax in cents), payment state and profitability. Shopmonkey: GET /v3/order/:id.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
}
},
"required": [
"orderId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_list_order_files(orderId)
List the files attached to a work order (photos, screenshots, PDFs such as part slips): id, name, type, size, whether original/thumbnail links exist and availableVariants that have safe download links. Use shopmonkey_get_order_file with a file id to see the content, for example to read the text of a part slip. Shopmonkey's public API has no separate notes endpoint: an image added in a note is listed here only if Shopmonkey stores it as an order file. Shopmonkey: GET /v3/order/:id (files).
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
}
},
"required": [
"orderId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_get_order_file(orderId, fileId, variant)
Return one file attached to a work order so you can see it: a JPEG, PNG, GIF or WebP image as image content (read the text of a part slip or screenshot from it), a PDF as an embedded file. Get fileId and availableVariants from shopmonkey_list_order_files. With variant omitted, use the original link when available, otherwise its safe thumbnail link; the result states the actual variant. An explicit variant is never substituted. variant "thumbnail" returns Shopmonkey's smaller preview: use it when the original is larger than 3 MB or a HEIC/TIFF photo. Read-only. Shopmonkey: GET /v3/order/:id, then the file's link.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"fileId": {
"type": "string",
"minLength": 1,
"description": "The file (from shopmonkey_list_order_files) id."
},
"variant": {
"description": "Which version to return: \"original\" or \"thumbnail\". Omit to prefer the original, with a thumbnail fallback only when the original link is missing.",
"type": "string",
"enum": [
"original",
"thumbnail"
]
}
},
"required": [
"orderId",
"fileId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_find_order_by_number(number, maxOrders, scanSkip)
Find a work order by the number the shop sees (e.g. 1042 or #1042), also matching an overridden external number. Tries server-side filters on the first call, then scans newest first, comparing numbers exactly. Scans 300 orders by default, at most 500 and five scan requests per call. If not found and hasMore is true, continue with nextScanSkip as scanSkip and the same number; do not restart from 0. On rateLimited wait retryAfterSeconds (about 60 seconds if absent). A changing order list can shift offsets. Returns the order or found: false for the scanned segment; complete is true only when a scan from 0 reaches the end. Shopmonkey: GET /v3/order.
入力スキーマ
{
"type": "object",
"properties": {
"number": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
],
"description": "The order number as shown in Shopmonkey, e.g. 1042 or \"#1042\"."
},
"maxOrders": {
"description": "Requested scan size, default 300. At most 500 orders per call (larger values are capped). Continue with nextScanSkip.",
"type": "integer",
"minimum": 100,
"maximum": 5000
},
"scanSkip": {
"description": "First unread scan offset from nextScanSkip, default 0. Resuming skips the initial filter requests.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"number"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_list_order_services(orderId)
List the services (jobs) on a work order with their line items — labor, parts, tires, fees, subcontracts — authorization status and totals. Shopmonkey: GET /v3/order/:orderId/service.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
}
},
"required": [
"orderId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_search_appointments(startFrom, startTo, endFrom, endTo, customerId, ...)
Search the appointment calendar by date range, customer, order or technician. Returns appointments with their customer. Shopmonkey: POST /v3/appointment/search.
入力スキーマ
{
"type": "object",
"properties": {
"startFrom": {
"description": "Appointments starting at or after this ISO 8601 date-time.",
"type": "string"
},
"startTo": {
"description": "Appointments starting at or before this ISO 8601 date-time.",
"type": "string"
},
"endFrom": {
"description": "Appointments ending at or after this ISO 8601 date-time.",
"type": "string"
},
"endTo": {
"description": "Appointments ending at or before this ISO 8601 date-time.",
"type": "string"
},
"customerId": {
"description": "Only this customer's appointments.",
"type": "string"
},
"orderId": {
"description": "Only appointments linked to this order.",
"type": "string"
},
"technicians": {
"description": "Only appointments assigned to these technician (user) ids.",
"type": "array",
"items": {
"type": "string"
}
},
"includeUnassigned": {
"description": "With technicians, also include unassigned appointments.",
"type": "boolean"
},
"sort": {
"description": "Sort by start date. Default asc.",
"type": "string",
"enum": [
"asc",
"desc"
]
},
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_search_inventory_parts(where, orderBy, limit, skip)
Search the parts inventory — name, part number, SKU, quantity on hand/available/reserved, retail and wholesale cost in cents, bin location, brand and vendor. Filter e.g. {"sku": "ABC-123"}. Shopmonkey: POST /v3/inventory_part/search.
入力スキーマ
{
"type": "object",
"properties": {
"where": {
"description": "Filter object applied server-side, keyed by field name, e.g. {\"lastName\": \"Smith\"} or {\"createdDate\": {\"gte\": \"2026-01-01\"}}.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"orderBy": {
"description": "Sort instructions keyed by field name, e.g. {\"createdDate\": \"desc\"}.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"enum": [
"asc",
"desc"
]
}
},
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_list_canned_services(limit, skip)
List the shop's canned services (reusable job templates like 'Oil change') with their labor, parts and fees and total in cents. Shopmonkey: GET /v3/canned_service.
入力スキーマ
{
"type": "object",
"properties": {
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_list_workflow_statuses(limit, skip)
List the workflow statuses (the columns of the shop's work-order board) with their position. Use the id to move an order with shopmonkey_update_order. Shopmonkey: GET /v3/workflow_status.
入力スキーマ
{
"type": "object",
"properties": {
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_list_users(limit, skip)
List the shop's users (service writers, technicians, admins) — the ids to use for technicians and service writers. Shopmonkey: GET /v3/user.
入力スキーマ
{
"type": "object",
"properties": {
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_list_time_entries(orderId, technicianIds, inProgress, laborId, limit, ...)
Find time entries and their ids, technician, order, activity, running state, clock-in/out times and duration. Use inProgress: true to reconcile a clock-in/out whose response was uncertain. Paginate with limit/skip. Shopmonkey: POST /v3/timesheet/search (read-only).
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"technicianIds": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"description": "The technician (user) id."
}
},
"inProgress": {
"type": "boolean"
},
"laborId": {
"type": "string",
"minLength": 1,
"description": "The labor id."
},
"limit": {
"description": "Maximum number of records to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"skip": {
"description": "Number of records to skip, for paging (use with limit).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢shopmonkey_get_time_entry(timesheetId)
Read one time entry to inspect its technician, order, activity, running state and clock-in/out times. Use the timesheetId returned by shopmonkey_clock_in or shopmonkey_list_time_entries. Shopmonkey: GET /v3/timesheet/:id.
入力スキーマ
{
"type": "object",
"properties": {
"timesheetId": {
"type": "string",
"minLength": 1,
"description": "The timesheet entry id."
}
},
"required": [
"timesheetId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_clock_in(orderId, technicianId, note, locationId, clockInPlatform, ...)
Start an order-level timer now for orderId and technicianId (a user id from shopmonkey_list_users). Omit confirm to preview; confirm: true starts it. Reuses an already-running timer on this order and refuses to silently stop/switch any other activity. Returns timesheetId for clock-out and verifies the running entry. Never automatically retries a write; after an uncertain response inspect shopmonkey_list_time_entries. Does not backdate or edit recorded hours. Shopmonkey: POST /v3/timesheet/clock_in with activity Order.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"technicianId": {
"type": "string",
"minLength": 1,
"description": "The technician (user) id."
},
"note": {
"type": "string"
},
"locationId": {
"type": "string",
"minLength": 1,
"description": "The location id."
},
"clockInPlatform": {
"description": "Origin platform for the time entry. Defaults to Web.",
"type": "string",
"enum": [
"Web",
"Mobile"
]
},
"confirm": {
"description": "true starts the timer now; omit/false previews only.",
"type": "boolean"
}
},
"required": [
"orderId",
"technicianId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_clock_out(orderId, technicianId, timesheetId, note, clockOutPlatform, ...)
Stop an order-level timer now, scoped to orderId and technicianId. Pass timesheetId from clock-in/list, or omit it to resolve exactly one active matching entry. Omit confirm to preview, then call with the preview's timesheetId and confirm: true. Checks entry ownership/activity and verifies it stopped. Already-stopped entries are returned without a write. Never automatically retries; inspect shopmonkey_get_time_entry after an uncertain response. Does not edit past hours. Shopmonkey: PUT /v3/timesheet/:id/clock_out.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"technicianId": {
"type": "string",
"minLength": 1,
"description": "The technician (user) id."
},
"timesheetId": {
"type": "string",
"minLength": 1,
"description": "The timesheet entry id."
},
"note": {
"type": "string"
},
"clockOutPlatform": {
"description": "Origin platform for the time entry. Defaults to Web.",
"type": "string",
"enum": [
"Web",
"Mobile"
]
},
"confirm": {
"description": "true stops the selected timer now; omit/false previews only.",
"type": "boolean"
}
},
"required": [
"orderId",
"technicianId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_create_customer(customerType, firstName, lastName, companyName, address1, ...)
Create a customer (a person) or a fleet account. Add an email afterwards with shopmonkey_add_customer_email. Shopmonkey: POST /v3/customer.
入力スキーマ
{
"type": "object",
"properties": {
"customerType": {
"type": "string",
"enum": [
"Customer",
"Fleet"
],
"description": "Customer (individual) or Fleet (business account)."
},
"firstName": {
"description": "First name.",
"type": "string"
},
"lastName": {
"description": "Last name.",
"type": "string"
},
"companyName": {
"description": "Company name (for fleet / business customers).",
"type": "string"
},
"address1": {
"description": "Street address, line 1.",
"type": "string"
},
"address2": {
"description": "Street address, line 2.",
"type": "string"
},
"city": {
"description": "City.",
"type": "string"
},
"state": {
"description": "State / province.",
"type": "string"
},
"postalCode": {
"description": "Postal / ZIP code.",
"type": "string"
},
"country": {
"description": "ISO 3166-1 alpha-2 country code, e.g. US or CA.",
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"note": {
"description": "Internal note on the customer.",
"type": "string"
},
"preferredContactMethod": {
"description": "SMS, Email or All.",
"type": "string",
"enum": [
"SMS",
"Email",
"All"
]
},
"preferredLanguage": {
"description": "en, en_US, fr_CA or es_MX.",
"type": "string",
"enum": [
"en",
"en_US",
"fr_CA",
"es_MX"
]
},
"taxExempt": {
"description": "US tax exemption.",
"type": "boolean"
},
"discountPercent": {
"description": "Default discount percent.",
"type": "number",
"minimum": 0,
"maximum": 100
},
"externalId": {
"description": "Your own id for this customer in another system.",
"type": "string"
},
"website": {
"description": "Website.",
"type": "string"
},
"locationId": {
"description": "The shop location id (see shopmonkey_get_current_user for the key's own location).",
"type": "string"
}
},
"required": [
"customerType"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_update_customer(customerId, firstName, lastName, companyName, address1, ...)
Update a customer's name, address, note or preferences. Only the fields you pass are sent. Shopmonkey: PUT /v3/customer/:id.
入力スキーマ
{
"type": "object",
"properties": {
"customerId": {
"type": "string",
"minLength": 1,
"description": "The customer id."
},
"firstName": {
"description": "First name.",
"type": "string"
},
"lastName": {
"description": "Last name.",
"type": "string"
},
"companyName": {
"description": "Company name (for fleet / business customers).",
"type": "string"
},
"address1": {
"description": "Street address, line 1.",
"type": "string"
},
"address2": {
"description": "Street address, line 2.",
"type": "string"
},
"city": {
"description": "City.",
"type": "string"
},
"state": {
"description": "State / province.",
"type": "string"
},
"postalCode": {
"description": "Postal / ZIP code.",
"type": "string"
},
"country": {
"description": "ISO 3166-1 alpha-2 country code, e.g. US or CA.",
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"note": {
"description": "Internal note on the customer.",
"type": "string"
},
"preferredContactMethod": {
"description": "SMS, Email or All.",
"type": "string",
"enum": [
"SMS",
"Email",
"All"
]
},
"preferredLanguage": {
"description": "en, en_US, fr_CA or es_MX.",
"type": "string",
"enum": [
"en",
"en_US",
"fr_CA",
"es_MX"
]
},
"taxExempt": {
"description": "US tax exemption.",
"type": "boolean"
},
"discountPercent": {
"description": "Default discount percent.",
"type": "number",
"minimum": 0,
"maximum": 100
},
"externalId": {
"description": "Your own id for this customer in another system.",
"type": "string"
},
"website": {
"description": "Website.",
"type": "string"
}
},
"required": [
"customerId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_add_customer_email(customerId, email, primary, subscribed, locationId)
Add an email address to an existing customer, optionally as their primary address. Shopmonkey: POST /v3/customer/:id/email.
入力スキーマ
{
"type": "object",
"properties": {
"customerId": {
"type": "string",
"minLength": 1,
"description": "The customer id."
},
"email": {
"type": "string",
"minLength": 3,
"description": "The email address."
},
"primary": {
"description": "Make this the customer's primary email.",
"type": "boolean"
},
"subscribed": {
"description": "Whether the customer receives messages at this address.",
"type": "boolean"
},
"locationId": {
"description": "The shop location id (see shopmonkey_get_current_user for the key's own location).",
"type": "string"
}
},
"required": [
"customerId",
"email"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_create_vehicle(size, customerId, year, make, model, ...)
Create a vehicle, optionally attached to a customer. Shopmonkey: POST /v3/vehicle.
入力スキーマ
{
"type": "object",
"properties": {
"size": {
"type": "string",
"enum": [
"HeavyDuty",
"LightDuty",
"Other"
],
"description": "LightDuty (cars, light trucks), HeavyDuty, or Other."
},
"customerId": {
"description": "The owning customer's id.",
"type": "string"
},
"year": {
"description": "Model year.",
"type": "integer",
"minimum": 1900,
"maximum": 2100
},
"make": {
"description": "Make, e.g. Toyota.",
"type": "string"
},
"model": {
"description": "Model, e.g. Camry.",
"type": "string"
},
"submodel": {
"description": "Submodel / trim, e.g. LE.",
"type": "string"
},
"engine": {
"description": "Engine description.",
"type": "string"
},
"vin": {
"description": "Vehicle identification number.",
"type": "string"
},
"licensePlate": {
"description": "License plate.",
"type": "string"
},
"licensePlateState": {
"description": "License plate state / province.",
"type": "string"
},
"unit": {
"description": "Fleet unit number.",
"type": "string"
},
"mileage": {
"description": "Current odometer reading.",
"type": "number",
"minimum": 0
},
"color": {
"description": "Vehicle color.",
"type": "string",
"enum": [
"White",
"Silver",
"Gray",
"Black",
"Blue",
"Red",
"Brown",
"Burgundy",
"Tan",
"Gold",
"Green",
"Yellow",
"Orange",
"Pink",
"Purple",
"Other"
]
},
"note": {
"description": "Internal note on the vehicle.",
"type": "string"
},
"locationId": {
"description": "The shop location id (see shopmonkey_get_current_user for the key's own location).",
"type": "string"
}
},
"required": [
"size"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_create_order(customerId, vehicleId, name, complaint, recommendation, ...)
Open a new work order (it starts as an estimate) for a customer and vehicle. Add services and labor with shopmonkey_add_service. Shopmonkey: POST /v3/order.
入力スキーマ
{
"type": "object",
"properties": {
"customerId": {
"description": "The customer the order is for.",
"type": "string"
},
"vehicleId": {
"description": "The vehicle being worked on.",
"type": "string"
},
"name": {
"description": "Order name / title.",
"type": "string"
},
"complaint": {
"description": "The customer's complaint (reason for visit).",
"type": "string"
},
"recommendation": {
"description": "The shop's recommendation.",
"type": "string"
},
"purchaseOrderNumber": {
"description": "Customer PO number.",
"type": "string"
},
"dueDate": {
"description": "When the vehicle is promised, ISO 8601 date-time.",
"type": "string"
},
"serviceWriterId": {
"description": "User id of the service writer.",
"type": "string"
},
"workflowStatusId": {
"description": "Workflow status (board column) id — see shopmonkey_list_workflow_statuses.",
"type": "string"
},
"locationId": {
"description": "The shop location id (see shopmonkey_get_current_user for the key's own location).",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_update_order(orderId, customerId, vehicleId, name, complaint, ...)
Update a work order — move it to another workflow status, change its status (Estimate, RepairOrder, Invoice), edit complaint/recommendation, due date, service writer, or archive it. Only the fields you pass are sent. Shopmonkey: PUT /v3/order/:id.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"customerId": {
"description": "The customer the order is for.",
"type": "string"
},
"vehicleId": {
"description": "The vehicle being worked on.",
"type": "string"
},
"name": {
"description": "Order name / title.",
"type": "string"
},
"complaint": {
"description": "The customer's complaint (reason for visit).",
"type": "string"
},
"recommendation": {
"description": "The shop's recommendation.",
"type": "string"
},
"purchaseOrderNumber": {
"description": "Customer PO number.",
"type": "string"
},
"dueDate": {
"description": "When the vehicle is promised, ISO 8601 date-time.",
"type": "string"
},
"serviceWriterId": {
"description": "User id of the service writer.",
"type": "string"
},
"workflowStatusId": {
"description": "Workflow status (board column) id — see shopmonkey_list_workflow_statuses.",
"type": "string"
},
"status": {
"description": "Estimate, RepairOrder or Invoice.",
"type": "string",
"enum": [
"Estimate",
"RepairOrder",
"Invoice"
]
},
"archived": {
"description": "Archive (true) or unarchive (false) the order.",
"type": "boolean"
}
},
"required": [
"orderId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_create_appointment(name, startDate, endDate, color, customerId, ...)
Book an appointment on the shop calendar, optionally for a customer, vehicle and order and assigned to technicians. Confirmation/reminder messages are only sent if you ask. Shopmonkey: POST /v3/appointment.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "What the appointment is for, e.g. 'Oil change'."
},
"startDate": {
"type": "string",
"description": "Start, ISO 8601 date-time."
},
"endDate": {
"type": "string",
"description": "End, ISO 8601 date-time."
},
"color": {
"default": "blue",
"description": "Calendar color. Default blue.",
"type": "string",
"enum": [
"aqua",
"black",
"blue",
"brown",
"gray",
"green",
"orange",
"purple",
"red",
"yellow"
]
},
"customerId": {
"description": "The customer's id.",
"type": "string"
},
"vehicleId": {
"description": "The vehicle's id.",
"type": "string"
},
"orderId": {
"description": "A work order to link.",
"type": "string"
},
"note": {
"description": "Notes for the appointment.",
"type": "string"
},
"allDay": {
"description": "All-day appointment.",
"type": "boolean"
},
"technicianIds": {
"description": "User ids of the assigned technicians.",
"type": "array",
"items": {
"type": "string"
}
},
"sendConfirmation": {
"description": "Send the customer a confirmation now.",
"type": "boolean"
},
"sendReminder": {
"description": "Send the customer a reminder before the appointment.",
"type": "boolean"
},
"useEmail": {
"description": "Use email for confirmation/reminder.",
"type": "boolean"
},
"useSMS": {
"description": "Use SMS for confirmation/reminder.",
"type": "boolean"
}
},
"required": [
"name",
"startDate",
"endDate"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_update_appointment(appointmentId, startDate, endDate, name, note, ...)
Change an existing appointment — move it (new startDate/endDate), rename it, change its note, color, technicians, customer, vehicle or linked order, or set its confirmation status. Only the fields you pass are sent, so nothing is duplicated. Find the id with shopmonkey_search_appointments. Shopmonkey: PUT /v3/appointment/:id.
入力スキーマ
{
"type": "object",
"properties": {
"appointmentId": {
"type": "string",
"minLength": 1,
"description": "The appointment id (for one occurrence of a recurring appointment, its recurringExceptionId)."
},
"startDate": {
"description": "New start, ISO 8601 date-time.",
"type": "string"
},
"endDate": {
"description": "New end, ISO 8601 date-time.",
"type": "string"
},
"name": {
"description": "New title, e.g. 'Oil change'.",
"type": "string",
"minLength": 1
},
"note": {
"description": "Notes for the appointment (replaces the old note).",
"type": "string"
},
"color": {
"description": "Calendar color.",
"type": "string",
"enum": [
"aqua",
"black",
"blue",
"brown",
"gray",
"green",
"orange",
"purple",
"red",
"yellow"
]
},
"allDay": {
"description": "All-day appointment.",
"type": "boolean"
},
"technicianIds": {
"description": "User ids of the assigned technicians (replaces the old list).",
"type": "array",
"items": {
"type": "string"
}
},
"customerId": {
"description": "The customer's id.",
"type": "string"
},
"vehicleId": {
"description": "The vehicle's id.",
"type": "string"
},
"orderId": {
"description": "A work order to link.",
"type": "string"
},
"confirmationStatus": {
"description": "Confirmed, Declined or NoResponse.",
"type": "string",
"enum": [
"Confirmed",
"Declined",
"NoResponse"
]
},
"recurringAppointmentUpdateScope": {
"description": "For a recurring appointment: change only this occurrence (Current) or this and all later ones.",
"type": "string",
"enum": [
"Current",
"CurrentAndSubsequent"
]
},
"sendRescheduleConfirmation": {
"description": "Send the customer a message about the new time.",
"type": "boolean"
},
"useEmail": {
"description": "Use email for messages to the customer.",
"type": "boolean"
},
"useSMS": {
"description": "Use SMS for messages to the customer.",
"type": "boolean"
}
},
"required": [
"appointmentId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_delete_appointment(appointmentId, confirm)
WRITE — removes an appointment from the shop calendar. To move it instead, use shopmonkey_update_appointment. Without confirm it only previews: it reads the appointment and deletes nothing. Show the preview to the user, then call again with confirm: true. After the delete the appointment is read again to verify it is gone. Shopmonkey: DELETE /v3/appointment/:id.
入力スキーマ
{
"type": "object",
"properties": {
"appointmentId": {
"type": "string",
"minLength": 1,
"description": "The appointment id."
},
"confirm": {
"description": "true = delete now. Omit or false = preview only (nothing is deleted).",
"type": "boolean"
}
},
"required": [
"appointmentId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_add_service(orderId, name, note, labors)
Add a new service (job) to a work order, e.g. 'Road Call', optionally with labor lines (name, hours, hourly rate in cents). The service is created first, then each labor line is added to it. Find the order id with shopmonkey_find_order_by_number. To add labor to a service that exists, use shopmonkey_add_labor. Shopmonkey: POST /v3/order/:orderId/service, then POST /v3/order/:orderId/service/:serviceId/labor.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Service name, e.g. 'Road Call'."
},
"note": {
"description": "Note on the service.",
"type": "string"
},
"labors": {
"description": "Labor lines to add to the new service.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Labor line name, e.g. 'Road Call'."
},
"hours": {
"type": "number",
"minimum": 0,
"maximum": 1000,
"description": "Labor hours, e.g. 1.5."
},
"rateCents": {
"description": "Hourly rate in cents, e.g. 12500 for $125.00/h. Omit to use rateId or the shop's default rate.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"rateId": {
"description": "A saved labor rate id instead of rateCents.",
"type": "string"
},
"technicianId": {
"description": "User id of the technician doing the work.",
"type": "string"
},
"note": {
"description": "Note on the labor line.",
"type": "string"
},
"completed": {
"description": "Mark the labor as done.",
"type": "boolean"
}
},
"required": [
"name",
"hours"
]
}
}
},
"required": [
"orderId",
"name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_apply_canned_service(orderId, cannedServiceId, ordinal)
Copy a saved canned service onto an existing work order in one vendor request, including its labor, parts and fees. Use shopmonkey_list_canned_services for cannedServiceId. Creates a new service each time; check shopmonkey_list_order_services before retrying an uncertain result. Shopmonkey: POST /v3/order/:orderId/service with fromCannedServiceId.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"cannedServiceId": {
"type": "string",
"minLength": 1,
"description": "The canned service id."
},
"ordinal": {
"description": "Optional position of the copied service.",
"type": "number"
}
},
"required": [
"orderId",
"cannedServiceId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_add_fee(orderId, serviceId, name, amountCents, inventoryFeeId)
Add a fixed-cent fee/surcharge to an existing work order service, e.g. amountCents: 3000 for a $30 fuel or on-site fee. Uses the vendor's FixedCents fee type, not a labor line. Get serviceId with shopmonkey_list_order_services. Each call creates a fee; check the service before retrying an uncertain result. Shopmonkey: POST /v3/order/:orderId/service/:serviceId/fee.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"serviceId": {
"type": "string",
"minLength": 1,
"description": "The service id."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Customer-visible fee name."
},
"amountCents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Fixed fee in cents, e.g. 3000 for $30.00."
},
"inventoryFeeId": {
"type": "string",
"minLength": 1,
"description": "The inventory fee id."
}
},
"required": [
"orderId",
"serviceId",
"name",
"amountCents"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_send_message(customerId, channel, text, orderId, emailId, ...)
Send a free-form customer message by Email, SMS or All through Shopmonkey messaging. This sends the supplied text without sharing an estimate or changing order authorization. Contact ids must belong to customerId; omitted ids use the primary or only contact (or the selected order contact when orderId is given). Optional orderId must belong to this customer. Returns message delivery statuses; creation does not guarantee delivery. Shopmonkey: GET /v3/customer/:id, optionally GET /v3/order/:id, then POST /v3/message.
入力スキーマ
{
"type": "object",
"properties": {
"customerId": {
"type": "string",
"minLength": 1,
"description": "The customer id."
},
"channel": {
"type": "string",
"enum": [
"Email",
"SMS",
"All"
]
},
"text": {
"type": "string",
"minLength": 1,
"description": "Exact customer-facing message to send."
},
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"emailId": {
"type": "string",
"minLength": 1,
"description": "The customer email id."
},
"phoneNumberId": {
"type": "string",
"minLength": 1,
"description": "The customer phone number id."
},
"emailSubject": {
"type": "string"
}
},
"required": [
"customerId",
"channel",
"text"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_add_labor(orderId, serviceId, name, hours, rateCents, ...)
Add a labor line (name, hours, hourly rate in cents, technician) to a service on a work order. Get the service id with shopmonkey_list_order_services; to start a new service, use shopmonkey_add_service. Shopmonkey: POST /v3/order/:orderId/service/:serviceId/labor.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"serviceId": {
"type": "string",
"minLength": 1,
"description": "The service id."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Labor line name, e.g. 'Road Call'."
},
"hours": {
"type": "number",
"minimum": 0,
"maximum": 1000,
"description": "Labor hours, e.g. 1.5."
},
"rateCents": {
"description": "Hourly rate in cents, e.g. 12500 for $125.00/h. Omit to use rateId or the shop's default rate.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"rateId": {
"description": "A saved labor rate id instead of rateCents.",
"type": "string"
},
"technicianId": {
"description": "User id of the technician doing the work.",
"type": "string"
},
"note": {
"description": "Note on the labor line.",
"type": "string"
},
"completed": {
"description": "Mark the labor as done.",
"type": "boolean"
}
},
"required": [
"orderId",
"serviceId",
"name",
"hours"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_send_estimate(orderId, channel, text, emailId, phoneNumberId, ...)
Share a work order's estimate through Shopmonkey messaging by Email, SMS or All. Reads the order and customer, enables customer authorization on the order, then creates an Order share message. This requests the customer's approval; it does not record approval. Supply the message text. Contact ids must belong to the order's customer; omitted ids use the order's selected contact, the primary contact, or the only contact. Returns Shopmonkey's message and delivery statuses (creation does not guarantee delivery). Invoiced or deleted orders cannot be sent. Shopmonkey: GET /v3/order/:id, GET /v3/customer/:id, PUT /v3/order/:id, POST /v3/message.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"channel": {
"type": "string",
"enum": [
"Email",
"SMS",
"All"
],
"description": "Send by email, SMS, or both."
},
"text": {
"type": "string",
"minLength": 1,
"description": "Customer-facing message accompanying the estimate."
},
"emailId": {
"type": "string",
"minLength": 1,
"description": "The customer email id."
},
"phoneNumberId": {
"type": "string",
"minLength": 1,
"description": "The customer phone number id."
},
"emailSubject": {
"description": "Override the email subject.",
"type": "string"
}
},
"required": [
"orderId",
"channel",
"text"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_add_part(orderId, serviceId, name, quantity, inventoryPartId, ...)
Add a part line to an existing service on a work order. Use shopmonkey_list_order_services for serviceId and shopmonkey_search_inventory_parts for inventoryPartId. Prices are per unit in cents; quantity may be fractional. Inventory reservation and reduction happen only if explicitly requested. Returns data.part with the new part id. This does not create or fulfill a vendor purchase order: those writes are not documented in Shopmonkey's public API. Shopmonkey: POST /v3/order/:orderId/service/:serviceId/part.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"serviceId": {
"type": "string",
"minLength": 1,
"description": "The service id."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Part name."
},
"quantity": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Quantity of this part."
},
"inventoryPartId": {
"type": "string",
"minLength": 1,
"description": "The inventory part id."
},
"partNumber": {
"type": "string"
},
"sku": {
"type": "string"
},
"retailCostCents": {
"description": "Per-unit customer price in cents.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"wholesaleCostCents": {
"description": "Per-unit shop cost in cents.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"vendorId": {
"type": "string",
"minLength": 1,
"description": "The vendor id."
},
"purchaseOrderPartId": {
"description": "Link an existing purchase order part; does not create a PO.",
"type": "string",
"minLength": 1
},
"note": {
"type": "string"
},
"binLocation": {
"type": "string"
},
"taxable": {
"description": "US taxability.",
"type": "boolean"
},
"taxableGST": {
"type": "boolean"
},
"taxableHST": {
"type": "boolean"
},
"taxablePST": {
"type": "boolean"
},
"reserved": {
"default": false,
"description": "Reserve inventory for this line (default false).",
"type": "boolean"
},
"reduceInventoryCount": {
"default": false,
"description": "Reduce inventory count (default false).",
"type": "boolean"
}
},
"required": [
"orderId",
"serviceId",
"name",
"quantity"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_delete_service(orderId, serviceId, confirm, expectedFingerprint)
Preview then remove one service and all its labor, parts, fees, tires and subcontract lines. Show the cascade preview before confirming with its fingerprint. Refuses authorized/invoiced/paid/archived/deleted/read-only orders, orders with payments or a non-Unlocked invoiceLockState, authorized services and inventory/PO-linked parts or tires. Verifies absence after deletion. DELETE /v3/order/:orderId/service/:id.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"serviceId": {
"type": "string",
"minLength": 1,
"description": "The service id."
},
"confirm": {
"description": "Omit/false to preview only. true deletes only with the fingerprint of an unchanged preview.",
"type": "boolean"
},
"expectedFingerprint": {
"description": "fingerprint returned by the preview; required when confirm is true.",
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"orderId",
"serviceId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_delete_labor(orderId, serviceId, laborId, confirm, expectedFingerprint)
Preview then remove one labor line belonging to this work order service. Show the preview, then confirm with its fingerprint. Refuses authorized/invoiced/paid/archived/deleted/read-only orders, orders with payments or a non-Unlocked invoiceLockState, and authorized services. Verifies absence. DELETE /v3/order/:orderId/service/:serviceId/labor/:id.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"serviceId": {
"type": "string",
"minLength": 1,
"description": "The service id."
},
"laborId": {
"type": "string",
"minLength": 1,
"description": "The labor id."
},
"confirm": {
"description": "Omit/false to preview only. true deletes only with the fingerprint of an unchanged preview.",
"type": "boolean"
},
"expectedFingerprint": {
"description": "fingerprint returned by the preview; required when confirm is true.",
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"orderId",
"serviceId",
"laborId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴shopmonkey_delete_part(orderId, serviceId, partId, confirm, expectedFingerprint)
Preview then remove one part line belonging to this work order service. Show the preview, then confirm with its fingerprint. Refuses authorized/invoiced/paid/archived/deleted/read-only orders, orders with payments or a non-Unlocked invoiceLockState, authorized services and inventory/PO-linked parts. Verifies absence. DELETE /v3/order/:orderId/service/:serviceId/part/:id.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"description": "The order id."
},
"serviceId": {
"type": "string",
"minLength": 1,
"description": "The service id."
},
"partId": {
"type": "string",
"minLength": 1,
"description": "The part id."
},
"confirm": {
"description": "Omit/false to preview only. true deletes only with the fingerprint of an unchanged preview.",
"type": "boolean"
},
"expectedFingerprint": {
"description": "fingerprint returned by the preview; required when confirm is true.",
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"orderId",
"serviceId",
"partId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}コミュニティ
エビデンス