transactions #130
- accountId
- accounts/135
- kind
- deposit
- amount
- 4287.71
- currency
- JPY
- description
- Refund credit
- status
- failed
- occurredAt
- createdAt
Overview
transactions / #130
#130
#130
Refund credit
Request
curl example
curl -sS \ "https://example-data.com/api/v1/transactions/130" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/transactions/130" ); 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/130"
);
const transaction = (await res.json()) as Transaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/transactions/130"
)
transaction = res.json() Response
{
"id": 130,
"accountId": 135,
"kind": "deposit",
"amount": 4287.71,
"currency": "JPY",
"description": "Refund credit",
"status": "failed",
"occurredAt": "2024-06-09T04:40:12.269Z",
"createdAt": "2024-06-09T04:40:53.135Z"
}