Skip to main content

Create the product shell

Important

This feature is currently in Early Availability (EA) status. For more information, see GraphQL API policy.

The first part of product creation involves creating the "product shell", which contains the basic product information such as name, description, and type. When you create the product shell, we recommend that you request the product ID and vendor ID, which you need for subsequent API requests.

To create a product shell, use the createProduct mutation.

Mutation

mutation {
createProduct(
input: {
type: WEB_APP
addon: false
allowMultiplePurchases: true
usageType: MULTI_USER
referable: false
}
) {
product {
id
vendorId
}
}
}

Response

{
"data": {
"createProduct": {
"product": {
"id": "06ea7f9d-4a1b-4a00-810f-089ac43972e2",
"vendorId": "ce0a5582-2601-4080-b969-99f949492982"
}
}
}
}

Was this page helpful?