Admin API / Types
Product
ObjectA product listing owned by a seller.
Requires a client key with one of these scopes:admin:products:readThe requirement applies to every field of Product unless that field declares its own scopes.
type Product implements NodeFields
| Field | Type | Description |
|---|---|---|
activeAuction | Auction | 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. |
activeNegotiationCount | NonNegativeInt! | Number of ACTIVE negotiations on the listing's variants whose expiresAt is in the future. The same for every caller. |
audience | ProductAudience! | Who can buy the listing: every buyer, or only subscribers of a tier that the seller named. |
availability | AvailabilityState! | Whether an active variant has unlimited stock or remaining inventory. |
availableQuantity | NonNegativeInt | Total remaining quantity across the listing's active variants. Null when any active variant has unlimited stock. |
bookmarkCount | NonNegativeInt! | Number of buyer bookmarks on the listing's variants, in every variant state. |
collections | ProductCollectionConnection! | 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). |
createdAt | DateTime! | When the listing was created. |
customOrder | ProductCustomOrder | 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. |
description | String! | The listing's long-form description. Empty string when unset. |
digitalAssetCount | NonNegativeInt! | Number of digital files on the listing's active variants. A file on several variants counts once. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
lastOrderedAt | DateTime | 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. |
lifecycle | ProductLifecycle! | The stage of the listing's sale, from its deletion, its stock, its auction and its giveaways. Each listing has one value. |
liveAuctionUnits | LiveAuctionUnits | 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 |
lockReason | ProductLockReason | 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. |
magicCode | String | The six-digit magic code buyers use to claim this listing from a social post or a Messenger message. Null until generateProductMagicCode mints one. |
media | ProductMediaConnection! | 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). |
offerEligibility | ProductOfferEligibility! | How offers participate in purchasing this listing. |
priceRange | ProductPriceRange | Price range across the listing's active variants. Null when the listing has no active variants. |
saleMode | ProductSaleMode! | How the listing is sold. Every listing has exactly one sale mode. |
salesStats | ProductSalesStats | 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 |
seller | User! | 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. |
shipping | ProductShipping! | How the listing ships: one setting per destination, and the parcel and ship-from that calculated rates use. |
slug | Slug! | URL-friendly unique identifier. |
taxonomyCategory | TaxonomyCategory | 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. |
title | String! | The listing's customer-facing title. |
updatedAt | DateTime! | 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. |
url | URL! | The listing page on the store's District storefront host. Its last path segment is the slug that productBySlug takes. |
variantCount | NonNegativeInt! | Number of active variants on this listing. |
variants | ProductVariantConnection! | 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). |
viewCount | NonNegativeInt! | Number of times the listing has been viewed. |
viewer | ProductViewerState! | The caller's rights on the listing. |
visibility | ProductVisibility! | Whether the listing is publicly visible or hidden from the storefront. |
Returned by
AddLivestreamProductItemSuccess.productAuction.productAuctionInProgressError.productCollectionProductEdge.nodeConvertProductToLiveAuctionItemSuccess.productCreateProductSuccess.productDuplicateProductSuccess.productsGenerateProductMagicCodeSuccess.productLivestreamProductEdge.nodeLivestreamStage.productMagicPost.productNegotiation.productOrderItem.productProductEdge.nodeProductLockedError.productProductNotConvertibleError.productProductSales.productProductVariant.productQuery.productQuery.productBySlugRemoveLivestreamProductItemSuccess.productSetProductVisibilityItemSuccess.productUpdateProductCollectionsItemSuccess.productUpdateProductSuccess.productViewerProductEdge.node