取引 API
加盟店、カテゴリ、残高推移を持つ読み取り専用の銀行取引(収入と支出)。
あなたのアカウントでこれらのエンドポイントが使えます。各エンドポイントのページの Try it でリクエストを送れます。
- GET
https://api.testingapis.com/api/TransactionsList transactions with filtering, sorting, search and paginationList transactions with filtering, sorting, search and pagination. - GET
https://api.testingapis.com/api/Transactions/{id}Get a transaction by IDGet a transaction by ID. - GET
https://api.testingapis.com/api/Transactions/summaryGet total income, expenses and balanceGet total income, expenses and balance.
リクエストの例
List transactions with filtering, sorting, search and pagination. 完全なリファレンスと Send ボタン(英語).
cURL
curl -X GET "https://api.testingapis.com/api/Transactions?limit=2"レスポンス · 200 OK
[
{
"id": 1,
"userId": 101,
"type": "credit",
"amount": 3200.0,
"currency": "USD",
"description": "Monthly Salary",
"merchant": "Acme Corp",
"category": "salary",
"date": "2025-07-01T09:00:00Z",
"balance": 3200.0
… (3 more lines)サインインして詳細を見る
これらのエンドポイントのパラメータ、リクエストとレスポンスの例、ライブの Try it パネルは、サインインしたメンバー向けです。アカウントは無料で、数秒で作成できます。
絞り込み、並べ替え、ページネーション
一覧エンドポイントは limit、page、offset、sort、order、q を受け付け、任意のフィールド名を完全一致の絞り込みに使えます。件数は X-Total-Count ヘッダーで返ります。書き込みはサーバーを再起動するまでメモリに残るので、テストで自由にレコードを作成・変更・削除できます。 クエリパラメータのリファレンス.