Admin API / Types

Product

Object

A product listing owned by a seller.

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

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

type Product implements Node

Fields

FieldTypeDescription
activeAuctionAuction
The listing's current auction, which can have ended. Null when the listing has none, its auction was cancelled, or the listing is deleted. Reading the auction's fields needs the admin:livestreams:read scope.
activeNegotiationCountNonNegativeInt!
Number of ACTIVE negotiations on the listing's variants whose expiresAt is in the future. The same for every caller.
audienceProductAudience!
Who can buy the listing: every buyer, or only subscribers of a tier that the seller named.
availabilityAvailabilityState!
Whether an active variant has unlimited stock or remaining inventory.
availableQuantityNonNegativeInt
Total remaining quantity across the listing's active variants. Null when any active variant has unlimited stock.
bookmarkCountNonNegativeInt!
Number of buyer bookmarks on the listing's variants, in every variant state.
collectionsProductCollectionConnection!
Manual collections that contain the listing, hidden collections included, in collection position order. Reading a collection's fields needs the admin:collections:read scope. 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).
createdAtDateTime!
When the listing was created.
customOrderProductCustomOrder
Set when the listing is a custom order: only one buyer can buy it. Null when any buyer can buy the listing. For a listing whose seller is not in Viewer.access.actingFor, the field needs the ADMIN or OWNER role, also when the listing is not a custom order. A lower role gets a FORBIDDEN error with requiredRole: ADMIN on this field only.
descriptionString!
The listing's long-form description. Empty string when unset.
digitalAssetCountNonNegativeInt!
Number of digital files on the listing's active variants. A file on several variants counts once.
idID!
A globally unique ID. Treat this value as an opaque string.
lastOrderedAtDateTime
When a buyer last ordered the listing. Approximate: an order can fail to update it, and a late update can move it back. Use it as a signal for stale stock, not as an order record. Null when no order is recorded.
lifecycleProductLifecycle!
The stage of the listing's sale, from its deletion, its stock, its auction and its giveaways. Each listing has one value.
liveAuctionUnitsLiveAuctionUnits
The unit counts of a live auction listing that sells more than one unit, each unit in its own auction. Null when Marketplace.listingRules.multiUnitLiveAuctionsEnabled is false, when the listing has no current auction or its current auction is cancelled or is not a live auction, when the listing has unlimited stock or does not have exactly one variant that is not deleted, and when the listing has 1 unit in total. Needs the admin:livestreams:read scope.Requires a client key with one of these scopes: admin:livestreams:read
lockReasonProductLockReason
Why the listing cannot be edited or deleted now. A locked listing can still be hidden or shown. Null when the listing is not locked. AUCTION_HAS_BIDS when both reasons apply. A cancelled auction or giveaway never locks a listing. A new bid in a live auction can show here after a delay.
magicCodeString
The six-digit magic code buyers use to claim this listing from a social post or a Messenger message. Null until generateProductMagicCode mints one.
mediaProductMediaConnection!
All images and videos in display order. The first item is the primary thumbnail. Reading an item needs the admin:media:read scope. 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).
offerEligibilityProductOfferEligibility!
How offers participate in purchasing this listing.
priceRangeProductPriceRange
Price range across the listing's active variants. Null when the listing has no active variants.
saleModeProductSaleMode!
How the listing is sold. Every listing has exactly one sale mode.
salesStatsProductSalesStats
Sales of the listing in the sold orders (PAID, READY_TO_SHIP, SHIPPED or DELIVERED) that the caller reads: every order of the marketplace for an ADMIN or higher, else the orders of the sellers in Viewer.access.actingFor. Zero totals when the listing has no sale. On a listing of a seller outside Viewer.access.actingFor, a role below ADMIN gets a FORBIDDEN error with requiredRole: ADMIN.Requires a client key with one of these scopes: admin:orders:read
sellerUser!
The seller. For a store listing, the store owner. Present even when the seller is not a member of the marketplace; node with that seller's ID then gives null. Reading the seller's fields needs the admin:account:read scope.
shippingProductShipping!
How the listing ships: one setting per destination, and the parcel and ship-from that calculated rates use.
slugSlug!
URL-friendly unique identifier.
taxonomyCategoryTaxonomyCategory
The category of the listing, at any level of the taxonomy. Null when the listing has no category, or when its category is not in the taxonomy tree. A category outside the allow-list of the marketplace is returned: the allow-list applies to new assignments only.
thumbnailMedia[Asset!]!
Media to render in the listing's thumbnail slots. The first item is the primary; a second item, when present, is intended for a hover or alternate thumbnail. Empty when the listing has no media.
titleString!
The listing's customer-facing title.
updatedAtDateTime!
When the listing, one of its variants or one of its auctions last changed, or the seller last turned vacation mode on or off. A variant price or stock change moves it, and so do a delete, a bid and an auction cancellation. A buyer view and a new order also move it, so a new value does not always mean a seller edit. Use the largest value you read as the start of the next updatedAt range, with the overlap that ProductWhereInput.updatedAt describes.
urlURL!
The listing page on the store's District storefront host. Its last path segment is the slug that productBySlug takes.
variantCountNonNegativeInt!
Number of active variants on this listing.
variantsProductVariantConnection!
Variants that are not deleted, hidden ones included, in seller position order, then oldest first. variantCount counts only active variants. For a deleted listing, productVariant and node give null for these variants. 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).
viewCountNonNegativeInt!
Number of times the listing has been viewed.
viewerProductViewerState!
The caller's rights on the listing.
visibilityProductVisibility!
Whether the listing is publicly visible or hidden from the storefront.

Returned by