Skip to main content
Retrieve a user’s onramp transactions — status, amount, and associated metadata.

Endpoint

URL: https://api.saber.money/api/v2/wallet/transactions?transaction_type=ONRAMP_AND_WITHDRAW
Method: GET
Note: transaction_type is required. If it is missing or empty, the API returns HTTP 400 with body {"success": false, "errors": [{"code": null, "text": "Missing transaction_type"}]}.

Query Parameters


Headers


Response Fields

Every field below is always present in each transaction object returned by this list endpoint. For ONRAMP_AND_WITHDRAW (EXTERNAL_BUY) items the backend only populates the base fields, so the remaining fields are currently serialized with empty / zero values. Clients should not rely on those zeroed fields carrying real data here; populated values are available from the transaction details endpoint. Optional fields that appear only when set: txn_hash, address, network, fees, compliance, source_id, payment_method.

Sample API Call


Sample Response


Use Cases

  1. Transaction Tracking: Retrieve all transactions for a user to monitor their history and status.
  2. Error Analysis: Use failure_code and failure_desc to analyze and debug failed transactions.
  3. Financial Reporting: Aggregate transaction IDs, statuses and amounts for tracking; fetch the transaction details endpoint when fee or fiat/crypto amount breakdowns are needed for reconciliation.

Notes

Combine with Saber’s webhook system for real-time updates rather than polling. API Reference: Fetch List of Buy Transactions