# Points Balance Query — get_points_balance

Get Pkulaw Points Balance Query data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by PKULaw, configure supported query parameters and filters, and retrieve structured data including text, returned type field, returned account status field, returned available points field, and returned expiring points field for document research and entity reference, and integration reference.

Documentation: https://openany.si/pkulaw/pkulaw-points-balance-query-get-points-balance/e0413427-18a5-42d2-bc0c-c9e5ec2dc778/
API ID: e0413427-18a5-42d2-bc0c-c9e5ec2dc778
Provider: pkulaw
Contract revision: 6
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/pkulaw/account/get_points_balance
Page update time: 2026-12-04T01:47:27.514Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.0005 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-04T01:47:27.514Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "500",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Pkulaw Points Balance Query — get\_points\_balance API

Retrieve points Balance Query get\_points\_balance with the PKULaw API. Provide JSON payload in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Document research and entity reference**: Keep document and entity identifiers with each returned reference.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `content[].text` | Text |
| `content[].type` | Returned type field |
| `structuredContent.accountStatus` | Returned account status field |
| `structuredContent.availablePoints` | Returned available points field |
| `structuredContent.expiringPoints` | Returned expiring points field |
| `structuredContent.expiringWindowDays` | Returned expiring window days field |
| `structuredContent.nearestExpireOn` | Returned nearest expire on field |
| `structuredContent.portalPointsUrl` | Returned portal points url field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Points Balance Query — get_points_balance request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "properties": {
        "expiringWindowDays": {
          "default": 30,
          "description": "Window in days for counting points nearing expiry; default 30, range 1 to 365. Pass 7 if the user asks how many expire within a week; for within this year, do not estimate dates: pass 365.",
          "maximum": 365,
          "minimum": 1,
          "title": "expiringWindowDays",
          "type": "integer"
        }
      },
      "title": "get_points_balanceArguments",
      "type": "object",
      "description": "Query Points Balance"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "_meta": {
      "type": "object",
      "properties": {
        "io.modelcontextprotocol/serverInfo": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "version": {
              "type": "string"
            }
          }
        },
        "pkulaw/account": {
          "type": "object",
          "properties": {
            "expiringWindowDays": {
              "type": "integer"
            }
          }
        },
        "pkulaw/evidence": {
          "type": "object",
          "properties": {
            "confidence": {
              "type": "string"
            },
            "notes": {
              "type": "array",
              "items": {}
            },
            "origin": {
              "type": "string"
            },
            "retrievedAt": {
              "type": "string"
            },
            "verifiedByApi": {
              "type": "boolean"
            }
          }
        },
        "ui": {
          "type": "object",
          "properties": {
            "resourceUri": {
              "type": "string"
            }
          }
        }
      }
    },
    "content": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "isError": {
      "type": "boolean"
    },
    "resultType": {
      "type": "string"
    },
    "structuredContent": {
      "type": "object",
      "properties": {
        "accountStatus": {
          "type": "string"
        },
        "availablePoints": {
          "type": "integer"
        },
        "expiringPoints": {
          "type": "integer"
        },
        "expiringWindowDays": {
          "type": "integer"
        },
        "nearestExpireOn": {
          "type": "string"
        },
        "portalPointsUrl": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/pkulaw/account/get_points_balance' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  --data-raw '{}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "_meta": {
    "io.modelcontextprotocol/serverInfo": {
      "name": "pkulaw-account",
      "title": "北大法宝·查询积分余额",
      "version": "1.1.1"
    },
    "pkulaw/account": {
      "expiringWindowDays": 30
    },
    "pkulaw/evidence": {
      "confidence": "A",
      "notes": [],
      "origin": "account",
      "retrievedAt": "2026-10-28T12:43:17Z",
      "verifiedByApi": true
    },
    "ui": {
      "resourceUri": "ui://pkulaw-account/points-balance.html"
    }
  },
  "content": [
    {
      "text": "查询时刻 2026-10-28 20:43:17（北京时间）：可用积分 9600。\n30 天内即将过期 9600；最近过期日 2026-10-28。\n账户状态：正常。\n充值与流水：https://mcp.pkulaw.com/console/points",
      "type": "text"
    }
  ],
  "isError": false,
  "resultType": "complete",
  "structuredContent": {
    "accountStatus": "active",
    "availablePoints": 9600,
    "expiringPoints": 9600,
    "expiringWindowDays": 30,
    "nearestExpireOn": "2026-10-28",
    "portalPointsUrl": "https://mcp.pkulaw.com/console/points"
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide JSON payload in body (object). Keep identifiers and URLs in the formats documented for this implementation.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- pkulaw: https://openany.si/pkulaw/pkulaw-points-balance-query-get-points-balance/e0413427-18a5-42d2-bc0c-c9e5ec2dc778/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
