Admin API / Types
ProductValidationIssueCode
EnumWhy a listing input is invalid. Additional values may be added; clients must handle values they do not recognize.
enum ProductValidationIssueCodeValues
AUCTION_SCHEDULE_INVALID:saleMode.timedAuctiontimes that break a rule:endsAtis not 1 minute (7 minutes for a later start) to 30 days after the start, orstartsAtis more than 30 days from now.COLLECTION_NOT_FOUND:collectionIdsholds an unknown, deleted, automated or livestream collection.CURRENCY_NOT_SUPPORTED: A price in a currency other than USD.DUPLICATE_SHIPPING_COUNTRY: Two shipping settings for one destination.GIVEAWAY_DURATION_INVALID:saleMode.giveaway.durationis not 1 to 2147483647 whole seconds.GIVEAWAY_VARIANT_MUST_SHIP: A giveaway variant withrequiresShipping: false. The giveaway winner gets a shipment.LIVE_AUCTION_DURATION_INVALID:saleMode.liveAuction.durationis not 3 to 120 seconds in whole seconds.MEDIA_FILE_NOT_PUBLIC:fileUrlis on the District files image host, but it is not the public URL of an image that is public now.MEDIA_LIMIT_EXCEEDED: More than 30 items inmedia, more than 30 items on the listing after amediaChangesthat adds an item, more than 30 items in themediaof a variant, more than 600 variant images in one write, or more than 100 differentfileUrlvalues in one write. Videos have no separate limit.MEDIA_NOT_A_DISTRICT_FILE:fileUrlis not an HTTPS URL on the District files image host of this environment.MEDIA_NOT_FOUND: Amediaitem names no image upload with a stored original, noCOMPLETEDvideo upload of the caller and no item of this listing. A video upload whose metadata records no duration also gives this code. In themediaof a variant, amediaIdthat names no image upload of the caller gives this code. In avideoitem, an ID that names no upload of the caller, such as aProduct.mediaID, gives this code. InmediaChanges.add, aProduct.mediaID gives this code, and inmediaChanges.remove, an ID that is not an item of the listing.MEDIA_TYPE_NOT_ALLOWED: Amediaitem names a type of media that the field does not take: a video upload in themediaof a variant, which takes images only, an image upload asvideo.mediaId, or a video upload asvideo.posterMediaId.MEDIA_VIDEO_TOO_LONG: Amediaitem names a video upload that recorded more than 91 seconds (90 seconds and 1 second of tolerance).PARCEL_INVALID: A parcel weight or side that is not greater than 0.PARCEL_REQUIRED: ACALCULATEDshipping setting withoutparcelororigin, or one of the two sent without the other.PRICE_MISSING: AFIXEDorPROGRESSIVEshipping setting withoutprice, or aPROGRESSIVEone withoutadditionalItemPrice.PRICE_OUT_OF_RANGE: A variant price outsideMarketplace.listingRules.minimumPricetomaximumPrice, with no upper bound whenmaximumPriceis null, after rounding to cents, or a giveaway price other than 0.QUANTITY_INVALID: The stock breaks a rule.createProductandupdateProduct:availableQuantityis missing on a variant that ships, is sent for a variant that does not ship (its stock is unlimited), or is not 1 on an auction or giveaway variant that ships.adjustProductVariantQuantities: the change leaves stock below 0 or above 2,147,483,647, or the variant is an auction or giveaway variant or has unlimited stock.SHIPPING_COUNTRY_NOT_ALLOWED: A destination other thanUSwhenMarketplace.listingRules.shipsToUnitedStatesOnlyis true.SHIPPING_PROFILE_INCOMPLETE:shipping.shippingProfileIdnames a profile that cannot fill the listing's shipping: it has no setting, aFIXEDorPROGRESSIVEsetting without a valid price, aCALCULATEDsetting without a service level, or aCALCULATEDsetting and no stored ship-from or valid parcel.SHIPPING_PROFILE_NOT_FOUND:shipping.shippingProfileIdnames no profile of the listing seller that the caller can read. A deleted profile is not found.SHIPPING_REQUIRED: No shipping setting while a variant ships.SHIPPING_SETTING_INVALID: A shipping setting that does not match itstype: a negative price, aCALCULATEDsetting withoutserviceLevelToken, or a field that the type does not take.TAXONOMY_CATEGORY_NOT_FOUND:taxonomyCategoryIdnames no category inMarketplace.taxonomyCategories: an unknown category, or a category outside the allow-list of the marketplace.TAXONOMY_CATEGORY_NOT_LEAF:taxonomyCategoryIdnames a category with children. Only a leaf category (TaxonomyCategory.isLeaf) is allowed.UNSUPPORTED_FOR_SALE_MODE:saleMode,variantsorvariantChangessent for an auction or giveaway listing, orsaleMode.timedAuctionsent toupdateProduct. The other fields of such a listing can change.VARIANT_COUNT_INVALID: 0 or more than 999 variants, or not 1 for an auction or a giveaway.VARIANT_NOT_FOUND:productVariantIdor avariantChanges.removeID is not a stored variant of this listing, orproductVariantIdis sent tocreateProductor invariantChanges.add.VARIANT_TITLE_REQUIRED: A variant withouttitlewhen the listing has more than one variant.