Get Transaction
API Reference
Get Transaction
Retrieve a single transaction by internal ID or external ID β in the gu1 transaction monitoring API for fraud and AML, with examples for get use cases.
GET
Get Transaction
Overview
Returns one transaction for your organization. The response shape uses nestedorigin and destination objects (with resolved entity data when available). This differs from Create transaction, which uses flatter originDetails / destinationDetails on the request body.
The rules engine is not re-run on read. By default the response does not include rulesExecutionSummary. Pass includeRulesSummary=full to attach the latest persisted rules summary to the persisted object (same shape as Rules execution summary).
Endpoints
| Method | Endpoint | Use when |
|---|---|---|
| By ID | GET /transactions/{id} | You have gu1βs transaction UUID |
| By external ID | GET /transactions/external/{externalId} | You only have your own externalId from create |
{ "transaction": { ... }, "persisted": { ... }, "baseCurrency": "..." }.
Query Parameters
Optional. When omitted, behavior is unchanged (no rules summary on read).
fullβ Loads the latestrisk_analysis_auditsrow for this transaction and addspersisted.rulesExecutionSummary(rulesHit,rulesNoHit,actionsExecuted, scores, etc.). Does not execute rules again. Intended for single-transaction detail / debugging; omit on high-volume polling.
Get by ID
Transaction UUID in gu1 (same as
transaction.id from create).Get by External ID
The
externalId you sent when creating the transaction.Authentication
Requires a valid API key and permission to read transactions (transactions:read):
Response (200 OK)
Full transaction record.
- id (string) β gu1 transaction UUID
- externalId (string) β your external identifier
- type, status β enums (same semantics as create)
- amount (number), currency (string)
- amountInUsd (number | null) β converted amount when available
- currenciesExchange (array) β per-currency conversion entries
{ currency, exchangeRate, value } - paymentMethod (string | null)
- origin (object) β
entityId,externalId,name,country,type(person|company| null),taxId,riskScore,details(object; includes payment-related data you stored) - destination (object) β same structure as origin
- riskScore (number | null)
- lastRiskEvaluationAt (string | null) β ISO timestamp of the latest risk analysis audit for this transaction (present on GET by UUID; omitted when fetching by external ID)
- riskFactors (array) β structured reasons / matches from the last evaluation
- activeMatchesCount, shadowMatchesCount (number, optional) β when present on stored evaluation metadata
- hitRuleExternalIds (string[], optional) β external IDs of rules that matched
- flagged (boolean)
- locationDetails, deviceDetails (object)
- channel (string | null), timeZone (string | null) β IANA zone when set on create
- description, category, metadata (object)
- transactedAt, createdAt, updatedAt (ISO strings)
- exchangeRate, rateSource, rateTimestamp, convertedAt β conversion metadata when applicable
Flat camelCase snapshot of the row stored in
transactions (same field names as create / rules engine input): amounts, counterparties, metadata, riskFactors, etc.When includeRulesSummary=full, may also include:- rulesExecutionSummary (object) β latest persisted rules run for this transaction (not a live re-evaluation). Omitted when no audit exists or when the query param is not sent.
Organization base currency (ISO code, e.g.
USD), used as reference for multi-currency displays.Example (by ID, with rules summary)
Example (by ID, default)
Error Responses
400 β Invalid query
includeRulesSummary is not full.