Returns a paginated list of completed transactions with their associated order details.
This endpoint combines data from both the transactions and orders tables.
user_id parameter: Returns ALL completed transactions for ALL usersuser_id parameter: Returns completed transactions for the specified user onlyGET /api/v1/auth/transactions/completed?page_id=1&page_size=10
Returns all completed transactions across all users, ordered by creation date (most recent first).
GET /api/v1/auth/transactions/completed?page_id=1&page_size=10&user_id=682e85d1-50c8-4242-bc78-21309ca34bc7
Returns completed transactions filtered by the specified user_id.
The response includes:
user_id, from_wallet_id, to_wallet_id, status, to_address, token_type, token_symbol, usd_value, transaction_hash, feevendor_id, offer_id, usdt_amount, fiat_amount, fiat_currency, wallet_address, order_status, payment_method, payment_txn_id, blockchain_txn_hash, completed_at, mpesa_receipt_number, payment_phone_number, order_type, escrow_wallet_address, escrow_network, escrow_reference, deposit_tx_hash, deposit_confirmations, deposit_detected_atNote: Nullable fields (e.g., to_address, transaction_hash, payment_txn_id, completed_at) are omitted from the response when null, or included as null when explicitly set to null.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Page number (1-indexed)
x >= 1Number of items per page
5 <= x <= 50Optional user ID filter. If provided, returns transactions for that specific user only. If omitted, returns all completed transactions for all users.
Successfully retrieved completed transactions with order details