电商类

    eb_trade_v2/batch_get


    目录

    1.接口说明

    1.1接口描述

         批量获取新电商订单

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    电商集成

    3.接口调用说明

    3.1请求说明

    url https://api.yonyouup.com/api/eb_trade_v2/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 string 交易编号
    title string 交易标题关键字
    buyer_nick string 买家会员号
    receiver_name string 收货人的姓名关键字
    trade_memo string 交易备注关键字
    cexpresscode string 快递单号
    cshipcode string 发货单编号

    3.3请求示例

    GET https://api.yonyouup.com/api/eb_trade_v2/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&cshopcode=xxxxx&tid=xxxxx&title=xxxxx&buyer_nick=xxxxx&receiver_name=xxxxx&trade_memo=xxxxx&cexpresscode=xxxxx&cshipcode=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 发货时间
    id string entry 店铺编码_交易号
    title string entry 交易标题
    num_iid string entry 商品数字ID
    outer_iid string entry 商家外部编码
    sku_id string entry 商品Sku的id
    outer_sku_id string entry 外部网店自己定义的Sku编号
    sku_properties_name string entry SKU值
    citemcode string entry 商品编码
    citemname string entry 商品名称
    price number entry 商品价格
    num number entry 购买数量
    discount_fee number entry 订单优惠金额
    adjust_fee number entry 手工调整金额
    post_fee number entry 运费
    cwhcode string entry 发货仓库
    isdiscount boolean entry 是否折扣
    ispostfee boolean entry 是否运费
    cdefine22 string entry 表体自定义项1
    cdefine23 string entry 表体自定义项2
    cdefine24 string entry 表体自定义项3
    cdefine25 string entry 表体自定义项4
    cdefine26 number entry 表体自定义项5
    cdefine27 number entry 表体自定义项6
    cdefine28 string entry 表体自定义项7
    cdefine29 string entry 表体自定义项8
    cdefine30 string entry 表体自定义项9
    cdefine31 string entry 表体自定义项10
    cdefine32 string entry 表体自定义项11
    cdefine33 string entry 表体自定义项12
    cdefine34 number entry 表体自定义项13
    cdefine35 number entry 表体自定义项14
    cdefine36 date entry 表体自定义项15
    cdefine37 date entry 表体自定义项16
    isgift boolean entry 是否赠品
    autoid number entry 子表标识
    cbatch string entry 批次
    dvdate string entry 失效日期
    cinvcode string entry 货品外部编码

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    
    

    3.6错误返回示例

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

    4.API测试

    API测试 SDK下载