接口使用场景等说明:拼多多客根据订单号查询多多进宝订单详情信息
| 环境 | http 地址 | https 地址 |
|---|---|---|
| 正式环境 | http://api.veapi.cn/pdd/pdd_queryorder | 暂无 |
| 参数名称 | 参数类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| vekey | String | 是 | V123M56 | 公共参数,接口秘钥,请在会员中心获取 |
| order_sn | String | 是 | 订单号 | |
| query_order_type | Integer | 否 | 订单类型:1-推广订单;2-直播间订单 |
GET/POST http://api.veapi.cn/pdd/pdd_queryorder?vekey=xxxx&order_sn=221211-197064139621632
$api="http://api.veapi.cn/pdd/pdd_queryorder?vekey=xxxx&order_sn=221211-197064139621632"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api); //curl_setopt($ch, CURLOPT_POST, true); //POST方式时启用 //curl_setopt($ch, CURLOPT_POSTFIELDS, $postData ); //POST方式时传参 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //如果使用https请启用 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //如果使用https请启用 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true ); //返回数据流,不直接输出 curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); //使用gzip压缩传输让访问更快 curl_setopt($ch, CURLOPT_TIMEOUT, 6); //允许执行的最长秒数。这里设定6S curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); $result = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); echo $result; //返回值
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpRequest;
public class testGetParam {
public static void main(String[] args) {
// API网址
String url = "http://api.veapi.cn/pdd/pdd_queryorder?vekey=xxxx&order_sn=221211-197064139621632";
// JDK 8u111版本后,若目标页面为HTTPS协议,请启用proxy用户密码鉴权
//System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");
// 发送请求
String result = HttpRequest.get(url)
.timeout(10000)//设置超时,毫秒
.execute().body();
System.out.println(result);
}
}
import requests # 要访问的API网页 target_url = "http://api.veapi.cn/pdd/pdd_queryorder?vekey=xxxx&order_sn=221211-197064139621632" # 发送请求 response = requests.get(target_url) # 获取页面内容 if response.status_code == 200: print response.text
| 参数名称 | 参数类型 | 示例值 | 描述 |
|---|---|---|---|
| activity_tags | Integer[] | 商品活动标记数组,例:[4,7],4-秒杀 7-百亿补贴等 | |
| auth_duo_id | Long | 多多客工具id | |
| batch_no | String | 结算批次号 | |
| cat_ids | Long[] | 商品一~四级类目ID列表 | |
| cpa_new | Integer | 是否是 cpa 新用户,1表示是,0表示否 | |
| cps_sign | String | CPS_Sign | |
| custom_parameters | String | 自定义参数 | |
| fail_reason | String | 订单审核失败/惩罚原因 | |
| goods_category_name | String | 商品一级类目名称 | |
| goods_id | Long | 商品id | |
| goods_name | String | 商品名称 | |
| goods_price | Long | 商品价格(分) | |
| goods_quantity | Long | 商品数量 | |
| goods_sign | String | goodsSign是加密后的goodsId,goodsId已下线,请使用goodsSign来替代。需要注意的是:推广链接带有goodsSign信息时,订单会返回原goodsSign;反之,会生成新的goodsSign返回。 | |
| goods_thumbnail_url | String | 商品缩略图 | |
| group_id | Long | 成团编号 | |
| is_direct | Integer | 是否直推,1表示是,0表示否 | |
| mall_id | Long | 店铺id | |
| mall_name | String | 店铺名称 | |
| no_subsidy_reason | String | 非补贴订单原因,例如:"商品补贴达上限","达到单个用户下单上限","非指定落地页直推订单","订单超过2个月未审核成功"等 | |
| order_amount | Long | 订单价格(分) | |
| order_create_time | Long | 订单创建时间(UNIX时间戳) | |
| order_group_success_time | Long | 订单成团时间(UNIX时间戳) | |
| order_modify_at | Long | 订单最后更新时间(UNIX时间戳) | |
| order_pay_time | Long | 订单支付时间(UNIX时间戳) | |
| order_receive_time | Long | 订单确认收货时间(UNIX时间戳) | |
| order_settle_time | Long | 订单结算时间(UNIX时间戳) | |
| order_sn | String | 订单编号 | |
| order_status | Integer | 订单状态 | |
| order_status_desc | String | 订单状态:0-已支付;1-已成团;2-确认收货;3-审核成功;4-审核失败(不可提现);5-已经结算 ;10-已处罚 | |
| order_verify_time | Long | 订单审核时间(UNIX时间戳) | |
| pid | String | 推广位id | |
| platform_discount | Long | 平台券金额,表示该订单使用的平台券金额,单位分 | |
| point_time | Long | 打点时间 | |
| price_compare_status | Integer | 比价状态:0:正常,1:比价 | |
| promotion_amount | Long | 佣金(分) | |
| promotion_rate | Long | 佣金比例,千分比 | |
| red_packet_type | Integer | 超级红包补贴类型:0-非红包补贴订单,1-季度新用户补贴 | |
| return_status | Integer | 售后状态:0:无,1:售后中,2:售后完成 | |
| sep_duo_id | Long | 直播间订单推广duoId | |
| sep_market_fee | Integer | 直播间推广佣金 | |
| sep_parameters | String | 直播间推广自定义参数 | |
| sep_pid | String | 直播间订单推广位 | |
| sep_rate | Integer | 直播间推广佣金比例 | |
| share_amount | Integer | 招商分成服务费金额,单位为分 | |
| share_rate | Integer | 招商分成服务费比例,千分比 | |
| subsidy_amount | Integer | 优势渠道专属商品补贴金额,单位为分。针对优质渠道的补贴活动,指定优势渠道可通过推广该商品获取相应补贴。补贴活动入口:[进宝网站-官方活动] | |
| subsidy_duo_amount_level | Integer | 等级补贴给渠道的收入补贴,不允许直接给下级代理展示,单位为分 | |
| subsidy_duo_amount_ten_million | Integer | 官方活动给渠道的收入补贴金额,不允许直接给下级代理展示,单位为分 | |
| subsidy_type | Integer | 订单补贴类型:0-非补贴订单,1-千万补贴,2-社群补贴,3-多多星选,4-品牌优选,5-千万神券 | |
| type | Integer | 下单场景类型:0-单品推广,1-红包活动推广,4-多多进宝商城推广,7-今日爆款,8-品牌清仓,9-1.9包邮,77-刮刮卡活动推广,94-充值中心,101-品牌黑卡,103-百亿补贴频道,104-内购清单频道,105-超级红包 | |
| url_last_generate_time | Long | 链接最后一次生产时间 | |
| zs_duo_id | Long | 招商多多客id | |
| bandan_risk_consult | Integer | 预判断是否为代购订单,-1(默认)表示未出结果,0表示预判不是代购订单,1表示代购订单,具体请以最后审核状态为准 |