TransactionsTransaction Total

Get Total Transactions

This endpoint retrieves aggregated totals for transactions on your platform.

API Endpoint

GET https://backendapi.sayswitchgroup.com/api/v1/transactions/totals

Sample Request

curl -X GET https://backendapi.sayswitchgroup.com/api/v1/transactions/totals 
  -H "Authorization: Bearer YOUR_SECRET_KEY"

Sample Response

{
  "success": true,
  "message": "Transaction totals",
  "data": {
    "total_transactions": 2,
    "unique_customers": 1,
    "total_volume": 200,
    "total_volume_by_currency": [],
    "pending_transfers": 200,
    "pending_transfers_by_currency": []
  }
}

Explanation of the Response

FieldTypeDescription
total_transactionsintegerThe total number of transactions processed on your platform.
unique_customersintegerThe number of unique customers who have initiated transactions.
total_volumeintegerThe total volume of all transactions (sum of all transaction amounts).
total_volume_by_currencyarrayAn array detailing the total transaction volume for each currency. Each element is likely an object with currency and volume keys.
pending_transfersintegerThe total amount of transactions that are currently in a pending state.
pending_transfers_by_currencyarrayAn array detailing the total pending transfer volume for each currency. Each element is likely an object with currency and volume keys.