---
title: "Insert Transaction Records"
method: POST
path: "/transaction-records"
---

# Insert Transaction Records

`POST /transaction-records`

Inserts a list of transaction records into the database.

## Request body

- TransactionRecord[]
  - `id` string, required
  - `serverID` string
  - `serverType` string
  - `host` string
  - `count` integer, required
  - `recordedTime` string, required

## Response `200`

Successfully inserted transaction records

- boolean

## Other responses

- `400` — Bad request. Invalid input data.
- `500` — Internal server error. Failed to insert transaction records.

## Changes

- **2024-09-24** `39c64ee6cb8f` — 1 breaking
  - api path removed without deprecation
- **2024-09-09** `f6158a8f7ab4` — 1 info
  - endpoint added
- **2024-01-29** `f2e9e07fd354` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wso2/apis/internal-utility-api/changes/transaction-records/post.md)

---

[API](https://skmtc.dev/wso2/apis/internal-utility-api.md) · [All operations](https://skmtc.dev/wso2/apis/internal-utility-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wso2/internal-utility-api/revisions/cccd0bd09cf3/schema)
