bigcommerce-api-php
bigcommerce-api-php copied to clipboard
Customer create, read and update functions throws errors
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
- use Bigcommerce\Api\Client as Bigcommerce;
- call any of
Bigcommerce::getCustomer(1);orBigcommerce::getCustomers();
Note: other resources such as products, orders e.g Bigcommerce::getOrder(order_id);, Bigcommerce::getOrders(); are working as expected.
@jofomah what was the resolution here? Is this fixed in a later version of the plugin?