action jumpseller_post_products_id_variants_json { label: "Create a new Product Variant." provider: jumpseller method: POST path: "/products/{id}/variants.json" encoding: json input: { type: "object" properties: { variant: { type: "object" properties: { image_id: { type: "integer" format: "int32" description: "Unique identifier of the product image to associate with this variant" } options: { type: "array" items: { type: "object" properties: { name: { type: "string" description: "Name of the product option" } product_option_id: { type: "integer" format: "int32" description: "Id of the product option" } product_option_position: { type: "integer" format: "int32" description: "position of product option" } product_option_value_id: { type: "integer" format: "int32" description: "Id of product option value" } product_value_position: { type: "integer" format: "int32" description: "position of product option value" } value: { type: "string" description: "Value of the product option" } } } } price: { type: "number" format: "float" description: "Price of the product" } sku: { type: "string" description: "Stock Keeping Unit of the Product's Variant" } stock: { type: "integer" format: "int32" description: "Quantity in stock for the Product's Variant" } stock_unlimited: { type: "boolean" description: "True if the Product's Variant has unlimited stock" } } } } } output: { type: "object" properties: { variant: { type: "object" properties: { id: { type: "integer" format: "int32" description: "Unique identifier of the product" } image: { type: "object" properties: { id: { type: "integer" format: "int32" description: "Unique identifier of the image" } position: { type: "integer" format: "int32" description: "Position of the image" } url: { type: "string" description: "Complete URL of the image" } } } options: { type: "array" items: { type: "object" properties: { name: { type: "string" description: "Name of the product option" } product_option_id: { type: "integer" format: "int32" description: "Id of the product option" } product_option_position: { type: "integer" format: "int32" description: "position of product option" } product_option_value_id: { type: "integer" format: "int32" description: "Id of product option value" } product_value_position: { type: "integer" format: "int32" description: "position of product option value" } value: { type: "string" description: "Value of the product option" } } } } price: { type: "number" format: "float" description: "Price of the product" } sku: { type: "string" description: "Stock Keeping Unit of the Product's Variant" } stock: { type: "integer" format: "int32" description: "Quantity in stock for the Product's Variant" } stock_unlimited: { type: "boolean" description: "True if the Product's Variant has unlimited stock" } } } } } }