文档
测试

商家中心

POST
http://yun-pay.hs499.com/app/localLife/merchant/center

请求头

参数名
类型
描述
必填
sign
String
验证签名,防止参数篡改,测试可以不填
必填

请求参数

参数名
类型
描述
必填
user_id
String
用户ID
必填
query_type
int
查询类型: 0:查询全部 1:仅查询订单 默认 0
必填
order_type
int
订单类型 -1 全部 :1购买产品 2 在线买单 默认-1
必填
user_real_name
String
付款人姓名
必填
user_phone
String
付款人电话
必填
order_no
String
订单编号
必填
pay_time
String
付款时间 yyyy-MM-dd
必填
page
int
页数,默认1
必填
limit
int
条数,默认5
必填

响应参数

参数名
类型
描述
必填
code
number
示例:0 成功 -1 失败
必填
errors
object
数据字典
必填
msg
string
示例:操作成功
必填
result
object
数据字典
必填
order_list
list
订单列表
必填
product_img
string
产品图片
必填
product_name
string
产品名称
必填
num
int
购买数量
必填
order_total_amount
decimal
订单总额
必填
use_score
int
使用积分
必填
score_deduct_amount
decimal
积分抵扣金额
必填
order_no
string
订单编号
必填
store_name
string
商家姓名
必填
store_phone
string
商家电话
必填
real_pay_amount
decimal
实际付款金额
必填
order_pay_time
string
付款时间
必填
order_type
int
订单类型 1购买产品 2 在线买单
必填
user_real_name
string
付款人姓名
必填
user_phone
string
付款人电话
必填
count_info
object
统计信息
必填
today_score
int
今日积分
必填
today_amount
decimal
今日订单额
必填
current_month_score
int
当月积分
必填
current_month_amount
decimal
当月订单额
必填
total_score
int
总积分
必填
total_amount
decimal
总订单额
必填
merchant_id
string
商家ID
必填

说明 / 示例

{ "code": 1, "errors": {}, "msg": "操作成功", "result": { "count_info": { "total_amount": 4700, "current_month_amount": 4700, "today_amount": 0, "total_score": 30000, "today_score": 0, "current_month_score": 30000 }, "merchant_id": "35db0467946b4961bdb7929b21b3dcbc", "order_list": [ { "order_no": "abc123456789", "real_pay_amount": 4700, "score_deduct_amount": 300, "num": 5, "bill_no": "test1233444", "merchant_id": "35db0467946b4961bdb7929b21b3dcbc", "order_time": "2021-06-04 21:23:11", "product_name": "猪屎汉堡", "product_img": "test.png", "order_status": 1, "order_pay_time": "2021-06-04 23:23:11", "store_phone": "15122933022", "user_id": "009a9b91bc6a415584596a4d24dd5f2f", "user_real_name": "百一付用户", "use_score": 30000, "user_phone": "17665695726", "store_name": "汉堡王2", "pay_type": 3, "order_time_stamp": 0, "id": "test1", "order_type": 1, "order_total_amount": 5000, "order_pay_time_stamp": 0 } ] } }