Admin API / Mutations
createProduct
Creates one listing: a fixed-price sale, a timed auction, a live auction or a giveaway. Buyers can see it at once, unless visibility is HIDDEN. In a store with one seller (Marketplace.hasMultipleSellers is false) whose plan gates features, only the OWNER creates listings. deleteProducts removes a listing and cancels its auction. After the first bid, updateProduct and deleteProducts refuse an auction listing with ProductLockedError. A repeat with the same idempotencyKey and input returns the first result and creates no second listing.
Requires a client key with one of these scopes:
admin:products:writeRequires this member role or higher: SELLERcreateProduct(
input: CreateProductInput!
): CreateProductPayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateProductInput! | The listing and the idempotency key. |