Skip to main content
POST
Create Product
V2 Alpha — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Create a new product via Shopify’s productSet mutation on behalf of the authenticated vendor. Includes variants, options, metafields, and media in a single synchronous call. Maximum 100 variants per product. The vendor ID is derived from the JWT token and does not need to be sent in the request body.
Vendor Token Required — This endpoint requires a vendor-scoped JWT token. Merchant tokens will receive a 403 error.

Use Cases

  • Vendor product submission — Let vendors create products directly via API
  • Automated product imports — Import products from external catalogues
  • Headless product management — Build custom vendor product creation flows

Request Body

string
required
Product title (max 255 characters).
string
HTML product description.
string
Product type (max 255 characters).
string
default:"DRAFT"
Initial product status. One of: ACTIVE, DRAFT, ARCHIVED.
string
URL handle (max 255 characters). Auto-generated from title if not provided.
string[]
Product tags (max 250 tags).
object[]
Product options (max 3). Each option has name (string) and values (string array).
object[]
Product variants (max 100). Each variant can include:
  • optionValues — Array of { name, value } matching product options
  • price — Decimal string (e.g. "29.99")
  • sku — SKU string
  • barcode — Barcode string
  • inventoryQuantity — Integer
  • weight — Object with value (number) and optional unit (POUNDS, OUNCES, KILOGRAMS, GRAMS)
object[]
Product metafields. Each has namespace, key, value, and optional type.
object[]
Product media (max 250). Each has originalSource (URL), optional mediaContentType (IMAGE, VIDEO, MODEL_3D, EXTERNAL_VIDEO), and optional alt.
object
SEO settings with optional title (max 255) and description (max 320).
string
Product category.
string
Shopify template suffix for this product.
boolean
Whether the product should be published to the online store.

Response

201

Error Responses

400

Example

More Examples

Create a simple product (no variants)
Create a digital product