Admin API / Types
ProductVariant
ObjectOne purchasable option of a listing.
Requires a client key with one of these scopes:admin:products:readThe requirement applies to every field of ProductVariant unless that field declares its own scopes.
type ProductVariant implements NodeFields
| Field | Type | Description |
|---|---|---|
activeNegotiationCount | NonNegativeInt! | Number of ACTIVE negotiations on the variant whose expiresAt is in the future. The same value for every caller. |
availableQuantity | NonNegativeInt | Units in stock. Null when stock is not tracked. |
bookmarkCount | NonNegativeInt! | Number of buyer bookmarks on the variant. |
createdAt | DateTime! | When the variant was created. |
hasDigitalAssets | Boolean! | True when the purchase includes digital files. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
interestedBuyerCount | NonNegativeInt | Number of buyers that sendOffersToInterestedBuyers sends an offer to now: buyers with a bookmark of the variant, no ACTIVE negotiation on it, no negotiation on it changed in the last 3 days, and no block from the listing's seller. The listing's seller is not counted. Throws FORBIDDEN with requiredRole null unless the listing's seller is the caller or the owner of a store that the caller staffs.Requires a client key with one of these scopes: admin:offers:read |
negotiations | ProductVariantNegotiationConnection! | The variant's negotiations whose seller is the caller or the owner of a store that the caller staffs. Empty for a variant whose seller is outside that set. Order as Viewer.negotiations. Reads at most the first 1,000 negotiations (1,000,000 for Soho): narrow where to read more. first: 1 with sort: { field: CURRENT_PRICE, direction: DESC } gives the highest offer.Requires a client key with one of these scopes: admin:offers:readArguments:after: String — Returns negotiations after this cursor.first: Int — The maximum number of negotiations. Defaults to 20, at most 100 (10,000 for Soho).sort: NegotiationSortInput — The order. Without it, the order of Viewer.negotiations.where: NegotiationWhereInput — Filters that narrow the list. |
price | Money! | The variant's price. |
product | Product! | The listing that offers this variant. |
quantityHistory | ProductVariantQuantityChangeConnection! | Stock changes that District recorded for the variant, newest first: changes through adjustProductVariantQuantities, restocks through refundOrder, sales and claims that District recorded, and Shopify stock syncs. Not every change has an entry: sales through the newer checkout, ShipHero syncs and stock that a listing edit sets are not recorded, so the deltas do not always add up to availableQuantity. Offsets stop at 1,000 rows (1,000,000 for Soho).Arguments:after: String — Return items after this cursor.first: Int — Maximum number of items to return. Defaults to 20, capped at 100 (10,000 for Soho). |
requiresShipping | Boolean! | True when the variant needs physical shipping. |
sku | String | The seller's stock keeping unit. Null when unset. |
title | String! | The variant's customer-facing title. |
unavailableReason | ProductVariantUnavailableReason | Why buyers cannot buy the variant now. visibility is separate. Null when no listed reason applies. |
updatedAt | DateTime! | When the variant last changed. |
visibility | ProductVisibility! | Whether the seller hid the variant. Buyers see only PUBLIC variants. |