{
  "openapi": "3.1.0",
  "info": {
    "title": "Industrial Injection Dealer API",
    "version": "1",
    "summary": "Read-only access to the Industrial Injection parts catalog for dealers: parts, the dealer's own prices and sale prices, stock, fitment, cross references, brands and categories.",
    "description": "Every answer is JSON. Send the dealer's key as a bearer token. Prices and stock are returned only when the key owner's portal sign-in shows them; fields the key may not see are left out of the object, not set to null. Within version 1, calls, settings and fields are added without notice and none is removed or renamed; ignore fields you do not know. Limits (rate limit, page sizes, lookup sizes) and the wording of error sentences can change. The three X-RateLimit headers are on every answer once the key was accepted, refusals included, and never on a 401. A wrong method for an address is a 405. The human reference is https://my.iidiesel.com/Developers.",
    "contact": { "name": "Industrial Injection", "url": "https://my.iidiesel.com/Developers" }
  },
  "servers": [ { "url": "https://api.iidp.dev/dealer/v1" } ],
  "security": [ { "bearerAuth": [] } ],
  "tags": [
    { "name": "Items", "description": "Parts with prices, sale prices and stock." },
    { "name": "Stock", "description": "Stock only: small, fast answers." },
    { "name": "Fitment", "description": "Vehicles a part fits, parts for a vehicle, and values for a vehicle picker. Fitment is on file for only part of the catalog; a part without fitment rows is not a part that fits nothing." },
    { "name": "Cross references", "description": "Our parts for an OEM or competitor part number." },
    { "name": "Catalog", "description": "Brands and the category tree, with the codes the list settings take." }
  ],
  "paths": {
    "/items": {
      "get": {
        "operationId": "listItems",
        "tags": [ "Items" ],
        "summary": "List items",
        "description": "Published parts in part-number order, a page at a time. To read the whole list, repeat with `after` set to the `next_after` you received until `next_after` is null. Settings the API does not know are ignored, not refused.",
        "parameters": [
          { "$ref": "#/components/parameters/limit1000" },
          { "$ref": "#/components/parameters/after" },
          { "$ref": "#/components/parameters/brand" },
          { "$ref": "#/components/parameters/inStock" },
          { "name": "no", "in": "query", "description": "One exact part number, answered as a list. An unknown number gives an empty list. The safe way to ask for a part whose number holds a slash or a space.", "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/category" },
          { "$ref": "#/components/parameters/year" },
          { "$ref": "#/components/parameters/make" },
          { "$ref": "#/components/parameters/model" },
          { "$ref": "#/components/parameters/engine" },
          { "$ref": "#/components/parameters/baseVehicle" },
          { "$ref": "#/components/parameters/engineBase" },
          { "name": "modified_since", "in": "query", "description": "Only parts whose record changed at or after this date (`2026-12-01`) or date and time (`2026-12-01 14:30:00`), in UTC. It finds changes to the part itself (description, numbers, category, weight). It does NOT find a part whose price, sale or stock changed, and a removed part does not appear. A `T` between date and time is accepted and seconds are optional; a trailing `Z` is refused today.", "schema": { "type": "string" }, "example": "2026-12-01" }
        ],
        "responses": {
          "200": { "description": "A page of items.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ItemList" } } } },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "429": { "$ref": "#/components/responses/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    },
    "/items/{no}": {
      "get": {
        "operationId": "getItem",
        "tags": [ "Items" ],
        "summary": "Retrieve an item",
        "description": "One published part by our part number. For a number that holds a slash or a space, use List items with `no=` instead.",
        "parameters": [
          { "name": "no", "in": "path", "required": true, "description": "Our part number, URL-encoded.", "schema": { "type": "string" }, "example": "739619-5004S" },
          { "$ref": "#/components/parameters/detail" }
        ],
        "responses": {
          "200": { "description": "The item.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$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/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    },
    "/items/lookup": {
      "post": {
        "operationId": "lookupItems",
        "tags": [ "Items" ],
        "summary": "Look up many items",
        "description": "The parts for a list of part numbers. It only reads; it is a POST because a thousand part numbers do not fit in an address. One lookup counts as one request against the rate limit.",
        "parameters": [ { "$ref": "#/components/parameters/detail" } ],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LookupRequest" } } } },
        "responses": {
          "200": { "description": "The parts found, in part-number order, and the numbers not found.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ItemLookup" } } } },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "429": { "$ref": "#/components/responses/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    },
    "/stock": {
      "get": {
        "operationId": "listStock",
        "tags": [ "Stock" ],
        "summary": "List stock",
        "description": "What is ready to ship for every published part, paged like List items. Only for a key whose owner's sign-in shows stock; otherwise 403.",
        "parameters": [
          { "$ref": "#/components/parameters/limit5000" },
          { "$ref": "#/components/parameters/after" },
          { "$ref": "#/components/parameters/brand" },
          { "$ref": "#/components/parameters/inStock" },
          { "$ref": "#/components/parameters/category" },
          { "$ref": "#/components/parameters/year" },
          { "$ref": "#/components/parameters/make" },
          { "$ref": "#/components/parameters/model" },
          { "$ref": "#/components/parameters/engine" },
          { "$ref": "#/components/parameters/baseVehicle" },
          { "$ref": "#/components/parameters/engineBase" }
        ],
        "responses": {
          "200": { "description": "A page of stock rows.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockList" } } } },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "429": { "$ref": "#/components/responses/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    },
    "/stock/lookup": {
      "post": {
        "operationId": "lookupStock",
        "tags": [ "Stock" ],
        "summary": "Look up stock",
        "description": "What is ready to ship for a list of part numbers. No paging; at most 1000 rows. Only for a key whose owner's sign-in shows stock; otherwise 403. One lookup counts as one request against the rate limit.",
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LookupRequest" } } } },
        "responses": {
          "200": { "description": "The stock rows found, in part-number order, and the numbers not found.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StockLookup" } } } },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "429": { "$ref": "#/components/responses/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    },
    "/items/{no}/fitment": {
      "get": {
        "operationId": "getItemFitment",
        "tags": [ "Fitment" ],
        "summary": "Fitment of one part",
        "description": "The vehicles one published part fits, one row per vehicle and engine, ordered by make, model, year and engine. A part with no fitment on file answers 200 with count 0 — that does not mean it fits nothing.",
        "parameters": [ { "name": "no", "in": "path", "required": true, "description": "Our part number, URL-encoded.", "schema": { "type": "string" }, "example": "214311" } ],
        "responses": {
          "200": { "description": "The part's fitment rows.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ItemFitment" } } } },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "404": { "$ref": "#/components/responses/NotFound" },
          "429": { "$ref": "#/components/responses/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    },
    "/fitment": {
      "get": {
        "operationId": "listFitment",
        "tags": [ "Fitment" ],
        "summary": "List fitment",
        "description": "Fitment for many parts, a page of parts at a time, in part-number order. Only parts that have fitment appear. With a vehicle setting, only parts that fit it are listed, each still with all its vehicles. A page can be large; lower `limit` if answers get heavy.",
        "parameters": [
          { "name": "limit", "in": "query", "description": "Parts per page, 1 to 500; 100 when left out.", "schema": { "type": "integer", "minimum": 1, "maximum": 500, "default": 100 } },
          { "$ref": "#/components/parameters/after" },
          { "name": "no", "in": "query", "description": "One exact part number.", "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/year" },
          { "$ref": "#/components/parameters/make" },
          { "$ref": "#/components/parameters/model" },
          { "$ref": "#/components/parameters/engine" },
          { "$ref": "#/components/parameters/baseVehicle" },
          { "$ref": "#/components/parameters/engineBase" }
        ],
        "responses": {
          "200": { "description": "A page of parts with their vehicles.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FitmentList" } } } },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "429": { "$ref": "#/components/responses/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    },
    "/vehicles": {
      "get": {
        "operationId": "listVehicles",
        "tags": [ "Fitment" ],
        "summary": "Vehicles",
        "description": "Values for a year / make / model / engine picker, each with the number of published parts that fit. Each of the four lists is narrowed by the OTHER three choices. With nothing chosen, all four full lists are returned.",
        "parameters": [
          { "$ref": "#/components/parameters/year" },
          { "$ref": "#/components/parameters/make" },
          { "$ref": "#/components/parameters/model" },
          { "$ref": "#/components/parameters/engine" },
          { "$ref": "#/components/parameters/baseVehicle" },
          { "$ref": "#/components/parameters/engineBase" }
        ],
        "responses": {
          "200": { "description": "The four picker lists.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Vehicles" } } } },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "429": { "$ref": "#/components/responses/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    },
    "/cross-references": {
      "get": {
        "operationId": "findByCrossReference",
        "tags": [ "Cross references" ],
        "summary": "Find by another number",
        "description": "Our published parts for an OEM or competitor part number. Everything but letters and digits is ignored, and so is upper or lower case; what is left must match a number on file exactly (no search by the start of a number). One number often points at several parts. No match answers 200 with count 0. The list of cross references is not complete.",
        "parameters": [ { "name": "ref", "in": "query", "required": true, "description": "The other maker's number, up to 100 characters, with at least one letter or digit.", "schema": { "type": "string", "maxLength": 100 }, "example": "0445-120 018" } ],
        "responses": {
          "200": { "description": "Our parts for that number, at most 100, in part-number order.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CrossReferenceAnswer" } } } },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "429": { "$ref": "#/components/responses/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    },
    "/brands": {
      "get": {
        "operationId": "listBrands",
        "tags": [ "Catalog" ],
        "summary": "List brands",
        "description": "Every brand with at least one published part, in code order. No settings, no paging.",
        "responses": {
          "200": { "description": "The brands.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BrandList" } } } },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "429": { "$ref": "#/components/responses/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    },
    "/categories": {
      "get": {
        "operationId": "listCategories",
        "tags": [ "Catalog" ],
        "summary": "List categories",
        "description": "The category tree as a flat list, each parent before its children. Only categories with a published part in them or below them. No settings, no paging.",
        "responses": {
          "200": { "description": "The categories.", "headers": { "X-RateLimit-Limit": { "$ref": "#/components/headers/X-RateLimit-Limit" }, "X-RateLimit-Remaining": { "$ref": "#/components/headers/X-RateLimit-Remaining" }, "X-RateLimit-Reset": { "$ref": "#/components/headers/X-RateLimit-Reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CategoryList" } } } },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "429": { "$ref": "#/components/responses/TooManyRequests" },
          "500": { "$ref": "#/components/responses/ServerError" },
          "503": { "$ref": "#/components/responses/Unavailable" }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": { "type": "http", "scheme": "bearer", "description": "A dealer's API key (it starts with `iidp_`), made by the dealer under API keys in their portal account. Accepted only in the Authorization header. Keep it like a password; call the API from a server, never from a web page." }
    },
    "headers": {
      "X-RateLimit-Limit": { "description": "Requests allowed per minute for this key.", "schema": { "type": "integer" } },
      "X-RateLimit-Remaining": { "description": "Requests left in this clock minute.", "schema": { "type": "integer" } },
      "X-RateLimit-Reset": { "description": "Seconds until the minute ends and the count starts again.", "schema": { "type": "integer" } }
    },
    "parameters": {
      "limit1000": { "name": "limit", "in": "query", "description": "Parts per page, 1 to 1000; 500 when left out. A value outside the range is moved to the nearest end.", "schema": { "type": "integer", "minimum": 1, "maximum": 1000, "default": 500 } },
      "limit5000": { "name": "limit", "in": "query", "description": "Parts per page, 1 to 5000; 1000 when left out.", "schema": { "type": "integer", "minimum": 1, "maximum": 5000, "default": 1000 } },
      "after": { "name": "after", "in": "query", "description": "The cursor: a part number; the page starts with the first part after it. Pass back the `next_after` of the previous answer exactly as received.", "schema": { "type": "string" } },
      "brand": { "name": "brand", "in": "query", "description": "One exact brand code as returned in `brand` (for example GARRETT), not the brand name. Codes come from List brands.", "schema": { "type": "string" } },
      "inStock": { "name": "in_stock", "in": "query", "description": "1 returns only parts with at least one ready to ship. On List items it is ignored when the key's owner cannot see stock.", "schema": { "type": "integer", "enum": [ 0, 1 ] } },
      "category": { "name": "category", "in": "query", "description": "A category code from List categories (for example 12-225). Returns the parts in that category and in everything below it. An unknown code gives an empty list.", "schema": { "type": "string", "maxLength": 20 } },
      "year": { "name": "year", "in": "query", "description": "Model year, exactly four digits. Only parts with fitment for that vehicle.", "schema": { "type": "integer", "minimum": 1000, "maximum": 9999 }, "example": 2004 },
      "make": { "name": "make", "in": "query", "description": "Vehicle make, matched exactly (upper and lower case aside). Take values from Vehicles.", "schema": { "type": "string", "maxLength": 80 }, "example": "Dodge" },
      "model": { "name": "model", "in": "query", "description": "Vehicle model, matched exactly (upper and lower case aside; `Ram` does not match `Ram 2500`). Take values from Vehicles.", "schema": { "type": "string", "maxLength": 80 }, "example": "Ram 2500" },
      "engine": { "name": "engine", "in": "query", "description": "Engine, as the stored name in `engines[].value` of Vehicles (not the label).", "schema": { "type": "string", "maxLength": 80 }, "example": "5.9L 6Cyl L (-)(359)" },
      "baseVehicle": { "name": "base_vehicle", "in": "query", "description": "An Auto Care BaseVehicle id (one year, make and model). Can be combined with the text settings; everything given must match.", "schema": { "type": "integer", "minimum": 1 }, "example": 17862 },
      "engineBase": { "name": "engine_base", "in": "query", "description": "An Auto Care EngineBase id.", "schema": { "type": "integer", "minimum": 1 }, "example": 1126 },
      "detail": { "name": "detail", "in": "query", "description": "`full` adds the detail fields to every item object (long description, all pictures, category, weight and size, and more). With it a lookup takes at most 200 part numbers. Any other value is a 400.", "schema": { "type": "string", "enum": [ "full" ] } }
    },
    "responses": {
      "BadRequest": { "description": "A lookup body is missing or not what is expected, or a setting has a value it cannot take (year, base_vehicle, engine_base, category, modified_since, detail, ref). The sentence says what to send.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
      "Unauthorized": { "description": "No Authorization header, or the key is wrong or revoked.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
      "Forbidden": { "description": "The key is good, but the dealer's portal access is switched off, the key was made for a different customer account, or stock was asked for with a sign-in that does not show stock.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
      "NotFound": { "description": "No such published part, or no such address.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
      "TooManyRequests": { "description": "More requests in one clock minute than the key is allowed. Wait the number of seconds in Retry-After and send the same request again.", "headers": { "Retry-After": { "description": "Seconds to wait.", "schema": { "type": "integer" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
      "ServerError": { "description": "Something went wrong on our side. Wait and try again.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
      "Unavailable": { "description": "Prices or account settings are being brought up to date. Try again in a few minutes.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "Every refusal. The sentence is for a person and can be reworded: act on the status code.",
        "required": [ "error" ],
        "properties": { "error": { "type": "string" } }
      },
      "LookupRequest": {
        "type": "object",
        "required": [ "nos" ],
        "properties": {
          "nos": { "type": "array", "description": "1 to 1000 part numbers (at most 200 with detail=full). Upper and lower case do not matter; a number sent twice comes back once; blank entries are dropped.", "minItems": 1, "maxItems": 1000, "items": { "type": "string" } }
        },
        "example": { "nos": [ "214311", "739619-5004S" ] }
      },
      "CoreBomLine": {
        "type": "object",
        "properties": {
          "no": { "type": "string", "description": "The core's item number." },
          "quantity": { "type": "number", "description": "How many of that core the kit carries." },
          "price_each": { "type": "number", "description": "The charge for one of that core." },
          "line_total": { "type": "number", "description": "quantity × price_each, rounded to the cent." }
        }
      },
      "CategoryLevel": {
        "type": "object",
        "properties": {
          "code": { "type": "string" },
          "name": { "type": [ "string", "null" ] },
          "aaia_id": { "type": [ "integer", "null" ], "description": "The Auto Care id of this level: category at level 1, subcategory at level 2, part type (PartTerminology) at level 3." }
        }
      },
      "ItemCategory": {
        "type": "object",
        "description": "The part's category and each level above it (detail=full).",
        "properties": {
          "code": { "type": "string", "example": "12-225-5764" },
          "name": { "type": [ "string", "null" ], "example": "Turbocharger" },
          "path": { "type": "array", "description": "Top level first.", "items": { "$ref": "#/components/schemas/CategoryLevel" } },
          "aaia_id": { "type": [ "integer", "null" ] },
          "definition": { "type": [ "string", "null" ], "description": "Auto Care's description of the part type." }
        }
      },
      "Item": {
        "type": "object",
        "additionalProperties": true,
        "description": "One published part. Fields are added over time: ignore the ones you do not know. Price fields are present only when the key owner's sign-in shows prices, stock fields only when it shows stock; otherwise those fields are absent. Amounts are JSON numbers in US dollars. The detail fields are present only with detail=full.",
        "required": [ "no" ],
        "properties": {
          "no": { "type": "string", "description": "Our part number. The key to match on." },
          "brand": { "type": [ "string", "null" ], "description": "The brand code, for example GARRETT." },
          "brand_name": { "type": [ "string", "null" ] },
          "description": { "type": [ "string", "null" ], "description": "The part's name." },
          "upc": { "type": [ "string", "null" ] },
          "image_url": { "type": [ "string", "null" ], "format": "uri" },
          "core_item_no": { "type": [ "string", "null" ], "description": "The part's core item, when it has a single core." },
          "carb_eo_number": { "type": [ "string", "null" ], "description": "The CARB Executive Order number." },
          "manufacturer_no": { "type": [ "string", "null" ], "description": "The maker's own part number, as the maker writes it (spaces included)." },
          "aaia_item_no": { "type": [ "string", "null" ], "description": "The brand's AAIA code followed by the manufacturer number without spaces (our own number without its brand prefix when there is no manufacturer number). Null when the brand has no AAIA code." },
          "category_code": { "type": [ "string", "null" ], "description": "The part's category code, as in List categories." },
          "part_type_id": { "type": [ "integer", "null" ], "description": "The Auto Care part type (PartTerminology) id." },
          "modified_at": { "type": [ "string", "null" ], "description": "When the part's record last changed, YYYY-MM-DD HH:MM:SS in UTC. A change of price, sale, stock or fitment does not move it." },
          "msrp": { "type": [ "number", "null" ], "description": "List price. (Price field.)" },
          "map": { "type": [ "number", "null" ], "description": "Minimum advertised price. (Price field.)" },
          "price": { "type": [ "number", "null" ], "description": "What the dealer pays today, after a sale or discount that applies to them. Null for an account without a dealer price level. The core charge is never part of it. (Price field.)" },
          "regular_price": { "type": [ "number", "null" ], "description": "The dealer's price before any sale or discount. (Price field.)" },
          "discount_percent": { "type": [ "number", "null" ], "description": "The percent off; null when no sale applies. (Price field.)" },
          "discount_ends": { "type": [ "string", "null" ], "format": "date", "description": "The last day of the sale. (Price field.)" },
          "price_level": { "type": [ "string", "null" ], "description": "The dealer's price level, for example WD. (Price field.)" },
          "currency": { "type": "string", "description": "Always USD. (Price field.)" },
          "core_price": { "type": [ "number", "null" ], "description": "The core charge; for a kit, the total of all its cores. (Price field.)" },
          "core_bom": { "type": [ "array", "null" ], "description": "For a kit only: one entry per core. (Price field.)", "items": { "$ref": "#/components/schemas/CoreBomLine" } },
          "prices_as_of": { "type": [ "string", "null" ], "description": "When the prices were last brought up to date, YYYY-MM-DD HH:MM:SS, Mountain time. (Price field.)" },
          "available": { "type": "integer", "minimum": 0, "description": "How many are ready to ship. (Stock field.)" },
          "in_stock": { "type": "boolean", "description": "Whether at least one is ready to ship. (Stock field.)" },
          "stock_as_of": { "type": [ "string", "null" ], "description": "When the stock was last brought up to date, YYYY-MM-DD HH:MM:SS, Mountain time. (Stock field.)" },
          "description_long": { "type": [ "string", "null" ], "description": "detail=full. The long description as plain text with line breaks. Never HTML: escape it like any other text." },
          "images": { "type": "array", "description": "detail=full. Links to every picture, in order.", "items": { "type": "string", "format": "uri" } },
          "category": { "description": "detail=full.", "oneOf": [ { "$ref": "#/components/schemas/ItemCategory" }, { "type": "null" } ] },
          "weight_lb": { "type": [ "number", "null" ], "description": "detail=full. Weight of one, in pounds." },
          "length_in": { "type": [ "number", "null" ], "description": "detail=full. Inches. Length, width and height are all given or none." },
          "width_in": { "type": [ "number", "null" ], "description": "detail=full. Inches." },
          "height_in": { "type": [ "number", "null" ], "description": "detail=full. Inches." },
          "country_of_origin": { "type": [ "string", "null" ], "description": "detail=full. A country code, for example MX." },
          "no_california": { "type": "boolean", "description": "detail=full. Not documented yet — do not build on it." },
          "year_from": { "type": [ "integer", "null" ], "description": "detail=full. First model year the part is made for." },
          "year_to": { "type": [ "integer", "null" ], "description": "detail=full. Last model year the part is made for." },
          "part_make": { "type": [ "string", "null" ], "description": "detail=full. The make in the part's application line, for example Cummins." },
          "part_department": { "type": [ "string", "null" ], "description": "detail=full. The department, for example Injectors." },
          "part_group": { "type": [ "string", "null" ], "description": "detail=full. The group within the department." },
          "performance_product": { "type": "boolean", "description": "detail=full. True for a performance part." }
        }
      },
      "ItemList": {
        "type": "object",
        "required": [ "count", "next_after", "items" ],
        "properties": {
          "count": { "type": "integer", "description": "How many parts are in this answer." },
          "next_after": { "type": [ "string", "null" ], "description": "The cursor for the next page; null on the last page." },
          "items": { "type": "array", "items": { "$ref": "#/components/schemas/Item" } }
        }
      },
      "ItemLookup": {
        "type": "object",
        "required": [ "count", "items", "not_found" ],
        "properties": {
          "count": { "type": "integer", "description": "How many parts were found." },
          "items": { "type": "array", "items": { "$ref": "#/components/schemas/Item" } },
          "not_found": { "type": "array", "description": "The numbers that are not published parts, as sent.", "items": { "type": "string" } }
        }
      },
      "StockRow": {
        "type": "object",
        "required": [ "no", "available", "in_stock" ],
        "properties": {
          "no": { "type": "string" },
          "available": { "type": "integer", "minimum": 0, "description": "How many are ready to ship." },
          "in_stock": { "type": "boolean" },
          "stock_as_of": { "type": [ "string", "null" ], "description": "YYYY-MM-DD HH:MM:SS, Mountain time." }
        }
      },
      "StockList": {
        "type": "object",
        "required": [ "count", "next_after", "items" ],
        "properties": {
          "count": { "type": "integer" },
          "next_after": { "type": [ "string", "null" ] },
          "items": { "type": "array", "items": { "$ref": "#/components/schemas/StockRow" } }
        }
      },
      "StockLookup": {
        "type": "object",
        "required": [ "count", "items", "not_found" ],
        "properties": {
          "count": { "type": "integer" },
          "items": { "type": "array", "items": { "$ref": "#/components/schemas/StockRow" } },
          "not_found": { "type": "array", "items": { "type": "string" } }
        }
      },
      "FitmentVehicle": {
        "type": "object",
        "properties": {
          "year": { "type": [ "integer", "null" ] },
          "make": { "type": [ "string", "null" ] },
          "model": { "type": [ "string", "null" ] },
          "engine": { "type": [ "string", "null" ], "description": "The engine as stored — the value to send back as the `engine` setting." },
          "engine_label": { "type": [ "string", "null" ], "description": "The engine as shown to people." },
          "note": { "type": [ "string", "null" ], "description": "A remark on the fit." },
          "base_vehicle_id": { "type": [ "integer", "null" ], "description": "The Auto Care BaseVehicle id: exactly one year, make and model." },
          "engine_base_id": { "type": [ "integer", "null" ], "description": "The Auto Care EngineBase id." }
        }
      },
      "ItemFitment": {
        "type": "object",
        "required": [ "no", "count", "vehicles" ],
        "properties": {
          "no": { "type": "string" },
          "count": { "type": "integer", "description": "How many vehicle rows follow. 0 for a part with no fitment on file." },
          "vehicles": { "type": "array", "items": { "$ref": "#/components/schemas/FitmentVehicle" } }
        }
      },
      "FitmentList": {
        "type": "object",
        "required": [ "count", "next_after", "items" ],
        "properties": {
          "count": { "type": "integer", "description": "How many parts are in this answer." },
          "next_after": { "type": [ "string", "null" ] },
          "items": { "type": "array", "items": { "$ref": "#/components/schemas/ItemFitment" } }
        }
      },
      "PickerValue": {
        "type": "object",
        "properties": {
          "value": { "description": "What to send back as the setting. An integer for years, a string otherwise.", "type": [ "integer", "string" ] },
          "parts": { "type": "integer", "description": "Published parts that fit." }
        }
      },
      "EngineValue": {
        "type": "object",
        "properties": {
          "value": { "type": "string", "description": "The stored engine name — send this back as `engine`." },
          "label": { "type": "string", "description": "The engine as shown to people." },
          "engine_base_ids": { "type": "array", "description": "The Auto Care EngineBase ids that name stands for — usually one.", "items": { "type": "integer" } },
          "parts": { "type": "integer" }
        }
      },
      "Vehicles": {
        "type": "object",
        "required": [ "years", "makes", "models", "engines" ],
        "properties": {
          "years": { "type": "array", "description": "Newest first.", "items": { "$ref": "#/components/schemas/PickerValue" } },
          "makes": { "type": "array", "description": "A to Z.", "items": { "$ref": "#/components/schemas/PickerValue" } },
          "models": { "type": "array", "description": "A to Z.", "items": { "$ref": "#/components/schemas/PickerValue" } },
          "engines": { "type": "array", "description": "A to Z.", "items": { "$ref": "#/components/schemas/EngineValue" } }
        }
      },
      "CrossReferenceAnswer": {
        "type": "object",
        "required": [ "ref", "ref_normalized", "count", "items" ],
        "properties": {
          "ref": { "type": "string", "description": "The number as sent." },
          "ref_normalized": { "type": "string", "description": "The number as matched: letters and digits only, upper case." },
          "count": { "type": "integer" },
          "items": { "type": "array", "maxItems": 100, "items": { "$ref": "#/components/schemas/Item" } }
        }
      },
      "Brand": {
        "type": "object",
        "properties": {
          "code": { "type": "string", "description": "What the `brand` setting takes." },
          "name": { "type": "string" },
          "aaia_code": { "type": [ "string", "null" ], "description": "The brand's AAIA code." },
          "parts": { "type": "integer", "description": "Published parts of that brand." }
        }
      },
      "BrandList": {
        "type": "object",
        "required": [ "count", "items" ],
        "properties": {
          "count": { "type": "integer" },
          "items": { "type": "array", "items": { "$ref": "#/components/schemas/Brand" } }
        }
      },
      "CategoryNode": {
        "type": "object",
        "properties": {
          "code": { "type": "string", "description": "What the `category` setting takes. A child's code starts with its parent's: 12, 12-225, 12-225-5764." },
          "name": { "type": [ "string", "null" ] },
          "parent_code": { "type": [ "string", "null" ] },
          "level": { "type": "integer", "description": "1 at the top; three levels today." },
          "parts": { "type": "integer", "description": "Published parts in the category and in everything below it." },
          "aaia_id": { "type": [ "integer", "null" ], "description": "The Auto Care id of the entry: category at level 1, subcategory at level 2, part type at level 3." }
        }
      },
      "CategoryList": {
        "type": "object",
        "required": [ "count", "items" ],
        "properties": {
          "count": { "type": "integer" },
          "items": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryNode" } }
        }
      }
    }
  }
}
