{"info":{"title":"Creature Racing API","version":"3.32.0","description":"Read-only catalog API for Creature Racing, a US retailer of electric motorcycles (e-motos), electric dirt bikes and the parts that fit them.\n\nSearch vehicles and parts, read product details, prices and stock, check which parts fit a vehicle, and estimate shipping. Prices are in US dollars.\n\nAuthentication: none. Every operation here is public and needs no API key or sign-in.\n\nErrors are JSON objects with `type`, `status` and `message`.\n\nTo buy, send the shopper to the product page at `/shop/products/{slug}` on the storefront, or build a cart over the Universal Commerce Protocol from the storefront's `/.well-known/ucp` profile."},"servers":[{"url":"https://api.creatureracing.com"}],"security":[],"externalDocs":{"description":"Creature Racing API guide","url":"https://creatureracing.com/developers"},"openapi":"3.1.1","paths":{"/products/{idOrSlug}":{"get":{"operationId":"publicProduct.get","summary":"Get Public Product by ID or slug","tags":["PublicProduct"],"parameters":[{"name":"idOrSlug","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"Product UUID or URL slug"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product UUID"},"title":{"type":"string","description":"Product title"},"slug":{"type":"string","description":"URL-safe identifier derived from title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Product description"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional editorial tagline shown under the product title (e.g., 'Carbon fiber edition')."},"seoTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Hand-written storefront page title. null means the storefront generates one."},"seoDescription":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Hand-written storefront meta description. null means the storefront generates one."},"category":{"enum":["vehicle","part","warranty"],"type":"string","description":"Product category"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Option UUID"},"name":{"type":"string","description":"Option name (e.g. 'Color', 'Size')"},"shopifyOptionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify option ID, set after sync"},"values":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Option value UUID"},"value":{"type":"string","description":"Option value text (e.g. 'Red', 'Large')"},"shopifyValueId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify option value ID, set after sync"}},"required":["id","value","shopifyValueId"],"description":"Product option value"},"description":"Option values"}},"required":["id","name","shopifyOptionId","values"],"description":"Product option with values"},"description":"Product options with values"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product image pivot row UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to files.id. Null for legacy Shopify-originated images that predate the unified file pipeline."},"variantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to product_variants.id when this image is scoped to a single variant; null for product-level images."},"type":{"enum":["gallery","highlight"],"type":"string","description":"Image role within the product (gallery vs highlight)."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based display order within the (product, type) bucket."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolved public URL. Sourced from R2 when fileId is set; null when the underlying file is missing or unresolved."},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional alt text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial title (used for highlight images)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial description (used for highlight images)."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","productId","fileId","variantId","type","position","url","altText","title","description","createdAt","updatedAt"],"description":"Product image pivot record"},"description":"Product images from Shopify"},"variants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Variant UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"shopifyVariantId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify variant ID"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product image pivot row UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to files.id. Null for legacy Shopify-originated images that predate the unified file pipeline."},"variantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to product_variants.id when this image is scoped to a single variant; null for product-level images."},"type":{"enum":["gallery","highlight"],"type":"string","description":"Image role within the product (gallery vs highlight)."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based display order within the (product, type) bucket."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolved public URL. Sourced from R2 when fileId is set; null when the underlying file is missing or unresolved."},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional alt text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial title (used for highlight images)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial description (used for highlight images)."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","productId","fileId","variantId","type","position","url","altText","title","description","createdAt","updatedAt"],"description":"Product image pivot record"},"description":"Images scoped to this variant. Resolved from product_images rows where variant_id matches. Empty array when none."},"title":{"type":"string","description":"Variant display name, auto-derived from selectedOptions via DB trigger"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Stock keeping unit"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Variant price in USD"},"compareAtPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Original/list price in USD shown as a strikethrough on sale markdowns. Null when the variant is not on sale."},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current inventory quantity"},"etaInformation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Rough ETA text"},"estimatedArrivalDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Structured estimated arrival/in-stock date (ISO YYYY-MM-DD). Drives the storefront ETA display and the Google/Meta feed availability_date. Required for pre-order variants and for backorderable variants at zero stock; null otherwise. Optional during rollout (the backend always populates it); consumers treat a missing value as null."},"additionalInformation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-form plain-text info shown on the storefront for this variant. Storefront-only — never synced to Shopify. Null when unset."},"selectedOptions":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"optionId":{"type":"string","format":"uuid","description":"FK to product_options.id"},"optionName":{"type":"string","description":"Option name (e.g. 'Color')"},"position":{"type":"integer","minimum":1,"maximum":3,"description":"1-based option position within the product"},"valueId":{"type":"string","format":"uuid","description":"FK to product_option_values.id"},"value":{"type":"string","description":"Option value text (e.g. 'Red')"}},"required":["optionId","optionName","position","valueId","value"],"description":"A variant's selected value for one of its product's options"},"description":"Option values this variant is the intersection of, in position order"},"lastInventoryPushedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Timestamp of our last inventory push to Shopify. Used by the inventory_levels/update webhook handler to detect and skip our own echoes."},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Admin-controlled display order within the product (0-based, ascending; lower sorts first)."},"status":{"enum":["live","coming_soon","unlisted","discontinued"],"type":"string","description":"What customers can do with the variant. live: shown and can be ordered. coming_soon: shown, cannot be ordered yet; isComingSoonPriceVisible decides whether its price is published. unlisted: hidden from the option picker and listings, can be ordered by direct link. discontinued: shown, can never be ordered."},"isComingSoonPriceVisible":{"type":"boolean","description":"Only read while status is coming_soon, where it picks the Coming Soon price treatment: false (the default) omits price and compareAtPrice from public responses so the storefront renders 'Coming Soon' in the price line, true publishes the stored price instead. Never affects purchasability. Optional during rollout (the backend always populates it from the NOT NULL column); consumers treat a missing value as false."},"isPreOrder":{"type":"boolean","description":"When true, this variant is sold as a deposit-based pre-order via a Shopify selling plan. Optional during rollout (the backend always populates it); consumers treat a missing value as false."},"preOrderDepositAmount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Fixed dollar deposit charged at checkout while isPreOrder is true. Null when pre-order is off."},"sellingPlanId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify SellingPlan GID for the pre-order deposit plan. The storefront attaches it to the cart line to trigger the deposit checkout. Null when pre-order is off."},"activeSale":{"anyOf":[{"type":"object","properties":{"saleId":{"type":"string","format":"uuid"},"name":{"type":"string"},"endsAt":{"type":"string","format":"date-time"},"salePrice":{"type":"number"},"saleCompareAtPrice":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["saleId","name","endsAt","salePrice","saleCompareAtPrice"],"description":"Active sale override attached to a variant read"},{"type":"null"}],"description":"Active sale override on this variant, if any. Base price stays canonical; this is display metadata."},"upcomingSale":{"anyOf":[{"type":"object","properties":{"saleId":{"type":"string","format":"uuid"},"name":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"salePrice":{"type":"number"}},"required":["saleId","name","startsAt","endsAt","salePrice"],"description":"Nearest scheduled (not yet active) sale override attached to a variant read"},{"type":"null"}],"description":"Nearest scheduled (not yet started) sale override on this variant, if any."},"shippingDetailsOverride":{"anyOf":[{"type":"object","properties":{"shippingProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Shipping profile pinned to this variant. null means the variant follows its product's default profile."},"pickupLocationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Freight origin pinned to this variant. null means the variant ships from its product's default pickup location."},"bookingPolicy":{"enum":["quote_only","auto_book"],"type":"string","description":"Freight automation for legs carrying this variant: quote_only (staff select and dispatch) or auto_book (draft booked with the carrier platform, no quote)."},"pickupFeeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"In-store pickup fee per unit in integer cents. null means the category default applies."},"packageWeightPounds":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Gross shipping weight in pounds, measured per variant. null when not yet measured."},"packageLengthInches":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Outer package length in inches. null when not yet measured."},"packageWidthInches":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Outer package width in inches. null when not yet measured."},"packageHeightInches":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Outer package height in inches. null when not yet measured."},"freightClass":{"anyOf":[{"enum":["50","55","60","65","70","77.5","85","92.5","100","110","125","150","175","200","250","300","400","500"],"type":"string"},{"type":"null"}],"description":"NMFC freight class declared on LTL quotes. null = undeclared; the quote commodity omits the field."},"packagingType":{"anyOf":[{"enum":["crate","pallet","box","vehicle"],"type":"string"},{"type":"null"}],"description":"How the product physically ships. null = undeclared; the quote commodity omits the field."}},"required":["shippingProfileId","pickupLocationId","bookingPolicy","pickupFeeCents","packageWeightPounds","packageLengthInches","packageWidthInches","packageHeightInches","freightClass","packagingType"],"description":"A complete set of shipping values: policy and package. On a variant it replaces the product default wholesale; a null measurement means unmeasured for this variant, never inherited."},{"type":"null"}],"description":"This variant's own shipping values, or null when it ships as the product default."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","productId","shopifyVariantId","images","title","sku","price","compareAtPrice","quantity","etaInformation","additionalInformation","selectedOptions","lastInventoryPushedAt","sortOrder","status","activeSale","upcomingSale","shippingDetailsOverride","createdAt","updatedAt"],"description":"Product variant record"},"description":"Product variants with price/inventory"},"minPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Min variant price (denormalized)"},"isInStock":{"type":"boolean","description":"Whether any live variant has stock."},"isInventoryTracked":{"type":"boolean","description":"When false, the product is virtual / unlimited (e.g. a warranty): quantity is meaningless and availability always resolves to in_stock. The storefront uses this to avoid marking a zero-quantity variant as backordered/unavailable."},"availability":{"enum":["in_stock","backorder","unavailable"],"type":"string","description":"Storefront-facing availability state."},"displayState":{"enum":["in_stock","backorder","unavailable","coming_soon","pre_order","discontinued"],"type":"string","description":"Storefront presentation state layering discontinued and 'coming soon' over inventory availability. discontinued for a discontinued product; coming_soon only when every variant is coming soon; otherwise mirrors availability. Optional during rollout (the backend always populates it); consumers fall back to availability when absent."},"stockPolicy":{"enum":["backorderable","in_stock_only"],"type":"string","description":"Drives buyability when out of stock. Storefront uses this to decide whether to show a backorder CTA vs. an unavailable state when isInStock is false."},"shopifyProductId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify product ID"},"isIndexable":{"type":"boolean","description":"Whether search engines may index the page. True for a live or discontinued product with at least one variant that is not unlisted; false for an unlisted product, or one whose every variant is unlisted, which opens only by its link."},"replacement":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string","description":"Product URL slug"},"title":{"type":"string","description":"Product title"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"First gallery image; null when the product has none"}},"required":["slug","title","imageUrl"],"description":"A live product that replaces a discontinued one"},{"type":"null"}],"description":"The product that replaces a discontinued one. Null when there is none, or when it is not live or has no live or coming_soon variant."},"shelves":{"type":"array","items":{"type":"string"},"description":"Slugs of the shelves this product belongs to."},"jakesTakes":{"anyOf":[{"type":"object","properties":{"reviewText":{"type":"string","minLength":1,"maxLength":2000,"description":"Plain-text written review. 1-2000 chars."},"valueScore":{"type":"number","minimum":0,"maximum":10,"multipleOf":0.1,"description":"Jake Score criterion: Value."},"performanceScore":{"type":"number","minimum":0,"maximum":10,"multipleOf":0.1,"description":"Jake Score criterion: Performance."},"qualityScore":{"type":"number","minimum":0,"maximum":10,"multipleOf":0.1,"description":"Jake Score criterion: Quality."},"funFactorScore":{"type":"number","minimum":0,"maximum":10,"multipleOf":0.1,"description":"Jake Score criterion: Fun Factor."},"createdAt":{"type":"string","format":"date-time","description":"ISO timestamp of when the row was first authored."},"updatedAt":{"type":"string","format":"date-time","description":"ISO timestamp of the most recent edit."}},"required":["reviewText","valueScore","performanceScore","qualityScore","funFactorScore","createdAt","updatedAt"],"description":"Jake's Takes editorial section attached to a vehicle product."},{"type":"null"}],"description":"Editorial review and scores. Populated only when category === VEHICLE."},"vehicle":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Vehicle UUID"},"make":{"type":"string","minLength":1,"description":"Vehicle make"},"model":{"type":"string","minLength":1,"description":"Vehicle model"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Model year"},"sizeClass":{"type":"array","items":{"enum":["mini","small","mid-size","full-size"],"type":"string","description":"Physical size category"},"description":"Size categories (empty array when unspecified)"},"skillLevel":{"type":"array","items":{"enum":["youth","beginner","intermediate","advanced"],"type":"string","description":"Rider skill level"},"description":"Rider skill levels (empty array when unspecified)"},"topSpeedMph":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Top speed in MPH"},"rangeMiles":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Range in miles"},"motorPeakKw":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Peak motor power in kW"},"curbWeightLbs":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Curb weight in lbs"},"dryWeightLbs":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Dry weight in lbs"},"maxSeatHeightIn":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Max seat height in inches"},"minimumRiderAge":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Youngest recommended rider age in years"},"maximumRiderAge":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Oldest recommended rider age in years"},"frontWheelSizeIn":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Front wheel diameter in inches"},"rearWheelSizeIn":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Rear wheel diameter in inches"},"battery":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Battery details"},"brakes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Brake details"},"chargeTime":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Charge time"},"colorVariants":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Color variants"},"controller":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Controller details"},"dimensions":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Dimensions"},"display":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Display details"},"frontSuspension":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Front suspension"},"frontWheelDetail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Front wheel detail"},"groundClearance":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Ground clearance"},"lighting":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lighting details"},"maxCapacity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Max capacity"},"powerModes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Power modes"},"rearSuspension":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Rear suspension"},"rearWheelDetail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Rear wheel detail"},"torque":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Torque details"},"warranty":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Warranty details"},"wheelbase":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Wheelbase"},"additionalInformation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-form additional information shown on the product page below the specs. Plain text; storefront-only."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","make","model","year","sizeClass","skillLevel","topSpeedMph","rangeMiles","motorPeakKw","curbWeightLbs","dryWeightLbs","maxSeatHeightIn","minimumRiderAge","maximumRiderAge","frontWheelSizeIn","rearWheelSizeIn","battery","brakes","chargeTime","colorVariants","controller","dimensions","display","frontSuspension","frontWheelDetail","groundClearance","lighting","maxCapacity","powerModes","rearSuspension","rearWheelDetail","torque","warranty","wheelbase","createdAt","updatedAt"],"description":"Vehicle metadata embedded in a public product response (back-reference dropped)"},{"type":"null"}],"description":"Linked vehicle metadata. Populated only when category === VEHICLE."},"part":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Part UUID"},"name":{"type":"string","description":"Part display name"},"diagramName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Short name for the part on vehicle diagrams"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Stock keeping unit"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Part description"},"status":{"type":"string","description":"Lifecycle status"},"brand":{"type":"string","description":"Brand name"},"partType":{"enum":["oem","aftermarket","performance_upgrade"],"type":"string","description":"Part classification"},"partCategory":{"type":"string","description":"Part category name"},"extras":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Part extra UUID"},"name":{"type":"string","description":"Machine-readable property key"},"displayName":{"type":"string","description":"Human-readable label"},"valueText":{"type":"string","description":"Display value"},"valueNumeric":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Numeric value for filtering"},"sortOrder":{"type":"number","description":"Display order"},"isFilterable":{"type":"boolean","description":"Available as filter"},"isSearchable":{"type":"boolean","description":"Included in search"},"isSortable":{"type":"boolean","description":"Available for sorting"}},"required":["id","name","displayName","valueText","valueNumeric","sortOrder","isFilterable","isSearchable","isSortable"],"description":"Part extra property"},"description":"Part extra properties"},"specs":{"type":"array","items":{"type":"string"},"description":"List of spec strings"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","name","diagramName","sku","description","status","brand","partType","partCategory","extras","specs","createdAt","updatedAt"],"description":"Part metadata embedded in a public product response (back-reference dropped)"},{"type":"null"}],"description":"Linked part metadata. Populated only when category === PART."},"activeSales":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"type":{"enum":["product","free_gift"],"type":"string","description":"Which PDP slot this sale feeds: product = price-sale banner, free_gift = free-gift explainer banner. Site-wide sales never appear here."},"images":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"},"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"widthPx":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"heightPx":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["fileId","url","position","widthPx","heightPx"],"description":"One ordered banner image of an active sale"},"description":"Ordered by position ASC; empty when the sale has no artwork"}},"required":["id","name","type","images"],"description":"Active sale attached to a public product read — at most one per sale type."},"description":"Active sales for this product — at most one per sale type (product price sale, free-gift sale); site-wide excluded. Empty when none. The free-gift entry must be hidden by the storefront when the product renders zero visible free gifts."},"videos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product video UUID"},"url":{"type":"string","format":"uri","description":"Externally hosted video URL"},"title":{"type":"string","description":"Human-readable title shown on the PDP"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional human description"},"type":{"enum":["review","community"],"type":"string","description":"Video classification"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","url","title","description","type","createdAt","updatedAt"],"description":"Product video — public shape (no createdByUserId)"},"description":"Product videos (review / community). Public shape — createdByUserId is omitted. Empty array when none."},"highlights":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product image pivot row UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to files.id. Null for legacy Shopify-originated images that predate the unified file pipeline."},"variantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to product_variants.id when this image is scoped to a single variant; null for product-level images."},"type":{"enum":["gallery","highlight"],"type":"string","description":"Image role within the product (gallery vs highlight)."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based display order within the (product, type) bucket."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolved public URL. Sourced from R2 when fileId is set; null when the underlying file is missing or unresolved."},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional alt text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial title (used for highlight images)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial description (used for highlight images)."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","productId","fileId","variantId","type","position","url","altText","title","description","createdAt","updatedAt"],"description":"Product image pivot record"},"description":"Admin-authored PDP highlight callouts (product_images rows where type = 'highlight'), ordered by position ASC. Empty array when none."},"spins":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product spin set UUID"},"label":{"type":"string","description":"Text the swatch button reads. Always present — falls back to the option value at authoring time."},"optionValueId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The option value this sequence depicts. The storefront matches it against `options[].values[]` for the value text, resolves the swatch hex from that through `buildColorHexResolver` — deliberately not resolved here, so there is one resolver with one fallback rather than two that drift — and matches the set against the purchase panel's selected colour on first render. Null for a product-level set."},"isShowcase":{"type":"boolean","description":"True when this sequence depicts something sold separately. The storefront draws its swatch from `swatchHex` rather than the colour resolver, and shows a caption under the stage saying so."},"swatchHex":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"Hex color code, #RRGGBB"},{"type":"null"}],"description":"Dot colour for a showcase set's swatch button. Null renders a plain text button. Always null for a set bound to an option value, which resolves its colour through the shared resolver."},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Overrides the default sold-separately sentence. Null uses the default, built from the label."},"frameUrls":{"type":"array","minItems":1,"items":{"type":"string"},"description":"Resolved frame URLs in sequence order, starting on the frame the viewer opens on. Frames whose file resolves to a null URL are omitted and the remainder close ranks, so this array is dense. Never empty — a set with no usable frames is dropped from the response entirely."}},"required":["id","label","optionValueId","isShowcase","swatchHex","caption","frameUrls"],"description":"Slim storefront-facing 360° spin set"},"description":"360° spin sequences, ordered by swatch position. Empty for products with no sequences, which is most of them; the storefront hides the section entirely on empty."},"relatedProducts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Related product row UUID"},"parentProductId":{"type":"string","format":"uuid","description":"Parent product UUID"},"relatedProductId":{"type":"string","format":"uuid","description":"Related product UUID"},"relatedVariantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Pinned variant UUID"},"relationType":{"enum":["warranty","free_gift","upsell","recommended"],"type":"string","description":"Relation type"},"relatedProductGroupId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Free-gift choice group id. Non-null on FREE_GIFT rows post-upgrade; optional so pre-upgrade responses and fixtures still parse."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Display position"},"relatedProduct":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Related product UUID"},"title":{"type":"string","description":"Related product title"},"slug":{"type":"string","description":"URL slug for storefront PDP routing"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Related product description"},"category":{"type":"string","description":"Related product category"},"featuredImage":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product image pivot row UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to files.id. Null for legacy Shopify-originated images that predate the unified file pipeline."},"variantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to product_variants.id when this image is scoped to a single variant; null for product-level images."},"type":{"enum":["gallery","highlight"],"type":"string","description":"Image role within the product (gallery vs highlight)."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based display order within the (product, type) bucket."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolved public URL. Sourced from R2 when fileId is set; null when the underlying file is missing or unresolved."},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional alt text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial title (used for highlight images)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial description (used for highlight images)."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","productId","fileId","variantId","type","position","url","altText","title","description","createdAt","updatedAt"],"description":"Product image pivot record"},{"type":"null"}],"description":"Featured image"},"variants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Variant UUID"},"title":{"type":"string","description":"Variant title"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Variant price"},"shopifyVariantId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify variant ID for cart submission"},"selectedOptions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"]},"description":"Variant's selected option values (e.g. [{name:'Color',value:'Black'}]). Drives the storefront add-on swatch. Optional — omitted by pre-enrichment responses."},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product image pivot row UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to files.id. Null for legacy Shopify-originated images that predate the unified file pipeline."},"variantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to product_variants.id when this image is scoped to a single variant; null for product-level images."},"type":{"enum":["gallery","highlight"],"type":"string","description":"Image role within the product (gallery vs highlight)."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based display order within the (product, type) bucket."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolved public URL. Sourced from R2 when fileId is set; null when the underlying file is missing or unresolved."},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional alt text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial title (used for highlight images)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial description (used for highlight images)."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","productId","fileId","variantId","type","position","url","altText","title","description","createdAt","updatedAt"],"description":"Product image pivot record"},"description":"Variant-scoped images (product_images where variant_id matches), ordered by position. The first image with a non-null URL is the storefront add-on image-swap target (url is nullable for legacy images). Optional."},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current inventory quantity of this related variant. Optional during rollout; absent → storefront treats the variant as available."},"etaInformation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Rough ETA text shown to customers. Optional."},"status":{"enum":["live","coming_soon","unlisted","discontinued"],"type":"string","description":"What customers can do with this related variant. live: shown and can be ordered. coming_soon: shown, cannot be ordered yet, and never marked down by a sale; `price` is null while its price is masked. unlisted: present only when this row pins it, and can be ordered. A discontinued variant is never present."}},"required":["id","title","price","status"],"description":"Public projection of a related-product variant"},"description":"Related product variants"},"isInventoryTracked":{"type":"boolean","description":"When false the related product is virtual/unlimited (e.g. a warranty) and availability always resolves to in_stock. Optional during rollout."},"stockPolicy":{"enum":["backorderable","in_stock_only"],"type":"string","description":"Related product's stock policy — drives whether an out-of-stock variant is backorderable vs unavailable on the storefront. Optional."},"availability":{"enum":["in_stock","backorder","unavailable"],"type":"string","description":"Related product's storefront-facing availability rollup. Optional."}},"required":["id","title","slug","description","category","featuredImage","variants"],"description":"Related product"},"relatedVariant":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Variant UUID"},"title":{"type":"string","description":"Variant title"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Variant price"},"shopifyVariantId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify variant ID for cart submission"},"selectedOptions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"]},"description":"Variant's selected option values (e.g. [{name:'Color',value:'Black'}]). Drives the storefront add-on swatch. Optional — omitted by pre-enrichment responses."},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product image pivot row UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to files.id. Null for legacy Shopify-originated images that predate the unified file pipeline."},"variantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to product_variants.id when this image is scoped to a single variant; null for product-level images."},"type":{"enum":["gallery","highlight"],"type":"string","description":"Image role within the product (gallery vs highlight)."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based display order within the (product, type) bucket."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolved public URL. Sourced from R2 when fileId is set; null when the underlying file is missing or unresolved."},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional alt text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial title (used for highlight images)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial description (used for highlight images)."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","productId","fileId","variantId","type","position","url","altText","title","description","createdAt","updatedAt"],"description":"Product image pivot record"},"description":"Variant-scoped images (product_images where variant_id matches), ordered by position. The first image with a non-null URL is the storefront add-on image-swap target (url is nullable for legacy images). Optional."},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current inventory quantity of this related variant. Optional during rollout; absent → storefront treats the variant as available."},"etaInformation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Rough ETA text shown to customers. Optional."},"status":{"enum":["live","coming_soon","unlisted","discontinued"],"type":"string","description":"What customers can do with this related variant. live: shown and can be ordered. coming_soon: shown, cannot be ordered yet, and never marked down by a sale; `price` is null while its price is masked. unlisted: present only when this row pins it, and can be ordered. A discontinued variant is never present."}},"required":["id","title","price","status"],"description":"Public projection of a related-product variant"},{"type":"null"}],"description":"Pinned variant"},"pinnedVariantIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Pinned-variant id set. Empty/absent = any variant. Optional so pre-upgrade responses and fixtures still parse (same pattern as shopifyVariantId)."}},"required":["id","parentProductId","relatedProductId","relatedVariantId","relationType","position","relatedProduct","relatedVariant"],"description":"Public related-product row"},"description":"Related products (warranties, free gifts, upsells) attached to this product. Empty array when none."},"relatedProductGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Related-product group UUID"},"pickCount":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Maximum items the customer may choose from this group. Always 1 in v1; response-only (no input accepts it yet)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Display order of groups within the parent product"},"title":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"Heading rendered above this group's gifts on the PDP, e.g. \"Pick your helmet\". Null renders no heading, exactly as before the field existed. Never the empty string — a blank input is stored as null."}},"required":["id","pickCount","position","title"],"description":"A free-gift choice group on a parent product"},"description":"Free-gift choice groups of this product, ordered by position. Optional during rollout; absent → storefront treats each gift row as its own group."}},"required":["id","title","slug","description","subtitle","seoTitle","seoDescription","category","options","images","variants","minPrice","isInStock","isInventoryTracked","availability","stockPolicy","shopifyProductId","isIndexable","replacement","shelves","jakesTakes","vehicle","part","activeSales","videos","highlights","spins","relatedProducts"],"description":"Public product response — slim, storefront-facing shape"}}}}}}},"/product-slugs":{"get":{"operationId":"publicProduct.listSlugs","summary":"List the slugs of every publicly visible product","tags":["PublicProduct"],"parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1,"description":"Page number (1-based)"},"allowEmptyValue":true,"allowReserved":true},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":5000,"description":"Slugs per page (max 10,000)"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","description":"Product URL slug"},"updatedAt":{"type":"string","format":"date-time","description":"ISO timestamp of the product's last change"}},"required":["slug","updatedAt"],"description":"A publicly visible product's slug and last change"},"description":"Page of results"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total number of matching records"},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current page number"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Items per page"}},"required":["data","total","page","limit"],"description":"Page of publicly visible product slugs, ordered by slug"}}}}}}},"/products/{productId}/fitted-parts":{"get":{"operationId":"publicProduct.listFittedParts","summary":"List the publicly visible parts that fit a vehicle product","tags":["PublicProduct"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Vehicle product UUID"}},{"name":"pagination","in":"query","schema":{"type":"object","properties":{"page":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1,"description":"Page number (1-based)"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Items per page (max 100)"}},"description":"Pagination — defaults to page 1, 100 per page","default":{"page":1,"limit":100}},"style":"deepObject","explode":true,"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Part product UUID"},"slug":{"type":"string","description":"Product URL slug"},"title":{"type":"string","description":"Product title"}},"required":["id","slug","title"],"description":"A publicly visible part product that fits a vehicle"},"description":"Page of results"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total number of matching records"},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current page number"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Items per page"}},"required":["data","total","page","limit"],"description":"Page of publicly visible fitted parts, ordered by title"}}}}}}},"/product-cards":{"post":{"operationId":"publicProduct.getCards","summary":"Build presentable product cards (price, image, stock per option, product page link) for chosen products and option values","tags":["PublicProduct"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"selections":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"object","properties":{"productHandle":{"type":"string","minLength":1,"description":"Product handle (URL slug)"},"optionValues":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Option name to the value to preselect, e.g. {\"Color\": \"Black\"}; empty for the default variant"}},"required":["productHandle","optionValues"]}}},"required":["selections"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"type":"array","items":{"type":"object","properties":{"productHandle":{"type":"string"},"title":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"priceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"compareAtPriceCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Price before a sale markdown; null when not on sale"},"optionValues":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Option name to the value the card shows, e.g. Color: Black"},"stockByOption":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"displayState":{"enum":["in_stock","backorder","unavailable","coming_soon","pre_order","discontinued"],"type":"string","description":"The most purchasable state among the variants with this value"},"estimatedArrivalDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]}},"required":["value","displayState","estimatedArrivalDate"]},"description":"Stock for each value of the product's first option"},"selectedDisplayState":{"enum":["in_stock","backorder","unavailable","coming_soon","pre_order","discontinued"],"type":"string","description":"State of the exact variant the card links to"},"pdpUrl":{"type":"string","description":"Storefront path to the product page with the option values selected"}},"required":["productHandle","title","imageUrl","priceCents","compareAtPriceCents","optionValues","stockByOption","selectedDisplayState","pdpUrl"]},"description":"One card per selection, in order; a handle that is unknown, unpublished or has no published price is left out"}},"required":["cards"]}}}}}}},"/vehicles/search":{"post":{"operationId":"vehicle.search","summary":"Vehicle search with filters","tags":["Vehicle"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"type":"object","properties":{"q":{"type":"string","maxLength":100,"description":"Free-text search term (trimmed, empty → absent, max 100 chars)"},"years":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"makes":{"type":"array","items":{"type":"string"}},"models":{"type":"array","items":{"type":"string"}},"sizeClasses":{"type":"array","items":{"enum":["mini","small","mid-size","full-size"],"type":"string","description":"Physical size category"}},"skillLevels":{"type":"array","items":{"enum":["youth","beginner","intermediate","advanced"],"type":"string","description":"Rider skill level"}},"topSpeedMph":{"type":"object","properties":{"gte":{"type":"number"},"lte":{"type":"number"}},"description":"Inclusive range filter (gte and lte)"},"rangeMiles":{"type":"object","properties":{"gte":{"type":"number"},"lte":{"type":"number"}},"description":"Inclusive range filter (gte and lte)"},"motorPeakKw":{"type":"object","properties":{"gte":{"type":"number"},"lte":{"type":"number"}},"description":"Inclusive range filter (gte and lte)"},"curbWeightLbs":{"type":"object","properties":{"gte":{"type":"number"},"lte":{"type":"number"}},"description":"Inclusive range filter (gte and lte)"},"productId":{"type":"string","format":"uuid","description":"Exact-match filter — restrict results to the vehicle linked to this product (via vehicles.productId)."},"product":{"type":"object","properties":{"price":{"type":"object","properties":{"gte":{"type":"number"},"lte":{"type":"number"}},"description":"Inclusive price range filter"},"availability":{"enum":["in_stock","available_to_order","all"],"type":"string","description":"Availability filter. Maps to products.availability. Absent / 'all' = no filter."},"shelves":{"type":"array","items":{"type":"string"},"description":"Restrict to products in any of these shelves (by slug). OR within the array."},"onSale":{"type":"boolean","description":"Restrict to products on sale through a Live variant: one with an active sale price below its price, or one priced at the lowest price the listing shows with a compare-at price above it. Coming Soon, Unlisted and Discontinued variants do not qualify, nor do banner-only and free-gift sales. Absent / false = no filter."}},"description":"Shared product-level filters — applicable to any product-backed search"}},"description":"Vehicle search filters","default":{}},"sort":{"type":"object","properties":{"field":{"enum":["year","topSpeedMph","rangeMiles","createdAt","price","relevance"],"type":"string"},"direction":{"enum":["asc","desc"],"type":"string","description":"Sort direction","default":"asc"}},"required":["field"],"description":"Sort parameters (typed field)","default":{"field":"createdAt","direction":"desc"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1,"description":"Page number (1-based)"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Items per page (max 100)"}},"description":"Pagination parameters","default":{"page":1,"limit":20}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"make":{"type":"string","minLength":1,"description":"Vehicle make"},"model":{"type":"string","minLength":1,"description":"Vehicle model"},"year":{"type":"integer","minimum":1900,"maximum":2100,"description":"Vehicle model year"},"sizeClass":{"type":"array","items":{"enum":["mini","small","mid-size","full-size"],"type":"string","description":"Physical size category"}},"skillLevel":{"type":"array","items":{"enum":["youth","beginner","intermediate","advanced"],"type":"string","description":"Rider skill level"}},"topSpeedMph":{"anyOf":[{"type":"number"},{"type":"null"}]},"rangeMiles":{"anyOf":[{"type":"number"},{"type":"null"}]},"motorPeakKw":{"anyOf":[{"type":"number"},{"type":"null"}]},"curbWeightLbs":{"anyOf":[{"type":"number"},{"type":"null"}]},"battery":{"anyOf":[{"type":"string"},{"type":"null"}]},"product":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional editorial tagline shown under the product title."},"slug":{"type":"string","description":"URL slug for storefront PDP routing"},"minPrice":{"anyOf":[{"type":"number"},{"type":"null"}]},"isInStock":{"type":"boolean"},"availability":{"enum":["in_stock","backorder","unavailable"],"type":"string"},"displayState":{"enum":["in_stock","backorder","unavailable","coming_soon","pre_order","discontinued"],"type":"string","description":"Storefront presentation state layering discontinued and 'coming soon' over inventory availability. discontinued for a discontinued product; coming_soon only when every variant is coming soon; otherwise mirrors availability. Optional during rollout (the backend always populates it); consumers fall back to availability when absent."},"stockPolicy":{"enum":["backorderable","in_stock_only"],"type":"string"},"shelves":{"type":"array","items":{"type":"string"}},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product image pivot row UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to files.id. Null for legacy Shopify-originated images that predate the unified file pipeline."},"variantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to product_variants.id when this image is scoped to a single variant; null for product-level images."},"type":{"enum":["gallery","highlight"],"type":"string","description":"Image role within the product (gallery vs highlight)."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based display order within the (product, type) bucket."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolved public URL. Sourced from R2 when fileId is set; null when the underlying file is missing or unresolved."},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional alt text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial title (used for highlight images)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial description (used for highlight images)."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","productId","fileId","variantId","type","position","url","altText","title","description","createdAt","updatedAt"],"description":"Product image pivot record"}},"variants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Variant UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"shopifyVariantId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify variant ID"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product image pivot row UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to files.id. Null for legacy Shopify-originated images that predate the unified file pipeline."},"variantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to product_variants.id when this image is scoped to a single variant; null for product-level images."},"type":{"enum":["gallery","highlight"],"type":"string","description":"Image role within the product (gallery vs highlight)."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based display order within the (product, type) bucket."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolved public URL. Sourced from R2 when fileId is set; null when the underlying file is missing or unresolved."},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional alt text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial title (used for highlight images)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial description (used for highlight images)."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","productId","fileId","variantId","type","position","url","altText","title","description","createdAt","updatedAt"],"description":"Product image pivot record"},"description":"Images scoped to this variant. Resolved from product_images rows where variant_id matches. Empty array when none."},"title":{"type":"string","description":"Variant display name, auto-derived from selectedOptions via DB trigger"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Stock keeping unit"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Variant price in USD"},"compareAtPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Original/list price in USD shown as a strikethrough on sale markdowns. Null when the variant is not on sale."},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current inventory quantity"},"etaInformation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Rough ETA text"},"estimatedArrivalDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Structured estimated arrival/in-stock date (ISO YYYY-MM-DD). Drives the storefront ETA display and the Google/Meta feed availability_date. Required for pre-order variants and for backorderable variants at zero stock; null otherwise. Optional during rollout (the backend always populates it); consumers treat a missing value as null."},"additionalInformation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-form plain-text info shown on the storefront for this variant. Storefront-only — never synced to Shopify. Null when unset."},"selectedOptions":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"optionId":{"type":"string","format":"uuid","description":"FK to product_options.id"},"optionName":{"type":"string","description":"Option name (e.g. 'Color')"},"position":{"type":"integer","minimum":1,"maximum":3,"description":"1-based option position within the product"},"valueId":{"type":"string","format":"uuid","description":"FK to product_option_values.id"},"value":{"type":"string","description":"Option value text (e.g. 'Red')"}},"required":["optionId","optionName","position","valueId","value"],"description":"A variant's selected value for one of its product's options"},"description":"Option values this variant is the intersection of, in position order"},"lastInventoryPushedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Timestamp of our last inventory push to Shopify. Used by the inventory_levels/update webhook handler to detect and skip our own echoes."},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Admin-controlled display order within the product (0-based, ascending; lower sorts first)."},"status":{"enum":["live","coming_soon","unlisted","discontinued"],"type":"string","description":"What customers can do with the variant. live: shown and can be ordered. coming_soon: shown, cannot be ordered yet; isComingSoonPriceVisible decides whether its price is published. unlisted: hidden from the option picker and listings, can be ordered by direct link. discontinued: shown, can never be ordered."},"isComingSoonPriceVisible":{"type":"boolean","description":"Only read while status is coming_soon, where it picks the Coming Soon price treatment: false (the default) omits price and compareAtPrice from public responses so the storefront renders 'Coming Soon' in the price line, true publishes the stored price instead. Never affects purchasability. Optional during rollout (the backend always populates it from the NOT NULL column); consumers treat a missing value as false."},"isPreOrder":{"type":"boolean","description":"When true, this variant is sold as a deposit-based pre-order via a Shopify selling plan. Optional during rollout (the backend always populates it); consumers treat a missing value as false."},"preOrderDepositAmount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Fixed dollar deposit charged at checkout while isPreOrder is true. Null when pre-order is off."},"sellingPlanId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify SellingPlan GID for the pre-order deposit plan. The storefront attaches it to the cart line to trigger the deposit checkout. Null when pre-order is off."},"activeSale":{"anyOf":[{"type":"object","properties":{"saleId":{"type":"string","format":"uuid"},"name":{"type":"string"},"endsAt":{"type":"string","format":"date-time"},"salePrice":{"type":"number"},"saleCompareAtPrice":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["saleId","name","endsAt","salePrice","saleCompareAtPrice"],"description":"Active sale override attached to a variant read"},{"type":"null"}],"description":"Active sale override on this variant, if any. Base price stays canonical; this is display metadata."},"upcomingSale":{"anyOf":[{"type":"object","properties":{"saleId":{"type":"string","format":"uuid"},"name":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"salePrice":{"type":"number"}},"required":["saleId","name","startsAt","endsAt","salePrice"],"description":"Nearest scheduled (not yet active) sale override attached to a variant read"},{"type":"null"}],"description":"Nearest scheduled (not yet started) sale override on this variant, if any."},"shippingDetailsOverride":{"anyOf":[{"type":"object","properties":{"shippingProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Shipping profile pinned to this variant. null means the variant follows its product's default profile."},"pickupLocationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Freight origin pinned to this variant. null means the variant ships from its product's default pickup location."},"bookingPolicy":{"enum":["quote_only","auto_book"],"type":"string","description":"Freight automation for legs carrying this variant: quote_only (staff select and dispatch) or auto_book (draft booked with the carrier platform, no quote)."},"pickupFeeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"In-store pickup fee per unit in integer cents. null means the category default applies."},"packageWeightPounds":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Gross shipping weight in pounds, measured per variant. null when not yet measured."},"packageLengthInches":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Outer package length in inches. null when not yet measured."},"packageWidthInches":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Outer package width in inches. null when not yet measured."},"packageHeightInches":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Outer package height in inches. null when not yet measured."},"freightClass":{"anyOf":[{"enum":["50","55","60","65","70","77.5","85","92.5","100","110","125","150","175","200","250","300","400","500"],"type":"string"},{"type":"null"}],"description":"NMFC freight class declared on LTL quotes. null = undeclared; the quote commodity omits the field."},"packagingType":{"anyOf":[{"enum":["crate","pallet","box","vehicle"],"type":"string"},{"type":"null"}],"description":"How the product physically ships. null = undeclared; the quote commodity omits the field."}},"required":["shippingProfileId","pickupLocationId","bookingPolicy","pickupFeeCents","packageWeightPounds","packageLengthInches","packageWidthInches","packageHeightInches","freightClass","packagingType"],"description":"A complete set of shipping values: policy and package. On a variant it replaces the product default wholesale; a null measurement means unmeasured for this variant, never inherited."},{"type":"null"}],"description":"This variant's own shipping values, or null when it ships as the product default."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","productId","shopifyVariantId","images","title","sku","price","compareAtPrice","quantity","etaInformation","additionalInformation","selectedOptions","lastInventoryPushedAt","sortOrder","status","activeSale","upcomingSale","shippingDetailsOverride","createdAt","updatedAt"],"description":"Product variant record"}}},"required":["id","title","subtitle","slug","minPrice","isInStock","availability","stockPolicy","shelves","images","variants"],"description":"Denormalized product view used inside vehicle/part search results"}},"required":["id","make","model","year","sizeClass","skillLevel","topSpeedMph","rangeMiles","motorPeakKw","curbWeightLbs","battery","product"]},"description":"Page of results"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total number of matching records"},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current page number"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Items per page"}},"required":["data","total","page","limit"]}}}}}}},"/vehicles/search/facets":{"post":{"operationId":"vehicle.searchFacets","summary":"Distinct years, makes and models of vehicles whose product is live","tags":["Vehicle"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"years":{"type":"array","maxItems":50,"items":{"type":"integer","minimum":1900,"maximum":2100,"description":"Vehicle model year"},"description":"Narrow makes and models to these model years; omitted means all years"},"makes":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":100,"description":"Vehicle make"},"description":"Narrow models to these makes within the selected years"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"years":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Every year with a vehicle for sale, newest first"},"makes":{"type":"array","items":{"type":"string"},"description":"Makes sold in the selected years, alphabetical"},"models":{"type":"array","items":{"type":"string"},"description":"Models of the selected makes in the selected years, alphabetical"}},"required":["years","makes","models"]}}}}}}},"/vehicles/lookup":{"get":{"operationId":"vehicle.lookup","summary":"Find a vehicle by year and make and model URL slugs","tags":["Vehicle"],"parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":1900,"maximum":2100,"description":"Vehicle model year"},"allowEmptyValue":true,"allowReserved":true},{"name":"make","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Make in URL slug form, for example sur-ron"},"allowEmptyValue":true,"allowReserved":true},{"name":"model","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Model in URL slug form, for example light-bee-x"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer","minimum":1900,"maximum":2100,"description":"Vehicle model year"},"make":{"type":"string","minLength":1,"description":"Vehicle make"},"model":{"type":"string","minLength":1,"description":"Vehicle model"},"id":{"type":"string","format":"uuid"},"yearMakeModel":{"type":"string","description":"Vehicle year, make and model"},"productSlug":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Slug of the vehicle's live storefront product"}},"required":["year","make","model","id","yearMakeModel","productSlug"]}}}}}}},"/parts/search":{"post":{"operationId":"part.search","summary":"Part search with filters and YMM compatibility","tags":["Part"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"type":"object","properties":{"q":{"type":"string","maxLength":100,"description":"Free-text search term (trimmed, empty → absent, max 100 chars)"},"brands":{"type":"array","items":{"type":"string"}},"partCategories":{"type":"array","items":{"type":"string"}},"partTypes":{"type":"array","items":{"enum":["oem","aftermarket","performance_upgrade"],"type":"string"}},"statuses":{"type":"array","items":{"enum":["active","pre_order"],"type":"string"}},"vehicle":{"type":"object","properties":{"year":{"type":"integer","minimum":1900,"maximum":2100,"description":"Vehicle model year"},"make":{"type":"string","minLength":1,"description":"Vehicle make"},"model":{"type":"string","minLength":1,"description":"Vehicle model"}},"required":["year","make","model"],"description":"A specific vehicle identity — one (year, make, model) triple"},"productId":{"type":"string","format":"uuid","description":"Exact-match filter — restrict results to the part linked to this product (via parts.productId). Used by the admin Product detail backlink to resolve a product → its part record."},"product":{"type":"object","properties":{"price":{"type":"object","properties":{"gte":{"type":"number"},"lte":{"type":"number"}},"description":"Inclusive price range filter"},"availability":{"enum":["in_stock","available_to_order","all"],"type":"string","description":"Availability filter. Maps to products.availability. Absent / 'all' = no filter."},"shelves":{"type":"array","items":{"type":"string"},"description":"Restrict to products in any of these shelves (by slug). OR within the array."},"onSale":{"type":"boolean","description":"Restrict to products on sale through a Live variant: one with an active sale price below its price, or one priced at the lowest price the listing shows with a compare-at price above it. Coming Soon, Unlisted and Discontinued variants do not qualify, nor do banner-only and free-gift sales. Absent / false = no filter."}},"description":"Shared product-level filters — applicable to any product-backed search"}},"description":"Part search filters","default":{}},"sort":{"type":"object","properties":{"field":{"enum":["name","createdAt","status","price","relevance"],"type":"string"},"direction":{"enum":["asc","desc"],"type":"string","description":"Sort direction","default":"asc"}},"required":["field"],"description":"Sort parameters (typed field)","default":{"field":"name","direction":"asc"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1,"description":"Page number (1-based)"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Items per page (max 100)"}},"description":"Pagination parameters","default":{"page":1,"limit":20}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"brand":{"type":"string"},"partCategory":{"type":"string"},"partType":{"enum":["oem","aftermarket","performance_upgrade"],"type":"string"},"status":{"type":"string"},"product":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional editorial tagline shown under the product title."},"slug":{"type":"string","description":"URL slug for storefront PDP routing"},"minPrice":{"anyOf":[{"type":"number"},{"type":"null"}]},"isInStock":{"type":"boolean"},"availability":{"enum":["in_stock","backorder","unavailable"],"type":"string"},"displayState":{"enum":["in_stock","backorder","unavailable","coming_soon","pre_order","discontinued"],"type":"string","description":"Storefront presentation state layering discontinued and 'coming soon' over inventory availability. discontinued for a discontinued product; coming_soon only when every variant is coming soon; otherwise mirrors availability. Optional during rollout (the backend always populates it); consumers fall back to availability when absent."},"stockPolicy":{"enum":["backorderable","in_stock_only"],"type":"string"},"shelves":{"type":"array","items":{"type":"string"}},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product image pivot row UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to files.id. Null for legacy Shopify-originated images that predate the unified file pipeline."},"variantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to product_variants.id when this image is scoped to a single variant; null for product-level images."},"type":{"enum":["gallery","highlight"],"type":"string","description":"Image role within the product (gallery vs highlight)."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based display order within the (product, type) bucket."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolved public URL. Sourced from R2 when fileId is set; null when the underlying file is missing or unresolved."},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional alt text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial title (used for highlight images)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial description (used for highlight images)."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","productId","fileId","variantId","type","position","url","altText","title","description","createdAt","updatedAt"],"description":"Product image pivot record"}},"variants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Variant UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"shopifyVariantId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify variant ID"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Product image pivot row UUID"},"productId":{"type":"string","format":"uuid","description":"Parent product UUID"},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to files.id. Null for legacy Shopify-originated images that predate the unified file pipeline."},"variantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"FK to product_variants.id when this image is scoped to a single variant; null for product-level images."},"type":{"enum":["gallery","highlight"],"type":"string","description":"Image role within the product (gallery vs highlight)."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based display order within the (product, type) bucket."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolved public URL. Sourced from R2 when fileId is set; null when the underlying file is missing or unresolved."},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional alt text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial title (used for highlight images)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Editorial description (used for highlight images)."},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["id","productId","fileId","variantId","type","position","url","altText","title","description","createdAt","updatedAt"],"description":"Product image pivot record"},"description":"Images scoped to this variant. Resolved from product_images rows where variant_id matches. Empty array when none."},"title":{"type":"string","description":"Variant display name, auto-derived from selectedOptions via DB trigger"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Stock keeping unit"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Variant price in USD"},"compareAtPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Original/list price in USD shown as a strikethrough on sale markdowns. Null when the variant is not on sale."},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current inventory quantity"},"etaInformation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Rough ETA text"},"estimatedArrivalDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Structured estimated arrival/in-stock date (ISO YYYY-MM-DD). Drives the storefront ETA display and the Google/Meta feed availability_date. Required for pre-order variants and for backorderable variants at zero stock; null otherwise. Optional during rollout (the backend always populates it); consumers treat a missing value as null."},"additionalInformation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-form plain-text info shown on the storefront for this variant. Storefront-only — never synced to Shopify. Null when unset."},"selectedOptions":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"optionId":{"type":"string","format":"uuid","description":"FK to product_options.id"},"optionName":{"type":"string","description":"Option name (e.g. 'Color')"},"position":{"type":"integer","minimum":1,"maximum":3,"description":"1-based option position within the product"},"valueId":{"type":"string","format":"uuid","description":"FK to product_option_values.id"},"value":{"type":"string","description":"Option value text (e.g. 'Red')"}},"required":["optionId","optionName","position","valueId","value"],"description":"A variant's selected value for one of its product's options"},"description":"Option values this variant is the intersection of, in position order"},"lastInventoryPushedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Timestamp of our last inventory push to Shopify. Used by the inventory_levels/update webhook handler to detect and skip our own echoes."},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Admin-controlled display order within the product (0-based, ascending; lower sorts first)."},"status":{"enum":["live","coming_soon","unlisted","discontinued"],"type":"string","description":"What customers can do with the variant. live: shown and can be ordered. coming_soon: shown, cannot be ordered yet; isComingSoonPriceVisible decides whether its price is published. unlisted: hidden from the option picker and listings, can be ordered by direct link. discontinued: shown, can never be ordered."},"isComingSoonPriceVisible":{"type":"boolean","description":"Only read while status is coming_soon, where it picks the Coming Soon price treatment: false (the default) omits price and compareAtPrice from public responses so the storefront renders 'Coming Soon' in the price line, true publishes the stored price instead. Never affects purchasability. Optional during rollout (the backend always populates it from the NOT NULL column); consumers treat a missing value as false."},"isPreOrder":{"type":"boolean","description":"When true, this variant is sold as a deposit-based pre-order via a Shopify selling plan. Optional during rollout (the backend always populates it); consumers treat a missing value as false."},"preOrderDepositAmount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Fixed dollar deposit charged at checkout while isPreOrder is true. Null when pre-order is off."},"sellingPlanId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shopify SellingPlan GID for the pre-order deposit plan. The storefront attaches it to the cart line to trigger the deposit checkout. Null when pre-order is off."},"activeSale":{"anyOf":[{"type":"object","properties":{"saleId":{"type":"string","format":"uuid"},"name":{"type":"string"},"endsAt":{"type":"string","format":"date-time"},"salePrice":{"type":"number"},"saleCompareAtPrice":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["saleId","name","endsAt","salePrice","saleCompareAtPrice"],"description":"Active sale override attached to a variant read"},{"type":"null"}],"description":"Active sale override on this variant, if any. Base price stays canonical; this is display metadata."},"upcomingSale":{"anyOf":[{"type":"object","properties":{"saleId":{"type":"string","format":"uuid"},"name":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"salePrice":{"type":"number"}},"required":["saleId","name","startsAt","endsAt","salePrice"],"description":"Nearest scheduled (not yet active) sale override attached to a variant read"},{"type":"null"}],"description":"Nearest scheduled (not yet started) sale override on this variant, if any."},"shippingDetailsOverride":{"anyOf":[{"type":"object","properties":{"shippingProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Shipping profile pinned to this variant. null means the variant follows its product's default profile."},"pickupLocationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Freight origin pinned to this variant. null means the variant ships from its product's default pickup location."},"bookingPolicy":{"enum":["quote_only","auto_book"],"type":"string","description":"Freight automation for legs carrying this variant: quote_only (staff select and dispatch) or auto_book (draft booked with the carrier platform, no quote)."},"pickupFeeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"In-store pickup fee per unit in integer cents. null means the category default applies."},"packageWeightPounds":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Gross shipping weight in pounds, measured per variant. null when not yet measured."},"packageLengthInches":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Outer package length in inches. null when not yet measured."},"packageWidthInches":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Outer package width in inches. null when not yet measured."},"packageHeightInches":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Outer package height in inches. null when not yet measured."},"freightClass":{"anyOf":[{"enum":["50","55","60","65","70","77.5","85","92.5","100","110","125","150","175","200","250","300","400","500"],"type":"string"},{"type":"null"}],"description":"NMFC freight class declared on LTL quotes. null = undeclared; the quote commodity omits the field."},"packagingType":{"anyOf":[{"enum":["crate","pallet","box","vehicle"],"type":"string"},{"type":"null"}],"description":"How the product physically ships. null = undeclared; the quote commodity omits the field."}},"required":["shippingProfileId","pickupLocationId","bookingPolicy","pickupFeeCents","packageWeightPounds","packageLengthInches","packageWidthInches","packageHeightInches","freightClass","packagingType"],"description":"A complete set of shipping values: policy and package. On a variant it replaces the product default wholesale; a null measurement means unmeasured for this variant, never inherited."},{"type":"null"}],"description":"This variant's own shipping values, or null when it ships as the product default."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","productId","shopifyVariantId","images","title","sku","price","compareAtPrice","quantity","etaInformation","additionalInformation","selectedOptions","lastInventoryPushedAt","sortOrder","status","activeSale","upcomingSale","shippingDetailsOverride","createdAt","updatedAt"],"description":"Product variant record"}}},"required":["id","title","subtitle","slug","minPrice","isInStock","availability","stockPolicy","shelves","images","variants"],"description":"Denormalized product view used inside vehicle/part search results"}},"required":["id","name","sku","brand","partCategory","partType","status","product"]},"description":"Page of results"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total number of matching records"},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current page number"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Items per page"}},"required":["data","total","page","limit"]}}}}}}},"/part-categories":{"get":{"operationId":"partCategory.tree","summary":"Get Part Category Tree","tags":["Part Category"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Category name (primary key)"},"slug":{"type":"string","description":"URL-safe identifier"},"parentCategory":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Parent category name, null for root"},"sortOrder":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Display ordering within parent"},"tileImageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the mega-menu tile image, null when no tile is attached"},"totalPartCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Rolled-up count of every part tagged with this category or any descendant. Refreshed every 30 min by a background cron; stale-by-design for catalog navigation."},"purchasablePartCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Rolled-up count restricted to parts whose linked product is active and Shopify-synced. Storefront-buyable subset of totalPartCount."},"children":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Category name (primary key)"},"slug":{"type":"string","description":"URL-safe identifier"},"parentCategory":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Parent category name, null for root"},"sortOrder":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Display ordering within parent"},"tileImageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the mega-menu tile image, null when no tile is attached"},"totalPartCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Rolled-up count of every part tagged with this category or any descendant. Refreshed every 30 min by a background cron; stale-by-design for catalog navigation."},"purchasablePartCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Rolled-up count restricted to parts whose linked product is active and Shopify-synced. Storefront-buyable subset of totalPartCount."},"children":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Category name (primary key)"},"slug":{"type":"string","description":"URL-safe identifier"},"parentCategory":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Parent category name, null for root"},"sortOrder":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Display ordering within parent"},"tileImageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the mega-menu tile image, null when no tile is attached"},"totalPartCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Rolled-up count of every part tagged with this category or any descendant. Refreshed every 30 min by a background cron; stale-by-design for catalog navigation."},"purchasablePartCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Rolled-up count restricted to parts whose linked product is active and Shopify-synced. Storefront-buyable subset of totalPartCount."},"children":{}},"required":["name","slug","parentCategory","sortOrder","tileImageUrl","totalPartCount","purchasablePartCount"],"description":"Nested part category tree node with rolled-up part counts"}}},"required":["name","slug","parentCategory","sortOrder","tileImageUrl","totalPartCount","purchasablePartCount","children"],"description":"Nested part category tree node with rolled-up part counts"}}},"required":["name","slug","parentCategory","sortOrder","tileImageUrl","totalPartCount","purchasablePartCount","children"],"description":"Nested part category tree node with rolled-up part counts"}}}}}}}},"/brands":{"get":{"operationId":"brand.list","summary":"List Brands (paginated)","tags":["Brand"],"parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1,"description":"Page number (1-based)"},"allowEmptyValue":true,"allowReserved":true},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Items per page (max 100)"},"allowEmptyValue":true,"allowReserved":true},{"name":"q","in":"query","schema":{"type":"string","description":"Words matched against brand names. Spelling slips are forgiven, and every word must match"},"allowEmptyValue":true,"allowReserved":true},{"name":"hasParts","in":"query","schema":{"anyOf":[{"const":true},{"const":"true"}],"description":"True lists only brands that at least one part references. Omit to list every brand"},"allowEmptyValue":true,"allowReserved":true},{"name":"sortBy","in":"query","schema":{"enum":["name","createdAt","relevance"],"type":"string","default":"relevance","description":"Field to sort by. Relevance puts the best q matches first, then sorts by name, and ignores sortDirection"},"allowEmptyValue":true,"allowReserved":true},{"name":"sortDirection","in":"query","schema":{"enum":["asc","desc"],"type":"string","description":"Sort direction","default":"asc"},"allowEmptyValue":true,"allowReserved":true},{"name":"sellsVehicles","in":"query","schema":{"anyOf":[{"type":"boolean"},{"type":"string"}],"description":"Keep only brands that do, or do not, build their own vehicles"},"allowEmptyValue":true,"allowReserved":true},{"name":"sellsParts","in":"query","schema":{"anyOf":[{"type":"boolean"},{"type":"string"}],"description":"Keep only brands that do, or do not, make parts"},"allowEmptyValue":true,"allowReserved":true},{"name":"partsPageStatus","in":"query","schema":{"enum":["none","draft","live"],"type":"string","description":"Keep only brands whose parts page has this status"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Brand name"},"slug":{"type":"string","description":"URL-safe form of the name, unique among the site's brands"},"partsPageStatus":{"enum":["none","draft","live"],"type":"string","description":"Whether the brand has a parts page, and if it is live"},"vehiclePageStatus":{"anyOf":[{"enum":["needs_content","live_with_content"],"type":"string"},{"type":"null"}],"description":"Whether staff added content to the brand's vehicle page. Null when the brand does not build vehicles"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL to brand logo image"},"sellsVehicles":{"type":"boolean","description":"The brand builds its own vehicles"},"sellsParts":{"type":"boolean","description":"The brand makes parts or accessories"},"partCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of parts that reference this brand"},"vehicleCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of the brand's vehicles a customer can open"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"required":["name","slug","partsPageStatus","vehiclePageStatus","logoUrl","sellsVehicles","sellsParts","partCount","vehicleCount","createdAt","updatedAt"],"description":"Brand record"},"description":"Page of results"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total number of matching records"},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current page number"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Items per page"}},"required":["data","total","page","limit"]}}}}}}},"/products/{productId}/fitting-vehicles":{"get":{"operationId":"fitment.listFittingVehicles","summary":"List the vehicles a publicly visible part product fits","tags":["Fitment"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Part product UUID"}},{"name":"pagination","in":"query","schema":{"type":"object","properties":{"page":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1,"description":"Page number (1-based)"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Items per page (max 100)"}},"description":"Pagination — defaults to page 1, 100 per page","default":{"page":1,"limit":100}},"style":"deepObject","explode":true,"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Vehicle model year"},"make":{"type":"string","description":"Vehicle make"},"model":{"type":"string","description":"Vehicle model"},"productSlug":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL slug of the vehicle's public product page, null when it has none"},"isDiscontinued":{"type":"boolean","description":"True when the vehicle's product is discontinued"}},"required":["year","make","model","productSlug","isDiscontinued"],"description":"A vehicle a publicly visible part product fits"},"description":"Page of results"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total number of matching records"},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current page number"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Items per page"}},"required":["data","total","page","limit"],"description":"Page of vehicles a part fits, newest model year first"}}}}}}},"/parts/{partId}/fitment-vehicles":{"get":{"operationId":"fitment.searchVehicles","summary":"Search year, make and model vehicles and say whether a part fits each","tags":["Fitment"],"parameters":[{"name":"partId","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Part UUID"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":200,"description":"What the shopper typed, such as `2024 sur ron light bee`. Each model is offered in every year from 2010 to next year and in the years of the vehicles the part fits. A word that is one of those years keeps only that year; the other words are matched against model make and name, forgiving spelling slips and spacing, and every one must match. An empty query returns no vehicles"},"allowEmptyValue":true,"allowReserved":true},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20,"default":8,"description":"Most vehicles to return"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Vehicle model year"},"make":{"type":"string","description":"Vehicle make"},"model":{"type":"string","description":"Vehicle model"},"fits":{"type":"boolean","description":"True when a vehicle of this year, make and model is fitted to the part"}},"required":["year","make","model","fits"],"description":"A year, make and model vehicle and whether the part fits it"}}},"required":["data"],"description":"Vehicles matching the query: best model match first, then vehicles the part fits, then shorter names, then newest year"}}}}}}},"/sales/active-site-wide":{"get":{"operationId":"publicSale.getActiveSiteWide","summary":"Get the site-wide sale running right now, with banner slides","tags":["PublicSale"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"endsAt":{"type":"string","format":"date-time"},"slideIntervalMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How long the banner holds each slide, in milliseconds. One value for the whole sale."},"slides":{"type":"array","items":{"type":"object","properties":{"eyebrowText":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}],"description":"Optional smaller line above the headline; null renders none"},"headlineText":{"type":"string","minLength":1,"maxLength":120,"description":"The slide's primary line"},"backgroundColorHex":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"Full-bleed background as #RRGGBB. Text color is not authored — it is derived from this value's luminance at render, so an unreadable pairing cannot be produced."},"ctaLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":40},{"type":"null"}],"description":"Optional call-to-action label; null renders the default \"Shop Now\"."},"linkPath":{"anyOf":[{"type":"string","maxLength":512,"pattern":"^\\/(?![/\\\\])\\S*$"},{"type":"null"}],"description":"Site-relative destination for this slide, e.g. \"/shop/parts?onSale=true\". Null falls back to the on-sale vehicles page, which is where every slide pointed before this field existed. Off-domain targets are rejected — see SALE_BANNER_SLIDE_LINK_PATH_PATTERN."},"fileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Optional artwork, right-aligned on desktop and dropped on mobile; null is a valid text-only slide"},"id":{"type":"string","format":"uuid"},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Zero-based display order, resequenced on every save"},"url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"Resolved artwork URL; null when the slide carries no file"},"widthPx":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Intrinsic artwork width. Null when unknown — no upload path records dimensions yet (CRE-3261)."},"heightPx":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Intrinsic artwork height; null when unknown"}},"required":["eyebrowText","headlineText","backgroundColorHex","ctaLabel","linkPath","fileId","id","position","url","widthPx","heightPx"],"description":"A resolved banner slide, ready to render"},"description":"Ordered by position ASC; never empty for a saved sale"}},"required":["id","name","endsAt","slideIntervalMs","slides"],"description":"The site-wide sale running right now, with its banner slides"},{"type":"null"}]}}}}}}},"/shipping/estimate":{"post":{"operationId":"publicShipping.estimate","summary":"Price standard delivery for a set of lines to a US ZIP code, as checkout will","tags":["PublicShipping"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"postalCode":{"type":"string","pattern":"^\\d{5}(-\\d{4})?$","description":"US ZIP code to deliver to; ZIP+4 is accepted"},"lines":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","properties":{"productVariantId":{"type":"string","format":"uuid","description":"Our internal product variant id"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0}},"required":["productVariantId","quantity"]},"description":"The lines to deliver, as checkout will receive them"}},"required":["postalCode","lines"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"status":{"const":"estimated"},"amount":{"type":"number","description":"Standard delivery for the lines in USD; 0 means free"},"serviceName":{"type":"string","description":"The delivery service checkout offers"},"serviceDescription":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The delivery service's description, such as when the order ships; null when the service has none"}},"required":["status","amount","serviceName","serviceDescription"]},{"type":"object","properties":{"status":{"const":"unavailable","description":"The ZIP is real but these lines cannot be priced to it ahead of checkout"}},"required":["status"]},{"type":"object","properties":{"status":{"const":"unknown_postal_code","description":"No US state uses the ZIP code"}},"required":["status"]},{"type":"object","properties":{"status":{"const":"outside_delivery_area","description":"The ZIP code is outside the area we deliver to"},"postalCode":{"type":"string","pattern":"^\\d{5}$","description":"The 5-digit ZIP code"}},"required":["status","postalCode"]}]}}}}}}}}}