Disputes

Automate the process of handling and responding to disputes with our API

Initiate dispute

To initaite a dispute request, you need to add the following to your request body



    const myHeaders = new Headers();
    myHeaders.append("token", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVC
    J9.eyJyb2xlaWQiOiI2NDEiLCJ1c2VySWQiOiJmNDdiY2VjNy1iYjJhLTRhNmUtYTBh
    ZC04MjJjZTQxZGZkNTMiLCJpYXQiOjE3MDk5MDk2MDEsImV4cCI6MTcwOTk5NjAw
    MX0.VkC6-aK4hNk_vBM8ciqHOhWaNxn0MZ_lvqNMp4McdbM");
    
    const formdata = new FormData();
    formdata.append("ticket_no", "23456");
    formdata.append("topic", "physic quantum");
    formdata.append("message", "ipsun ipsun");
    formdata.append("dispute_file", fileInput.files[0], "[PROXY]");
    
    const requestOptions = {
      method: "POST",
      headers: myHeaders,
      body: formdata,
      redirect: "follow"
    };
    
    fetch("https://api.switch.tulupay.com/dispute/new", requestOptions)
      .then((response) => response.text())
      .then((result) => console.log(result))
      .catch((error) => console.error(error));
    

Request details

  • Endpoint:`https://api.switch.tulupay.com/dispute/new`
  • Method:`POST`
  • Headers:
  • Content-Type:`application/json`
  • Authorization:`token`
  • Response details

    A successful response will contain a JSON object. Here's a simplified example:

    
        {
            "statusCode": "00",
            "status": "success",
            "message": "Dispute sent.",
            "data": {
                "dispute_id": "60133c7a-b275-4021-8add-f14b7ab0983a",
                "ticket_id": "23456"
            },
            "datetime": "2024-03-08T15:01:41.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!