product_create

Arguments

ArgumentTypeRequiredDefaultDescription
dataCreateProductInput!Yes

Return Type

CreateProductOutput

Mutation

mutation product_create(
  $data: CreateProductInput!
) {
  product_create(
    data: $data
  ) {
    request_id
    complexity
    product {
      ...ProductFragment
    }
  }
}

Variables

{
  "data": {
    "customer_account_id": "abc123",
    "name": "abc123",
    "sku": "abc123",
    "price": "abc123",
    "value": "abc123",
    "warehouse_products": [CreateWarehouseProductInput],
    "barcode": "abc123",
    "country_of_manufacture": "abc123",
    "dimensions": DimensionsInput,
    "tariff_code": "abc123",
    "product_note": "abc123",
    "kit": true,
    "kit_build": true,
    "no_air": true,
    "final_sale": true,
    "customs_value": "abc123",
    "customs_description": "abc123",
    "not_owned": true,
    "ignore_on_customs": true,
    "ignore_on_invoice": true,
    "dropship": true,
    "needs_serial_number": true,
    "virtual": true,
    "needs_lot_tracking": true,
    "packer_note": "abc123",
    "size": "abc123",
    "style": "abc123",
    "vendor_part_number": "abc123",
    "consumer_package_code": "abc123",
    "buyer_part_number": "abc123",
    "buyer_style_number": "abc123",
    "auto_pack": true,
    "images": [CreateProductImageInput],
    "tags": ["abc123"],
    "vendors": [CreateProductVendorInput],
    "cases": [CreateProductCaseInput]
  }
}

Response

{
  "data": {
    "product_create": {
      "request_id": "abc123",
      "complexity": 987,
      "product": Product
    }
  }
}