{"components":{"parameters":{"Condition":{"in":"query","name":"condition","schema":{"enum":["new","used"],"type":"string"}},"Cursor":{"description":"Opaque stable pagination cursor returned by the preceding response","in":"query","name":"cursor","schema":{"maxLength":512,"minLength":1,"type":"string"}},"Limit":{"in":"query","name":"limit","schema":{"default":10,"maximum":25,"minimum":1,"type":"integer"}},"Make":{"in":"query","name":"make","schema":{"maxLength":80,"minLength":1,"type":"string"}},"MaxPrice":{"description":"Maximum advertised price in USD, including the documentary fee","in":"query","name":"maxPrice","schema":{"minimum":0,"type":"number"}},"MinPrice":{"description":"Minimum advertised price in USD, including the documentary fee","in":"query","name":"minPrice","schema":{"minimum":0,"type":"number"}},"Model":{"in":"query","name":"model","schema":{"maxLength":120,"minLength":1,"type":"string"}},"Query":{"description":"Lexical year, make, model, trim, stock-number, or VIN query","in":"query","name":"query","schema":{"maxLength":200,"minLength":1,"type":"string"}},"Vin":{"description":"Seventeen-character vehicle identification number","in":"path","name":"vin","required":true,"schema":{"pattern":"^[A-HJ-NPR-Za-hj-npr-z0-9]{17}$","type":"string"}}},"responses":{"InternalError":{"content":{"application/json":{"example":{"error":{"code":"internal_error","message":"The request could not be completed","retryable":false},"schema":"motorinn.error.v1"},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"An unexpected internal failure prevented the request from completing"},"InvalidRequest":{"content":{"application/json":{"example":{"error":{"code":"invalid_request","message":"limit must be between 1 and 25","retryable":false},"schema":"motorinn.error.v1"},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request"},"NotFound":{"content":{"application/json":{"example":{"error":{"code":"not_found","message":"Vehicle not found","retryable":false},"schema":"motorinn.error.v1"},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The requested resource is not active for the resolved site"},"RateLimited":{"content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Request rate limit exceeded","retryable":true},"schema":"motorinn.error.v1"},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request rate limit exceeded","headers":{"Retry-After":{"description":"Seconds until a retry may be attempted","required":true,"schema":{"minimum":1,"type":"integer"}}}},"SourceUnavailable":{"content":{"application/json":{"example":{"error":{"code":"source_unavailable","message":"Public inventory sources are temporarily unavailable","retryable":true},"schema":"motorinn.error.v1"},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"A controlling public source is unavailable, stale, or inconsistent"}},"schemas":{"AvailableOperations":{"additionalProperties":false,"properties":{"cancel":{"type":"boolean"},"confirm":{"type":"boolean"},"hold":{"type":"boolean"},"information":{"type":"boolean"},"liveAvailability":{"type":"boolean"},"request":{"type":"boolean"},"reschedule":{"type":"boolean"}},"required":["information","request","liveAvailability","hold","confirm","reschedule","cancel"],"type":"object"},"CapabilityInformationResponse":{"additionalProperties":false,"properties":{"actionUrl":{"format":"uri","type":"string"},"authoritativeSystem":{"minLength":1,"type":"string"},"availableOperations":{"$ref":"#/components/schemas/AvailableOperations"},"capabilityState":{"enum":["information_only","external_handoff","requested_only"],"type":"string"},"domain":{"enum":["service","parts"],"type":"string"},"notice":{"minLength":1,"type":"string"},"providerTransition":{"$ref":"#/components/schemas/ProviderTransition"},"schema":{"const":"motorinn.capabilityInformation.v1","type":"string"},"serviceLocation":{"$ref":"#/components/schemas/ServiceLocation"},"site":{"$ref":"#/components/schemas/SiteIdentity"},"stableHandoffUrl":{"format":"uri","type":"string"}},"required":["schema","site","domain","capabilityState","actionUrl","authoritativeSystem","availableOperations","notice"],"type":"object"},"ErrorResponse":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"enum":["invalid_request","not_found","rate_limited","source_unavailable","internal_error"],"type":"string"},"message":{"minLength":1,"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"type":"object"},"schema":{"const":"motorinn.error.v1","type":"string"}},"required":["schema","error"],"type":"object"},"Location":{"additionalProperties":false,"properties":{"brandContext":{"$ref":"#/components/schemas/SiteIdentity"},"contactResourceUrl":{"format":"uri","type":"string"},"contacts":{"items":{"$ref":"#/components/schemas/PublicContact"},"type":"array"},"location":{"$ref":"#/components/schemas/ServiceLocation"}},"required":["location","brandContext","contactResourceUrl","contacts"],"type":"object"},"LocationResponse":{"additionalProperties":false,"properties":{"locations":{"items":{"$ref":"#/components/schemas/Location"},"minItems":1,"type":"array"},"schema":{"const":"motorinn.locations.v1","type":"string"},"site":{"$ref":"#/components/schemas/SiteIdentity"}},"required":["schema","site","locations"],"type":"object"},"Money":{"additionalProperties":false,"properties":{"amount":{"pattern":"^[0-9]+\\.[0-9]{2}$","type":"string"},"currency":{"const":"USD","type":"string"},"documentaryFeeAmount":{"pattern":"^[0-9]+\\.[0-9]{2}$","type":"string"},"includesDocumentaryFee":{"const":true,"type":"boolean"},"sourceField":{"description":"Winning DealerVault input field. This does not certify advertised cash price or conditional-price semantics.","enum":["internet_price","list_price","msrp"],"type":"string"}},"required":["amount","currency","includesDocumentaryFee","documentaryFeeAmount","sourceField"],"type":"object"},"ProviderTransition":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"configured":{"type":"boolean"},"locationBindingVerified":{"type":"boolean"},"locationKey":{"const":"carroll","type":"string"},"status":{"enum":["planned","active"],"type":"string"},"targetProvider":{"const":"Xtime Schedule by Cox Automotive","type":"string"}},"required":["targetProvider","locationKey","status","configured","locationBindingVerified","active"],"type":"object"},"PublicContact":{"additionalProperties":false,"properties":{"department":{"enum":["sales","service","parts","general"],"type":"string"},"number":{"type":["string","null"]},"sourceUrl":{"format":"uri","type":"string"},"status":{"enum":["canonical","unresolved"],"type":"string"}},"required":["department","number","status","sourceUrl"],"type":"object"},"ServiceInformationResponse":{"allOf":[{"$ref":"#/components/schemas/CapabilityInformationResponse"},{"properties":{"serviceLocation":{"$ref":"#/components/schemas/ServiceLocation"}},"required":["serviceLocation","stableHandoffUrl","providerTransition"],"type":"object"}]},"ServiceLocation":{"additionalProperties":false,"properties":{"address":{"additionalProperties":false,"properties":{"addressCountry":{"const":"US","type":"string"},"addressLocality":{"const":"Carroll","type":"string"},"addressRegion":{"const":"IA","type":"string"},"postalCode":{"const":"51401","type":"string"},"streetAddress":{"const":"1526 Le Clark Road","type":"string"}},"required":["streetAddress","addressLocality","addressRegion","postalCode","addressCountry"],"type":"object"},"key":{"const":"carroll","type":"string"},"name":{"const":"Carroll","type":"string"},"timeZone":{"const":"America/Chicago","type":"string"}},"required":["key","name","address","timeZone"],"type":"object"},"SiteIdentity":{"additionalProperties":false,"properties":{"canonicalUrl":{"format":"uri","type":"string"},"host":{"enum":["ai.motorinnautogroup.com","ai.motorinnofcarroll.com","ai.motorinntoyotaofcarroll.com"],"type":"string"},"key":{"enum":["motorinnautogroup","motorinnchevy","motorinntoyota"],"type":"string"},"name":{"minLength":1,"type":"string"}},"required":["key","name","host","canonicalUrl"],"type":"object"},"SourceFreshness":{"additionalProperties":false,"properties":{"dealerVaultTimestampBasis":{"const":"s3_object_last_modified","description":"S3 object delivery timestamp used by the DealerVault age gate; not an upstream row update timestamp.","type":"string"},"dealerVaultUpdatedAt":{"format":"date-time","type":"string"},"publicCatalogTimestampBasis":{"const":"http_last_modified_or_retrieval_time","description":"HTTP Last-Modified when present, otherwise the retrieval time used by the catalog age gate.","type":"string"},"publicCatalogUpdatedAt":{"format":"date-time","type":"string"}},"required":["dealerVaultUpdatedAt","publicCatalogUpdatedAt","dealerVaultTimestampBasis","publicCatalogTimestampBasis"],"type":"object"},"Vehicle":{"additionalProperties":false,"properties":{"advertisedPrice":{"oneOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"availability":{"minLength":1,"type":"string"},"bodyStyle":{"type":["string","null"]},"canonicalUrl":{"format":"uri","type":"string"},"condition":{"enum":["new","used"],"type":"string"},"engine":{"type":["string","null"]},"exteriorColor":{"type":["string","null"]},"fuelType":{"type":["string","null"]},"id":{"minLength":1,"type":"string"},"imageUrl":{"format":"uri","type":["string","null"]},"interiorColor":{"type":["string","null"]},"make":{"minLength":1,"type":"string"},"model":{"minLength":1,"type":"string"},"site":{"$ref":"#/components/schemas/SiteIdentity"},"sourceFreshness":{"$ref":"#/components/schemas/SourceFreshness"},"stockNumber":{"minLength":1,"type":"string"},"transmission":{"type":["string","null"]},"trim":{"type":["string","null"]},"vin":{"pattern":"^[A-HJ-NPR-Z0-9]{17}$","type":"string"},"year":{"maximum":2200,"minimum":1886,"type":"integer"}},"required":["id","vin","stockNumber","year","make","model","condition","advertisedPrice","availability","site","canonicalUrl","sourceFreshness"],"type":"object"},"VehicleResponse":{"additionalProperties":false,"properties":{"schema":{"const":"motorinn.vehicle.v1","type":"string"},"site":{"$ref":"#/components/schemas/SiteIdentity"},"vehicle":{"$ref":"#/components/schemas/Vehicle"}},"required":["schema","site","vehicle"],"type":"object"},"VehicleSearchResponse":{"additionalProperties":false,"properties":{"nextCursor":{"type":["string","null"]},"resultCount":{"minimum":0,"type":"integer"},"schema":{"const":"motorinn.vehicleSearch.v1","type":"string"},"site":{"$ref":"#/components/schemas/SiteIdentity"},"sourceFreshness":{"$ref":"#/components/schemas/SourceFreshness"},"vehicles":{"items":{"$ref":"#/components/schemas/Vehicle"},"maxItems":25,"type":"array"}},"required":["schema","site","resultCount","nextCursor","sourceFreshness","vehicles"],"type":"object"}}},"info":{"contact":{"name":"Motor Inn Auto Group","url":"https://www.motorinnautogroup.com/"},"description":"This contract exposes only public, read-only capabilities backed by the\nexisting Motor Inn AI mirrors. Inventory is returned only after the\nDealerVault/public-catalog match gate passes. Service and parts responses\ndescribe the current customer journey; they do not create or confirm a\ntransaction.\n\nA request, external handoff, provisional hold, and authoritative\nconfirmation are distinct states. This API currently implements no hold or\nconfirmation operation.\n","license":{"name":"Proprietary"},"summary":"Source-backed, read-only access to public Motor Inn dealership information.","title":"Motor Inn Agent Access API","version":"1.0.0-draft.2"},"openapi":"3.1.2","paths":{"/api/v1/locations":{"get":{"operationId":"listLocations","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}},"description":"One Carroll location with contact routing for the selected brand site"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/SourceUnavailable"}},"summary":"Get the Carroll physical location and brand-specific contact resource","tags":["Locations"]}},"/api/v1/parts-information":{"get":{"operationId":"getPartsInformation","responses":{"200":{"content":{"application/json":{"example":{"actionUrl":"https://www.motorinnofcarroll.com/orderparts.aspx","authoritativeSystem":"DealerOn parts request form","availableOperations":{"cancel":false,"confirm":false,"hold":false,"information":true,"liveAvailability":false,"request":false,"reschedule":false},"capabilityState":"requested_only","domain":"parts","notice":"The linked form requests staff follow-up and is not a stock check, cart, or confirmed order.","schema":"motorinn.capabilityInformation.v1","site":{"canonicalUrl":"https://www.motorinnofcarroll.com","host":"ai.motorinnofcarroll.com","key":"motorinnchevy","name":"Motor Inn of Carroll"}},"schema":{"$ref":"#/components/schemas/CapabilityInformationResponse"}}},"description":"Parts information without catalog or order authority"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/SourceUnavailable"}},"summary":"Get public parts information and the current request journey","tags":["Parts"]}},"/api/v1/service-information":{"get":{"operationId":"getServiceInformation","responses":{"200":{"content":{"application/json":{"examples":{"chevroletExternalScheduler":{"value":{"actionUrl":"https://www.motorinnofcarroll.com/serviceappmt.aspx","authoritativeSystem":"GM Online Service Scheduling","availableOperations":{"cancel":false,"confirm":false,"hold":false,"information":true,"liveAvailability":false,"request":false,"reschedule":false},"capabilityState":"external_handoff","domain":"service","notice":"Complete scheduling in the linked GM customer journey.","providerTransition":{"active":false,"configured":false,"locationBindingVerified":false,"locationKey":"carroll","status":"planned","targetProvider":"Xtime Schedule by Cox Automotive"},"schema":"motorinn.capabilityInformation.v1","serviceLocation":{"address":{"addressCountry":"US","addressLocality":"Carroll","addressRegion":"IA","postalCode":"51401","streetAddress":"1526 Le Clark Road"},"key":"carroll","name":"Carroll","timeZone":"America/Chicago"},"site":{"canonicalUrl":"https://www.motorinnofcarroll.com","host":"ai.motorinnofcarroll.com","key":"motorinnchevy","name":"Motor Inn of Carroll"},"stableHandoffUrl":"https://ai.motorinnofcarroll.com/service-scheduler"}},"toyotaRequestOnly":{"value":{"actionUrl":"https://www.motorinntoyotaofcarroll.com/serviceappmt.aspx","authoritativeSystem":"DealerOn appointment request form","availableOperations":{"cancel":false,"confirm":false,"hold":false,"information":true,"liveAvailability":false,"request":false,"reschedule":false},"capabilityState":"requested_only","domain":"service","notice":"The linked form requests staff follow-up and is not a confirmed appointment.","providerTransition":{"active":false,"configured":false,"locationBindingVerified":false,"locationKey":"carroll","status":"planned","targetProvider":"Xtime Schedule by Cox Automotive"},"schema":"motorinn.capabilityInformation.v1","serviceLocation":{"address":{"addressCountry":"US","addressLocality":"Carroll","addressRegion":"IA","postalCode":"51401","streetAddress":"1526 Le Clark Road"},"key":"carroll","name":"Carroll","timeZone":"America/Chicago"},"site":{"canonicalUrl":"https://www.motorinntoyotaofcarroll.com","host":"ai.motorinntoyotaofcarroll.com","key":"motorinntoyota","name":"Motor Inn Toyota Of Carroll"},"stableHandoffUrl":"https://ai.motorinntoyotaofcarroll.com/service-scheduler"}}},"schema":{"$ref":"#/components/schemas/ServiceInformationResponse"}}},"description":"Service information without transaction authority"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/SourceUnavailable"}},"summary":"Get public service information and the current customer journey","tags":["Service"]}},"/api/v1/vehicles":{"get":{"description":"Results are site-isolated and include only the public projection of\nunits that match the current DealerVault export and public DealerOn\ncatalog. Missing or stale controlling sources fail closed.\n","operationId":"searchVehicles","parameters":[{"$ref":"#/components/parameters/Query"},{"$ref":"#/components/parameters/Condition"},{"$ref":"#/components/parameters/Make"},{"$ref":"#/components/parameters/Model"},{"$ref":"#/components/parameters/MinPrice"},{"$ref":"#/components/parameters/MaxPrice"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleSearchResponse"}}},"description":"Active public vehicle results"},"400":{"$ref":"#/components/responses/InvalidRequest"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/SourceUnavailable"}},"summary":"Search active public vehicles for the resolved Motor Inn site","tags":["Vehicles"]}},"/api/v1/vehicles/{vin}":{"get":{"operationId":"getVehicle","parameters":[{"$ref":"#/components/parameters/Vin"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleResponse"}}},"description":"Active public vehicle"},"400":{"$ref":"#/components/responses/InvalidRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/SourceUnavailable"}},"summary":"Get one active public vehicle for the resolved Motor Inn site","tags":["Vehicles"]}},"/openapi.json":{"get":{"operationId":"getOpenApiDocument","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"OpenAPI 3.1.2 document","headers":{"ETag":{"description":"Deterministic representation identifier","schema":{"type":"string"}}}},"500":{"$ref":"#/components/responses/InternalError"}},"summary":"Get the API contract for the resolved Motor Inn site","tags":["Discovery"]}},"/service-scheduler":{"get":{"description":"Redirects to the current authoritative customer journey. Before Xtime activation this remains the existing scheduler; after a valid URL, exact Carroll location verification, and explicit activation it becomes the approved Xtime journey. This operation does not create or confirm an appointment.","operationId":"followServiceSchedulerHandoff","responses":{"302":{"description":"Temporary redirect to the current service scheduling journey","headers":{"Cache-Control":{"description":"Prevent caching across a provider cutover","schema":{"const":"no-store","type":"string"}},"Location":{"description":"Current validated scheduling journey","schema":{"format":"uri","type":"string"}},"Referrer-Policy":{"description":"Prevent the Motor Inn handoff URL from being sent downstream","schema":{"const":"no-referrer","type":"string"}},"X-Robots-Tag":{"description":"Keep the redirect out of search indexes","schema":{"const":"noindex, nofollow","type":"string"}}}},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/SourceUnavailable"}},"summary":"Follow the stable brand-specific Carroll service scheduling handoff","tags":["Service"]}}},"servers":[{"description":"Motor Inn Toyota Of Carroll read-only mirror","url":"https://ai.motorinntoyotaofcarroll.com"}],"tags":[{"name":"Discovery"},{"name":"Vehicles"},{"name":"Locations"},{"name":"Service"},{"name":"Parts"}],"x-motorinn-boundary":{"access":"public-read-only","authoritativeConfirmationImplemented":false,"sourceAuthority":"DealerVault matched to the public DealerOn catalog","transactionsImplemented":false}}