支持第三方调用
支持沙箱环境调用
禁止个人开发者调用
不支持直连支付
公共请求参数
名称 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| app_id | string | 是 | 小程序appid |
| access_token | string | 是 | 小程序调用凭证 |
业务请求参数
名称 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| order_id | string | 否 | 指定订单查询 |
| seller_id | string | 否 | 当前商家 |
| settle_start_time | int64 | 否 | 结算开始时间 |
| settle_start_to | int64 | 否 | 结算结束时间 |
| page_num | int32 | 否 | 当前页 |
| page_size | int32 | 否 | 每页数量 |
| settle_biz_type | int32 | 否 | 结算类型 |
| common_settle_status | int32 | 否 | 结算状态 |
请求示例
{
"order_id":"string",
"seller_id":"string",
"settle_start_time":0,
"settle_start_to":0,
"page_num":0,
"page_size":0,
"settle_biz_type":0,
"common_settle_status":0
}
名称 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
data | struct | 否 | |
size | int32 | 是 | 总数量 |
order_settles | list_struct | 是 | 结算明细 |
settle_type | string | 是 | 结算对象 |
transaction_settle_status | string | 是 | 0:不需要结算,1:初始化,2:可结算,3:结算中,4:已结算,5:结算失败,6:结算冲抵 |
settled_time | int64 | 是 | 结算时间 |
settle_biz_type | string | 是 | 0:正向,1:逆向 |
goods_amount | string | 是 | 结算金额,对应货款金额 |
platform_discount | string | 是 | 平台优惠 |
commission_amount | string | 是 | 平台佣金 |
pay_channel_amount | string | 是 | 支付渠道费 |
cps_amount | string | 是 | 分销佣金 |
service_commission_amount | string | 是 | 服务商佣金 |
transaction_id | int64 | 是 | 结算id |
package_id | string | 是 | 订单号 |
statement_type | int32 | 是 | 结算方式,0:订单,2:履约单 |
transaction_biz_type | int32 | 是 | 0:售卖,1:取消,2:退款,3:售后 |
delivery_id | string | 是 | 履约单id |
transaction_biz_no | string | 是 | 结算业务单号 |
return_id | string | 是 | returnId |
order_time | int64 | 是 | 订单时间 |
can_settle_time | int64 | 是 | 可结算时间 |
predictable_settle_time | string | 是 | 预结算时间 |
erqing_type | int32 | 是 | 结算账户:0(店铺余额) 2(微信) 1(支付宝) |
common_settle_status | int32 | 是 | 结算状态:0(未结算) 1(已结算) |
amount | string | 是 | 动账金额,实际结给商家的钱 |
pay_amount | string | 是 | 支付金额 |
app_promotion | string | 否 | --- |
freight_amount | string | 否 | --- |
no_freight_reason | string | 否 | --- |
tax_amount | string | 否 | --- |
no_tax_reason | string | 否 | --- |
freight_tax_amount | string | 否 | --- |
no_freight_tax_reason | string | 否 | --- |
no_pay_channel_reason | string | 否 | --- |
installment_amount | string | 否 | --- |
no_installment_reason | string | 否 | --- |
extra_amount | string | 否 | --- |
no_extra_reason | string | 否 | --- |
calculate_remark | string | 否 | --- |
settle_record_no | string | 否 | --- |
voucher_code | string | 否 | 券码 |
poi_id | string | 否 | 核销poi(orderId点查才有) |
poi_name | string | 否 | 核销门店名称(orderId点查才有) |
ext_order_id | string | 否 | 三方订单号 |
settle_zone | string | 否 | 结算区域 |
verify_time | string | 否 | 核销时间 |
page_num | int32 | 是 | 当前页数 |
total_page | int32 | 是 | 总共的页数 |
page_size | int32 | 是 | 每页数量 |
| success | bool | 否 | 是否成功 |
| msg | string | 否 | 说明,正确响应时为 success,错误响应时为错误描述 |
| code | int32 | 否 | 错误码,正确响应时为 0,错误响应时非0 |
{
"data":{
"size":0,
"order_settles":[
{
"settle_type":"string",
"transaction_settle_status":"string",
"settled_time":0,
"settle_biz_type":"string",
"goods_amount":"string",
"platform_discount":"string",
"commission_amount":"string",
"pay_channel_amount":"string",
"cps_amount":"string",
"service_commission_amount":"string",
"transaction_id":0,
"package_id":"string",
"statement_type":0,
"transaction_biz_type":0,
"delivery_id":"string",
"transaction_biz_no":"string",
"return_id":"string",
"order_time":0,
"can_settle_time":0,
"predictable_settle_time":"string",
"erqing_type":0,
"common_settle_status":0,
"amount":"string",
"pay_amount":"string",
"app_promotion":"string",
"freight_amount":"string",
"no_freight_reason":"string",
"tax_amount":"string",
"no_tax_reason":"string",
"freight_tax_amount":"string",
"no_freight_tax_reason":"string",
"no_pay_channel_reason":"string",
"installment_amount":"string",
"no_installment_reason":"string",
"extra_amount":"string",
"no_extra_reason":"string",
"calculate_remark":"string",
"settle_record_no":"string",
"voucher_code":"string",
"poi_id":"string",
"poi_name":"string",
"ext_order_id":"string",
"settle_zone":"string",
"verify_time":"string"
}
],
"page_num":0,
"total_page":0,
"page_size":0
},
"success":true,
"msg":"string",
"code":0
}
参见错误码