curl --location --request GET 'https://demo.myshopify.com//admin/api//product_listings/.json'
A list of variant objects, each one representing a slightly different version of the product. For example, if a product comes in different sizes and colors, each size and color permutation (such as "small black", "medium black", "large blue"), would be a variant.
To reorder variants, update the product with the variants in the desired order. The position attribute on the variant will be ignored.
manual
, gift_card
, or the handle of a FulfillmentService.option1
, option2
, option3
, etc.{
"product_listing": {
"product_id": 921728736,
"created_at": "2023-01-03T12:05:09-05:00",
"updated_at": "2023-01-03T12:05:09-05:00",
"body_html": "<p>The iPod Touch has the iPhone's multi-touch interface, with a physical home button off the touch screen. The home screen has a list of buttons for the available applications.</p>",
"handle": "ipod-touch",
"product_type": "Cult Products",
"title": "IPod Touch 8GB",
"vendor": "Apple",
"available": true,
"tags": "",
"published_at": "2017-08-31T20:00:00-04:00",
"variants": [
{
"id": 447654529,
"title": "Black",
"option_values": [
{
"option_id": 891236591,
"name": "Title",
"value": "Black"
}
],
"price": "199.00",
"formatted_price": "$199.00",
"compare_at_price": null,
"grams": 567,
"requires_shipping": true,
"sku": "IPOD2009BLACK",
"barcode": "1234_black",
"taxable": true,
"position": 1,
"available": true,
"inventory_policy": "continue",
"inventory_quantity": 13,
"inventory_management": "shipwire-app",
"fulfillment_service": "shipwire-app",
"weight": 1.25,
"weight_unit": "lb",
"image_id": null,
"created_at": "2023-01-03T12:05:09-05:00",
"updated_at": "2023-01-03T12:05:09-05:00"
}
],
"images": [],
"options": [
{
"id": 891236591,
"name": "Title",
"product_id": 921728736,
"position": 1,
"values": [
"Black"
]
}
]
}
}