---
title: "Resolve a single variant by id (price, availability, options, product) — for cart re-validation"
method: GET
path: "/api/v1/storefront/variants/{id}"
tags: ["storefront"]
---

# Resolve a single variant by id (price, availability, options, product) — for cart re-validation

`GET /api/v1/storefront/variants/{id}`

## Request

- Base URL: `https://api.foundryims.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.foundryims.com/api/v1/storefront/variants/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `200`

- StorefrontVariantResolvedDto
  - `id` string, required
  - `sku` string, required
  - `name` string, required
  - `price` number, required: What the buyer pays now — the sale price while a sale is on.
  - `regularPrice` number, required: The regular price; equals price when not on sale.
  - `onSale` boolean, required: True while a sale window is open on this listing.
  - `saleEndsAt` string, nullable, required: ISO timestamp the sale ends, when one is set.
  - `compareAtPrice` number, nullable, required: "Was"/MSRP price. While on sale this is the regular price.
  - `map` number, nullable, required: Minimum advertised price.
  - `upc` string, nullable, required
  - `gtin` string, nullable, required
  - `mpn` string, nullable, required
  - `weight` number, nullable, required
  - `inStock` boolean, required
  - `availableQuantity` number, required
  - `optionValues` OptionValueDto[], required
    - `name` string, required
    - `value` string, required
  - `images` ImageRefDto[], required
    - `url` string, required
  - `customFields` StorefrontCustomFieldDto[], required: This variant's effective custom fields (variant value overrides product).
    - `key` string, required: Stable machine key.
    - `label` string, required
    - `value` object, required: Typed value (string | number | boolean | array | object).
    - `unit` string: Display unit (NUMBER fields), omitted when unset.
    - `type` 'text' | 'number' | 'boolean' | 'enum' | 'date' | 'url' | 'json', required
    - `group` string: Spec-table section, omitted when ungrouped.
    - `displayOrder` number, required: Sort order within the spec table.
  - `currency` string, required
  - `product` IdNameDto, required
    - `id` string, required
    - `name` string, required

---

[API](https://skmtc.dev/foundryims/apis/foundry-storefront-api.md) · [All operations](https://skmtc.dev/foundryims/apis/foundry-storefront-api/llms.txt) · [OpenAPI document](https://skmtc.dev/foundryims/apis/foundry-storefront-api/revisions/c6b0410da596?raw)
