transactions #948
- accountId
- accounts/188
- kind
- deposit
- amount
- 8602.7
- currency
- JPY
- description
- Refund credit
- status
- completed
- occurredAt
- createdAt
Overview
transactions / #948
#948
#948
Refund credit
Request
curl example
curl -sS \ "https://example-data.com/api/v1/transactions/948" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/transactions/948" ); 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/948"
);
const transaction = (await res.json()) as Transaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/transactions/948"
)
transaction = res.json() Response
{
"id": 948,
"accountId": 188,
"kind": "deposit",
"amount": 8602.7,
"currency": "JPY",
"description": "Refund credit",
"status": "completed",
"occurredAt": "2024-10-20T23:57:44.844Z",
"createdAt": "2024-10-20T23:58:20.717Z"
}