eb_trade_v2/get
目录 |
1.接口说明
1.1接口描述
获取单个新电商订单
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
电商集成
3.接口调用说明
3.1请求说明
url | https://api.yonyouup.com/api/eb_trade_v2/get |
格式 | JSON |
https请求方式 | GET |
3.2url参数说明
参数 | 是否必填 | 类型 | 描述 |
---|---|---|---|
from_account | 是 | sting | 调用方id |
to_account | 是 | string | 提供方id |
app_key | 是 | string | 应用编码 |
token | 是 | string | 全局访问唯一识别码 |
ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
id | 是 | string | 店铺编码_商品编码 |
3.3请求示例
GET https://api.yonyouup.com/api/eb_trade_v2/get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&id=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 { "eb_trade_v2":{ "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" }, "errmsg":"", "errcode":"0" }
3.6错误返回示例
application/json;charset=UTF-8 { "errcode":"30021", "errmsg":"此应用未上线" }