skip to Main Content

Assign Related Product In Magento 2 API

I am using magento 2 api for assigning product link like related or crosssell using api /V1/products/{sku}/links Here is My Sample Code <?php error_reporting(E_ALL); define('mag_apiurl',"http://www.mywebsite.com/rest/V1/"); define('tn_webshopKey',"myshowpkey"); $sku1 = "sku1"; $sku2 = "sku2"; $productData = array( "items" => array( "sku" =>…

VIEW QUESTION
Back To Top
Search