{"openapi":"3.1.0","info":{"title":"JEM Tool Supply API","version":"1.0.0","description":"Search JEM Tool Supply's catalog, see your own prices and stock, and read your orders and quotes.\n\n**Keys.** Make one on your JEM account under Account → API (someone who manages your team). Send it as `Authorization: Bearer jem_live_…`. Never put a key in a URL or a web page.\n\n**Units.** Money is integer cents, USD. Dimensions are inches; each inch value also comes in mm (`cutDiaIn` and `cutDiaMm`).\n\n**Freshness.** Prices come from the price list (`asOf`). Stock is the shelf at the last sync, every 30 minutes. NetSuite confirms price, tax and shipping when an order is placed.\n\n**Agents.** The same operations are an MCP server at `https://api.jemtoolsupply.com/mcp` (Streamable HTTP, same key).\n\n**What a key may do.** View only reads. Request also sends parts to a buyer on your team. Buy also asks for quotes and, where JEM has opened API orders, places orders on terms or a saved card; at or over the key's order limit an order waits for your company's approver. Writes take an `idempotencyKey`, so a retry never makes a second one.\n\n**Limits.** 120 calls a minute per key, 20,000 a day per company and 120 order or quote reads an hour per key, unless JEM set yours differently (`GET /v1/me`). Over a limit: HTTP 429 with `Retry-After`. For access or higher limits, email dev@jemtoolsupply.com.","contact":{"name":"JEM Tool Supply API","email":"dev@jemtoolsupply.com","url":"https://www.jemtoolsupply.com/developers"},"termsOfService":"https://www.jemtoolsupply.com/legal/terms"},"servers":[{"url":"https://api.jemtoolsupply.com"}],"security":[{"bearer":[]}],"paths":{"/v1/me":{"get":{"summary":"This key, its company and limits","operationId":"me","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/categories":{"get":{"summary":"The category tree with part counts","operationId":"categories","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/search":{"get":{"summary":"Search by spec or part number","description":"The site's own search: machinist shorthand (\"1/2 3fl rougher zirconium\" for aluminum, \"3/8 4fl altin\" for steel, \"CAT40 ER32\", \"CNMG432\") or a part number. Words nothing has are left out and listed in `ignoredWords`.","operationId":"search","parameters":[{"name":"q","in":"query","required":false,"description":"What to find.","schema":{"type":"string"}},{"name":"category","in":"query","required":false,"description":"A category path from /v1/categories, e.g. end-mills/square.","schema":{"type":"string"}},{"name":"brand","in":"query","required":false,"description":"One brand, e.g. destiny.","schema":{"type":"string"}},{"name":"inStock","in":"query","required":false,"description":"true: only parts on the shelf.","schema":{"type":"boolean"}},{"name":"limit","in":"query","required":false,"description":"Default 20, at most 100.","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"description":"Skip this many.","schema":{"type":"integer","minimum":0,"maximum":5000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer"},"ignoredWords":{"type":"array","items":{"type":"string"}},"results":{"type":"array","items":{"$ref":"#/components/schemas/ItemSummary"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/items":{"get":{"summary":"Up to 50 parts in full","operationId":"items","parameters":[{"name":"skus","in":"query","required":true,"description":"Comma-separated part numbers.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"notFound":{"type":"array","items":{"type":"string"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/items/{sku}":{"get":{"summary":"One part in full","operationId":"item","parameters":[{"name":"sku","in":"path","required":true,"description":"The part number (URL-encoded).","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"item":{"$ref":"#/components/schemas/Item"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/stock":{"get":{"summary":"Stock for up to 100 parts","operationId":"stock","parameters":[{"name":"skus","in":"query","required":true,"description":"Comma-separated part numbers.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"stock":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Stock"}},"notFound":{"type":"array","items":{"type":"string"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/prices":{"post":{"summary":"Price up to 100 lines","operationId":"prices","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["lines"],"properties":{"lines":{"type":"array","maxItems":100,"items":{"type":"object","required":["sku","qty"],"properties":{"sku":{"type":"string"},"qty":{"type":"integer","minimum":1}}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object"}},"totalCents":{"type":"integer"},"notFound":{"type":"array","items":{"type":"string"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/orders":{"get":{"summary":"Your orders, newest first","operationId":"orders","parameters":[{"name":"status","in":"query","required":false,"description":"open, or all of the last two years (default).","schema":{"type":"string","enum":["open","all"]}},{"name":"limit","in":"query","required":false,"description":"Default 50, at most 200.","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"offset","in":"query","required":false,"description":"Skip this many.","schema":{"type":"integer","minimum":0,"maximum":1000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"summary":"Place an order (Buy keys, where API orders are open)","operationId":"placeOrder","description":"Catalog lines or an open quote (quoteId), to a saved address, on terms or a saved card. At or over the key's order limit the order waits for the company's approver (status pending-approval). Preview first.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["idempotencyKey","ship","shipMethodId","payment"],"properties":{"idempotencyKey":{"type":"string","description":"8–52 letters, digits or dashes, new for each request (a UUID works). Retrying with the same one returns the first answer."},"lines":{"type":"array","maxItems":100,"items":{"type":"object","required":["sku","qty"],"properties":{"sku":{"type":"string"},"qty":{"type":"integer","minimum":1,"maximum":9999}}}},"quoteId":{"type":"integer"},"ship":{"type":"object","required":["addressId"],"properties":{"addressId":{"type":"integer"}}},"shipMethodId":{"type":"integer"},"poNumber":{"type":"string","maxLength":45},"upsAccount":{"type":"string"},"payment":{"oneOf":[{"type":"object","properties":{"type":{"const":"terms"}}},{"type":"object","properties":{"type":{"const":"card"},"cardId":{"type":"integer"}}}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/orders/preview":{"post":{"summary":"Price, tax and ship methods from NetSuite before ordering","operationId":"previewOrder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ship"],"properties":{"lines":{"type":"array"},"quoteId":{"type":"integer"},"ship":{"type":"object","properties":{"addressId":{"type":"integer"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/checkout":{"get":{"summary":"Saved addresses and payment choices for ordering","operationId":"checkout","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/buyers":{"get":{"summary":"Who on your team can order (Request or Buy keys)","operationId":"buyers","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/requests":{"get":{"summary":"Requests this key sent, and where each stands","operationId":"requests","parameters":[{"name":"status","in":"query","required":false,"description":"all, sent, ordered or returned.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"summary":"Send parts to a buyer on your team (Request or Buy keys)","operationId":"sendRequest","description":"The buyer is emailed and orders it on the site, or sends it back. Nothing is bought until they do.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["idempotencyKey","lines"],"properties":{"idempotencyKey":{"type":"string","description":"8–52 letters, digits or dashes, new for each request (a UUID works). Retrying with the same one returns the first answer."},"lines":{"type":"array","maxItems":100,"items":{"type":"object","required":["sku","qty"],"properties":{"sku":{"type":"string"},"qty":{"type":"integer","minimum":1,"maximum":9999}}}},"to":{"type":"string","description":"A buyer's email from /v1/buyers; default the first listed."},"job":{"type":"string"},"neededBy":{"type":"string","format":"date"},"note":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/requests/{id}":{"get":{"summary":"One request this key sent","operationId":"request","parameters":[{"name":"id","in":"path","required":true,"description":"The request id.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/orders/{id}":{"get":{"summary":"One order with lines, invoices and tracking","operationId":"order","parameters":[{"name":"id","in":"path","required":true,"description":"The order id from /v1/orders.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/quotes":{"get":{"summary":"Your quotes, newest first","operationId":"quotes","parameters":[{"name":"status","in":"query","required":false,"description":"open, or all of the last two years (default).","schema":{"type":"string","enum":["open","all"]}},{"name":"limit","in":"query","required":false,"description":"Default 50, at most 200.","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"offset","in":"query","required":false,"description":"Skip this many.","schema":{"type":"integer","minimum":0,"maximum":1000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"summary":"Ask JEM for a quote (Buy keys)","operationId":"askQuote","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["idempotencyKey","lines"],"properties":{"idempotencyKey":{"type":"string","description":"8–52 letters, digits or dashes, new for each request (a UUID works). Retrying with the same one returns the first answer."},"lines":{"type":"array","maxItems":100,"items":{"type":"object","required":["sku","qty"],"properties":{"sku":{"type":"string"},"qty":{"type":"integer","minimum":1,"maximum":9999}}}},"note":{"type":"string","description":"Prints on the quote."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/quotes/{id}":{"get":{"summary":"One quote with lines","operationId":"quote","parameters":[{"name":"id","in":"path","required":true,"description":"The quote id from /v1/quotes.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Your key, jem_live_…"}},"schemas":{"Price":{"type":"object","properties":{"yoursCents":{"type":["integer","null"],"description":"What your company pays online."},"onlineCents":{"type":["integer","null"]},"listCents":{"type":["integer","null"],"description":"Manufacturer's list, where there is one."},"currency":{"const":"USD"}}},"Stock":{"type":"object","properties":{"status":{"type":"string","enum":["in-stock","in-production","lead-time","on-request","vendor"]},"onHand":{"type":["integer","null"]},"leadDays":{"type":["integer","null"]},"vendorLead":{"type":["string","null"]},"restockDays":{"type":["integer","null"]},"inProduction":{"type":["integer","null"]}}},"ItemSummary":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"},"brand":{"type":"string"},"kind":{"type":"string"},"category":{"type":["string","null"]},"url":{"type":"string"},"imageUrl":{"type":["string","null"]},"specs":{"type":"object"},"price":{"$ref":"#/components/schemas/Price"},"stock":{"$ref":"#/components/schemas/Stock"}}},"Item":{"type":"object","properties":{"sku":{"type":"string"},"mpn":{"type":["string","null"]},"title":{"type":"string"},"brand":{"type":"string"},"category":{"type":["string","null"]},"description":{"type":"string"},"packQty":{"type":["integer","null"],"description":"Sold in packs: order a multiple."},"specs":{"type":["object","null"]},"price":{"$ref":"#/components/schemas/Price"},"stock":{"$ref":"#/components/schemas/Stock"},"drawingUrl":{"type":["string","null"]},"cad":{"type":["object","null"]},"related":{"type":"array","items":{"type":"object","properties":{"sku":{"type":"string"},"title":{"type":"string"}}}}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"BadRequest":{"description":"Something in the request needs fixing; the message says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"No key, or the key is invalid, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The API isn't on for your company, your account isn't active, or your address isn't on the key's allowlist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Not on your account, or not in the online catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Over a limit; wait Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}