---
title: "productCreate"
description: >
  Create a product in the store.  :::tip{title="TIP"} The API does not support direct management of product SEO information. Product SEO details are managed via metafields. For operation instructions, refer to [Editing SEO information for the corresponding resource page through metafield's Open API](https://developer.shopline.com/docs/apps/shopline-metafields/overview#metafields-seo-data-optimization).  When creating a product via this API, the initial value for `seoTitle` is assigned through `title`, and the initial value for `seoDescription` is assigned through `descriptionHtml `. :::
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/mutations/product-create'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/mutations/product-create.md'
---
# productCreate

Create a product in the store.

:::tip{title="TIP"}
The API does not support direct management of product SEO information. Product SEO details are managed via metafields. For operation instructions, refer to [Editing SEO information for the corresponding resource page through metafield's Open API](https://developer.shopline.com/docs/apps/shopline-metafields/overview#metafields-seo-data-optimization).

When creating a product via this API, the initial value for `seoTitle` is assigned through `title`, and the initial value for `seoDescription` is assigned through `descriptionHtml `.
:::

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Arguments

* `input`

  [ProductInput!](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/product-input.md)

  Product-related fields required for product creation.

* `media`

  [[CreateMediaInput!]](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/inputs/create-media-input.md)

  Media-related fields required for product creation.

## Returns

* `product`

  [Product](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product.md)

  Created product object.

* `userErrors`

  [[UserError]!](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/user-error.md)

  List of errors returned during mutation execution.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

