Admin API / Types

ProductVariant

Object

One purchasable option of a listing.

Requires a client key with one of these scopes: admin:products:read

The requirement applies to every field of ProductVariant unless that field declares its own scopes.

type ProductVariant implements Node

Fields

FieldTypeDescription
activeNegotiationCountNonNegativeInt!
Number of ACTIVE negotiations on the variant whose expiresAt is in the future. The same value for every caller.
availableQuantityNonNegativeInt
Units in stock. Null when stock is not tracked.
bookmarkCountNonNegativeInt!
Number of buyer bookmarks on the variant.
createdAtDateTime!
When the variant was created.
hasDigitalAssetsBoolean!
True when the purchase includes digital files.
idID!
A globally unique ID. Treat this value as an opaque string.
interestedBuyerCountNonNegativeInt
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
negotiationsProductVariantNegotiationConnection!
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.
priceMoney!
The variant's price.
productProduct!
The listing that offers this variant.
quantityHistoryProductVariantQuantityChangeConnection!
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).
requiresShippingBoolean!
True when the variant needs physical shipping.
skuString
The seller's stock keeping unit. Null when unset.
titleString!
The variant's customer-facing title.
unavailableReasonProductVariantUnavailableReason
Why buyers cannot buy the variant now. visibility is separate. Null when no listed reason applies.
updatedAtDateTime!
When the variant last changed.
visibilityProductVisibility!
Whether the seller hid the variant. Buyers see only PUBLIC variants.

Returned by