---
title: "Statement of account V2"
method: POST
path: "/open-user/statement/v2"
tags: ["Custom Aggregate Data"]
---

# Statement of account V2

`POST /open-user/statement/v2`

## Request

- Base URL: `https://connect.patsnap.com`
- URL: `https://connect.patsnap.com/open-user/statement/v2`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/docs/open-user/statement/v2/post.ts> (a function with typed inputs; its response is checked against the schema)

Support input time range to get API calls and billing information

## Request body

- StatementV2Request
  - `apikey` string, required: API Key
  - `client_secret` string, required: API secret
  - `time_start` string, required: Start date
  - `time_end` string, required: End date

## Response `200`

Successful statement of account v2 response.

- StatementV2Response
  - `data` StatementV2StatementResponseV2
    - `usage` StatementV2PathUsage[]: Details of usage for each billing interface
      - `fee_times` number: Chargeable times
      - `used_money` number: Amount used
      - `usage_times` number: Usage times
      - `request_path` string: API request path
      - `serial_number` string: Serial number
      - `request_path_name` string: API name
    - `combo_usage` StatementV2ComboUsage[]: Details of usage for each counting interface
      - `url` string: Interface URL
      - `url_name` string: Interface name
      - `used_num` integer: Usage count
      - `usage_num` integer: Usage count
    - `usage_money` number: The amount spent on the billing interface
    - `combo_use_num` integer: Count the usage times of the interface
    - `combo_usage_num` integer: The number of times the interface counts
  - `status` boolean, required: Status
  - `error_msg` string: Error Message
  - `error_code` integer, required: Error Code

## Other responses

- `201`: Created.
- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Not Found.

---

[API](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api.md) - [All operations](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/revisions/c2264a0de595?raw)
