已经解决了这个问题在 Big Commerce API 中出现了一些编码错误
在 Resources.php 更新代码
class Bigcommerce_Api_Shipment extends Bigcommerce_Api_Resource {
protected $ignoreOnCreate = array(
'id',
'order_id',
'date_created',
'customer_id',
'shipping_method',
);
protected $ignoreOnUpdate = array(
'id',
'order_id',
'date_created',
'customer_id',
'shipping_method',
'items',
'billing_address',
'shipping_address',
);
public function create()
{
return Bigcommerce_Api::createResource('/orders/' . $this->order_id . '/shipments', $this->getCreateFields());
}
public function update()
{
return Bigcommerce_Api::updateResource('/orders/' . $this->order_id . '/shipments/' . $this->id, $this->getUpdateFields());
}
}