Focusing on managing products, variants, and collections through the API.
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
Solved! Go to the solution
This is an accepted solution.
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.
This is an accepted solution.
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.