Get a transaction

Fetch one transaction.

curl -X GET "https://sandbox.rasto.co/api/transactions/txn_03567gp0y9r0USMPkVcuVs" \
  -H "Content-Type: application/json" \
  -H "Api-Version: 2026-08-01" \
  -H "Api-Key: YOUR_API_KEY"
{
  "bank_reference": null,
  "completed_at": null,
  "conversion": null,
  "created_at": "2026-11-29T18:01:00.553601+00:00",
  "customer_id": "cus_03567dbmmINi56C3sJCM7O",
  "destination": {
    "address": "5HSqKCN2eoHWe7p36GeUftEL9XnT6MbsvrxHgwgpYWQf",
    "amount": null,
    "chain": "solana",
    "currency": "usdc",
    "kind": "address",
    "network": "testnet"
  },
  "documents": [],
  "failure_code": null,
  "fees": {
    "currency": "usdc",
    "lines": [],
    "total": "0"
  },
  "id": "txn_03567gp0y9r0USMPkVcuVs",
  "object": "transaction",
  "partner_reference_id": "payout-1042",
  "purpose": null,
  "required_documents": [],
  "scheme": null,
  "source": {
    "amount": "5",
    "chain": "solana",
    "currency": "usdc",
    "kind": "wallet",
    "network": "testnet",
    "wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
  },
  "status": "processing",
  "transaction_hash": null,
  "virtual_account_id": null
}
GET
/api/transactions/{transaction_id}
GET
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: Api-Key)
Api-Keystring
Required

Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.

Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
path
transaction_idstring
Required

The transaction's id (txn_...).

header
Api-Versionstring

The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Api-Keystring
Required

API Key for authentication. Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.

Path Parameters

transaction_idstring
Required

The transaction's id (txn_...).

Example:
txn_03567gp0y9r0USMPkVcuVs

Headers

Api-Versionstring

The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.

Example:
2026-08-01

Responses

bank_referencestring

The payment rail's trace reference for a payment to a bank account, which the receiving bank finds the credit by. null until known, and for an on-chain destination.

completed_atstring

When delivery was confirmed, as an ISO 8601 timestamp. null until then.

conversionstring

The conversion between source and destination. null when both are the same currency.

created_atstring

When the object was created, as an ISO 8601 timestamp.

customer_idstring

The customer the object belongs to.

destinationobject

Where the transaction delivers.

documentsstring[]

The documents attached to a payment to a bank account, oldest first. The files themselves are never returned. Empty when there are none.

failure_codestring

Why the transaction ended without arriving, as one of our transaction failure codes. null when there is none.

feesobject

What the transaction was charged: the total, its currency and each line. A later price change never rewrites it.

idstring

The object's unique identifier. Its prefix names the object kind, for example cus_ for a customer.

objectstring

The kind of object this is, for example customer or transaction. Every object the API returns carries it.

partner_reference_idstring

Your own identifier for the object, unique per environment. null when you set none.

purposestring

The purpose code of a payment to a bank account, for example family_support. null for an on-chain destination.

required_documentsstring[]

The document kinds the payment still needs before it is sent, for example ["invoice"]. A payment created by a virtual account's deposit waits processing until each is attached; without them it ends failed with failure_code: documents_missing after 7 days. Empty when nothing is owed.

schemestring

The domestic scheme that carried a payment to a bank account: imps, neft or rtgs. null until known, and for an on-chain destination.

sourceobject

What funds the transaction.

statusstring

The transaction's status: awaiting_authorization, processing, on_hold, completed, failed, returned, canceled or expired.

transaction_hashstring

The chain transaction that delivered an on-chain destination. null until it is known, and for a bank account.

virtual_account_idstring

The virtual account whose standing destination created the transaction. null for any other transaction.