All balance

Retrieving all balance

To get total user balance information from the Tulu Switch API, you can use a GET request to the user endpoint. Below is an example using cURL:


    const myHeaders = new Headers();
myHeaders.append("token", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2
xlaWQiOiI2NDEiLCJ1c2VySWQiOiJjYjIyYzBlZi1hYmY0LTRlM2YtOGU0NC0xNjQyZDBj
YTBjODkiLCJpYXQiOjE3MTEwMDk4MzIsImV4cCI6MTcxMTA5NjIzMn0._EHz49S3MIYR_4
X8_NeM-ui-ALYBAk0tMAxe5IDVcVc");

const requestOptions = {
  method: "GET",
  headers: myHeaders,
  redirect: "follow"
};

fetch
("https://api.switch.tulupay.com/dashboard/user-balance", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

Request details

  • Endpoint: `https://api.switch.tulupay.com/dashboard/user-balance`
  • Method: `GET`
  • Headers:
  • Content-Type: `application/json`
  • Authorization: `token`
  • Response details

    A successful response will contain a JSON array with details of all user balance. Here's a simplified example:

    
        
        {
            "statusCode": "00",
            "status": "successfull",
            "data": {
                "total_balance": 0
            }
        }

    Contact Us for Developer Support

    Contact our dedicated developer support team for assistance, guidance, or any questions you have regarding Tuluswitch API integration. We're here to ensure your development experience is smooth and successful.

    Read Our Developer Blog for Insights

    Master the Tuluswitch API with our Developer Blog! Get expert insights, advanced tips, and industry trends beyond the documentation. Stay connected with the developer community to build exceptional payment platforms. Visit the blog now and unlock your full potential!