> ## Documentation Index
> Fetch the complete documentation index at: https://opendocs.xft.xin/llms.txt
> Use this file to discover all available pages before exploring further.

# 分账结果查询

### 功能说明

查询分账订单和每一笔分账子单的处理结果。

### 请求地址

`POST /profit/sharing/detail`

### 请求参数

| 字段 | 类型 | 必填 | 长度 | 说明 |
| - | - | - | - | - |
| `out_trade_no` | string | 是 | 64 | 原分账申请订单号 |

```json theme={"system"}
{
  "out_trade_no": "b6df8ca277f845bb80796f4f78a614db"
}
```

### 响应参数

| 字段 | 类型 | 说明 |
| - | - | - |
| `out_trade_no` | string | 分账订单号 |
| `contract_no` | string | 合同编号 |
| `merchant_code` | string | 分账付款方商户号 |
| `total_amount` | int | 分账总金额，单位：分 |
| `attach` | string | 分账订单备注 |
| `receiver_infos` | object\[] | 分账接收方明细 |
| `receiver_infos[].merchant_code` | string | 接收方商户号 |
| `receiver_infos[].sub_trade_no` | string | 分账子单订单号 |
| `receiver_infos[].third_trade_no` | string | 网商流水号 |
| `receiver_infos[].amount` | int | 分账金额，单位：分 |
| `receiver_infos[].fee` | int | 手续费，单位：分 |
| `receiver_infos[].attach` | string | 分账备注 |
| `receiver_infos[].state` | string | 子单状态 |
| `receiver_infos[].fail_msg` | string | 子单失败原因；失败时返回 |

### 响应示例

```json theme={"system"}
{
  "out_trade_no":"163a4616729d48d1bcaea60069092f32",
  "contract_no":"333333",
  "merchant_code":"226801000000865319122",
  "total_amount":2,
  "attach":"测试003",
  "receiver_infos":[{"merchant_code":"226801000000865344977","sub_trade_no":"8ac60939d3e84793b4286ec56de98fd9","third_trade_no":"2023090310152061656165970003002571","amount":1,"attach":"测试0031","state":"pending"}]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.