Can someone help me to get all order data from Flipkart seller API?
Currently, I am using this but it fetches the Orderitmes list of different orders. Is there any API to fetch directly all orders?
$url = "https://api.flipkart.net/sellers/v2/orders/search";
$curl = curl_init();
$json = '{
"sort": {
"field": "dispatchByDate",
"order": "desc"
}
}';
curl_setopt($curl, CURLOPT_URL,$url);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $json);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
'Content-Type:application/json',
'Authorization:Bearer '.$tokan['access_token'],
''
));
$result = curl_exec($curl);
$ee = curl_getinfo($curl);
echo "<pre>";
//print_r($ee);
curl_close($curl);
$result = json_decode($result,true);
print_r($result);
Please revert if anybody has any solution.
Thanks in advance!!