SmakeSmake API Docs
EndpointsVariants

List Variants

GET
/variants

Here you can view a product variant or design a new one from an existing product variant.

When designing, information such as customizations, dimensions, files, etc. must be transferred. After that you will receive a new product variant that can be ordered.

Returns a collection of variants.

Filtering

You can filter your results as follows — see Pagination, Filtering:

  • /variants?filter[id]=1 / /variants?filter[id]=1,2,3 — list variants for specified id(s)
  • /variants?filter[origin.sku]=42443 — list variants for a specified sku (not an exact search)
  • /variants?filter[origin.external_identifier]=extern-123 — list variants for external identifier
  • /variants?filter[collection_name]=catalogue — list variants for specified collection name(s)

Expanding relationships

You can expand some resources to show more details — see Expanding Objects:

  • /variants?expand=product — show the content of the product instead of the id
  • /variants?expand=views.customizations.resource — show the content of the customizations' resource
AuthorizationBearer
AuthorizationBearer <token>

In: header

Query Parameters

filter[id]?string

List variants for specified id(s). Multiple ids are separated by comma: /variants?filter[id]=1 or /variants?filter[id]=1,2,3.

filter[collection_name]?string

List variants for specified collection name(s): /variants?filter[collection_name]=catalogue.

Allowed values are:

Collection nameDescription
catalogueAll variants which are created in the app administration. This can be used for designing.
customVariants which are designed by you but not ordered. See Design.
orderedAll ordered variants.

Value in

  • "catalogue"
  • "custom"
  • "ordered"
filter[origin.sku]?string

List variants for a specified sku. The filtering is not an exact search, it looks for the given value at the start of the attribute value: /variants?filter[origin.sku]=42443.

filter[origin.external_identifier]?string

List variants for external identifier (prefix match): /variants?filter[origin.external_identifier]=extern-123.

expand?string

You can expand some resources to show more details — see Expanding Objects. Several relations can be expanded as a comma-separated list. Allowed values:

  • product — You can show the content of the product instead of the id.
  • views.customizations.resource — You can show the content of the customizations' resource. The type is described by the resource_type attribute of the customization.
  • views.customizations.production_method — Show the production method of each customization.
  • views.customizations.resource.production_method — Show the production method of each customization resource.
page?integer

Page number to return — see Basic Usage → Pagination.

per_page?integer

Number of objects per page (default 25, maximum 100) — see Basic Usage → Pagination.

Header Parameters

X-Api-Version?string

Response Body

application/json

application/json

Request example
curl -X GET "https://example.com/variants?filter%5Bid%5D=1&filter%5Bcollection_name%5D=catalogue&filter%5Borigin.sku%5D=production-variant-1&filter%5Borigin.external_identifier%5D=master-product-1-green-XS&expand=product%2Cviews.customizations.resource&page=1&per_page=3" \  -H "X-Api-Version: 2022-02-01"
{  "data": [    {      "id": 1,      "state": "completed",      "collection_name": "catalogue",      "total": 215.86,      "price": 181.39,      "tax": 34.47,      "tax_rate": 19,      "option_values": [        {          "handle": "green",          "name": "green",          "option_type": {            "handle": "color",            "name": "Color"          }        },        {          "handle": "XS",          "name": "XS",          "option_type": {            "handle": "size",            "name": "Size"          }        }      ],      "origin": {        "sku": "production-variant-1",        "external_identifier": "master-product-1-green-XS"      },      "product": 1,      "views": [        {          "handle": "front",          "name": "Front View",          "media": [            {              "id": 348,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-front-green.png",              "size": 60652,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/0a5257a02fa64b98ac4cccf1f784fdf6/view-image-front-green.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        },        {          "handle": "back",          "name": "Rear View",          "media": [            {              "id": 349,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-back-green.png",              "size": 45669,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/afb067e34e8f4efd9ac6e7bb4167ed3a/view-image-back-green.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        },        {          "handle": "left",          "name": "Left View",          "media": [            {              "id": 350,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-left-green.png",              "size": 34119,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/8f45899d654d41dc826f255fa7cfbd5f/view-image-left-green.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        },        {          "handle": "right",          "name": "Right View",          "media": [            {              "id": 351,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-right-green.png",              "size": 34352,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/e33393eff0c942bcb77b45b5408dae08/view-image-right-green.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        }      ],      "failure_message": null,      "created_at": "2026-04-08T05:58:24+00:00",      "updated_at": "2026-04-08T05:58:24+00:00",      "designer": {        "designable_type": "app-variant",        "designable_id": 1,        "designable_identifier": "merchant-product-1-green-XS",        "type": "none",        "is_available": true,        "modes": {          "free": false,          "positioning": false,          "production": false        },        "only_customized_orderable": false      }    },    {      "id": 2,      "state": "completed",      "collection_name": "catalogue",      "total": 76.68,      "price": 71.66,      "tax": 5.02,      "tax_rate": 7,      "option_values": [        {          "handle": "XS",          "name": "XS",          "option_type": {            "handle": "size",            "name": "Size"          }        },        {          "handle": "white",          "name": "white",          "option_type": {            "handle": "color",            "name": "Color"          }        }      ],      "origin": {        "sku": "production-variant-2",        "external_identifier": "master-product-1-white-XS"      },      "product": 1,      "views": [        {          "handle": "front",          "name": "Front View",          "media": [            {              "id": 353,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-front-white.png",              "size": 29497,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/e62fbf7e50fb4c4da4633a58959c7f35/view-image-front-white.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        },        {          "handle": "back",          "name": "Rear View",          "media": [            {              "id": 354,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-back-white.png",              "size": 22290,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/00f9597a09404177b93dbd72fe7a925f/view-image-back-white.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        },        {          "handle": "left",          "name": "Left View",          "media": [            {              "id": 355,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-left-white.png",              "size": 16584,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/de1661dddeb84b2e9c7c0ff86a92ff27/view-image-left-white.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        },        {          "handle": "right",          "name": "Right View",          "media": [            {              "id": 356,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-right-white.png",              "size": 17038,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/fc2fc7515c68443dabc35c36d1e8e070/view-image-right-white.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        }      ],      "failure_message": null,      "created_at": "2026-04-08T05:58:24+00:00",      "updated_at": "2026-04-08T05:58:26+00:00",      "designer": {        "designable_type": "app-variant",        "designable_id": 2,        "designable_identifier": "merchant-product-1-white-XS",        "type": "none",        "is_available": true,        "modes": {          "free": false,          "positioning": false,          "production": false        },        "only_customized_orderable": false      }    },    {      "id": 3,      "state": "completed",      "collection_name": "catalogue",      "total": 86.74,      "price": 81.07,      "tax": 5.67,      "tax_rate": 7,      "option_values": [        {          "handle": "XS",          "name": "XS",          "option_type": {            "handle": "size",            "name": "Size"          }        },        {          "handle": "black",          "name": "black",          "option_type": {            "handle": "color",            "name": "Color"          }        }      ],      "origin": {        "sku": "production-variant-3",        "external_identifier": "master-product-1-black-XS"      },      "product": 1,      "views": [        {          "handle": "front",          "name": "Front View",          "media": [            {              "id": 358,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-front-black.png",              "size": 29597,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/4adf132adba947e38ce76f5c96cd5d43/view-image-front-black.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        },        {          "handle": "back",          "name": "Rear View",          "media": [            {              "id": 359,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-back-black.png",              "size": 22907,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/2f0f8df2750a4983b88bfcbf9919ea18/view-image-back-black.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        },        {          "handle": "left",          "name": "Left View",          "media": [            {              "id": 360,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-left-black.png",              "size": 17253,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/a80b7bdf66e64b658d8e95c0e91c7c70/view-image-left-black.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        },        {          "handle": "right",          "name": "Right View",          "media": [            {              "id": 361,              "is_test": 0,              "collection_name": "view-image",              "file_name": "view-image-right-black.png",              "size": 17518,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/4c47edb4cfe34ccb8d77a75dc8bcccb4/view-image-right-black.png?expires=1775821079&signature=REDACTED",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:58:20+00:00",              "updated_at": "2026-04-08T05:58:20+00:00"            }          ],          "customizations": []        }      ],      "failure_message": null,      "created_at": "2026-04-08T05:58:24+00:00",      "updated_at": "2026-04-08T05:58:24+00:00",      "designer": {        "designable_type": "app-variant",        "designable_id": 3,        "designable_identifier": "merchant-product-1-black-XS",        "type": "none",        "is_available": true,        "modes": {          "free": false,          "positioning": false,          "production": false        },        "only_customized_orderable": false      }    }  ],  "links": {    "first": "https://api.smake.io/v2/apps/1/variants?per_page=3&expand=views.customizations.production_method&page=1",    "last": null,    "prev": null,    "next": "https://api.smake.io/v2/apps/1/variants?per_page=3&expand=views.customizations.production_method&page=2"  },  "meta": {    "current_page": 1,    "current_page_url": "https://api.smake.io/v2/apps/1/variants?per_page=3&expand=views.customizations.production_method&page=1",    "from": 1,    "path": "https://api.smake.io/v2/apps/1/variants",    "per_page": 3,    "to": 3  }}