追踪号码不是';t在Shopify上提交订单以实现

追踪号码不是';t在Shopify上提交订单以实现,shopify,Shopify,在一些中间件上进行履行周期的工作,并且在开始自动履行订单之后,我注意到没有一个订单具有与履行相关联的透视图跟踪编号。 我有以下PHP代码提交履行请求: $options = array(CURLOPT_URL => 'https://'.$this->config->item('api_key').':'.$this->config->item('api_pass').'@'.$this->config->item('api_domain').'/adm

在一些中间件上进行履行周期的工作,并且在开始自动履行订单之后,我注意到没有一个订单具有与履行相关联的透视图跟踪编号。 我有以下PHP代码提交履行请求:

$options = array(CURLOPT_URL => 'https://'.$this->config->item('api_key').':'.$this->config->item('api_pass').'@'.$this->config->item('api_domain').'/admin/orders/'.$order['order_id'].'/fulfillments.json',
            CURLOPT_HEADER => true,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_POST => true,
            CURLOPT_MAXREDIRS => 3,
            CURLOPT_SSL_VERIFYPEER => true,
            CURLOPT_SSL_VERIFYHOST => 2,
            CURLOPT_USERAGENT => 'HAC',
            CURLOPT_CONNECTTIMEOUT =>30,
            CURLOPT_TIMEOUT => 30,
            CURLOPT_POSTFIELDS => $fulfill_json
            );
        if($send == true){
            $ch = curl_init();
            curl_setopt_array($ch, $options);
            $response = curl_exec($ch);
            $response_header = curl_getinfo($ch, CURLINFO_HTTP_CODE);
            curl_close($ch);
            if($response_header == 201){
                //success

            }else{
                //error

            }
        }
下面是我发送的$fulfill_json的一个示例:

{"fulfilment":{"tracking_number":"1Z6V66666666666666","notify_customer":true,"line_items":[{"id":111111111}]}}

{"fulfilment":{"tracking_number":"1Z6V66666666666666","notify_customer":true,"line_items":[{"id":111111111},{"id":111111111},{"id":111111111}]}}

对我来说,它看起来像是正确提交的JSON,不确定是否还有其他问题。

我要尝试更改的第一件事是您的拼写:


成就感不是成就感

抓得好!可能就是这样。