【发布时间】:2021-05-21 09:27:15
【问题描述】:
我需要创建一个自定义 webhook 来发送订单请求。就像我从其他 Woocommerce 发送的响应一样
回复如下:
“参数”:{ “订单数据”:{ “身份证”:31502, "referring_site": "", "order_number": "31502", "created_at": "2021-02-08 16:41:24", "updated_at": "2021-02-08 16:41:24", "completed_at": "", “状态”:“待定”, “货币”: ””, “全部的”: ””, “小计”:“”, “total_line_items_quantity”:1, "total_tax": "0", "total_shipping": "0", "cart_tax": "0", “运费税”:“0”, "total_discount": "0", "shipping_methods": "免运费", "order_key": "", “付款详情”: { "method_id": "", “方法标题”:“”, “付费”:“” }, “帐单地址”: { “名”: ””, “姓”: ””, “公司”: ””, “地址1”: ””, “地址2”: ””, “城市”: ””, “状态”: ””, “格式化状态”:“”, “邮政编码”: ””, “国家”: ””, “格式化国家”:“”, “电子邮件”: ””, “电话”: ”” }, “送货地址”: { “名”: ””, “姓”: ””, “公司”: ””, “地址1”: ””, “地址2”: ””, “城市”: ””, “状态”: ””, “格式化状态”:“”, “邮政编码”: ””, “国家”: ””, “格式化国家”:“” }, “笔记”: ””, "customer_ip": "", "customer_user_agent": "", “客户 ID”:29, "view_order_url": "", “line_items”:[ { “ID”: , “小计”:“”, “小计税”:“”, “全部的”: ””, “总税”:“”, “价钱”: ””, “数量”:1, “姓名”: ””, “product_id”:10072, “variation_id”:0, "product_url": "", "product_thumbnail_url": "", “sku”:“”, “元”:“” } ], “运输线”:[ { “ID”: , "method_id": "free_shipping", "method_title": "免运费", “总计”:“0” } ], “tax_lines”:[], “fee_lines”:[], “优惠券线”:[] } }
【问题讨论】:
标签: shopify