Admin API / Mutations

duplicateProduct

Makes 1 to 20 numbered copies of a fixed-price, auction or giveaway listing for the same seller. Titles continue from the seller's highest #N: the copies of Blue mug are #01 - Blue mug, #02 - Blue mug and up, and the copy after #07 - Blue mug is #08 - Blue mug. Each copy keeps the description, photos, videos, shipping, audience, visibility and offer setting of the listing, and its memberships in the manual collections that the caller can manage. Each copy of a fixed-price listing has the ACTIVE variants of the listing with their images and digital files, no SKU, and 1 in stock for a variant that ships. Each copy of an auction listing has its own auction with no bids, and the first ACTIVE variant of the listing with the auction floor as its price. A live auction copy is NOT_STARTED in no livestream and keeps the duration, pre-bids and sudden death. A timed auction copy starts at the later of now and the start of the listing's auction, and runs for the same length. Each copy of a giveaway listing has its own NOT_STARTED giveaway with the duration, audience and domestic limit of the listing's giveaway and no entries, one variant at price 0 that ships with 1 in stock and no images, and, in place of the listing's audience and offer setting, no subscriber limit and no offers. In a store with one seller (Marketplace.hasMultipleSellers is false) whose plan gates features, only the OWNER makes copies. deleteProducts removes a copy. A repeat with the same idempotencyKey and input returns the first result and makes no more copies.

Requires a client key with one of these scopes: admin:products:writeRequires this member role or higher: SELLER
duplicateProduct(
  input: DuplicateProductInput!
): DuplicateProductPayload!

Arguments

ArgumentTypeDescription
inputDuplicateProductInput!The listing, the number of copies and the idempotency key.

Return type

DuplicateProductPayload!