【问题标题】:Orders/Fulfilled Webhook Is Returning 404订单/已履行的 Webhook 正在返回 404
【发布时间】:2022-02-22 14:40:20
【问题描述】:

履行请求:

{"method":"POST","url":"MY_END_POINT","header":{"host":"MY_HOST","x-real-ip":"******","x-forwarded-for":"******","x-forwarded-proto":"https","connection":"upgrade","content-length":"9370","user-agent":"Shopify-Captain-Hook","accept":"*/*","accept-encoding":"gzip;q=1.0,deflate;q=0.6,identity;q=0.3","content-type":"application/json","x-shopify-api-version":"2022-01","x-shopify-hmac-sha256":"FDd4emmeLmRf5HaK5CidHJJGYFEjhTBvhBf4TL2bvySifYE=","x-shopify-order-id":"4667509866751","x-shopify-shop-domain":"my-store.myshopify.com","x-shopify-test":"false","x-shopify-topic":"orders/fulfilled","x-shopify-webhook-id":"775hd36f-83k1-4810-928a-5eefb54527b4"}}

履行响应:

 {"status":404,"message":"Not Found","header":{}}

创建订单履行:

 "webhook": {
    "topic": "orders/fulfilled",
    "address": process.env.SHOPIFY_BASEURL+"init/shopify_webhookOrderFullFill",
    "format": "json",
   
     "private_metafield_namespaces": [
      "CLIENTID"
      ]
    }

我的 webhook json

https://"+shop+"/admin/api/2021-01/webhooks.json

【问题讨论】:

  • MY_END_POINT 是什么,process.env.SHOPIFY_BASEURL 是什么?

标签: node.js shopify webhooks shopify-api-node


【解决方案1】:
app.post('init/shopify_webhookOrderFullFill',async (req,res) =>{
    console.log(req.request.body); // get all order fulfilment data
});

【讨论】:

    猜你喜欢
    • 2014-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-21
    • 2012-07-02
    相关资源
    最近更新 更多