Transaction details

Retrieving transaction details

To retrieve in-depth details regarding a particular transaction from the Tulu Switch API, you can employ a POST request directed towards the transaction's designated endpoint. Here's an illustrative example utilizing cURL:


    let headersList = {
        "User-Agent": "Thunder Client (https://www.thunderclient.com)",
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlaWQ
        iOiI2NDEiLCJ1c2VySWQiOiI4MzRkNDVmZS0xZ
        jVkLTQ1YTItYmRiZi05ZmQ3NTFkNTliMTYiLCJpYXQiOjE3MTAxNDEwOTIsImV4cCI6MT
        cxMDIyNzQ5Mn0.Uheu2Sf3spkA1i9e6t97oMb8spwsmjSkjLvuvGYO1GM",
        "Content-Type": "application/json"
       }
       
       let bodyContent = JSON.stringify({
         "start_date": "2024-01-05",
         "end_date": "2024-03-04",
         "Channel": "fiat",
         "currency": "ngn"
       } );
       
       let response = await fetch("https://api.switch.tulupay.com/transactions/history", { 
         method: "POST",
         body: bodyContent,
         headers: headersList
       });
       
       let data = await response.text();
       console.log(data);
       
   

Request details

  • Endpoint:`https://api.tuluswitch.com/transactions/transaction_id/currency`
  • Method:`GET`
  • Headers:
  • Content-Type:`application/json`
  • Authorization:`token`
  • Response details

    On the event of a successful response, you will receive a JSON object containing comprehensive transaction details. Here's a simplified illustration:

    
        
        {
            "transaction_id": "9a468616-4cd7-4ce7-9fcb-5f4090442891.
            017f2350-8457-4dc2-ae58-e5358be5c167",
            "source_acct": "omo@gmail.com",
            "destination_acct": "lade@gmail.com",
            "recipient_name": "Omolola Adeniran",
            "response_code": "00",
            "response_message": "Success",
            "trans_type": "transfer",
            "transaction_desc": "school",
            "transaction_amount": "2000",
            "initial_balance": "199100",
            "current_balance": "197100",
            "created": "2024-03-04T08:21:25.000Z"
          },

    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!