ich finde einfach keinen Grund warum das nicht läuft 
LG Andi
du kannst dir einfach ansehen, was du zurück bekommst.
https://github.com/woocommerce/wc…/HttpClient.php
Zeile 373
if (0 === strpos(bin2hex($body), 'efbbbf')) {
$body = substr($body, 3);
}
$parsedResponse = \json_decode($body, true);
// Test if return a valid JSON.
if (JSON_ERROR_NONE !== json_last_error()) {
$message = function_exists('json_last_error_msg') ? json_last_error_msg() : 'Invalid JSON returned';
throw new HttpClientException($message, $this->response->getCode(), $this->request, $this->response);
}
$this->lookForErrors($parsedResponse);
hier einfach
[code=php]
<?php
$data = [
'regular_price' => '9.00',
'image' => [
'id' => 423
],
'attributes' => [
[
'id' => 9,
'option' => 'Black'
]
]
];
print_r($woocommerce->post('products/22/variations', $data));
?>
mit deinen Daten probieren.
Anleitung
http://woocommerce.github.io/woocommerce-re…oduct-variation
Wenn du PHP 7.08 verwendest - kannst du ein PHP Bug haben - Zitat aus der Changelog von PHP
http://php.net/ChangeLog-7.php
Fixed bug #72275 (Integer Overflow in json_encode()/json_decode()/ json_utf8_to_utf16()).
https://bugs.php.net/bug.php?id=72275
Viel Glück
ralf