Product Detail API returns Product as Active but Product is not visible on store frontend

Topic summary

A user encountered an issue where the Shopify Product Detail API returned products marked as “active” and “published”, but these products were not visible on the store frontend and returned 404 errors when accessed directly.

API Response Details:

  • The API showed status: "active" and a valid published_at timestamp
  • Product data appeared complete with variants, images, and other standard fields

Resolution:
The issue was resolved and confirmed to be related to specific settings configured on the user’s store, not a problem with the API itself. The products are now displaying correctly on the frontend.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Hi there,

I’m using Shopify API "https://xyz.myshopify.com/admin/api/2023-04/products/xyz.json" and it returns the complete detail about the product. In the response received, the product is marked as Active and also showing as Published but on the frontend, (on our website) these products are not visible. The same thing happens for the other products also. On direct opening the URL of the product, it returns a 404 Page Not Found error.

This is the response I’m getting from the API :

{
“product”: {
“id”: xyz,
“title”: “xyz”,
“body_html”: “xyz”,
“product_type”: “Bath & Beauty”,
“created_at”: “2024-02-22T23:16:52+01:00”,
“handle”: “dolce-gabbana-k-gift-set-50ml-edt-50ml-aftershave-balm-393049495”,
“updated_at”: “2024-02-25T18:10:53+01:00”,
“published_at”: “2024-02-22T23:16:52+01:00”,
“template_suffix”: null,
“published_scope”: “web”,
“tags”: “brand_Dolce & Gabbana, collection_K, Dolce & Gabbana, gender_Male, GiftSet, RRP Pricing, type_Eau de Toilette, Updated-44897”,
“status”: “active”,
“admin_graphql_api_id”: “gid://shopify/Product/XYZS”,
“variants”: [
{
“id”: 123,
“product_id”: xyz,
“title”: “50ml”,
“price”: “101.04”,
“position”: 1,
“inventory_policy”: “deny”,
“compare_at_price”: “118.87”,
“fulfillment_service”: “spocket”,
“inventory_management”: “spocket”,
“option1”: “50ml”,
“option2”: null,
“option3”: null,
“created_at”: “2024-02-22T23:16:52+01:00”,
“updated_at”: “2024-02-23T23:27:45+01:00”,
“taxable”: true,
“barcode”: null,
“grams”: 0,
“weight”: 0.0,
“weight_unit”: “kg”,
“inventory_item_id”: XYZS,
“inventory_quantity”: 1,
“old_inventory_quantity”: 1,
“requires_shipping”: true,
“admin_graphql_api_id”: “gid://shopify/ProductVariant/XYZS”,
}
],
“options”: [
{
“id”: XYZS,
“product_id”: XYZS,
“name”: “SIZE”,
“position”: 1,
“values”: [
“50ml”
]
}
],
“images”: [
{
“id”: XYZS,
“alt”: null,
“position”: 1,
“product_id”: XYZS,
“created_at”: “2024-02-22T23:16:52+01:00”,
“updated_at”: “2024-02-22T23:16:56+01:00”,
“admin_graphql_api_id”: “gid://shopify/ProductImage/XYZS”,
“width”: 500,
“height”: 500,
“variant_ids”:
},
{
“id”: XYZS,
“alt”: null,
“position”: 2,
“product_id”: XYZS,
“created_at”: “2024-02-22T23:16:52+01:00”,
“updated_at”: “2024-02-22T23:16:55+01:00”,
“admin_graphql_api_id”: “gid://shopify/ProductImage/XYZS”,
“width”: 500,
“height”: 500,
“variant_ids”: [
XYZS
]
}
],
“image”: {
“id”: XYZS,
“alt”: null,
“position”: 1,
“product_id”: XYZS,
“created_at”: “2024-02-22T23:16:52+01:00”,
“updated_at”: “2024-02-22T23:16:56+01:00”,
“admin_graphql_api_id”: “gid://shopify/ProductImage/XYZS”,
“width”: 500,
“height”: 500,
“variant_ids”:
}
}
}

Product URL : https://dulcybeauty.com/products/dolce-gabbana-k-gift-set-50ml-edt-50ml-aftershave-balm-393049495

Hey @IamSantosh

Are you able to share the product ID?

Thank you for the reply. It was an issue at the user’s end. It is all good now. Related to some setting done by user’s on his store.

1 Like