Skip to main content

Listing Object

Description

Represents a listing (inventory variant) of an item with pricing, stock, and options.

Declaration

type Listing {
_id: ID!
id: Float!
createdBy: UserReference
status: String!
prices: ListingPrice!
comments: String
privateComments: String
location: String
discogsId: Float
taxDefinition: String
preventDiscogsListing: Boolean
readOnly: Boolean
onePerCustomer: Boolean
stock: ListingStock!
options: [ListingOption!]!
supplierCode: String
sku: String
barcode: String
posted: Date
available: Date
preOrder: Boolean
categories: [String!]!
logs: [LogEntry]
archived: Boolean
secondHand: Boolean
}

Fields

NameTypeDescription
_idID!Internal database identifier.
idFloat!Numeric identifier for the listing.
createdByUserReferenceUser who created the listing.
statusString!Status of the listing. Valid values include "active", "inactive", "sold", or "archived".
pricesListingPrice!Pricing information for the listing.
commentsStringPublic comments or notes about the listing.
privateCommentsStringPrivate comments visible only to staff.
locationStringStorage location of the item.
discogsIdFloatExternal identifier from the marketplace system.
taxDefinitionStringTax definition identifier applied to this listing.
preventDiscogsListingBooleanWhether to prevent this listing from being listed on the marketplace system.
readOnlyBooleanWhether the listing is read-only and cannot be modified.
onePerCustomerBooleanWhether only one item per customer is allowed for this listing.
stockListingStock!Stock quantity information.
options[ListingOption!]!Product option variants for this listing.
supplierCodeStringSupplier code for the item.
skuStringStock keeping unit (SKU) identifier.
barcodeStringBarcode identifier for the item.
postedDateDate when the listing was posted or published.
availableDateDate when the item becomes available for purchase.
preOrderBooleanWhether this is a pre-order listing.
categories[String!]!Categories this listing belongs to.
logs ⚠️[LogEntry]Historical log entries for the listing. ⚠️ Deprecated: No longer supported
archivedBooleanWhether the listing is archived.
secondHandBooleanWhether this is a second-hand item.