Disputes

All disputes

The disputes API allows you manage all disputes on your integration.


    const myHeaders = new Headers();
    myHeaders.append("token", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVC
    J9.eyJyb2xlaWQiOiI2NDEiLCJ1c2VySWQiOiJmNDdiY2VjNy1iYjJhLTRhNmUtY
    TBhZC04MjJjZTQxZGZkNTMiLCJpYXQiOjE3MDk5MDk2MDEsImV4cCI6MTcwOTk5N
    jAwMX0.VkC6-aK4hNk_vBM8ciqHOhWaNxn0MZ_lvqNMp4McdbM");
    
    const formdata = new FormData();
    formdata.append("ticket_no", "0000");
    formdata.append("topic", "Testing");
    formdata.append("message", "lorem ipsum kilojqw");
    formdata.append("dispute_file", fileInput.files[0], "[PROXY]");
    
    const requestOptions = {
      method: "GET",
      headers: myHeaders,
      body: formdata,
      redirect: "follow"
    };
    
    fetch("https://api.switch.tulupay.com/dispute/all", requestOptions)
      .then((response) => response.text())
      .then((result) => console.log(result))
      .catch((error) => console.error(error));

Request details

  • Endpoint:`https://api.switch.tulupay.com/dispute/all`
  • Method:`GET`
  • 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 List.",
            "data": [
                {
                    "dispute_id": "60133c7a-b275-4021-8add-f14b7ab0983a",
                    "dev_id": "f47bcec7-bb2a-4a6e-a0ad-822ce41dfd53",
                    "ticket_no": "23456",
                    "businessname": null,
                    "topic": "wertyuio",
                    "message": "lemme know if this works",
                    "statuss": "0",
                    "support_id": null,
                    "created": "2024-03-08T15:01:41.000Z",
                    "month": null,
                    "img_url": "files/img3-6c6f328f5b71d54e.jpg",
                    "dispute_status": "0",
                    "dispute_comment": []
                },
                {
                    "dispute_id": "6068f6a5-5ed7-4554-818d-1a11fd6d722a",
                    "dev_id": "f47bcec7-bb2a-4a6e-a0ad-822ce41dfd53",
                    "ticket_no": "202402146210",
                    "businessname": null,
                    "topic": "Quantum Physics Theory",
                    "message": "tulu switch!!!",
                    "statuss": "0",
                    "support_id": null,
                    "created": "2024-03-07T08:43:37.000Z",
                    "month": null,
                    "img_url": "files/dispute1709801017377Screenshot_2023-12-06_154344-745b1920ad44f716.png",
                    "dispute_status": "0",
                    "dispute_comment": [
                        {
                            "com_disp_id": "47f09526-4426-46ff-8645-fd86284facd0",
                            "ticket_no": "202402146210",
                            "message": "hi tuluswitch?",
                            "comment_status": 2,
                            "created_at": "2024-03-07T08:44:29.000Z"
                        }
                    ]
                }
            ],
            "datetime": "2024-03-08T15:39:21.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!