【问题标题】:Easypost webhook sends lot of 'Unknown' statusesEasypost webhook 发送大量“未知”状态
【发布时间】:2021-11-22 21:01:16
【问题描述】:

我在 easypost 中配置了一个 webhook url,它会在我的货件中发生新事件时发送更新。在交货当天,我收到的状态为“未知”。基本上,只收到 2 个状态,“未知”和“已交付”(在交付日期)。我是easypost的新手。有人可以帮忙吗?

//webhook function to pick the status from 'Tracker' object
public function update() {

        $data = json_decode(trim(file_get_contents('php://input')), true);
        
        if(isset($data['result']) && $data['result']['object']=='Tracker') 
        {
            $result = $data['result'];

【问题讨论】:

    标签: php webhooks easypost


    【解决方案1】:

    “未知”状态事件通常只会在创建跟踪器后发生一次。如果您有一些示例跟踪器存在问题,请将它们发送到 support@easypost.com,我们很乐意为您进行更多调查。了解发生这种情况的运营商也将有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-07
      • 2014-09-23
      • 2019-10-22
      • 1970-01-01
      • 1970-01-01
      • 2022-01-10
      相关资源
      最近更新 更多