Read one transaction with legs and linkage
Reads one transaction with its legs and its linkage: which transaction it reverses, which reversed it, and the exchange group it belongs to, if any.
/v1/ledgers/{ledgerId}/transactions/{txnId}Reads one transaction with its legs and its linkage: which transaction it reverses, which reversed it, and the exchange group it belongs to, if any. Note that a refund posted as a contra entry is an ordinary transaction, not a reversal; only this endpoint's linkage fields say what a reversal is.
Authorization
bearerAuth In: header
Path Parameters
uuiduuidResponse Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/ledgers/497f6eca-6276-4993-bfeb-53cbbbba6f08/transactions/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "string", "status": "string", "reference_id": "97c1ff22-6e4f-4821-b1d3-5236781d37b8", "metadata": { "property1": "string", "property2": "string" }, "exchange_id": "6e73ee7b-fdf3-44c2-947d-260c3ee72506", "reverses_txn_id": "5b70dad8-f43f-45eb-afbd-821f57facc93", "reversed_by": "69b6d93a-63e5-4842-b5ef-0ace8f62b2a4", "legs": [ { "owner_type": "string", "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05", "purpose": "string", "direction": "credit", "amount": 0, "commodity": "string" } ], "effective_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z"}Page transactions newest-first with resolved legs
Pages the ledger's transactions newest-first with their legs already resolved, optionally filtered by transaction type.
Post the exact mirror, linked and once-only
Posts the exact mirror of a transaction - same accounts, same amounts, opposite directions - and links the two, so the original stays in the books and the correction is visible as a correction.