Single transcation

Tulu Switch provides a search transaction column for users to search for specific transactions.

To access information about a specific transaction from the Tulu Switch API, you can use a POST request to the transaction endpoint. Below is an example employing cURL:


    let headersList = {
        "Accept": "/",
        "User-Agent": "Thunder Client (https://www.thunderclient.com)",
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
        eyJyb2xlaWQiOiI2NDEiLCJ1c2VySWQiOiJjYjIyYzBlZi1hYmY0LTRlM2YtOGU0NC0xNj
        QyZDBjYTBjODkiLCJpYXQiOjE3MTExMTM5MDYsImV4cCI6MTcxMTIwMDMwNn0._
        8agng9N_yjt1Fbu3JhlBR-0T_nAodXBNAq-4AU34sc",
        "Content-Type": "application/json"
       }
       
       let bodyContent = JSON.stringify({
         "start_date": "2024-01-23",
         "end_date": "2024-03-22",
         "Channel": "fiat",
         "currency": "ngn"
       });
       
       let response = await fetch("https://api.switch.tulupay.com/transactions/history
       /a6bfa7ed-e3f9-4d0f-87c1-098918c4020d/ngn", { 
         method: "POST",
         body: bodyContent,
         headers: headersList
       });
       
       let data = await response.text();
       console.log(data);
       
   

Request details

  • Endpoint:`https://api.switch.tulupay.com/transactions/history/9a468616-4cd7-4ce7-9fcb-5f4090442891/currency`
  • Method:`GET`
  • Headers:
  • Content-Type:`application/json`
  • Authorization:`token`
  • Response details

    After a successful response, you'll receive a simple JSON object with single transaction . Here's an example:

    
        {
            "status": "success",
            "statusCode": "00",
            "data": [
              {
                "transaction_id": "a6bfa7ed-e3f9-4d0f-87c1-098918c40
                20d.a45100d0-5849-4236-8998-a02f2c86bd8a",
                "source_acct": "ade@gmail.com",
                "destination_acct": "dele@gmail.com",
                "recipient_name": "desire adeyemo",
                "response_code": "00",
                "response_message": "Success",
                "trans_type": "transfer",
                "transaction_desc": "school fees",
                "transaction_amount": "100",
                "initial_balance": "800000",
                "current_balance": "799800",
                "created": "2024-03-22 13:30:14"
              },
              {
                "transaction_id": "a6bfa7ed-e3f9-4d0f-87c1-098918c
                4020d.8759434c-49a7-4708-9e4d-09f379d857a3",
                "source_acct": "ade@gmail.com",
                "destination_acct": "dele@gmail.com",
                "recipient_name": "desire adeyemo",
                "response_code": "00",
                "response_message": "Success",
                "trans_type": "transfer",
                "transaction_desc": "school fees",
                "transaction_amount": "500",
                "initial_balance": "799800",
                "current_balance": "799700",
                "created": "2024-03-22 13:30:22"
              },
              {
                "transaction_id": "a6bfa7ed-e3f9-4d0f-87c1-098918c
                4020d.bbd5beca-ed20-49e9-ba62-7c46855c31fd",
                "source_acct": "ade@gmail.com",
                "destination_acct": "dele@gmail.com",
                "recipient_name": "desire adeyemo",
                "response_code": "00",
                "response_message": "Success",
                "trans_type": "transfer",
                "transaction_desc": "school fees",
                "transaction_amount": "200",
                "initial_balance": "0",
                "current_balance": "800000",
                "created": "2024-03-22 13:30:5"
              }
            ],
            "transaction_status": {
              "total_transaction": 3,
              "last_week_transaction": 0,
              "this_week_transaction": 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!