cURL
Python
JavaScript
PHP
Go
Java
curl --request GET \
--url https://api.sandbox.nxos.io/v1/ledger/{ ledger_key} /transaction/{ transaction_key} \
--header 'Authorization: <authorization>'
{
"transaction_id" : "3c90c3cc-0d44-4b50-8888-8dd25736052a" ,
"transaction_ref" : "<string>" ,
"asset_moves" : [
{
"asset_move_ref" : "3c90c3cc-0d44-4b50-8888-8dd25736052a" ,
"source_account" : {
"ref" : "<string>" ,
"id" : "<string>"
} ,
"destination_account" : {
"ref" : "<string>" ,
"id" : "<string>"
} ,
"asset_code" : "<string>" ,
"amount" : "<string>" ,
"status" : "EXPECTED" ,
"type" : "<string>" ,
"decline_type" : "<string>" ,
"categories" : [
"<string>"
] ,
"metadata" : { } ,
"created_at" : "2023-11-07T05:31:56Z" ,
"updated_at" : "2023-11-07T05:31:56Z"
}
] ,
"created_at" : "2023-11-07T05:31:56Z" ,
"updated_at" : "2023-11-07T05:31:56Z"
}
This retrieves a transaction with associated asset moves and metadata.
The Basic Authentication header.
Format: "Basic {base64(orgID:apiKey)}"
The key of the ledger.
Examples:
"123e4567-e89b-12d3-a456-426614174000"
"id:123e4567-e89b-12d3-a456-426614174000"
"ref:ledger:customer_a"
The key of the transaction.
Examples:
"123e4567-e89b-12d3-a456-426614174000"
"id:123e4567-e89b-12d3-a456-426614174000"
"ref:tx:payment:customer_a:2023-06-15"
The request has succeeded.
The unique internally assigned identifier of the transaction
The asset moves for the transaction
asset_moves. asset_move_ref
The unique reference of the asset move, set by you when creating the asset move
asset_moves. source_account
The representation of the source account
asset_moves.source_account. ref
The user-defined reference of the account.
asset_moves.source_account. id
The system-generated ID of the account.
asset_moves. destination_account
The represantation of the destination account
asset_moves.destination_account. ref
The user-defined reference of the account.
asset_moves.destination_account. id
The system-generated ID of the account.
The reference of the asset
Minimum length: 1
The amount of the asset to move
The status of the asset move
Available options:
EXPECTED
,
LOCKED
,
COMPLETED
,
DECLINED
,
REFUNDED
The type of the asset move
Minimum length: 1
the specific decline reason for the asset move in case the asset-move has been declined.
This can be a system-defined reason such as INSUFFICIENT_FUNDS, or LIMIT_EXCEEDED, or it can be
a custom defined type of so set during the transaction creation
The categories of the asset move
Additional, optional, metadata for the asset move
asset_moves.metadata. {key}
The externally defined reference of the transaction