获取商品详情

GET /openapi/2023-10/products/{id}

权限:read_products

REST参数

参数名

说明

必填

类型

值可能性

限制

示例

id

商品ID

[string]

1

Body参数

参数名

说明

必填

类型

fields

获取需要的字段,用逗号分隔

[string]

示例响应内容

{
    "title": "Haut décontracté zippé à col en V",
    "slug": "haut-decontracte-zippe-a-col-en-v-2",
    "spu": "",
    "sku": null,
    "weight": "0.00",
    "weight_unit": "kg",
    "weight_local": "0.000",
    "price": null,
    "regular_price": null,
    "max_discount": 0,
    "min_price": 15.89,
    "max_price": 15.89,
    "manage_stock": "yes",
    "backorders": "no",
    "stock": 9999,
    "available_map": true,
    "available_store_show": true,
    "bar_code": "",
    "subtitle": null,
    "supplier": "prints44",
    "total_sales": 0,
    "gallery": [
        {
            "alt": "",
            "ID": 32825,
            "file_id": 62558,
            "url": "https://cdn.cloudfastin.com/image/2022/06/7d791f1a90b5bca78120ef19bd2b37f4a54799a28dc04473d26804b731556dcf.jpeg",
            "thumbnail": "https://cdn.cloudfastin.com/image/2022/06/7d791f1a90b5bca78120ef19bd2b37f4a54799a28dc04473d26804b731556dcf.jpeg",
            "media_content_type": "image"
        },
    ],
    "seo_title": "",
    "seo_description": "",
    "source": null,
    "store_id": 5837,
    "snow_flake_id": "381889646256193536",
    "wp_product_id": 32824,
    "comment_status": "open",
    "product_order": 0,
    "published_at_gmt": "2023-03-01 06:12:49",
    "type": 2,
    "min_purchase_quantity": 1,
    "is_overseas_depot": 0,
    "ID": 164044,
    "post_title": "Haut décontracté zippé à col en V",
    "post_date": "2022-06-26 19:41:14",
    "post_date_gmt": "2022-06-27 07:41:14",
    "post_content": "<h2 style=\"font-size: 20px; height: 50px; line-height: 50px; font-family: Arial;\">La description </h2><ul style=\"padding: 0;\">",
    "post_status": "publish",
    "review_status": "open",
    "post_name": "haut-decontracte-zippe-a-col-en-v-2",
    "post_modified": "2023-02-28 18:12:49",
    "post_modified_gmt": "2023-03-01 06:12:49",
    "image": "https://cdn.hotishop.com/assets/2022/03/ba8a8b55195d53493c22580f316b0e4b.jpg",
    "review_count": 0,
    "variant_attrs": [
        {
            "name": "Color",
            "value": [
                "White",
                "Blue",
                "Khaki"
            ],
            "is_visible": "1",
            "is_variation": "1",
            "is_taxonomy": "0",
            "position": 0
        },
        {
            "name": "Size",
            "value": [
                "S",
                "M",
                "L",
                "XL",
                "2XL",
                "3XL",
                "4XL",
                "5XL"
            ],
            "is_visible": "1",
            "is_variation": "1",
            "is_taxonomy": "0",
            "position": 1
        }
    ],
    "shop_id": 164044,
    "published_at": "2023-02-28 18:12:49",
    "public_url": "https://prints44.hotishop.com/products/haut-decontracte-zippe-a-col-en-v-2",
    "path": "/products/haut-decontracte-zippe-a-col-en-v-2",
    "short_content": "La description  SPU : WTS15454  Matériel: Polyester  Type de motif: Imprimer  Type de manche : Manche courte  Style: Décontractée  Encolure: Col en V  Thème: Printemps été automne  Occasion: du quotidien  Ajuster: Ample  * L&#39;article n&#39;inclut aucun accessoire dans l&#39;image, sauf indication contraire dans la description du produit. Tableau des tailles Taille Bousiller Longueur CM POUCE CM POUCE  S 92 35,88 71 27,69  M 96 37,44 72 28.08  L 100 39.00 73 28.47  XL 104 40.56 74 28.86  2XL 108 42.12 75 29.25  3XL 112 43,68 76 29,64  4XL 116 45.24 77 30.03  5XL 120 46,80 78 30.42",
    "average_rating": 0,
    "comment_count": 0,
    "rating_count": [
        0,
        0,
        0,
        0,
        0
    ],
    "buy_able": true,
    "categories": [
        {
            "term_taxonomy_id": 360,
            "taxonomy": "product_cat",
            "description": "",
            "parent": 0,
            "count": 0,
            "id": 360,
            "thumbnail": null,
            "thumbnail_url": "",
            "order": null,
            "seo_title": "all",
            "seo_description": "",
            "name": "all",
            "slug": "all",
            "public_url": "https://shop.com/collections/all",
            "base_url": "https://shop.com/collections/",
            "source": null,
            "path": "/collections/all",
            "sort_type": "best_selling_descending",
            "category_type": "auto_category",
            "additional": "fetch_all",
            "conditions": [
                {
                    "type": "price",
                    "options": {
                        "operator": "less_than",
                        "value": "20000"
                    }
                },
                {
                    "type": "title",
                    "options": {
                        "operator": "not_equal",
                        "value": "Shipping Fee"
                    }
                }
            ],
            "sticky": null,
            "sort_range": "all",
            "meta_fields": {
                "space": {
                    "key_cover": {
                        "type": "image",
                        "name": "COVER",
                        "value": null
                    }
                }
            },
            "pivot": {
                "object_id": 164044,
                "term_taxonomy_id": 360
            },
            "term": {
                "term_id": 360,
                "name": "all",
                "slug": "all",
                "term_group": 0
            },
            "feature_image": null
        }
    ],
    "tags": [],
    "feature_image": {
        "alt": "",
        "ID": 32825,
        "file_id": 16581,
        "url": "https://cdn.hotishop.com/assets/2022/03/ba8a8b55195d53493c22580f316b0e4b.jpg",
        "thumbnail": "https://cdn.hotishop.com/assets/2022/03/ba8a8b55195d53493c22580f316b0e4b.jpg",
        "media_content_type": "image"
    },
    "variants": [
        {
            "title": "Haut décontracté zippé à col en V - White / S",
            "sku": "WTS15454-WHI00S",
            "weight": "260.00",
            "weight_unit": "g",
            "weight_local": "0.260",
            "price": 15.89,
            "regular_price": 15.89,
            "manage_stock": "yes",
            "backorders": "no",
            "stock": 9999,
            "bar_code": "",
            "attrs": [
                {
                    "name": "Color",
                    "value": "White"
                },
                {
                    "name": "Size",
                    "value": "S"
                }
            ],
            "wp_variant_id": 32828,
            "menu_order": 0,
            "ID": 168365,
            "post_title": "Haut décontracté zippé à col en V - White / S",
            "post_date": "2022-06-26 19:41:14",
            "post_date_gmt": "2022-06-27 07:41:14",
            "post_modified": "2022-06-26 19:41:14",
            "post_modified_gmt": "2022-06-27 07:41:14",
            "post_parent": 164044,
            "image": "",
            "buy_able": true,
            "feature_image": {
                "alt": "",
                "ID": 32827,
                "file_id": 16583,
                "url": "https://cdn.com/assets/2022/03/af1890b65d86644fbea62cbe9fbe03c1.jpg",
                "thumbnail": "https://cdn.com/assets/2022/03/af1890b65d86644fbea62cbe9fbe03c1.jpg",
                "media_content_type": "image"
            }
        }
    ]
}

Last updated