Product types

This list contains all query and inputs types for the product endpoints.


Product

Fields

  • Name
    id
    Type
    String!
    Description

    Unique identifier for the product.

  • Name
    _id
    Type
    Int!
    Description

    Unique number identifier for the product.

  • Name
    updated_at
    Type
    TimeStamp!
    Description

    Timestamp of when the product was updated.

    Arguments

  • Name
    format
    Type
    String
    Description

    The supported format parameters: fromNow YYYY-MM-DD HH:mm:ss

  • Name
    suffix
    Type
    Boolean
    Description

    TimeStamp suffix

  • Fields

    scalar TimeStamp

  • Name
    created_at
    Type
    TimeStamp!
    Description

    Timestamp of when the product was created.

  • Name
    title
    Type
    String!
    Description

    The product title.

  • Name
    description
    Type
    String
    Description

    The product description.

  • Name
    price
    Type
    Float!
    Description

    The product price.

  • Name
    compare_at_price
    Type
    Float!
    Description

    The product compare price.

  • Name
    images
    Label
    [Image!]!
    Description

    The product images.

  • Name
    images_ids
    Type
    [Int!]!
    Description

    The product image ids.

  • Name
    options
    Type
    [ProductOption!]!
    Description

    The product options.

    type ProductOption {
    	id: String!
    	label: String!
    	options: [String!]!
    	type: ProductOptionTypeEnum!
    	options_types: [ProductOptionType!]!
    }
    
    enum ProductOptionTypeEnum {
    	image
    	text
    	color
    }
    
    type ProductOptionType {
    	option_id: String!
    	value: ProductOptionTypeValue!
    }
    
    scalar ProductOptionTypeValue
    
  • Name
    variants
    Label
    [ProductVariant!]!
    Description

    The product variants.

  • Name
    default_variant
    Label
    ProductVariant!
    Description

    The product default variants.

  • Name
    reviews
    Label
    ReviewConnection!
    Description

    The product reviews.

  • Name
    tags
    Label
    [Tag!]!
    Description

    The product tags.

  • Name
    review_score
    Type
    Float!
    Description

    The product review score.

  • Name
    review_count
    Type
    Int!
    Description

    The product review count.

  • Name
    thumbnail
    Label
    Image
    Description

    The product thumbnail.

  • Name
    order_bump
    Type
    ProductBump!
    Description

    The product order bump.

    type ProductBump {
    	id: String!
    	title: String!
    	price: Float!
    	compare_at_price: Float!
    	description: String!
    	enabled: Boolean!
    	image: Image
    	image_id: Int
    	file_id: Int
    	sku: String!
    	file: File
    }
    
  • Name
    countdown
    Type
    ProductCountdown!
    Description

    The product countdown timer.

    type ProductCountdown {
    	enabled: Boolean!
    	evergreen: Boolean!
    	minutes: Int!
    	due: String
    }
    
  • Name
    sticky
    Type
    ProductSticky!
    Description

    The product sticky buy button.

    type ProductSticky {
    	enabled: Boolean!
    }
    
  • Name
    features
    Type
    [ProductFeatures!]!
    Description

    The product features.

    type ProductFeatures {
    	id: String!
    	title: String!
    	description: String!
    	image: Image
    	image_id: Int
    }
    
  • Name
    testimonials
    Type
    [ProductTestimonials!]!
    Description

    The product testimonials.

    type ProductTestimonials {
    	image: Image
    	image_id: Int
    	id: String!
    	name: String!
    	position: String!
    	comment: String!
    }
    
  • Name
    faq
    Type
    [ProductFaq!]!
    Description

    The product faq.

    type ProductFaq {
    	id: String!
    	question: String!
    	answer: String!
    }
    
  • Name
    notice_text
    Type
    String!
    Description

    The product notice text.

  • Name
    product_type
    Type
    ProductType!
    Description

    The product type.

    enum ProductType {
    	physical_product
    	digital_product
    }
    
  • Name
    default_variant_id
    Type
    Int!
    Description

    The product default variant id.

  • Name
    pages
    Label
    [ProductPage!]!
    Description

    The product pages.

  • Name
    enable_price_bundles
    Type
    Boolean!
    Description

    The product enable page bundles option.

  • Name
    shipping_group_id
    Type
    String
    Description

    The product shipping group id.

  • Name
    price_bundle_id
    Type
    String
    Description

    The product price bundle id.

  • Name
    price_bundle
    Label
    PriceBundle
    Description

    The product price bundle.

  • Name
    file
    Label
    File
    Description

    The product file.

  • Name
    file_id
    Type
    Int
    Description

    The product file id.

  • Name
    sku
    Type
    String!
    Description

    The product sku.

  • Name
    upsell_product
    Label
    Product
    Description

    The product upsell.

  • Name
    downsell_product
    Label
    Product
    Description

    The product downsell.

  • Name
    upsell_product_id
    Type
    Int
    Description

    The product upsell id.

  • Name
    downsell_product_id
    Type
    Int
    Description

    The product downsell id.

  • Name
    published
    Type
    Boolean!
    Description

    The product published option.

  • Name
    has_published_funnel
    Type
    Boolean!
    Description

    The product has published funnel option.

Request

POST
https://api.lightfunnels.com/graphql
query productsQuery($first: Int, $after: String, $query: String!){
	products(query: "order_by:id order_dir:desc", after: "WzVE4OTA5LDEe/4OTA5XQ==", first: 10){
		edges{
			node{
				id
				_id
				title
				price
				thumbnail{
					path(version: version1)
				}
				created_at
				...
			}
		}
	}
}

InputProduct

Fields

  • Name
    title
    Type
    String!
    Description

    The product title.

  • Name
    description
    Type
    String
    Description

    The product description.

  • Name
    price
    Type
    Float
    Description

    The product price.

  • Name
    sku
    Type
    String
    Description

    The product sku.

  • Name
    compare_at_price
    Type
    Float
    Description

    The product compare price.

  • Name
    options
    Type
    [InputProductOption!]!
    Description

    The product options.

    input InputProductOption {
    	id: String
    	label: String
    	options: [String!]
    	type: ProductOptionTypeEnum! = text
    	options_types: [InputProductOptionType!]! = []
    }
    
    input InputProductOptionType {
    	option_id: String!
    	value: ProductOptionTypeValue!
    }
    
    scalar ProductOptionTypeValue
    
  • Name
    images
    Type
    [Int!]
    Description

    The product images.

  • Name
    variants
    Type
    [InputProductVariant!]!
    Description

    The product variants.

    input InputProductVariant {
    	id: Int
    	price: Float = 0
    	compare_at_price: Float = 0
    	image: Int
    	file_id: Int
    	sku: String
    	options: [InputProductOptionValue!]! = []
    }
    
    input InputProductOptionValue {
    	value: String!
    	id: String!
    }
    
  • Name
    tags
    Type
    [Int]
    Description

    The product tags.

  • Name
    order_bump
    Type
    InputProductBump
    Description

    The product order bump.

    input InputProductBump {
    	id: String!
    	title: String!
    	price: Float!
    	compare_at_price: Float!
    	description: String!
    	sku: String!
    	enabled: Boolean!
    	image: Int
    	file_id: Int
    }
    
  • Name
    countdown
    Type
    InputProductCountdown
    Description

    The product countdown.

    input InputProductCountdown {
    	enabled: Boolean!
    	evergreen: Boolean!
    	minutes: Int
    	due: String
    }
    
  • Name
    sticky
    Type
    InputProductSticky
    Description

    The product sticky.

    input InputProductSticky {
    	enabled: Boolean!
    }
    
  • Name
    features
    Type
    [InputProductFeatures!]
    Description

    The product features.

    input InputProductFeatures {
    	id: String!
    	title: String!
    	description: String!
    	image: Int
    }
    
  • Name
    testimonials
    Type
    [InputProductTestimonials!]
    Description

    The product testimonials.

    input InputProductTestimonials {
    	id: String!
    	name: String!
    	position: String!
    	image: Int
    	comment: String!
    }
    
  • Name
    faq
    Type
    [InputProductFaq!]
    Description

    The product faq.

    input InputProductFaq {
    	id: String!
    	question: String!
    	answer: String!
    }
    
  • Name
    notice_text
    Type
    String
    Description

    The product notice text.

  • Name
    product_type
    Type
    ProductType
    Description

    The product type.

    enum ProductType {
    	physical_product
    	digital_product
    }
    
  • Name
    enable_price_bundles
    Type
    Boolean
    Description

    The product enable price bundle option.

  • Name
    shipping_group_id
    Type
    String
    Description

    The product shipping group id.

  • Name
    price_bundle_id
    Type
    String
    Description

    The product price bundle id.

  • Name
    file_id
    Type
    Int
    Description

    The product file id.

  • Name
    upsell_product_id
    Type
    Int
    Description

    The product upsell product id.

  • Name
    downsell_product_id
    Type
    Int
    Description

    The product downsell product id.

  • Name
    pages
    Label
    [InputProductPage!]
    Description

    The product pages.

Request

POST
https://api.lightfunnels.com/graphql
mutation mutationName($node: InputProduct!) {
	createProduct(node: $node){
		# Product fields
	}
}

InputUpdateProduct

Fields

  • Name
    title
    Type
    String!
    Description

    The product title.

  • Name
    description
    Type
    String
    Description

    The product description.

  • Name
    price
    Type
    Float
    Description

    The product price.

  • Name
    sku
    Type
    String
    Description

    The product sku.

  • Name
    compare_at_price
    Type
    Float
    Description

    The product compare price.

  • Name
    options
    Type
    [InputProductOption!]!
    Description

    The product options.

    input InputProductOption {
    	id: String
    	label: String
    	options: [String!]
    	type: ProductOptionTypeEnum! = text
    	options_types: [InputProductOptionType!]! = []
    }
    
    input InputProductOptionType {
    	option_id: String!
    	value: ProductOptionTypeValue!
    }
    
    scalar ProductOptionTypeValue
    
  • Name
    images
    Type
    [Int!]
    Description

    The product images.

  • Name
    variants
    Type
    [InputProductVariant!]!
    Description

    The product variants.

  • Name
    tags
    Type
    [Int]
    Description

    The product tags.

  • Name
    order_bump
    Type
    InputProductBump
    Description

    The product order bump.

  • Name
    countdown
    Type
    InputProductCountdown
    Description

    The product countdown.

  • Name
    sticky
    Type
    InputProductSticky
    Description

    The product sticky.

  • Name
    features
    Type
    [InputProductFeatures!]
    Description

    The product features.

  • Name
    testimonials
    Type
    [InputProductTestimonials!]
    Description

    The product testimonials.

  • Name
    faq
    Type
    [InputProductFaq!]
    Description

    The product faq.

    input InputProductFaq {
    	id: String!
    	question: String!
    	answer: String!
    }
    
  • Name
    notice_text
    Type
    String
    Description

    The product notice text.

  • Name
    product_type
    Type
    ProductType
    Description

    The product type.

    enum ProductType {
    	physical_product
    	digital_product
    }
    
  • Name
    enable_price_bundles
    Type
    Boolean
    Description

    The product enable price bundle option.

  • Name
    shipping_group_id
    Type
    String
    Description

    The product shipping group id.

  • Name
    price_bundle_id
    Type
    String
    Description

    The product price bundle id.

  • Name
    file_id
    Type
    Int
    Description

    The product file id.

  • Name
    upsell_product_id
    Type
    Int
    Description

    The product upsell product id.

  • Name
    downsell_product_id
    Type
    Int
    Description

    The product downsell product id.

  • Name
    published
    Type
    Boolean
    Description

    The product published option.

  • Name
    pages
    Label
    [InputProductPage!]
    Description

    The product pages.

Request

POST
https://api.lightfunnels.com/graphql
mutation updateProductMutation($node: InputUpdateProduct!, $id: Int!){
	updateProduct(node: $node, id: $id){
		# Product fields
	}
}

ProductVariant

Fields

  • Name
    id
    Type
    String!
    Description

    Unique identifier for the product.

  • Name
    _id
    Type
    Int!
    Description

    Unique number identifier for the product.

  • Name
    updated_at
    Type
    TimeStamp!
    Description

    Timestamp of when the product was updated.

  • Name
    created_at
    Type
    TimeStamp!
    Description

    Timestamp of when the product was created.

  • Name
    price
    Type
    Float!
    Description

    The product price.

  • Name
    compare_at_price
    Type
    Float!
    Description

    The product compare price.

  • Name
    sku
    Type
    String!
    Description

    The product sku.

  • Name
    title
    Type
    String!
    Description

    The product title.

  • Name
    image
    Label
    Image
    Description

    The product image.

  • Name
    image_id
    Type
    Int
    Description

    The product image id.

  • Name
    file
    Label
    File
    Description

    The product file.

  • Name
    file_id
    Type
    Int
    Description

    The product file id.

  • Name
    product_id
    Type
    Int!
    Description

    The product id.

  • Name
    options
    Type
    [ProductOptionValue!]!
    Description

    The product options.

    type ProductOptionValue {
    	id: String!
    	value: String!
    }
    
  • Name
    labeldOptions (typo here)
    Type
    [OrderVariantOption!]!
    Description

    The product options.

    type OrderVariantOption {
    	id: String!
    	label: String!
    	value: String!
    }
    

File

Fields

  • Name
    id
    Type
    String!
    Description

    Unique identifier for the product file.

  • Name
    _id
    Type
    Int!
    Description

    Unique number identifier for the product file.

  • Name
    updated_at
    Type
    TimeStamp!
    Description

    Timestamp of when the product file was updated.

  • Name
    created_at
    Type
    TimeStamp!
    Description

    Timestamp of when the product file was created.

  • Name
    title
    Type
    String!
    Description

    The product file title.

  • Name
    path
    Type
    String!
    Description

    The product file path.

  • Name
    key
    Type
    String!
    Description

    The product file key.

  • Name
    size (format: String)
    Type
    String!
    Description

    The product file size.


Tag

Fields

  • Name
    id
    Type
    String!
    Description

    Unique identifier for the product tag.

  • Name
    _id
    Type
    Int!
    Description

    Unique number identifier for the product tag.

  • Name
    updated_at
    Type
    TimeStamp!
    Description

    Timestamp of when the product tag was updated.

  • Name
    created_at
    Type
    TimeStamp!
    Description

    Timestamp of when the product tag was created.

  • Name
    title
    Type
    String!
    Description

    The product tag title.


ProductPage

Fields

  • Name
    id
    Type
    String!
    Description

    Unique identifier for the product page.

  • Name
    _id
    Type
    Int!
    Description

    Unique number identifier for the product page.

  • Name
    type
    Type
    StepType!
    Description

    The product page type.

    enum StepType {
    	blank_page
    	product_page
    	checkout_page
    	upsell_page
    	downsell_page
    	split_test
    	article_page
    	squeeze_page
    	thank_you_page
    	generic_page
    }
    
  • Name
    body
    Type
    StepBody!
    Description

    The product page body.

    scalar StepBody
    

InputProductPage

Fields

  • Name
    type
    Type
    StepType!
    Description

    The product page type.

    enum StepType {
    	blank_page
    	product_page
    	checkout_page
    	upsell_page
    	downsell_page
    	split_test
    	article_page
    	squeeze_page
    	thank_you_page
    	generic_page
    }
    
  • Name
    body
    Type
    StepBody!
    Description

    The product page body.

    scalar StepBody
    

ProductConnection

Fields

  • Name
    pageInfo
    Type
    PageInfo!
    Description

    Product connection page info.

    type PageInfo {
    	hasNextPage: Boolean!
    	hasPreviousPage: Boolean!
    	startCursor: String
    	endCursor: String
    }
    
  • Name
    edges
    Type
    [ProductEdge]
    Description

    The Product connection edges.

    type ProductEdge {
    	node: Product
    	cursor: String!
    }
    
  • Name
    count
    Type
    Int!
    Description

    Product connection count.