createProduct

Version 2024-04-01

Overview

Create a Product.

ℹ️

Required scope(s)

View & Edit Catalog Data

Response

Return type CreateProductResponse

Arguments

ArgumentDescription
input (CreateProductInput required)

Specifies the input fields required to create a new Product.

Examples


Create Product

Request

mutation CreateProduct {
    createProduct(
        input: {
            externalId: "product-externalId"
            amazonSku: {
                value: "product-amazon-sku"
            }
            sku: "product-sku"
            offerPrime: true
            productDetailPageUrl: "https://example.com/products/my-product"
            image: {
                sourceUrl: "https://example.com/products/my-product.jpg"
            }
        }
    ) {
        id
    }
}

Response

{
    "data": {
        "createProduct": {
            "id": "abcdef01234567"
        }
    }
}