Files
order_site/docs/咸鱼api.md
T

102 lines
3.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
订单查询
简要描述: 接口调用示例
¥高级
根据订单号,查询订单信息
请求URL
https://gw-api.agiso.com/aldsIdle/Order/Detail
请求方式:
POST
公共Header
Authorization
string
httpPost.addHeader("Authorization","Bearer "+ accessToken)
ApiVersion
string
httpPost.addHeader("ApiVersion", "1")
公共参数:
timestamp
Date
时间戳,例如:1468476350。API服务端允许客户端请求最大时间误差为10分钟。
sign
string
API输入参数签名结果,签名算法参照下面的介绍。
参数:
tid
Long
订单号
返回示例
{
"IsSuccess": true,
"Data": {
"biz_order_id": 1520087523676842500, // 订单号
"buy_amount": 1, // 商品购买数量
"buyer_nick": "地铁吃火锅当真", // 买家昵称(不唯一且买家可以自己更改)
"encryption_buyer_id": "RAzN8214YLDBs4AJxFJBYp5DdeHrBPKq4QsbFL", // 加密的买家id(唯一且不会改变)
"create_time": 1647677835000, // 订单创建时间,时间戳,毫秒
"end_time": 1647677858000, // 订单完结时间,时间戳,毫秒
"item": { // 商品信息
"item_id": 669513624774, // 商品ID
"pic_url": "https://gw.alicdn.com/bao/uploaded/i4/O1CN01X6Nw841OaGN6dvZtx_!!0-fleamarket.jpg", // 商品图片,绝对途径
"price": 1, // 商品价格,单位分
"title": "测试宝贝5", // 商品标题
"outer_id_sku": "XY02", // 商品外部编码(SKU维度)
"outer_id_spu": "XY01", // 商品外部编码(SPU维度)
},
"order_status": 5, // 0:未知状态、1:订单已创建、2:订单已付款、3:已发货、4:交易成功、5:已退款、6:交易关闭
"pay_time": 1647677841000, // 订单下单付款时间,时间戳,毫秒
"payment": 1, // 实付金额, 单位分
"post_fee": 0, // 邮费
"seller_nick": "爱***网", // 卖家昵称(不唯一且买家可以自己更改)
"ship_time": 0, // 订单发货时间,时间戳,毫秒
"sku": 0, // sku信息(格式: skuId|属性名:属性值;属性名:属性值)
"isRecharge":true, // 是否直冲标识
"recharge_amount":"135xxxx", // 充值信息
"isEticket":"true", // 是否囤囤券订单
"coupon_eticket_info":[ // 核销码信息(囤囤券)
{
"code_id":"x222223", // 核销码
"code_password":"123", // 核销码密码
"code_status":"1", // 核销码状态
"code_type":1, // 核销码类型
"code_use_url":"http://localhost:26450/t/zbdjyu_9137A" // 核销码使用链接
}
]
},
"Error_Code": 0,
"Error_Msg": ""
"AllowRetry": null,
"RequestId": "20220322142251106"
}