productCreate

Create a product. The productCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: product:write

For a complete list of input attributes see the ProductAttributes type

mutation productCreate ($attributes: ProductAttributes!) {
  productCreate (attributes: $attributes) {
      errors
      product {
        code
        createdAt
        customFieldsData
        description
        everythingInPlus
        hasCustomFields
        id
        internalNotes
        name
        plansToDisplay
        platformId
        productCategoryId
        showProductNameOnLineItem
        updatedAt
      }
  }
}

ArgumentsLink to Arguments section

{
  "attributes": {
    "name": "",
    "code": "",
    "platformId": "456123",
    "platformIds": [
      "456123"
    ],
    "everythingInPlus": true,
    "description": "",
    "internalNotes": "",
    "productCategoryId": "456123",
    "showProductNameOnLineItem": true,
    "plansToDisplay": 123
  }
}
Name Type Description
attributes ProductAttributes  

ResponseLink to Response section

Name Type Description
errors List (String)  
product Product