Terraswitch
  • Terraswitch - Get Started
  • Test & Live Environments
  • Onboarding as a Business
  • GUIDES
    • 🎾Authentication
    • 🧀Webhooks
    • 🫓Status & Responses
    • 🏉API Rate Limits
    • 🚀Transactions & Destinations
    • 🍊Testing Credentials
    • 🚐Crafting Metadata
  • API ENDPOINTS
    • Account
      • Get Account Details
      • Get Banks
      • Get Beneficiaries
      • Add Bank
      • Change Settlement Bank
    • Wallet
      • Get Wallet Details
      • Get Wallet Transactions
    • Collections
      • Checkout
        • Initialize Transaction
      • Transfer
        • Generate Account
      • Charge
        • Create Charge
        • Authorize Charge
        • Charge Authorization
      • Bank
        • Pay with Opay
    • Payout
      • Bank Transfer
      • Withdraw Money
    • Products
      • List Products
      • Search Products
      • Filter Products
      • Fetch Product
      • Create Product
      • Update Product
    • Subaccounts
      • List Subaccounts
      • Search Subaccounts
      • Filter Subaccounts
      • Fetch Subaccount
      • Create Subaccount
      • Update Subaccount
    • Payment Links
      • List Payment Links
      • List Payment Link Transactions
      • Search Payment Links
      • Filter Payment Links
      • Fetch Payment Link
      • Create Payment Link
      • Update Payment Link
      • Attach Payment Resource
      • Remove Subaccount
      • Enable Payment Link
      • Disable Payment Link
    • Invoices
      • List Invoices
      • Search Invoices
      • Filter Invoices
      • Fetch Invoice
      • Create Invoice
      • Update Invoice
      • Remove Invoice Item
    • Transactions
      • List Transactions
      • Search Transactions
      • Filter Transactions
      • Verify Transaction
    • Refunds
      • List Refunds
      • Fetch Refund
      • Create Refund
    • Bills Payment
      • List Mobile Networks
      • List Bill Categories
      • List Bill Sub-Categories
      • List Mobile Data Plans
      • Validate Biller
      • Validate Bill Status
      • Validate Top-Up Status
      • Buy Airtime
      • Buy Data
      • Pay Bill
    • Resources
      • List Banks
      • List Countries
      • Resolve Bank Account
Powered by GitBook
On this page
  1. API ENDPOINTS
  2. Wallet

Get Wallet Details

This endpoint helps you get the details of your Terraswitch Corporate wallet details.

GET {{ BASE_URL }}/v1/corporate/wallet
import Axios from 'axios';

// set the api url
const API_URL = `${BASE_URL}/v1/corporate/wallet`;

// make request using axios
Axios({
    method: "GET",
    url: `${API_URL}`,
    headers: {
        lg: 'en',
        ch: 'web'
        Authorization: `Bearer ${API_KEY}`,
        'Content-Type': 'application/json',
    }
}).then((resp) => {
    console.log(resp)
}).catch((err) => {
    console.log(err)
})
{
    "error": false,
    "errors": [],
    "data": {
        "walletID": "VPW5ca28d98-319d4dc7",
        "balance": {
            "settlement": 0,
            "available": 27100,
            "locked": 0
        },
        "currency": "NGN",
        "createdAt": "2023-12-28T17:33:30.131Z",
        "updatedAt": "2024-01-02T10:05:11.121Z",
        "analytics": {
            "inflow": {
                "value": 50001.97,
                "count": 3,
                "updatedAt": "2023-12-31T09:55:52.194Z"
            },
            "outflow": {
                "value": 4750,
                "count": 3,
                "updatedAt": "2023-12-31T14:16:17.317Z"
            },
            "transfer": {
                "value": 6150,
                "count": 2,
                "updatedAt": "2024-01-02T10:05:11.120Z"
            },
            "withdrawal": {
                "value": 2000,
                "count": 1,
                "updatedAt": "2023-12-31T14:00:06.022Z"
            }
        }
    },
    "message": "successful",
    "status": 200
}
PreviousWalletNextGet Wallet Transactions

Last updated 5 months ago