> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omneo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Product Variants

```json theme={null}
{
  "id": 42311,
  "product_id": 1331,
  "sku": "0133949911",
  "external_id": "13141ADA",
  "barcode": "9000132491131",
  "web_url": "https://demo_site.com/42311",
  "handle": "demo_handle",
  "title": "A demo item",
  "description": "This is an item for demonstration",
  "position": 0,
  "price": 1000,
  "price_discounted": 599.99,
  "price_comparison": 1200,
  "price_cost": 100,
  "available_quantity": 231,
  "images": [],
  "tags": [],
  "options": [
      {
          "name": "Size",
          "value": "61",
          "sort_order": null
      },
      {
          "name": "Colour",
          "value": "900",
          "sort_order": null
      }
  ],
  "created_at": "2020-04-16 11:04:43",
  "updated_at": "2020-04-16 11:04:43",
  "deleted_at": null
}
```

## What are product variants?

Products with variants are products that have similarities, they are usually based on the same model, and differ in some way. Variants allow customers to purchase a product in different aspects such as colour or size. Product variants need to be attached to a master `product_id`

## Product variant properties

| Attribute                           | Description                                                                                                                                                       |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id `INTEGER`                        | A unique Omneo ID for the variant                                                                                                                                 |
| product\_id `INTEGER`               | The `product_id` of the attached Product                                                                                                                          |
| sku `STRING`                        | A string representing the SKU                                                                                                                                     |
| external\_id `STRING`               | A unique external id of the originating system                                                                                                                    |
| barcode `STRING` `BARCODE`          | The unique barcode of the item                                                                                                                                    |
| web\_url `STRING` `URL`             | The URL of a web location to view the product. (eCommerce site, product catalogue)                                                                                |
| handle `STRING`                     | A unique handle for the product                                                                                                                                   |
| title `STRING`                      | The title of the product                                                                                                                                          |
| description `STRING`                | The description of the product                                                                                                                                    |
| position `INTEGER`                  | The position of the product with 0 being first. This will influence the default ordering of products                                                              |
| price `FLOAT`                       | The full price of the item.                                                                                                                                       |
| price\_discounted `FLOAT`           | The discounted price of the item.                                                                                                                                 |
| price\_comparison `FLOAT`           | The 'compare at' price of the item                                                                                                                                |
| price\_cost `FLOAT`                 | The cost price of the item                                                                                                                                        |
| available\_quantity `INTEGER`       | The quantity available for sale                                                                                                                                   |
| images `ARRAY`                      | Product images attached to the item                                                                                                                               |
| tags `ARRAY`                        | Tags attached to the item                                                                                                                                         |
| options `ARRAY`                     | Options attached to the item                                                                                                                                      |
| created\_at `READ-ONLY` `DATE-TIME` | The UTC date & time the Product Variant record was created in ISO 8601 format.                                                                                    |
| updated\_at `READ-ONLY` `DATE-TIME` | The UTC date & time the Product Variant record was last updated in ISO 8601 format.                                                                               |
| deleted\_at `READ-ONLY` `DATE-TIME` | The UTC date & time the Product Variant was soft-deleted, or `null` if not deleted. Variants are soft-deleted automatically when their parent product is deleted. |
