I am trying to update my variations on a listing via this method...
listings/'.$listing_id.'/inventory
However, when I try to add a second SKU it gives me the error message that "SKU must be consistent across linked products."
I know it is possible to have a listingn with multiple SKUs in the variations because that is how we currently operate. We are just trying to move some functionality over to our Admin portal (i.e. changin the variations on listings).
Right now we use "Size" and "Sleeve Length" as varations.
I am able to create multiple "Sleeve Lengths" but when I try to add more than one size with a SKU, it errors out.
I have also linked a video here explaining the issue.
https://drive.google.com/file/d/1_dywrCfv0QjNzR2VyHqh5un7TXzuV5p8/view?usp=sharing
Any help that anyone can provide would be IMMENSELY appreciated.
This is the array I'm trying to send through.
$testarray= array(
[
'sku' => 'sku-1',
'property_values' => [
[
'property_id' => '52047899318',
'property_name' => 'Size',
'scale_id' => 30,
'scale_name' => '',
'value' => '0-3M White Onesie',
'value_id' => '117126874336'
],
[
'property_id' => '513',
'property_name' => 'Sleeve Length',
'value' => 'Short SL Onesie',
'value_id' => '774674484481'
]
],
'offerings' => [
[
'price' => 10,
'quantity' => 3
]
]
],
[
'sku' => 'sku-2',
'property_values' => [
[
'property_id' => '52047899318',
'property_name' => 'Size',
'scale_id' => 30,
'scale_name' => '',
'value' => '0-3M White Onesie',
'value_id' => '117126874336'
],
[
'property_id' => '513',
'property_name' => 'Sleeve Length',
'value' => 'Short SL Onesie',
'value_id' => '774674484481'
]
],
'offerings' => [
[
'price' => 10,
'quantity' => 3
]
]
]);