{
    "openapi": "3.1.0",
    "info": {
        "title": "Code Auctions API",
        "version": "0.2.5",
        "description": "Vehicle history reports by VIN: Carfax and AutoCheck.\n\nSeller Reserve API: check availability and reveal prices using prepaid request packages.\n\nAuthenticate with `Authorization: Bearer rep_live_...`. A `rep_test_` key returns realistic responses without spending anything and without calling any provider.\n\nFull documentation: https://codeauctions.com/api/",
        "contact": {
            "name": "Support",
            "email": "support@codeauctions.com",
            "url": "https://codeauctions.com/api/"
        }
    },
    "servers": [
        {
            "url": "https://reports.codeauctions.com/v1",
            "description": "Production"
        }
    ],
    "security": [
        {
            "bearerAuth": []
        }
    ],
    "tags": [
        {
            "name": "system",
            "description": "Health checks and account status."
        },
        {
            "name": "vehiclereports",
            "description": "Generate Carfax and AutoCheck reports by VIN.",
            "externalDocs": {
                "url": "https://codeauctions.com/api/?doc=vehiclereports"
            }
        },
        {
            "name": "reserve",
            "description": "Show reserve availability and reveal a lot's reserve price.",
            "externalDocs": {
                "url": "https://codeauctions.com/api/?doc=reserve"
            }
        }
    ],
    "paths": {
        "/autocheck/credits": {
            "get": {
                "operationId": "getAutoCheckCredits",
                "summary": "Credits available and packages on sale",
                "description": "AutoCheck endpoint. Uses the same shared report credits. How many credits you have left and which packages you can buy. Spends nothing.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:read",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "credits_available": {
                                                            "description": "integer",
                                                            "type": "integer"
                                                        },
                                                        "packages": {
                                                            "description": "array — available packages with their price",
                                                            "type": "array",
                                                            "items": {}
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": null
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        },
        "/autocheck/reports/{vin}": {
            "get": {
                "operationId": "getAutoCheckReport",
                "summary": "Look up a report already generated",
                "description": "AutoCheck endpoint. Uses the same shared report credits. Returns the link of a report you already generated, spending nothing. Use it BEFORE generating so you do not overspend: generating that VIN again DOES cost you another credit.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:read",
                "parameters": [
                    {
                        "name": "vin",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
                            "example": "1HGCM82633A004352"
                        },
                        "description": "Vehicle Identification Number (VIN), 17 characters."
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "autocheck"
                            ],
                            "default": "autocheck",
                            "example": "autocheck"
                        },
                        "description": "Always autocheck for this endpoint."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "vin": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "type": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "exists": {
                                                            "description": "boolean — whether you already have it",
                                                            "type": "boolean"
                                                        },
                                                        "report_url": {
                                                            "description": "string|null — the link, if it exists",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "pdf_url": {
                                                            "description": "string|null — direct PDF link, when available",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "vin": "1HGCM82633A004352",
                                        "type": "autocheck",
                                        "exists": true,
                                        "report_url": "https://codeauctions.com/report/a1b2c3d4e5/",
                                        "pdf_url": "https://codeauctions.com/report/a1b2c3d4e5/Report-1HGCM82633A004352.pdf"
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter` · `bad_vin`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        },
        "/autocheck/reports/{vin}/content": {
            "get": {
                "operationId": "getAutoCheckReportContent",
                "summary": "Download a report to host on your own website",
                "description": "AutoCheck endpoint. Uses the same shared report credits. Returns a report you already purchased as base64 content, ready to store and serve from your own domain. `format=html` (default) is a single self-contained HTML document: the report pages are embedded as images with a selectable text layer, it loads nothing from other sites and carries no CodeAuctions branding. `format=pdf` returns the PDF when available. Spends nothing: call it right after `POST /reports`, or any time later.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:read",
                "parameters": [
                    {
                        "name": "vin",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
                            "example": "1HGCM82633A004352"
                        },
                        "description": "Vehicle Identification Number (VIN), 17 characters."
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "autocheck"
                            ],
                            "default": "autocheck",
                            "example": "autocheck"
                        },
                        "description": "Always autocheck for this endpoint."
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "html",
                                "pdf"
                            ],
                            "default": "html",
                            "example": "html"
                        },
                        "description": "html (self-contained document) or pdf."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "vin": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "type": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "format": {
                                                            "description": "string — html or pdf",
                                                            "type": "string"
                                                        },
                                                        "content_type": {
                                                            "description": "string — MIME type to serve it with",
                                                            "type": "string"
                                                        },
                                                        "filename": {
                                                            "description": "string — suggested file name",
                                                            "type": "string"
                                                        },
                                                        "encoding": {
                                                            "description": "string — always base64",
                                                            "type": "string"
                                                        },
                                                        "size_bytes": {
                                                            "description": "integer — size of the decoded file",
                                                            "type": "integer"
                                                        },
                                                        "generated_at": {
                                                            "description": "string|null — ISO 8601 date the report was generated",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "content_base64": {
                                                            "description": "string — the file, base64-encoded",
                                                            "type": "string"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "vin": "1HGCM82633A004352",
                                        "type": "autocheck",
                                        "format": "html",
                                        "content_type": "text/html; charset=utf-8",
                                        "filename": "Report-1HGCM82633A004352.html",
                                        "encoding": "base64",
                                        "size_bytes": 1702522,
                                        "generated_at": "2026-08-29T14:03:11Z",
                                        "content_base64": "PCFET0NUWVBFIGh0bWw+…"
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter` · `bad_vin`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error` · `provider_bad_response`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "`not_found`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        },
        "/carfax/credits": {
            "get": {
                "operationId": "getCarfaxCredits",
                "summary": "Credits available and packages on sale",
                "description": "Compatible alias of the Vehicle reports endpoint. Accepts both report types. How many credits you have left and which packages you can buy. Spends nothing.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:read",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "credits_available": {
                                                            "description": "integer",
                                                            "type": "integer"
                                                        },
                                                        "packages": {
                                                            "description": "array — available packages with their price",
                                                            "type": "array",
                                                            "items": {}
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": null
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        },
        "/carfax/reports/{vin}": {
            "get": {
                "operationId": "getCarfaxReport",
                "summary": "Look up a report already generated",
                "description": "Compatible alias of the Vehicle reports endpoint. Accepts both report types. Returns the link of a report you already generated, spending nothing. Use it BEFORE generating so you do not overspend: generating that VIN again DOES cost you another credit.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:read",
                "parameters": [
                    {
                        "name": "vin",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
                            "example": "1HGCM82633A004352"
                        },
                        "description": "Vehicle Identification Number (VIN), 17 characters."
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "carfax",
                                "autocheck"
                            ],
                            "default": "carfax",
                            "example": "carfax"
                        },
                        "description": "Which report provider to use."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "vin": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "type": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "exists": {
                                                            "description": "boolean — whether you already have it",
                                                            "type": "boolean"
                                                        },
                                                        "report_url": {
                                                            "description": "string|null — the link, if it exists",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "pdf_url": {
                                                            "description": "string|null — direct PDF link, when available",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "vin": "1HGCM82633A004352",
                                        "type": "carfax",
                                        "exists": true,
                                        "report_url": "https://codeauctions.com/report/a1b2c3d4e5/",
                                        "pdf_url": "https://codeauctions.com/report/a1b2c3d4e5/Report-1HGCM82633A004352.pdf"
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter` · `bad_vin`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        },
        "/carfax/reports/{vin}/content": {
            "get": {
                "operationId": "getCarfaxReportContent",
                "summary": "Download a report to host on your own website",
                "description": "Compatible alias of the Vehicle reports endpoint. Accepts both report types. Returns a report you already purchased as base64 content, ready to store and serve from your own domain. `format=html` (default) is a single self-contained HTML document: the report pages are embedded as images with a selectable text layer, it loads nothing from other sites and carries no CodeAuctions branding. `format=pdf` returns the PDF when available. Spends nothing: call it right after `POST /reports`, or any time later.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:read",
                "parameters": [
                    {
                        "name": "vin",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
                            "example": "1HGCM82633A004352"
                        },
                        "description": "Vehicle Identification Number (VIN), 17 characters."
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "carfax",
                                "autocheck"
                            ],
                            "default": "carfax",
                            "example": "carfax"
                        },
                        "description": "Which report provider to use."
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "html",
                                "pdf"
                            ],
                            "default": "html",
                            "example": "html"
                        },
                        "description": "html (self-contained document) or pdf."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "vin": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "type": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "format": {
                                                            "description": "string — html or pdf",
                                                            "type": "string"
                                                        },
                                                        "content_type": {
                                                            "description": "string — MIME type to serve it with",
                                                            "type": "string"
                                                        },
                                                        "filename": {
                                                            "description": "string — suggested file name",
                                                            "type": "string"
                                                        },
                                                        "encoding": {
                                                            "description": "string — always base64",
                                                            "type": "string"
                                                        },
                                                        "size_bytes": {
                                                            "description": "integer — size of the decoded file",
                                                            "type": "integer"
                                                        },
                                                        "generated_at": {
                                                            "description": "string|null — ISO 8601 date the report was generated",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "content_base64": {
                                                            "description": "string — the file, base64-encoded",
                                                            "type": "string"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "vin": "1HGCM82633A004352",
                                        "type": "carfax",
                                        "format": "html",
                                        "content_type": "text/html; charset=utf-8",
                                        "filename": "Report-1HGCM82633A004352.html",
                                        "encoding": "base64",
                                        "size_bytes": 1702522,
                                        "generated_at": "2026-08-29T14:03:11Z",
                                        "content_base64": "PCFET0NUWVBFIGh0bWw+…"
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter` · `bad_vin`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error` · `provider_bad_response`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "`not_found`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        },
        "/vehiclereports/credits": {
            "get": {
                "operationId": "getVehicleReportCredits",
                "summary": "Credits available and packages on sale",
                "description": "How many credits you have left and which packages you can buy. Spends nothing.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:read",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "credits_available": {
                                                            "description": "integer",
                                                            "type": "integer"
                                                        },
                                                        "packages": {
                                                            "description": "array — available packages with their price",
                                                            "type": "array",
                                                            "items": {}
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": null
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        },
        "/vehiclereports/reports/{vin}": {
            "get": {
                "operationId": "getVehicleReport",
                "summary": "Look up a report already generated",
                "description": "Returns the link of a report you already generated, spending nothing. Use it BEFORE generating so you do not overspend: generating that VIN again DOES cost you another credit.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:read",
                "parameters": [
                    {
                        "name": "vin",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
                            "example": "1HGCM82633A004352"
                        },
                        "description": "Vehicle Identification Number (VIN), 17 characters."
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "carfax",
                                "autocheck"
                            ],
                            "default": "carfax",
                            "example": "carfax"
                        },
                        "description": "Which report provider to use."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "vin": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "type": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "exists": {
                                                            "description": "boolean — whether you already have it",
                                                            "type": "boolean"
                                                        },
                                                        "report_url": {
                                                            "description": "string|null — the link, if it exists",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "pdf_url": {
                                                            "description": "string|null — direct PDF link, when available",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "vin": "1HGCM82633A004352",
                                        "type": "carfax",
                                        "exists": true,
                                        "report_url": "https://codeauctions.com/report/a1b2c3d4e5/",
                                        "pdf_url": "https://codeauctions.com/report/a1b2c3d4e5/Report-1HGCM82633A004352.pdf"
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter` · `bad_vin`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        },
        "/vehiclereports/reports/{vin}/content": {
            "get": {
                "operationId": "getVehicleReportContent",
                "summary": "Download a report to host on your own website",
                "description": "Returns a report you already purchased as base64 content, ready to store and serve from your own domain. `format=html` (default) is a single self-contained HTML document: the report pages are embedded as images with a selectable text layer, it loads nothing from other sites and carries no CodeAuctions branding. `format=pdf` returns the PDF when available. Spends nothing: call it right after `POST /reports`, or any time later.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:read",
                "parameters": [
                    {
                        "name": "vin",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
                            "example": "1HGCM82633A004352"
                        },
                        "description": "Vehicle Identification Number (VIN), 17 characters."
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "carfax",
                                "autocheck"
                            ],
                            "default": "carfax",
                            "example": "carfax"
                        },
                        "description": "Which report provider to use."
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "html",
                                "pdf"
                            ],
                            "default": "html",
                            "example": "html"
                        },
                        "description": "html (self-contained document) or pdf."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "vin": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "type": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "format": {
                                                            "description": "string — html or pdf",
                                                            "type": "string"
                                                        },
                                                        "content_type": {
                                                            "description": "string — MIME type to serve it with",
                                                            "type": "string"
                                                        },
                                                        "filename": {
                                                            "description": "string — suggested file name",
                                                            "type": "string"
                                                        },
                                                        "encoding": {
                                                            "description": "string — always base64",
                                                            "type": "string"
                                                        },
                                                        "size_bytes": {
                                                            "description": "integer — size of the decoded file",
                                                            "type": "integer"
                                                        },
                                                        "generated_at": {
                                                            "description": "string|null — ISO 8601 date the report was generated",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "content_base64": {
                                                            "description": "string — the file, base64-encoded",
                                                            "type": "string"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "vin": "1HGCM82633A004352",
                                        "type": "carfax",
                                        "format": "html",
                                        "content_type": "text/html; charset=utf-8",
                                        "filename": "Report-1HGCM82633A004352.html",
                                        "encoding": "base64",
                                        "size_bytes": 1702522,
                                        "generated_at": "2026-08-29T14:03:11Z",
                                        "content_base64": "PCFET0NUWVBFIGh0bWw+…"
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter` · `bad_vin`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error` · `provider_bad_response`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "`not_found`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        },
        "/autocheck/reports": {
            "post": {
                "operationId": "createAutoCheckReport",
                "summary": "Generate a vehicle report",
                "description": "AutoCheck endpoint. Uses the same shared report credits. Generates a Carfax or AutoCheck report for a VIN and returns the link. It ALWAYS spends 1 credit, even if you had asked for that same VIN before: every call is a purchase. The response carries the real report date in `generated_at`, and `fresh` tells you whether it was just generated or comes from our archive (never older than 7 days). A new report usually takes under a minute: use a timeout of at least 90 seconds. To host the report on your own website, download it with `GET /reports/{vin}/content`.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:write",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "vin": {
                                                            "description": "string — the VIN you asked about",
                                                            "type": "string"
                                                        },
                                                        "type": {
                                                            "description": "string — carfax or autocheck",
                                                            "type": "string"
                                                        },
                                                        "report_url": {
                                                            "description": "string — permanent link to the report",
                                                            "type": "string"
                                                        },
                                                        "pdf_url": {
                                                            "description": "string|null — direct PDF link, null when only the HTML report is available",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "vehicle": {
                                                            "description": "string — vehicle description, empty when unavailable",
                                                            "type": "string"
                                                        },
                                                        "generated_at": {
                                                            "description": "string — the REAL ISO 8601 date the report was generated",
                                                            "type": "string"
                                                        },
                                                        "age_days": {
                                                            "description": "integer — how old the report is in days (0 = just generated)",
                                                            "type": "integer"
                                                        },
                                                        "fresh": {
                                                            "description": "boolean — true if it was generated on this call",
                                                            "type": "boolean"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "vin": "1HGCM82633A004352",
                                        "type": "autocheck",
                                        "report_url": "https://codeauctions.com/report/a1b2c3d4e5/",
                                        "pdf_url": "https://codeauctions.com/report/a1b2c3d4e5/Report-1HGCM82633A004352.pdf",
                                        "vehicle": "2019 Honda Accord EX-L",
                                        "generated_at": "2026-08-29T14:03:11Z",
                                        "age_days": 0,
                                        "fresh": true
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter` · `bad_vin` · `idempotency_reused`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error` · `provider_unavailable` · `provider_bad_response` · `storage_unavailable` · `storage_failed`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "`no_credits`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "`vin_busy` · `in_progress` · `credits_busy`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "`provider_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "`provider_empty`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "`module_disabled`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "vin": {
                                        "type": "string",
                                        "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
                                        "example": "1HGCM82633A004352",
                                        "description": "Vehicle Identification Number (VIN), 17 characters."
                                    },
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "autocheck"
                                        ],
                                        "default": "autocheck",
                                        "example": "autocheck",
                                        "description": "Always autocheck for this endpoint."
                                    }
                                },
                                "required": [
                                    "vin"
                                ]
                            },
                            "example": {
                                "vin": "1HGCM82633A004352",
                                "type": "autocheck"
                            }
                        }
                    }
                }
            }
        },
        "/carfax/reports": {
            "post": {
                "operationId": "createCarfaxReport",
                "summary": "Generate a vehicle report",
                "description": "Compatible alias of the Vehicle reports endpoint. Accepts both report types. Generates a Carfax or AutoCheck report for a VIN and returns the link. It ALWAYS spends 1 credit, even if you had asked for that same VIN before: every call is a purchase. The response carries the real report date in `generated_at`, and `fresh` tells you whether it was just generated or comes from our archive (never older than 7 days). A new report usually takes under a minute: use a timeout of at least 90 seconds. To host the report on your own website, download it with `GET /reports/{vin}/content`.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:write",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "vin": {
                                                            "description": "string — the VIN you asked about",
                                                            "type": "string"
                                                        },
                                                        "type": {
                                                            "description": "string — carfax or autocheck",
                                                            "type": "string"
                                                        },
                                                        "report_url": {
                                                            "description": "string — permanent link to the report",
                                                            "type": "string"
                                                        },
                                                        "pdf_url": {
                                                            "description": "string|null — direct PDF link, null when only the HTML report is available",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "vehicle": {
                                                            "description": "string — vehicle description, empty when unavailable",
                                                            "type": "string"
                                                        },
                                                        "generated_at": {
                                                            "description": "string — the REAL ISO 8601 date the report was generated",
                                                            "type": "string"
                                                        },
                                                        "age_days": {
                                                            "description": "integer — how old the report is in days (0 = just generated)",
                                                            "type": "integer"
                                                        },
                                                        "fresh": {
                                                            "description": "boolean — true if it was generated on this call",
                                                            "type": "boolean"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "vin": "1HGCM82633A004352",
                                        "type": "carfax",
                                        "report_url": "https://codeauctions.com/report/a1b2c3d4e5/",
                                        "pdf_url": "https://codeauctions.com/report/a1b2c3d4e5/Report-1HGCM82633A004352.pdf",
                                        "vehicle": "2019 Honda Accord EX-L",
                                        "generated_at": "2026-08-29T14:03:11Z",
                                        "age_days": 0,
                                        "fresh": true
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter` · `bad_vin` · `idempotency_reused`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error` · `provider_unavailable` · `provider_bad_response` · `storage_unavailable` · `storage_failed`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "`no_credits`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "`vin_busy` · `in_progress` · `credits_busy`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "`provider_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "`provider_empty`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "`module_disabled`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "vin": {
                                        "type": "string",
                                        "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
                                        "example": "1HGCM82633A004352",
                                        "description": "Vehicle Identification Number (VIN), 17 characters."
                                    },
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "carfax",
                                            "autocheck"
                                        ],
                                        "default": "carfax",
                                        "example": "carfax",
                                        "description": "Which report provider to use."
                                    }
                                },
                                "required": [
                                    "vin"
                                ]
                            },
                            "example": {
                                "vin": "1HGCM82633A004352",
                                "type": "carfax"
                            }
                        }
                    }
                }
            }
        },
        "/vehiclereports/reports": {
            "post": {
                "operationId": "createVehicleReport",
                "summary": "Generate a vehicle report",
                "description": "Generates a Carfax or AutoCheck report for a VIN and returns the link. It ALWAYS spends 1 credit, even if you had asked for that same VIN before: every call is a purchase. The response carries the real report date in `generated_at`, and `fresh` tells you whether it was just generated or comes from our archive (never older than 7 days). A new report usually takes under a minute: use a timeout of at least 90 seconds. To host the report on your own website, download it with `GET /reports/{vin}/content`.",
                "tags": [
                    "vehiclereports"
                ],
                "x-required-scope": "carfax:write",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "vin": {
                                                            "description": "string — the VIN you asked about",
                                                            "type": "string"
                                                        },
                                                        "type": {
                                                            "description": "string — carfax or autocheck",
                                                            "type": "string"
                                                        },
                                                        "report_url": {
                                                            "description": "string — permanent link to the report",
                                                            "type": "string"
                                                        },
                                                        "pdf_url": {
                                                            "description": "string|null — direct PDF link, null when only the HTML report is available",
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "vehicle": {
                                                            "description": "string — vehicle description, empty when unavailable",
                                                            "type": "string"
                                                        },
                                                        "generated_at": {
                                                            "description": "string — the REAL ISO 8601 date the report was generated",
                                                            "type": "string"
                                                        },
                                                        "age_days": {
                                                            "description": "integer — how old the report is in days (0 = just generated)",
                                                            "type": "integer"
                                                        },
                                                        "fresh": {
                                                            "description": "boolean — true if it was generated on this call",
                                                            "type": "boolean"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "vin": "1HGCM82633A004352",
                                        "type": "carfax",
                                        "report_url": "https://codeauctions.com/report/a1b2c3d4e5/",
                                        "pdf_url": "https://codeauctions.com/report/a1b2c3d4e5/Report-1HGCM82633A004352.pdf",
                                        "vehicle": "2019 Honda Accord EX-L",
                                        "generated_at": "2026-08-29T14:03:11Z",
                                        "age_days": 0,
                                        "fresh": true
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter` · `bad_vin` · `idempotency_reused`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error` · `provider_unavailable` · `provider_bad_response` · `storage_unavailable` · `storage_failed`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "`no_credits`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "`vin_busy` · `in_progress` · `credits_busy`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "`provider_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "`provider_empty`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "`module_disabled`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "vin": {
                                        "type": "string",
                                        "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
                                        "example": "1HGCM82633A004352",
                                        "description": "Vehicle Identification Number (VIN), 17 characters."
                                    },
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "carfax",
                                            "autocheck"
                                        ],
                                        "default": "carfax",
                                        "example": "carfax",
                                        "description": "Which report provider to use."
                                    }
                                },
                                "required": [
                                    "vin"
                                ]
                            },
                            "example": {
                                "vin": "1HGCM82633A004352",
                                "type": "carfax"
                            }
                        }
                    }
                }
            }
        },
        "/reserve/availability": {
            "post": {
                "operationId": "reserveAvailability",
                "summary": "Show reserve availability badges",
                "description": "Batch results-page badges: availability only, never an amount. Use Copart Lot Numbers or IAAI Stock Numbers, not IAAI VehicleDetail URL IDs or VINs. Keep the same auction and identifier for a later reveal. Real batch results require an active LIVE API key with reserve:read, a purchased Seller Reserve API request package (from $100.00) funded with verified wallet top-ups in the active payment environment, and a positive available request balance. Verified Sandbox top-ups can exercise the same flow while Sandbox checkout is enabled; Sandbox and Live checkout have separate Seller Reserve balances. Currently free; access stops at zero requests. Maximum 50 lots from one auction per call; 6 calls per minute per account. null means unknown.",
                "tags": [
                    "reserve"
                ],
                "x-required-scope": "reserve:read",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                        "auction",
                                                        "lots"
                                                    ],
                                                    "properties": {
                                                        "auction": {
                                                            "type": "string",
                                                            "enum": [
                                                                "copart",
                                                                "iaai"
                                                            ]
                                                        },
                                                        "lots": {
                                                            "type": "array",
                                                            "minItems": 1,
                                                            "maxItems": 50,
                                                            "items": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                    "lot",
                                                                    "has_reserve"
                                                                ],
                                                                "properties": {
                                                                    "lot": {
                                                                        "type": "string",
                                                                        "pattern": "^[0-9]{1,12}$(?![\\s\\S])",
                                                                        "description": "Copart: displayed Lot Number. IAAI: displayed Stock # / Stock Number, not the VehicleDetail URL ID. Use the same numeric string for availability and reveal; preserve leading zeros. URLs and VINs are not supported."
                                                                    },
                                                                    "has_reserve": {
                                                                        "type": [
                                                                            "boolean",
                                                                            "null"
                                                                        ]
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "auction": "copart",
                                        "lots": [
                                            {
                                                "lot": "12345678",
                                                "has_reserve": true
                                            },
                                            {
                                                "lot": "87654321",
                                                "has_reserve": false
                                            }
                                        ]
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "`reserve_funding_required` · `reserve_no_credits`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "`reserve_busy`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "`reserve_unavailable`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "`rate_limited`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "auction": {
                                        "type": "string",
                                        "enum": [
                                            "copart",
                                            "iaai"
                                        ],
                                        "example": "copart",
                                        "description": "Auction identifier."
                                    },
                                    "lots": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "pattern": "^[0-9]{1,12}$(?![\\s\\S])",
                                            "example": "12345678"
                                        },
                                        "maxItems": 50,
                                        "minItems": 1,
                                        "example": [
                                            "12345678",
                                            "87654321"
                                        ],
                                        "description": "1–50 Copart Lot Number or IAAI Stock Number strings from the selected auction. Send separate calls for each auction. IAAI VehicleDetail URL IDs and VINs are not accepted identifiers."
                                    }
                                },
                                "required": [
                                    "auction",
                                    "lots"
                                ]
                            },
                            "example": {
                                "auction": "copart",
                                "lots": [
                                    "12345678",
                                    "87654321"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/reserve/balance": {
            "get": {
                "operationId": "reserveBalance",
                "summary": "Read the Seller Reserve API balance",
                "description": "Free. Check remaining prepaid requests, the unrevealed-result counter and current packages. Add wallet funds in Billing, then buy a listed package in the Seller Reserve API module. Packages use verified wallet top-ups in the active payment environment. Verified Sandbox top-ups support the complete workflow during Sandbox checkout. Sandbox and Live checkout have separate Seller Reserve balances; this endpoint shows the active environment balance. price_per_reveal_usd is the nominal base rate, not a charge applied to each call; use packages for purchase prices.",
                "tags": [
                    "reserve"
                ],
                "x-required-scope": "reserve:read",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                        "requests_remaining",
                                                        "unrevealed_in_cycle",
                                                        "batch_enabled",
                                                        "min_topup_usd",
                                                        "price_per_reveal_usd",
                                                        "pricing_model",
                                                        "packages"
                                                    ],
                                                    "properties": {
                                                        "requests_remaining": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "unrevealed_in_cycle": {
                                                            "type": "integer",
                                                            "minimum": 0,
                                                            "maximum": 9
                                                        },
                                                        "batch_enabled": {
                                                            "type": "boolean"
                                                        },
                                                        "min_topup_usd": {
                                                            "type": "string",
                                                            "pattern": "^[0-9]+\\.[0-9]{2}$",
                                                            "description": "Current lowest package price in USD.",
                                                            "example": "100.00"
                                                        },
                                                        "price_per_reveal_usd": {
                                                            "type": "string",
                                                            "pattern": "^[0-9]+\\.[0-9]{2}$",
                                                            "description": "Compatibility field: nominal base request rate in USD. Package rates vary; this is not a per-call wallet debit.",
                                                            "example": "0.30"
                                                        },
                                                        "pricing_model": {
                                                            "type": "string",
                                                            "const": "prepaid_requests"
                                                        },
                                                        "packages": {
                                                            "type": "array",
                                                            "minItems": 1,
                                                            "items": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                    "slug",
                                                                    "name",
                                                                    "price_usd",
                                                                    "requests",
                                                                    "unit_price_usd"
                                                                ],
                                                                "properties": {
                                                                    "slug": {
                                                                        "type": "string"
                                                                    },
                                                                    "name": {
                                                                        "type": "string"
                                                                    },
                                                                    "price_usd": {
                                                                        "type": "string",
                                                                        "pattern": "^[0-9]+\\.[0-9]{2}$"
                                                                    },
                                                                    "requests": {
                                                                        "type": "integer",
                                                                        "minimum": 1
                                                                    },
                                                                    "unit_price_usd": {
                                                                        "type": "string",
                                                                        "pattern": "^[0-9]+\\.[0-9]{2}$",
                                                                        "description": "Nominal package request rate. Whole request quantities are rounded in the customer's favor."
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "requests_remaining": 334,
                                        "unrevealed_in_cycle": 0,
                                        "batch_enabled": true,
                                        "min_topup_usd": "100.00",
                                        "price_per_reveal_usd": "0.30",
                                        "pricing_model": "prepaid_requests",
                                        "packages": [
                                            {
                                                "slug": "starter",
                                                "name": "Starter",
                                                "price_usd": "100.00",
                                                "requests": 334,
                                                "unit_price_usd": "0.30"
                                            },
                                            {
                                                "slug": "growth",
                                                "name": "Growth",
                                                "price_usd": "250.00",
                                                "requests": 1000,
                                                "unit_price_usd": "0.25"
                                            },
                                            {
                                                "slug": "scale",
                                                "name": "Scale",
                                                "price_usd": "500.00",
                                                "requests": 2500,
                                                "unit_price_usd": "0.20"
                                            }
                                        ]
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "`reserve_funding_required` · `reserve_no_credits`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "`reserve_busy`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "`reserve_unavailable`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "`rate_limited`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    }
                }
            }
        },
        "/reserve/reveal": {
            "post": {
                "operationId": "revealReservePrice",
                "summary": "Reveal a lot's reserve price",
                "description": "Use on an explicit LOT DETAIL action. Send the same auction and identifier used for availability: Copart Lot Number or IAAI Stock Number. The IAAI VehicleDetail URL ID is a different identifier; VIN lookup is not supported. A successful reveal uses 1 prepaid request. Every 10 valid unrevealed results use 1 request; technical errors do not count. Package size determines the purchase rate. billing.credits_used reports request consumption; billing.amount_usd is 0.00 because the package was already paid for. Send a unique Idempotency-Key and reuse it on retries with identical parameters; a replay adds no second debit. 10 calls per minute per account and 2 concurrent requests. Use a 75-second timeout. The same consumption rules apply during Sandbox checkout using verified Sandbox top-ups; Seller Reserve balances are separate in Sandbox and Live checkout.",
                "tags": [
                    "reserve"
                ],
                "x-required-scope": "reserve:write",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                        "auction",
                                                        "lot",
                                                        "revealed",
                                                        "reserve_price",
                                                        "currency"
                                                    ],
                                                    "properties": {
                                                        "auction": {
                                                            "type": "string",
                                                            "enum": [
                                                                "copart",
                                                                "iaai"
                                                            ]
                                                        },
                                                        "lot": {
                                                            "type": "string",
                                                            "pattern": "^[0-9]{1,12}$(?![\\s\\S])",
                                                            "description": "Copart: displayed Lot Number. IAAI: displayed Stock # / Stock Number, not the VehicleDetail URL ID. Use the same numeric string for availability and reveal; preserve leading zeros. URLs and VINs are not supported."
                                                        },
                                                        "revealed": {
                                                            "type": "boolean"
                                                        },
                                                        "reserve_price": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "pattern": "^[0-9]{1,10}\\.[0-9]{2}$(?![\\s\\S])"
                                                        },
                                                        "currency": {
                                                            "type": "string",
                                                            "enum": [
                                                                "USD"
                                                            ]
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": {
                                    "data": {
                                        "auction": "copart",
                                        "lot": "12345678",
                                        "revealed": true,
                                        "reserve_price": "4500.00",
                                        "currency": "USD"
                                    },
                                    "mode": "live"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter` · `idempotency_reused`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "`reserve_funding_required` · `reserve_no_credits`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "`reserve_busy` · `in_progress` · `credits_busy`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "`reserve_unavailable`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "`rate_limited`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "auction": {
                                        "type": "string",
                                        "enum": [
                                            "copart",
                                            "iaai"
                                        ],
                                        "example": "copart",
                                        "description": "Auction identifier."
                                    },
                                    "lot": {
                                        "type": "string",
                                        "pattern": "^[0-9]{1,12}$(?![\\s\\S])",
                                        "example": "12345678",
                                        "description": "Copart: displayed Lot Number. IAAI: displayed Stock # / Stock Number, not the VehicleDetail URL ID. Use the same numeric string for availability and reveal; preserve leading zeros. URLs and VINs are not supported."
                                    }
                                },
                                "required": [
                                    "auction",
                                    "lot"
                                ]
                            },
                            "example": {
                                "auction": "copart",
                                "lot": "12345678"
                            }
                        }
                    }
                }
            }
        },
        "/ping": {
            "get": {
                "operationId": "ping",
                "summary": "Check that your key works",
                "description": "Spends nothing and calls no provider. It is everyone's first curl.",
                "tags": [
                    "system"
                ],
                "x-required-scope": "",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "pong": {
                                                            "description": "boolean",
                                                            "type": "boolean"
                                                        },
                                                        "mode": {
                                                            "description": "string — live or test",
                                                            "type": "string"
                                                        },
                                                        "account_id": {
                                                            "description": "integer",
                                                            "type": "integer"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": null
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        },
        "/account": {
            "get": {
                "operationId": "getAccount",
                "summary": "Balance, credits and tier of your account",
                "description": "Everything you need to know whether you can keep operating. Spends nothing.",
                "tags": [
                    "system"
                ],
                "x-required-scope": "account:read",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Correcto.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Respuesta"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "balance_usd": {
                                                            "description": "string",
                                                            "type": "string"
                                                        },
                                                        "carfax_credits": {
                                                            "description": "integer",
                                                            "type": "integer"
                                                        },
                                                        "tier": {
                                                            "description": "object — your tier and how far the next one is",
                                                            "type": "object"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                },
                                "example": null
                            }
                        }
                    },
                    "400": {
                        "description": "`invalid_request` · `missing_parameter` · `invalid_parameter`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "`internal_error`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "description": "Your API key. `rep_live_...` for production, `rep_test_...` for testing."
            }
        },
        "schemas": {
            "Respuesta": {
                "type": "object",
                "required": [
                    "data"
                ],
                "properties": {
                    "data": {
                        "description": "The result. Its shape depends on the endpoint."
                    },
                    "billing": {
                        "$ref": "#/components/schemas/Cobro"
                    },
                    "mode": {
                        "type": "string",
                        "enum": [
                            "live",
                            "test"
                        ]
                    },
                    "request_id": {
                        "type": "string",
                        "example": "req_7f3a9c21e8b04d5f9a1c",
                        "description": "Store it: with this we find your exact request if you need help."
                    }
                }
            },
            "Cobro": {
                "type": "object",
                "properties": {
                    "charged": {
                        "type": "boolean",
                        "description": "Whether this call consumed money, credits or prepaid requests. True does not necessarily mean a wallet debit."
                    },
                    "unit": {
                        "type": "string",
                        "example": "report"
                    },
                    "quantity": {
                        "type": "integer"
                    },
                    "credits_used": {
                        "type": "integer",
                        "minimum": 0,
                        "description": "Prepaid credits or request units consumed by this call. Seller Reserve uses 1 request per successful reveal or group of 10 completed unrevealed results."
                    },
                    "amount_usd": {
                        "type": "string",
                        "example": "0.00",
                        "description": "Wallet debit in USD for this call, when reported. Seller Reserve prepaid consumption reports 0.00 because its package was already paid for; inspect credits_used for request consumption."
                    },
                    "reason": {
                        "type": "string",
                        "description": "Optional explanation when charged is false. A zero-cost prepaid result may report credits_used:0 instead."
                    }
                }
            },
            "Error": {
                "type": "object",
                "required": [
                    "error"
                ],
                "properties": {
                    "error": {
                        "type": "object",
                        "required": [
                            "type",
                            "code",
                            "message"
                        ],
                        "properties": {
                            "type": {
                                "type": "string",
                                "enum": [
                                    "invalid_request_error",
                                    "authentication_error",
                                    "billing_error",
                                    "rate_limit_error",
                                    "api_error"
                                ]
                            },
                            "code": {
                                "type": "string",
                                "description": "Stable. This is what your code should look at."
                            },
                            "message": {
                                "type": "string",
                                "description": "For a person to read. It can change."
                            },
                            "param": {
                                "type": "string",
                                "description": "The failing parameter, when the problem is one specific one."
                            },
                            "details": {
                                "type": "object",
                                "description": "Useful data for the case: credits available, packages, dates…"
                            },
                            "doc_url": {
                                "type": "string",
                                "format": "uri"
                            }
                        }
                    },
                    "mode": {
                        "type": "string"
                    },
                    "request_id": {
                        "type": "string"
                    }
                }
            }
        },
        "responses": {
            "E401": {
                "description": "Not authenticated: the key is missing, invalid or revoked.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "E403": {
                "description": "Not allowed: the key lacks the scope, the IP is not permitted, or the account is suspended.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "E429": {
                "description": "Too many requests. Wait as long as `Retry-After` says.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            }
        },
        "parameters": {
            "IdempotencyKey": {
                "name": "Idempotency-Key",
                "in": "header",
                "required": true,
                "schema": {
                    "type": "string",
                    "maxLength": 191
                },
                "description": "Unique identifier for the operation. Stops a retry after a network failure from charging you twice."
            }
        }
    }
}