Request payout

Request payout - is an operation for abstraction from route and payout.

Request payout details

To get detailed information about a specific payout from Tulu Switch API, you can use a POST request to the payout endpoint. Below is an example using cURL:


    let headersList = {
        "token": 
        "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXV
        CJ9.eyJyb2xlaWQiOiI2NDEiLCJ1c2VySWQiOiI
        4MzRkNDVmZS0xZjVkLTQ1YTItYmRiZi05ZmQ3NT
        FkNTliMTYiLCJpYXQiOjE3MTAxNDEwOTIsImV4c
        CI6MTcxMDIyNzQ5Mn0.Uheu2Sf3spkA1i9e6t97
        oMb8spwsmjSkjLvuvGYO1GM",
        "Content-Type": "application/json"
       }
       
       let bodyContent = JSON.stringify( {
           "toaddress":"0x80932592539301FAa89B43Ee8702d33F65D9C10B",
           "amount":0.40,
           "ctype":"usdt"
       });
       
       let response = await fetch("http://api.switch.tulupay.com/payout/send", { 
         method: "POST",
         body: bodyContent,
         headers: headersList
       });
       
       let data = await response.text();
       console.log(data);
       
   

Request details

  • Endpoint:`http://api.switch.tulupay.com/payout/send`
  • Method:`POST`
  • Headers:
  • Content-Type:`application/json`
  • Authorization:`token`
  • Response details

    A successful response will contain a JSON object with detailed payout information. Here's a simplified example:

    
        
        {
            "statusCode": "00",
            "status": "successfull",
            "data": {
              "chainId": "56",
              "hash": "0xe040615754025126329a6a59fd2197042b7495ed66c982b7e007984a1421c78c"
            }
          }
        }

    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!