电商类

    eb_tradelist/batch_get


    目录

    1.接口说明

    1.1接口描述

         获取电商订单列表

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    电商集成

    3.接口调用说明

    3.1请求说明

    url https://api.yonyouup.com/api/eb_tradelist/batch_get
    格式 JSON
    https请求方式 GET


    3.2url参数说明

    参数 是否必填 类型 描述
    from_account sting 调用方id
    to_account string 提供方id
    app_key string 应用编码
    token string 全局访问唯一识别码
    ds_sequence number 数据源序号(默认取应用的第一个数据源)
    cshopcode string 店铺编码
    tid_begin string 起始交易编号
    tid_end string 结束交易编号
    title string 交易标题
    buyer_nick string 买家会员号
    receiver_name string 收货人的姓名关键字
    receiver_state string 收货人的所在省份
    receiver_city string 收货人的所在城市
    receiver_district string 收货人的所在地区
    receiver_address string 收货人的详细地址
    receiver_mobile string 收货人的手机号码
    isinvoice boolean 是否开票
    receiver_phone string 收货人的电话号码
    buyer_email string 买家邮件地址
    seller_memo string 卖家备注
    created_begin date 起始交易时间
    created_end date 结束交易时间
    pay_time_begin date 起始付款时间
    pay_time_end date 结束付款时间
    buyer_message string 买家留言
    trade_memo string 交易备注
    cexpresscode string 快递单号
    cdepcode string 部门编码
    cdepname string 部门
    cpersonname string 业务员关键字
    ispickself number 是否自提
    sysstatus string 单据状态
    ishold boolean 是否挂起
    isclosed boolean 是否关闭

    3.3请求示例

    GET https://api.yonyouup.com/api/eb_tradelist/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&cshopcode=xxxxx&tid_begin=xxxxx&tid_end=xxxxx&title=xxxxx&buyer_nick=xxxxx&receiver_name=xxxxx&receiver_state=xxxxx&receiver_city=xxxxx&receiver_district=xxxxx&receiver_address=xxxxx&receiver_mobile=xxxxx&isinvoice=xxxxx&receiver_phone=xxxxx&buyer_email=xxxxx&seller_memo=xxxxx&created_begin=xxxxx&created_end=xxxxx&pay_time_begin=xxxxx&pay_time_end=xxxxx&buyer_message=xxxxx&trade_memo=xxxxx&cexpresscode=xxxxx&cdepcode=xxxxx&cdepname=xxxxx&cpersonname=xxxxx&ispickself=xxxxx&sysstatus=xxxxx&ishold=xxxxx&isclosed=xxxxx


    3.4返回参数说明

    参数说明 类型 参数路径 描述
    errcode string   错误码,0 为正常。
    errmsg string   错误信息。
    cshopcode string 店铺编码
    tid string 交易编号
    title string 交易标题
    buyer_nick string 买家会员号
    receiver_name string 收货人的姓名
    receiver_state string 收货人的所在省份
    receiver_city string 收货人的所在城市
    receiver_district string 收货人的所在地区
    receiver_address string 收货人的详细地址
    receiver_zip string 收货的人邮编
    receiver_mobile string 收货人的手机号码
    isinvoice boolean 是否开票
    receiver_phone string 收货人的电话号码
    buyer_email string 买家邮件地址
    seller_memo string 卖家备注
    created date 交易时间
    pay_time date 付款时间
    promotion string 交易促销信息
    buyer_message string 买家留言
    trade_memo string 交易备注
    invoice_name string 发票抬头
    cinvoicecode string 发票号
    cexpresscocode string 快递公司编码
    cexpressconame string 快递公司名称
    cexpresscode string 快递单号
    cdepcode string 部门编码
    cdepname string 部门
    cpersonname string 业务员
    cstname string 销售类型
    cssname string 结算方式
    cshipmode string 发货模式
    cdefine1 string 表头自定义项1
    cdefine2 string 表头自定义项2
    cdefine3 string 表头自定义项3
    cdefine4 date 表头自定义项4
    cdefine5 number 表头自定义项5
    cdefine6 date 表头自定义项6
    cdefine7 number 表头自定义项7
    cdefine8 string 表头自定义项8
    cdefine9 string 表头自定义项9
    cdefine10 string 表头自定义项10
    cdefine11 string 表头自定义项11
    cdefine12 string 表头自定义项12
    cdefine13 string 表头自定义项13
    cdefine14 string 表头自定义项14
    cdefine15 number 表头自定义项15
    cdefine16 number 表头自定义项16
    id string 店铺编码_商品编码
    ispickself number 是否自提
    sysstatus string 单据状态
    ishold boolean 是否挂起
    isclosed boolean 是否关闭
    total_fee number 商品金额
    discount_fee number 系统优惠金额
    end_time date 交易结束时间
    cshipcode string 发货单编号
    dshiptime date 发货时间

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"eb_tradelist":[
    		{
    			"cexpressconame":"",
    			"isinvoice":"1",
    			"seller_memo":"",
    			"receiver_address":"北清路68号用友软件园",
    			"ishold":"0",
    			"receiver_phone":"",
    			"trade_memo":"",
    			"created":"2014-12-0400:00:00.0",
    			"total_fee":"799.00",
    			"tid":"784470431496937",
    			"cinvoicecode":"",
    			"discount_fee":"405.00",
    			"cdepname":"电子商务",
    			"receiver_city":"杭州市",
    			"dshiptime":"",
    			"pay_time":"2014-12-0500:00:00.0",
    			"receiver_mobile":"*35057*6665",
    			"cssname":"银行转账",
    			"receiver_name":"陈洁",
    			"buyer_nick":"加菲猫m",
    			"cshipcode":"",
    			"cstname":"电子商务",
    			"end_time":"",
    			"cdefine12":"",
    			"cdefine11":"",
    			"cdefine10":"",
    			"isclosed":"0",
    			"cdepcode":"0304",
    			"receiver_zip":"310011",
    			"promotion":"",
    			"buyer_message":"",
    			"cpersonname":"何彤",
    			"cdefine14":"",
    			"cdefine13":"",
    			"cdefine16":"",
    			"cdefine15":"",
    			"id":"01_784470431496937",
    			"buyer_email":"13505716665@139.com",
    			"title":"淘宝",
    			"cexpresscocode":"",
    			"receiver_state":"浙江省",
    			"sysstatus":"UnConfirm",
    			"cdefine9":"",
    			"invoice_name":"陈洁",
    			"cdefine8":"",
    			"cdefine7":"",
    			"cdefine6":"",
    			"cdefine5":"",
    			"cdefine4":"",
    			"cdefine3":"",
    			"cdefine2":"",
    			"cdefine1":"",
    			"ispickself":"0",
    			"receiver_district":"拱墅区",
    			"cexpresscode":"",
    			"cshipmode":"EnterpriseDeliver",
    			"cshopcode":"01"
    		},
    		{
    			"cexpressconame":"",
    			"isinvoice":"0",
    			"seller_memo":"",
    			"receiver_address":"北清路68号用友软件园",
    			"ishold":"0",
    			"receiver_phone":"",
    			"trade_memo":"",
    			"created":"2014-12-0400:00:00.0",
    			"total_fee":"799.00",
    			"tid":"784305475703094",
    			"cinvoicecode":"",
    			"discount_fee":"405.00",
    			"cdepname":"电子商务",
    			"receiver_city":"鸡西市",
    			"dshiptime":"",
    			"pay_time":"2014-12-0500:00:00.0",
    			"receiver_mobile":"*88*57*3777",
    			"cssname":"银行转账",
    			"receiver_name":"刘勇峰",
    			"buyer_nick":"touareg88",
    			"cshipcode":"",
    			"cstname":"电子商务",
    			"end_time":"",
    			"cdefine12":"",
    			"cdefine11":"",
    			"cdefine10":"",
    			"isclosed":"0",
    			"cdepcode":"0304",
    			"receiver_zip":"158100",
    			"promotion":"",
    			"buyer_message":"",
    			"cpersonname":"何彤",
    			"cdefine14":"",
    			"cdefine13":"",
    			"cdefine16":"",
    			"cdefine15":"",
    			"id":"01_784305475703094",
    			"buyer_email":"turuiv8@163.com",
    			"title":"淘宝",
    			"cexpresscocode":"",
    			"receiver_state":"黑龙江省",
    			"sysstatus":"UnConfirm",
    			"cdefine9":"",
    			"invoice_name":"",
    			"cdefine8":"",
    			"cdefine7":"",
    			"cdefine6":"",
    			"cdefine5":"",
    			"cdefine4":"",
    			"cdefine3":"",
    			"cdefine2":"",
    			"cdefine1":"",
    			"ispickself":"0",
    			"receiver_district":"鸡冠区",
    			"cexpresscode":"",
    			"cshipmode":"EnterpriseDeliver",
    			"cshopcode":"01"
    		}
    	],
    	"page_index":"1",
    	"rows_per_page":"20",
    	"row_count":"225",
    	"errmsg":"",
    	"page_count":"12",
    	"errcode":"0"
    }
    

    3.6错误返回示例

    application/json;charset=UTF-8
    {
    	"errcode":"30021",
    	"errmsg":"此应用未上线"
    } 

    4.API测试

    API测试 SDK下载