I need some assistance with the bigcommerce api.
Details can be found at: [login to view URL]
I have a script that configures my products, and at a certain point in the script I need it to create a product SKU.
Here is an example of a product, with the skus and the related options that create the sku. I need a code snippet that create the sku from php.
[0] => Bigcommerce\Api\Resources\Sku Object
(
[ignoreOnCreate:protected] => Array
(
[0] => product_id
)
[ignoreOnUpdate:protected] => Array
(
[0] => id
[1] => product_id
)
[fields:protected] => stdClass Object
(
[id] => 1
[product_id] => 81
[sku] => dlb-oak250-04
[cost_price] => 0.0000
[upc] =>
[inventory_level] => 0
[inventory_warning_level] => 0
[bin_picking_number] =>
[options] => Array
(
[0] => stdClass Object
(
[product_option_id] => 95
[option_value_id] => 75
)
[1] => stdClass Object
(
[product_option_id] => 96
[option_value_id] => 98
)
)
)
[id:protected] => 1
[ignoreIfZero:protected] => Array
(
)
)
*/