Passer au contenu principal
Autrex
Panier (0 articles)
GET/api/v1/products/{sku}

Get Product Details

Retrieve complete product information including specifications, fitment data, pricing, availability, and media. Returns all data needed to display a product detail page. Optional lang=fr|en selects PIES text with English fallback per code; optional description_language identifies short prose, description_long_language identifies long prose (EXT/MKT), and descriptions[].language preserves each returned lowercase PIES language code, including last-resort languages such as es or de. Older ERP deployments may omit these fields. Optional battery_local_only is the authoritative ERP pickup/local-delivery restriction for batteries; it is not provided on search/listing items. Availability status call_for_price means stock has no published price (price null, quantity 0). Call for pricing; it is not purchasable online and is not a confirmed stockout.

The same-origin /api/erp relay accepts only storefront allow-listed paths and methods; other routes return 404. Browser-supplied API keys are discarded. Direct public API endpoints remain available at their documented URLs.

productsdetailsku

Use Cases

  • Display product detail page
  • Get product specifications for comparison
  • Retrieve pricing and availability
  • Fetch fitment information for a specific product

Path Parameters

ParameterTypeRequiredDescription
skustringRequiredUnique product SKU (e.g., "BCZC283107")

Query Parameters

ParameterTypeRequiredDescription
langstringOptionalPreferred PIES description language; French falls back to English per code. Omit for the existing English response.
Allowed values for lang:
fren

Request Example

cURL
curl "https://autrex.ca/api/v1/products/BCZC283107?lang=fr"
JavaScript
fetch("https://autrex.ca/api/v1/products/BCZC283107?lang=fr")

Response

200Product found successfully
{
  "data": {
    "sku": "PS-Z23-1324",
    "slug": "powerstop-z23-ceramic-brake-pads-front",
    "part_number": "Z23-1324",
    "name": "PowerStop Z23 Evolution Sport Ceramic Brake Pads - Front",
    "brand": "PowerStop",
    "brand_id": "powerstop",
    "battery_local_only": false,
    "category": "Brake Pads",
    "description_short": "Carbon fiber ceramic compound for superior stopping power with low dust. Designed for performance-minded drivers who demand more from their brakes.",
    "description_long": "PowerStop Z23 Evolution Sport brake pads feature a carbon fiber ceramic compound that provides superior stopping power with minimal dust. The chamfered and slotted design reduces noise and vibration, while the powder-coated backing plates resist corrosion. Includes premium stainless steel hardware for a complete installation.",
    "specifications": {
      "Position": "Front",
      "Material": "Carbon Fiber Ceramic",
      "Includes Hardware": "Yes",
      "Noise Level": "Low",
      "Dust Level": "Low",
      "Warranty": "3 Years / 36,000 Miles"
    },
    "fitment": {
      "universal": false,
      "compatible_vehicles": [
        {
          "year_start": 2019,
          "year_end": 2024,
          "make": "Toyota",
          "model": "Camry",
          "trim": [
            "LE",
            "SE",
            "XLE",
            "XSE",
            "TRD"
          ],
          "submodel": "Sedan"
        },
        {
          "year_start": 2018,
          "year_end": 2024,
          "make": "Honda",
          "model": "Accord",
          "trim": [
            "LX",
            "Sport",
            "EX",
            "EX-L",
            "Touring"
          ],
          "submodel": "Sedan"
        },
        {
          "year_start": 2020,
          "year_end": 2024,
          "make": "Mazda",
          "model": "6",
          "trim": [
            "Sport",
            "Touring",
            "Grand Touring",
            "Signature"
          ]
        }
      ],
      "total_applications": 156
    },
    "pricing": {
      "msrp": 109.99,
      "sale_price": 89.99,
      "currency": "CAD",
      "discount_percent": 18
    },
    "availability": {
      "status": "in_stock",
      "quantity": 47,
      "lead_time_days": 0,
      "warehouse_location": "Toronto, ON"
    },
    "media": {
      "images": [
        "https://cdn.autrex.ca/products/ps-z23-1324/main.jpg",
        "https://cdn.autrex.ca/products/ps-z23-1324/angle.jpg",
        "https://cdn.autrex.ca/products/ps-z23-1324/box.jpg"
      ],
      "thumbnail": "https://cdn.autrex.ca/products/ps-z23-1324/thumb.jpg"
    },
    "seo": {
      "url": "https://autrex.ca/products/powerstop-z23-ceramic-brake-pads-front",
      "meta_title": "PowerStop Z23-1324 Front Ceramic Brake Pads",
      "meta_description": "Shop PowerStop Z23 ceramic brake pads. Fits 2019-2024 Toyota Camry, Honda Accord. Free shipping $99+."
    },
    "created_at": "2024-01-15T00:00:00Z",
    "updated_at": "2024-01-18T12:30:00Z"
  },
  "meta": {
    "api_version": "v1",
    "cache_duration": 3600
  }
}
404Product not found
{
  "error": "not_found",
  "message": "The requested resource was not found."
}

Caching

Max Age
3600s
Stale While Revalidate
86400s