transactions #350
- accountId
- accounts/317
- kind
- deposit
- amount
- 7253.61
- currency
- GBP
- description
- Refund credit
- status
- completed
- occurredAt
- createdAt
Overview
transactions / #350
#350
#350
Refund credit
Request
curl example
curl -sS \ "https://example-data.com/api/v1/transactions/350" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/transactions/350" ); 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/350"
);
const transaction = (await res.json()) as Transaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/transactions/350"
)
transaction = res.json() Response
{
"id": 350,
"accountId": 317,
"kind": "deposit",
"amount": 7253.61,
"currency": "GBP",
"description": "Refund credit",
"status": "completed",
"occurredAt": "2024-12-12T17:55:15.501Z",
"createdAt": "2024-12-12T17:55:41.916Z"
}