Webhook-商品

订单处理类型

  • 商品创建:商家端后台,创建新商品,另外:通过excel,导入等其他方式创建商品也会触发
  • 商品更新:商家端后台,更新商品数据,另外:通过excel,导入等其他方式更新商品也会触发
  • 商品删除:商家端后台,将商品删除(加入回收站的时候触发)。

订单,推送的json数据格式如下:

格式:json

参数名称 是否必须 类型 描述
product_info 必须 array 商品信息,对于删除商品类型,对应的软删除(加入购物车)。如果在推送之前用户进行了硬删除,那么该字段将只返回id,其他的将无法返回(因为已经删除了)
event_type 必须 int 事件类型:7.商品创建 ,8.商品更新,9.商品删除
event_note 必须 string 事件类型:7.商品创建:product_create ,8.商品更新:product_update,9.商品删除:product_delete
access_key 选填 string 验签部分的字符串。为了安全,您可以进行验签,详细参看:Webhook-验签
{
    "event_type": 7,
    "event_note": "product_create",
    "product_info": {
        "id": 2096,
        "handle": "dfdasfds",
        "spu": "fdsafsd",
        "title": "dfdasfds",
        "status": 1,
        "availability": 1,
        "sub_title": "fdasfads",
        "body_html": "<p>dasfdsf<\/p>",
        "meta_title": "dfdasfds",
        "meta_keywords": "",
        "meta_description": "dasfdsf",
        "type": 1,
        "vendor": "",
        "qty": 23,
        "price": "34.00",
        "compare_at_price": "23.00",
        "sale_count": 0,
        "final_sale_count": 0,
        "updated_at": "2024-01-30 07:07:02",
        "inventory_police": 1,
        "inventory_police_type": 1,
        "variant_show_image": 3,
        "description_json_status": 2,
        "description_json": [],
        "params_json_status": 2,
        "params_json": [],
        "short_description_json": [],
        "wapVariants": [
            {
                "id": 13711,
                "product_id": 2096,
                "title": "",
                "price": "34.00",
                "compare_at_price": "23.00",
                "sku": "fdsafsd-1006665",
                "gram": 23000,
                "image_id": 0,
                "qty": 23,
                "option1": "",
                "option2": "",
                "option3": "",
                "weight": "23.00",
                "weight_unit": "kg",
                "note": "ewr",
                "wholesale_price": [],
                "image": "",
                "base_price": "34.00",
                "base_compare_at_price": "23.00"
            }
        ],
        "options": [],
        "images": [
            {
                "id": 12743,
                "product_id": 2096,
                "position": 1,
                "src": "\/product\/15\/image\/2024\/01\/21\/1708a4dfb6f21d7c627ea4f2a4e235ed.jpg",
                "alt": ""
            },
            {
                "id": 12744,
                "product_id": 2096,
                "position": 2,
                "src": "\/product\/15\/image\/2024\/01\/21\/ebfa19a93dded74e69bf103777f3b268.jpg",
                "alt": ""
            },
            {
                "id": 12745,
                "product_id": 2096,
                "position": 3,
                "src": "\/product\/15\/image\/2024\/01\/21\/b7b6c2b9b9b5fb27ed4fdb84192774be.jpg",
                "alt": ""
            },
            {
                "id": 12746,
                "product_id": 2096,
                "position": 4,
                "src": "\/product\/15\/image\/2024\/01\/21\/867f5715a9ab2d386816b1064580a561.jpg",
                "alt": ""
            }
        ],
        "videos": []
    },
    "access_key": "78b4a052a550049620cd9044482e510e67e889fe3d49892591534e3fba2f84a5"
}
Copyright © fecify.com 2022 all right reserved,powered by Gitbook该文件修订时间: 2024-02-01 12:03:50

results matching ""

    No results matching ""