Admin API / Types

ProductValidationIssueCode

Enum

Why a listing input is invalid. Additional values may be added; clients must handle values they do not recognize.

enum ProductValidationIssueCode

Values

  • AUCTION_SCHEDULE_INVALID: saleMode.timedAuction times that break a rule: endsAt is not 1 minute (7 minutes for a later start) to 30 days after the start, or startsAt is more than 30 days from now.
  • COLLECTION_NOT_FOUND: collectionIds holds 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.duration is not 1 to 2147483647 whole seconds.
  • GIVEAWAY_VARIANT_MUST_SHIP: A giveaway variant with requiresShipping: false. The giveaway winner gets a shipment.
  • LIVE_AUCTION_DURATION_INVALID: saleMode.liveAuction.duration is not 3 to 120 seconds in whole seconds.
  • MEDIA_FILE_NOT_PUBLIC: fileUrl is 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 in media, more than 30 items on the listing after a mediaChanges that adds an item, more than 30 items in the media of a variant, more than 600 variant images in one write, or more than 100 different fileUrl values in one write. Videos have no separate limit.
  • MEDIA_NOT_A_DISTRICT_FILE: fileUrl is not an HTTPS URL on the District files image host of this environment.
  • MEDIA_NOT_FOUND: A media item names no image upload with a stored original, no COMPLETED video upload of the caller and no item of this listing. A video upload whose metadata records no duration also gives this code. In the media of a variant, a mediaId that names no image upload of the caller gives this code. In a video item, an ID that names no upload of the caller, such as a Product.media ID, gives this code. In mediaChanges.add, a Product.media ID gives this code, and in mediaChanges.remove, an ID that is not an item of the listing.
  • MEDIA_TYPE_NOT_ALLOWED: A media item names a type of media that the field does not take: a video upload in the media of a variant, which takes images only, an image upload as video.mediaId, or a video upload as video.posterMediaId.
  • MEDIA_VIDEO_TOO_LONG: A media item 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: A CALCULATED shipping setting without parcel or origin, or one of the two sent without the other.
  • PRICE_MISSING: A FIXED or PROGRESSIVE shipping setting without price, or a PROGRESSIVE one without additionalItemPrice.
  • PRICE_OUT_OF_RANGE: A variant price outside Marketplace.listingRules.minimumPrice to maximumPrice, with no upper bound when maximumPrice is null, after rounding to cents, or a giveaway price other than 0.
  • QUANTITY_INVALID: The stock breaks a rule. createProduct and updateProduct: availableQuantity is 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 than US when Marketplace.listingRules.shipsToUnitedStatesOnly is true.
  • SHIPPING_PROFILE_INCOMPLETE: shipping.shippingProfileId names a profile that cannot fill the listing's shipping: it has no setting, a FIXED or PROGRESSIVE setting without a valid price, a CALCULATED setting without a service level, or a CALCULATED setting and no stored ship-from or valid parcel.
  • SHIPPING_PROFILE_NOT_FOUND: shipping.shippingProfileId names 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 its type: a negative price, a CALCULATED setting without serviceLevelToken, or a field that the type does not take.
  • TAXONOMY_CATEGORY_NOT_FOUND: taxonomyCategoryId names no category in Marketplace.taxonomyCategories: an unknown category, or a category outside the allow-list of the marketplace.
  • TAXONOMY_CATEGORY_NOT_LEAF: taxonomyCategoryId names a category with children. Only a leaf category (TaxonomyCategory.isLeaf) is allowed.
  • UNSUPPORTED_FOR_SALE_MODE: saleMode, variants or variantChanges sent for an auction or giveaway listing, or saleMode.timedAuction sent to updateProduct. 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: productVariantId or a variantChanges.remove ID is not a stored variant of this listing, or productVariantId is sent to createProduct or in variantChanges.add.
  • VARIANT_TITLE_REQUIRED: A variant without title when the listing has more than one variant.

Returned by