POST SharePay/ShareQuery
发起分账请求后,可调用此接口查询分账结果;发起分账完结请求后,可调用此接口查询分账完结的执行结果。
请求信息
请求URI参数
无
请求数据参数
分账查询信息
ShareQueryInfo名称 | 说明 | 类型 | 扩展说明 |
---|---|---|---|
store_no |
门店编码. |
字符串 |
必填 字符长度: 必须在 1 和 32 之间 |
order_no |
请求分账单号 |
字符串 |
必填 字符长度: 必须在 1 和 32 之间 |
transaction_no |
要查询分账的交易流水号 |
字符串 |
无 |
请求数据格式
application/json, text/json
例子:
{ "store_no": "sample string 1", "order_no": "sample string 2", "transaction_no": "sample string 3" }
响应数据
资源说明
分账结果
ResultInfoOfShareResultInfo名称 | 说明 | 类型 | 扩展说明 |
---|---|---|---|
code | ResultCode |
无 |
|
msg | 字符串 |
无 |
|
data | ShareResultInfo |
无 |
响应数据格式
application/json, text/json
例子:
{ "code": "SUCCESS", "msg": "sample string 1", "data": { "store_no": "sample string 1", "order_no": "sample string 2", "share_no": "sample string 3", "transaction_no": "sample string 4", "finished": true, "state": "sample string 6", "error": "sample string 7", "share_details": [ { "account_type": 1, "account": "sample string 1", "amount": 2, "description": "sample string 3", "result": "sample string 4", "finish_time": "sample string 5", "fail_reason": "sample string 6" }, { "account_type": 1, "account": "sample string 1", "amount": 2, "description": "sample string 3", "result": "sample string 4", "finish_time": "sample string 5", "fail_reason": "sample string 6" } ] } }