Skip to main content

ItemListingInput Input

Description

Input fields for creating or updating a listing, including stock, status, pricing, location, and other listing-specific information.

Declaration

input ItemListingInput {
stock: ItemListingInputStock
status: String!
available: String!
posted: String
secondHand: Boolean
location: String
supplierCode: String
categories: [String!]
comments: String
taxDefinition: String
options: [ItemListingInputOption]
prices: ItemListingInputPrices
barcode: String
sku: String
privateComments: String
onePerCustomer: Boolean
preventDiscogsListing: Boolean
preOrder: Boolean
discogsId: Float
}

Fields

NameTypeDescription
stockItemListingInputStockStock information including quantity available.
statusString!Listing status. Valid values include "published" (visible to customers), "draft" (not visible), or "private" (visible only to admins).
availableString!Date when the listing becomes available for purchase, in ISO 8601 format (YYYY-MM-DD).
postedStringDate when the listing was posted or published, in ISO 8601 format (YYYY-MM-DD).
secondHandBooleanWhether this listing is for a second-hand item.
locationStringLocation name where the item is stored or available.
supplierCodeStringSupplier code associated with this listing.
categories[String!]List of category names to associate this listing with.
commentsStringPublic comments or notes about the listing, visible to customers.
taxDefinitionStringTax definition identifier to apply to this listing for tax calculation.
options[ItemListingInputOption]List of option values for variant listings (e.g., size, color, format).
pricesItemListingInputPricesPricing information including cost, sale price, and compare-at price.
barcodeStringBarcode (UPC, EAN, etc.) for the listing.
skuStringStock keeping unit (SKU) identifier for the listing.
privateCommentsStringPrivate comments or notes about the listing, visible only to admins.
onePerCustomerBooleanWhether this listing can only be purchased once per customer.
preventDiscogsListingBooleanWhether to prevent this listing from being automatically listed on Discogs when Discogs sync is enabled.
preOrderBooleanWhether this listing is available for pre-order (item not yet available but can be ordered).
discogsIdFloatDiscogs listing ID if this listing is synchronized with Discogs marketplace.