Products create

🔒

Requires product access scope. For more access scope

TopicTrigger TimingMinimum Supported Version
products/createTriggered when a product is created202007

Response Example

{  
    "product": {  
        "id": "0510dace-34da-4555-a896-495e0cb1ed6e",  
        "title": "title1",  
        "brief": "title2",  
        "description": "product desc",  
        "vendor": "vendor 01",  
        "vendor_url": "<http://www.baidu.com">,  
        "has_only_default_variant": true,  
        "requires_shipping": true,  
        "taxable": true,  
        "inventory_tracking": true,  
        "inventory_policy": "inventory policy 1",  
        "inventory_quantity": 100,  
        "published": true,  
        "published_at": "2019-10-01 10:00:00 xxxx",  
        "created_at": "2019-10-01 10:00:00 xxxx",  
        "updated_at": "2019-10-01 10:00:00 xxxx",  
        "note": "xxx",  
        "meta_title": "xxx",  
        "meta_description": "xxx",  
        "meta_keyword": "tag1,tag2,tag3",  
        "handle": "title1",  
        "need_variant_image": true,  
        "image": {  
            "src": "<https://oss.ali.com/abc.jpg">,  
            "width": 100,  
            "height": 100,  
            "alt": ""  
        },  
        "images": [  
            {  
                "id": "0510dace-34da-4555-a896-495e0cb1ed6e",  
                "product_id": "123456",  
                "position": 1,  
                "src": "https://cdn.shoplazza.com/example.png",  
                "width": 480,  
                "height": 360,  
                "alt": "Image",  
                "created_at": "2018-10-31T13:02:19-04:00",  
                "updated_at": "2018-10-31T13:02:19-04:00"  
            }  
        ],  
        "options": \[  
            {  
                "id": "0510dace-34da-4555-a896-495e0cb1ed6e",  
                "product_id": "123456",  
                "name": "color",  
                "position": 1,  
                "values": [  
                    "red",  
                    "black"  
                ]  
            },  
            {  
                "id": "0510dace-34da-4555-a896-495e0cb1kkd8",  
                "product_id": "123456",  
                "name": "size",  
                "position": 2,  
                "values": [  
                    "32",  
                    "33"  
                ]  
            }  
        ],  
        "variants": [  
            {  
                "id": "0510dace-34da-4555-a896-495e0cb1ed6e",  
                "product_id": "123456",  
                "position": 1,  
                "title": "variants title",  
                "image": {  
                    "src": "https://oss.ali.com/abc.jpg",  
                    "width": 100,  
                    "height": 100,  
                    "alt": ""  
                },  
                "price": 32,  
                "compare_at_price": 45,  
                "weight": 0.1,  
                "weight_unit": "kg",  
                "inventory_quantity": 33,  
                "sku": "20182002154567873574",  
                "barcode": "201213112",  
                "note": "xxx",  
                "option1": "red",  
                "option2": "M",  
                "option3": "",  
                "created_at": "2018-10-31T13:02:19-04:00",  
                "updated_at": "2018-10-31T13:02:19-04:00"  
            }  
        ]  
    }  
}