CreateProductInput
Input for createProduct.
input CreateProductInput {
name: String!
description: String
images: [String!]
slug: String
shippable: Boolean
unitLabel: String
descriptor: String
active: Boolean
metadata: [KeyValueInput!]
}
Fields
CreateProductInput.name ● String! non-null scalar
Product name, up to 100 characters.
CreateProductInput.description ● String scalar
Product description, up to 1000 characters.
CreateProductInput.images ● [String!] list scalar
Image URLs of the product (https only), up to 8.
CreateProductInput.slug ● String scalar
Short name of the product, unique in the account (for example gold-plan). A slug another product holds is refused.
CreateProductInput.shippable ● Boolean scalar
Whether the product is shipped to the buyer.
CreateProductInput.unitLabel ● String scalar
Name of one unit of the product (for example seat), up to 12 characters.
CreateProductInput.descriptor ● String scalar
Statement descriptor, up to 25 characters.
CreateProductInput.active ● Boolean scalar
Whether the product is active. Defaults to true.
CreateProductInput.metadata ● [KeyValueInput!] list input
Key/value metadata. Each key holds up to 50 characters and each value up to 500.
Member Of
createProduct mutation
Was this page helpful?