{
  "openapi": "3.1.0",
  "info": {
    "title": "ShopCrank Repair Data API",
    "version": "1.0.0",
    "description": "Repair knowledge by trouble code or by vehicle: code meanings and likely causes, factory service bulletins, owner-reported symptoms and repairs, safety recalls, and confirmed fixes from ShopCrank shops. Plans: Starter: $49/month, 10,000 lookups, $5 per extra 1,000, 60 requests/minute; Pro: $199/month, 100,000 lookups, $3 per extra 1,000, 300 requests/minute. Terms version 2026-11-15: https://www.shopcrank.com/developers/terms/",
    "contact": {
      "name": "ShopCrank support",
      "email": "support@shopcrank.com",
      "url": "https://www.shopcrank.com/developers/"
    },
    "termsOfService": "https://www.shopcrank.com/developers/terms/"
  },
  "servers": [
    {
      "url": "https://www.shopcrank.com/api/v1"
    }
  ],
  "security": [
    {
      "bearer": []
    }
  ],
  "paths": {
    "/codes/{code}": {
      "get": {
        "operationId": "getCode",
        "summary": "Look up a trouble code",
        "description": "Billed as one lookup, also when nothing is on file.",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Trouble code, e.g. P0420",
              "pattern": "^[PCBUpcbu][0-3][0-9A-Fa-f]{3}$"
            }
          },
          {
            "name": "make",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Puts this vehicle's bulletins and reports first (with model)."
            }
          },
          {
            "name": "model",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The code.",
            "headers": {
              "X-Usage-Calls": {
                "description": "Lookups counted in the current billing period, including this one.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Usage-Included": {
                "description": "Lookups included in your plan this period.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed per minute on your plan.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeLookup"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed, unknown or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment is past due or the subscription has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Nothing on file or not a valid code (billed), or an unknown endpoint (not billed).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the per-minute limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait."
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable on our side. Not billed; retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/vehicles/{make}/{model}": {
      "get": {
        "operationId": "getVehicle",
        "summary": "Look up a vehicle",
        "description": "Reported symptoms ranked by reports, bulletins, recalls and confirmed fixes. Billed as one lookup.",
        "parameters": [
          {
            "name": "make",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "As listed by /makes, case-insensitive."
            }
          },
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "As listed by /makes/{make}."
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "system",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "e.g. Brakes, Engine"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Symptom or part words; filters symptoms, bulletins and recalls."
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The vehicle.",
            "headers": {
              "X-Usage-Calls": {
                "description": "Lookups counted in the current billing period, including this one.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Usage-Included": {
                "description": "Lookups included in your plan this period.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed per minute on your plan.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VehicleLookup"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed, unknown or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment is past due or the subscription has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Nothing on file or not a valid code (billed), or an unknown endpoint (not billed).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the per-minute limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait."
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable on our side. Not billed; retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/makes": {
      "get": {
        "operationId": "listMakes",
        "summary": "Every make",
        "description": "Billed as one lookup.",
        "responses": {
          "200": {
            "description": "Makes.",
            "headers": {
              "X-Usage-Calls": {
                "description": "Lookups counted in the current billing period, including this one.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Usage-Included": {
                "description": "Lookups included in your plan this period.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed per minute on your plan.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "makes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "make": {
                            "type": "string"
                          },
                          "models": {
                            "type": "integer",
                            "description": "Number of models"
                          },
                          "complaints": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Malformed request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed, unknown or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment is past due or the subscription has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Nothing on file or not a valid code (billed), or an unknown endpoint (not billed).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the per-minute limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait."
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable on our side. Not billed; retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/makes/{make}": {
      "get": {
        "operationId": "listModels",
        "summary": "A make's models",
        "description": "Billed as one lookup.",
        "parameters": [
          {
            "name": "make",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Models.",
            "headers": {
              "X-Usage-Calls": {
                "description": "Lookups counted in the current billing period, including this one.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Usage-Included": {
                "description": "Lookups included in your plan this period.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed per minute on your plan.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "make": {
                      "type": "string"
                    },
                    "models": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Malformed request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed, unknown or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment is past due or the subscription has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Nothing on file or not a valid code (billed), or an unknown endpoint (not billed).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the per-minute limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait."
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable on our side. Not billed; retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/usage": {
      "get": {
        "operationId": "getUsage",
        "summary": "Usage this billing period",
        "description": "Not billed. Works while payment is past due.",
        "responses": {
          "200": {
            "description": "Usage.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Usage"
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed, unknown or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment is past due or the subscription has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/keys/rotate": {
      "post": {
        "operationId": "rotateKey",
        "summary": "Replace your key",
        "description": "The key you sent stops working. Not billed.",
        "responses": {
          "200": {
            "description": "The new key, shown once.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiKey": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed, unknown or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment is past due or the subscription has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "This key was already rotated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/keys/recover": {
      "post": {
        "operationId": "recoverKey",
        "summary": "Lost key: email a replacement link",
        "description": "No key needed. Answers the same whether or not the email has a subscription. The emailed link works for one hour.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Sent if the email has an active subscription.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Malformed request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the per-minute limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait."
              }
            }
          }
        }
      }
    },
    "/keys/recover/check": {
      "post": {
        "operationId": "checkRecoveryLink",
        "summary": "Which subscription a recovery link replaces",
        "description": "Spends nothing; the recovery page shows this before you confirm.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token"
                ],
                "properties": {
                  "token": {
                    "type": "string",
                    "description": "From the emailed link"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The subscription.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tier": {
                      "type": "string"
                    },
                    "since": {
                      "type": "string",
                      "format": "date"
                    },
                    "account": {
                      "type": "string"
                    },
                    "keyHint": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Start of the current key"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid, used or expired link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/keys/recover/complete": {
      "post": {
        "operationId": "completeRecovery",
        "summary": "Replace the key with a recovery link",
        "description": "Revokes every other key of the subscription and returns the new one, shown once. The link and any older links stop working.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token"
                ],
                "properties": {
                  "token": {
                    "type": "string",
                    "description": "From the emailed link"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The new key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tier": {
                      "type": "string"
                    },
                    "apiKey": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid, used or expired link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/billing-portal": {
      "post": {
        "operationId": "billingPortal",
        "summary": "Stripe billing portal link",
        "description": "Update the card, see invoices or cancel. Works while payment is past due.",
        "responses": {
          "200": {
            "description": "Link.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed, unknown or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/plan": {
      "post": {
        "operationId": "changePlan",
        "summary": "Switch plan",
        "description": "Prorated. Overage already incurred this period stays billed; the new allowance applies from the switch.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "tier"
                ],
                "properties": {
                  "tier": {
                    "type": "string",
                    "enum": [
                      "starter",
                      "pro"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The new plan.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tier": {
                      "type": "string"
                    },
                    "includedCalls": {
                      "type": "integer"
                    },
                    "requestsPerMinute": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Malformed request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed, unknown or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment is past due or the subscription has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable on our side. Not billed; retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/plans": {
      "get": {
        "operationId": "listPlans",
        "summary": "Plans and prices",
        "security": [],
        "responses": {
          "200": {
            "description": "Plans.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "termsVersion": {
                      "type": "string"
                    },
                    "plans": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "monthlyUsd": {
                            "type": "number"
                          },
                          "includedCalls": {
                            "type": "integer"
                          },
                          "overagePer1000Usd": {
                            "type": "number"
                          },
                          "requestsPerMinute": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your API key, sck_live_... Server-side only."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ]
      },
      "Bulletin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Manufacturer bulletin number"
          },
          "nhtsaId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "action": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "vehicles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "vehicleCount": {
            "type": "integer"
          },
          "years": {
            "type": "string"
          },
          "systems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "symptoms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "matchesVehicle": {
            "type": "boolean",
            "description": "Present when a vehicle was given."
          },
          "summary": {
            "type": "string"
          }
        }
      },
      "Repair": {
        "type": "object",
        "properties": {
          "repair": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "saidFixed": {
            "type": "integer",
            "description": "Owners who said it fixed the problem"
          }
        },
        "required": [
          "repair",
          "count"
        ]
      },
      "ConfirmedFixes": {
        "type": "object",
        "description": "From ShopCrank shops; empty unless at least 3 shops agree.",
        "properties": {
          "shops": {
            "type": "integer"
          },
          "repairs": {
            "type": "integer"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "repair": {
                  "type": "string",
                  "description": "Repair"
                },
                "count": {
                  "type": "integer"
                }
              },
              "required": [
                "repair",
                "count"
              ]
            }
          },
          "symptoms": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "symptom": {
                  "type": "string",
                  "description": "Symptom"
                },
                "count": {
                  "type": "integer"
                }
              },
              "required": [
                "symptom",
                "count"
              ]
            }
          }
        }
      },
      "Vehicle": {
        "type": "object",
        "properties": {
          "make": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "CodeLookup": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "titleUnverified": {
            "type": "boolean"
          },
          "genericCode": {
            "type": "boolean"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "causes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "cause": {
                  "type": "string"
                },
                "likelihood": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "high",
                        "medium",
                        "low"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "symptoms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "difficulty": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "laborHours": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number"
                  },
                  "max": {
                    "type": "number"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "turnsOnCheckEngineLight": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "emissionsRelated": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "relatedCodes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "vehicle": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Vehicle"
              },
              {
                "type": "null"
              }
            ]
          },
          "serviceBulletins": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer"
              },
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Bulletin"
                }
              }
            }
          },
          "ownerReports": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "complaints": {
                    "type": "integer"
                  },
                  "symptoms": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "symptom": {
                          "type": "string",
                          "description": "Symptom"
                        },
                        "count": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "symptom",
                        "count"
                      ]
                    }
                  },
                  "repairs": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Repair"
                    }
                  },
                  "vehicles": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "vehicle": {
                          "type": "string"
                        },
                        "years": {
                          "type": "string"
                        },
                        "complaints": {
                          "type": "integer"
                        },
                        "medianMiles": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "symptoms": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "repairs": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Repair"
                          }
                        }
                      }
                    }
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmedFixes": {
            "$ref": "#/components/schemas/ConfirmedFixes"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "VehicleLookup": {
        "type": "object",
        "properties": {
          "vehicle": {
            "$ref": "#/components/schemas/Vehicle"
          },
          "complaints": {
            "type": "integer"
          },
          "symptoms": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "system": {
                  "type": "string"
                },
                "symptom": {
                  "type": "string"
                },
                "reports": {
                  "type": "integer"
                },
                "medianMiles": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "repairs": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Repair"
                  }
                },
                "codes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "serviceBulletins": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer"
              },
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Bulletin"
                }
              }
            }
          },
          "recalls": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "campaign": {
                  "type": "string"
                },
                "date": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "years": {
                  "type": "string"
                },
                "components": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "defect": {
                  "type": "string"
                },
                "consequence": {
                  "type": "string"
                },
                "remedy": {
                  "type": "string"
                }
              }
            }
          },
          "confirmedFixes": {
            "$ref": "#/components/schemas/ConfirmedFixes"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Usage": {
        "type": "object",
        "properties": {
          "tier": {
            "type": "string"
          },
          "periodStart": {
            "type": "string",
            "description": "Start of the billing period"
          },
          "periodEnd": {
            "type": "string",
            "description": "End of the billing period"
          },
          "calls": {
            "type": "integer"
          },
          "includedCalls": {
            "type": "integer"
          },
          "overageCalls": {
            "type": "integer"
          },
          "perMinute": {
            "type": "integer"
          }
        }
      }
    }
  }
}
