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

# Company Revenue Breakdown

> Revenue breakdown of the company, by business segment, by product, or by region

## 营收分解

**URL**: `/v1/stock/company-revenue-breakdown`
**方法**: `POST`\
**描述**: 获取公司营收分解数据，按业务板块、产品或地区分类。

### 请求参数

| 参数名          | 类型  | 必填 | 描述                |
| ------------ | --- | -- | ----------------- |
| symbol       | str | 是  | 股票代码。             |
| period       | str | 否  | 报告周期：`FY`、`Q2` 等。 |
| limit        | int | 否  | 返回最近 N 条记录，默认 6。  |
| start\_date  | str | 否  | 开始日期（YYYY-MM-DD）。 |
| end\_date    | str | 否  | 结束日期（YYYY-MM-DD）。 |
| fiscal\_year | str | 否  | 指定财年（如 `2023`）。   |

### 响应参数

| 参数名                          | 类型     | 描述                   |
| ---------------------------- | ------ | -------------------- |
| status                       | int    | HTTP 状态码。            |
| code                         | int    | 响应代码（0 表示成功）。        |
| message                      | str    | 响应消息。                |
| data                         | object | 营收分解数据。              |
|   currency                   | str    | 货币单位。                |
|   list                       | array  | 营收分解列表。              |
|     end\_date                | str    | 报告期结束日期（YYYY-MM-DD）。 |
|     period                   | str    | 报告周期。                |
|     fiscal\_year             | int    | 财年。                  |
|     product                  | array  | 按产品分解（可能为空）。         |
|     area                     | array  | 按地区分解。               |
|       name                   | str    | 地区名称。                |
|     industry                 | array  | 按行业/业务板块分解。          |
|       name                   | str    | 业务板块名称。              |
|       revenue                | number | 营收金额。                |
|       revenue\_percentage    | number | 营收占比（百分比形式）。         |
|     industry\_total\_revenue | number | 行业总营收。               |

### 请求示例

**cURL**

```bash theme={null}
curl -X POST https://api.reportify.cn/v1/stock/company-revenue-breakdown \
-H "Authorization: Bearer 447460****09c9" \
-H "Content-Type: application/json" \
-d '{
    "symbol": "00700",
    "limit": 2
}'
```

**Python**

```python theme={null}
import requests

url = "https://api.reportify.cn/v1/stock/company-revenue-breakdown"
headers = {
    "Authorization": "Bearer 447460****09c9",
    "Content-Type": "application/json"
}
data = {
    "symbol": "00700",
    "limit": 2
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
```

### 响应示例

```json theme={null}
{
  "status": 200,
  "code": 0,
  "message": "",
  "data": {
    "currency": "HKD",
    "list": [
      {
        "end_date": "2025-09-30",
        "period": "三季报",
        "fiscal_year": 2025,
        "product": [],
        "area": [
          {
            "name": "中國內地"
          },
          {
            "name": "其他"
          }
        ],
        "industry": [
          {
            "name": "增值服務",
            "revenue": 279361000000,
            "revenue_percentage": 50.12
          },
          {
            "name": "營銷服務",
            "revenue": 103857000000,
            "revenue_percentage": 18.63
          },
          {
            "name": "金融科技及企業服務",
            "revenue": 168617000000,
            "revenue_percentage": 30.25
          },
          {
            "name": "其他",
            "revenue": 5560000000,
            "revenue_percentage": 1.0
          }
        ],
        "industry_total_revenue": 557395000000
      }
    ]
  }
}
```

### 错误响应

| 状态码 | 描述        |
| --- | --------- |
| 422 | 请求参数验证失败。 |


## OpenAPI

````yaml POST /v1/stock/company-revenue-breakdown
openapi: 3.1.0
info:
  title: Reportify API
  version: 1.0.0
  description: API documentation for Reportify's document management and search services.
servers:
  - url: https://api.reportify.cn
    description: Production server
security:
  - BearerAuth: []
paths:
  /v1/stock/company-revenue-breakdown:
    post:
      tags:
        - openapi-v2-stock
      summary: Company Revenue Breakdown
      description: >-
        Revenue breakdown of the company, by business segment, by product, or by
        region
      operationId: >-
        company_revenue_breakdown_reportify_api_v2_stock_company_revenue_breakdown_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyRevenueBreakdownInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockAPIResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    CompanyRevenueBreakdownInput:
      properties:
        symbol:
          type: string
          title: Symbol
          description: Stock symbol
        period:
          type: string
          title: Period
          description: 'Report cycle: ''FY'', ''Q2'''
        limit:
          type: integer
          title: Limit
          description: Return latest N records, default 6
        start_date:
          type: string
          title: Start Date
          description: Start date (YYYY-MM-DD)
        end_date:
          type: string
          title: End Date
          description: End date (YYYY-MM-DD)
        fiscal_year:
          type: string
          title: Fiscal Year
          description: Specific fiscal year (e.g., '2023')
      type: object
      required:
        - symbol
      title: CompanyRevenueBreakdownInput
      description: Input schema for company revenue breakdown
    StockAPIResponse:
      properties:
        status:
          type: integer
          title: Status
          description: HTTP status code
        code:
          type: integer
          title: Code
          description: Response code (0 for success)
        message:
          type: string
          title: Message
          description: Response message
        data:
          type: object
          title: Data
          description: Response data (structure varies by endpoint)
      type: object
      title: StockAPIResponse
      description: Generic response wrapper from stock API
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter your Bearer token

````