如何使用BigCommerce API使用核心PHP更新客户的customer_group_id?

I'm trying to write a PHP script for my BigCommerce site that runs nightly and places customers into specific Customer Groups based on certain criteria. I can do everything else I need other than actually update the the customer_group_id. BigCommerce documentation only shows GET methods available for customers. Please help. Thanks!

The customer group ID on a customer can be updated. This has been around for maybe a year or more now. You can PUT to the customer resource and the customer_group_id is what you would want to change.

Documented here: https://developer.bigcommerce.com/api/objects/v2/customer

If you are using the PHP API Library then you could update a customer group ID on a customer with this kind of code:

$request_body = array("customer_group_id" => 10);
Bigcommerce:updateCustomer(50, $request_body);

The above would update the customer with ID 50 to have a new customer group ID of 10.

I currently work at Bigcommerce. Unfortunately at this time, our API doesn't support the ability to update customer group ids. However, you are encouraged to add this as a feature request to our Ideas site. http://ideas.bigcommerce.com/.

For your convenience, I have also included a link to our Dev portal, which includes the full API documentation as well as how-tos/tools and a new @Mashery powered API playground. http://developer.bigcommerce.com/