We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bd9f452 + 0c4f780 commit a4cb860Copy full SHA for a4cb860
1 file changed
src/Bigcommerce/Api/Client.php
@@ -2040,4 +2040,17 @@ public static function deleteShippingMethod($zoneId, $methodId)
2040
{
2041
return self::deleteResource('/shipping/zones/'. $zoneId . '/methods/'. $methodId);
2042
}
2043
+
2044
+ /**
2045
+ * Get collection of product skus by Product
2046
+ *
2047
+ * @param $productId
2048
+ * @param array $filter
2049
+ * @return mixed
2050
+ */
2051
+ public static function getSkusByProduct($productId, $filter = array())
2052
+ {
2053
+ $filter = Filter::create($filter);
2054
+ return self::getCollection('/products/'.$productId.'/skus' . $filter->toQuery(), 'Sku');
2055
+ }
2056
0 commit comments