$app_id='*********************************';
$app_secret='*******************************';
$scope = 'Seller_Api';
$base_url = "https://api.flipkart.net/sellers/v2/orders/?"
$url_params =
array(
'access_token' =>"********************",
//'orderItemIds'=>'*************',
'client_id' => $app_id,
'client_secret' => $app_secret,
//'reresh_token' =>"************************************"
);
// $url_params['Timestamp'] = gmdate("Y-m-d\TH:i:s\Z");
$url_parts = array();
foreach(array_keys($url_params) as $key)
$url_parts[] = $key."=".$url_params[$key];
//sort($url_parts);
// var_dump($url_parts);die;
$url_string = implode("&",$url_parts);
// var_dump($url_string);die;
$url = $base_url.$url_string;
//print_r($url);die;
$response=file_get_contents($url);
print_r($response);die;
?>
我的问题是我需要通过flipkart卖家api获取订单清单详细信息,但我无法获得所有订单详情,但我只通过获取数据获得订单。所以我想通过flipkart卖家api生成错误来获取所有订单细节....
缺少强制参数
orderItemIds
...
我需要一份订单清单详细信息,以便我能做些什么?
答案 0 :(得分:2)
请参阅此文档here
向此网址发帖请求
this.setState(...)
使用这些可选参数搜索订单。您可以使用orderDate参数来搜索特定日期内发生的订单
https://api.flipkart.net/sellers/v2/orders/search
states List可选基于逗号分隔的有效订单状态列表的过滤订单。现在不支持基于处理状态的过滤。可能的值:APPROVED,orderDate:
fromDate
toDate
String Optional Filter based on orders placed within the selected date range, where the date strings are in ISO format
dispatchAfterDate:
fromDate
toDate
String Optional Filter based on orders to be processed within the selected date range, where the date strings are in ISO format
dispatchByDate:
fromDate
toDate
String Optional Filter based on orders to be dispatched within the selected date range, where the date strings are in ISO format
modifiedDate:
fromDate
toDate
String Optional Filter for orders that were modified within the selected date range, where the date strings are in ISO format
,READY_TO_DISPATCH和CANCELLED
sku列表可选过滤订单基于逗号分隔的卖家SKU列表
使用此示例代码
PACKED