curl 'http://localhost:9000/admin/products/prod_01HXYZABCDEF' \
-H 'Authorization: Bearer <token>'
{
"product": {
"id": "prod_01HXYZABCDEF",
"title": "Linen Shirt",
"handle": "linen-shirt",
"status": "published",
"variants": [
{ "id": "variant_01HXYZABCDEF", "title": "M", "sku": "LS-M", "variant_rank": 0 }
],
"product_attribute_values": [
{
"id": "pattrval_01HXYZABCDEF",
"name": "Linen",
"attribute": { "id": "pattr_01HXYZABCDEF", "name": "Material", "type": "single_select" }
}
],
"scoped_attributes": []
}
}
Products
Retrieve Product
Retrieve a master catalog product by ID.
GET
/
admin
/
products
/
{id}
curl 'http://localhost:9000/admin/products/prod_01HXYZABCDEF' \
-H 'Authorization: Bearer <token>'
{
"product": {
"id": "prod_01HXYZABCDEF",
"title": "Linen Shirt",
"handle": "linen-shirt",
"status": "published",
"variants": [
{ "id": "variant_01HXYZABCDEF", "title": "M", "sku": "LS-M", "variant_rank": 0 }
],
"product_attribute_values": [
{
"id": "pattrval_01HXYZABCDEF",
"name": "Linen",
"attribute": { "id": "pattr_01HXYZABCDEF", "name": "Material", "type": "single_select" }
}
],
"scoped_attributes": []
}
}
Returns a single product with its variants, attribute values, and product-scoped attributes.
Path parameters
The product’s ID.
Query parameters
Comma-separated list of fields to include, prefix with
+/- to add or remove from defaults.Scope offer data (when requested via
fields) to a single seller.Response
Show properties
Show properties
The product’s ID.
Product title.
Product subtitle.
One of
draft, proposed, published, rejected.Product description.
Unique URL-safe handle.
Whether the product is a gift card.
Whether discounts can apply to the product.
URL of the product thumbnail.
The collection with
id, title, and handle.Categories with
id, name, and handle.Variants with
id, title, sku, manage_inventory, allow_backorder, and variant_rank.Product-scoped (inline) attributes.
Computed attribute groups, each with the selected
values and the attribute’s full all_values.Custom key-value data.
Creation timestamp.
Last update timestamp.
curl 'http://localhost:9000/admin/products/prod_01HXYZABCDEF' \
-H 'Authorization: Bearer <token>'
{
"product": {
"id": "prod_01HXYZABCDEF",
"title": "Linen Shirt",
"handle": "linen-shirt",
"status": "published",
"variants": [
{ "id": "variant_01HXYZABCDEF", "title": "M", "sku": "LS-M", "variant_rank": 0 }
],
"product_attribute_values": [
{
"id": "pattrval_01HXYZABCDEF",
"name": "Linen",
"attribute": { "id": "pattr_01HXYZABCDEF", "name": "Material", "type": "single_select" }
}
],
"scoped_attributes": []
}
}
⌘I