example-data.com
Menu
Browse docs and collections

Overview

transactions / #715

transactions #715

accountId
accounts/59
kind
refund
amount
9415.31
currency
JPY
description
Merchant refund
status
failed
occurredAt
createdAt

Component variants

Related

References

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/transactions/715" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/transactions/715"
);
const transaction = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/transactions.d.ts https://example-data.com/types/transactions.d.ts
import type { Transaction } from "./types/transactions";

const res = await fetch(
  "https://example-data.com/api/v1/transactions/715"
);
const transaction = (await res.json()) as Transaction;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/transactions/715"
)
transaction = res.json()

Response

{
  "id": 715,
  "accountId": 59,
  "kind": "refund",
  "amount": 9415.31,
  "currency": "JPY",
  "description": "Merchant refund",
  "status": "failed",
  "occurredAt": "2025-10-14T00:05:02.591Z",
  "createdAt": "2025-10-14T00:05:36.421Z"
}