$url = "https://mpop-sit.hepsiburada.com/product/api/products/import";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"Accept: application/json",
"Content-Type: multipart/form-data",
"Authorization: Bearer {TOKENİM}",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$data = '
{
"categoryId": 18021982,
"merchant": "6fc6d90d-ee1d-4372-b3a6-264b1275e9ff",
"attributes": {
"merchantSku": "SAMPLE-SKU-INT-0",
"VaryantGroupID": "Hepsiburada0",
"Barcode": "1234567891234",
"UrunAdi": "Roth Tyler",
"UrunAciklamasi": "Duis enim duis magna ex veniam elit id Lorem cillum minim nisi id aliquip. Laboris magna id est et deserunt adipisicing tempor eu ea officia ipsum deserunt. Irure occaecat sit aliquip elit ipsum sint dolore quis est amet aute pariatur cupidatat fugiat. Cillum pariatur pariatur occaecat sint. Aliqua qui in exercitation nulla aliquip id ipsum aliquip ad ut excepteur culpa consequat aliquip. Nisi ut ex tempor enim adipisicing anim irure pariatur.\r\n",
"Marka": "Nike",
"GarantiSuresi": 24,
"kg": "1",
"tax_vat_rate" : "5",
"Image1": "https://productimages.hepsiburada.net/s/27/552/10194862145586.jpg",
"Image2": "https://productimages.hepsiburada.net/s/27/552/10194862145586.jpg",
"Image3": "https://productimages.hepsiburada.net/s/27/552/10194862145586.jpg",
"Image4": "https://productimages.hepsiburada.net/s/27/552/10194862145586.jpg",
"Image5": "https://productimages.hepsiburada.net/s/27/552/10194862145586.jpg",
"renk_variant_property": "Siyah",
"ebatlar_variant_property": "Büyük Ebat"
}
}
';
curl_setopt($curl, CURLOPT_POSTFIELDS,file_get_contents("data.json"));
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
var_dump($resp);
?>
{"success":false,"code":3003,"version":1,"message":"File not found","data":null}
çıktı olarak ise bu hatayı veriyor ne yaptıysam olmadı sebebi nedir yardım edebilecek varmı