You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After calling the updateInventory() method with this argument I get an exception:
Etsy\EtsyRequestException: [1]: Invalid auth/bad request (got a 400, expected HTTP/1.1 20X or a redirect): Array
(
[products] => [{"sku":"HB_XXX123","offerings":[{"price":"19.90","quantity":999}]}]
)
All combinations of property values must be supplied
So, in my case I do not have any combinations and yet the system requests such.
I suppose the problem is in the $argument that I'm passing to the method.
Is there any way to update the quantity of a non-variation (non-combination) products?
Is there a way to update only quantity, without updating the price?
I found out, you need to supply an empty array of property_values, like: $property_values = array();
// $offerings and $sku contain data $products[] = array ( 'property_values' => $property_values, 'offerings' => $offerings, 'sku' => $sku ); $productsjson = json_encode($products);
Hi guys,
I'm using this SDK for synchronization of the quantity of our products.
Etsy-php version: 0.12.1
PHP version: 5.5.9
OAuth version: 1.2.3
The code that I'm using is the following (sample data):
After calling the updateInventory() method with this argument I get an exception:
So, in my case I do not have any combinations and yet the system requests such.
I suppose the problem is in the $argument that I'm passing to the method.
Any idea @inakiabt ?
The text was updated successfully, but these errors were encountered: