bigcommerce-api-php icon indicating copy to clipboard operation
bigcommerce-api-php copied to clipboard

Customer create, read and update functions throws errors

Open jofomah opened this issue 7 years ago • 1 comments

Expected behavior

getCustomers(), getCustomer(customer_id) etc should return appropriate result.

Actual behavior

These throws Bigcommerce/Api/Error see full error stack below:

PHP Error:  Wrong parameters for Bigcommerce/Api/ClientError([string $message [, long $code [, Throwable $previous = NULL]]]) in /home/jofomah/brandlabs/bigcommerce-spire-sync/vendor/bigcommerce/api/src/Bigcommerce/Api/Error.php on line 16

Steps to reproduce behavior

  1. use Bigcommerce\Api\Client as Bigcommerce;
  2. call any of Bigcommerce::getCustomer(1); or Bigcommerce::getCustomers();

Note: other resources such as products, orders e.g Bigcommerce::getOrder(order_id);, Bigcommerce::getOrders(); are working as expected.

jofomah avatar Jul 09 '18 11:07 jofomah

@jofomah what was the resolution here? Is this fixed in a later version of the plugin?

akowalz avatar Apr 05 '19 15:04 akowalz