Disputes - Attach Evidence to Dispute
curl --request PUT \
--url https://sandbox.hyperswitch.io/disputes/evidence \
--header 'Content-Type: multipart/form-data' \
--header 'api-key: <api-key>'import requests
url = "https://sandbox.hyperswitch.io/disputes/evidence"
headers = {
"api-key": "<api-key>",
"Content-Type": "multipart/form-data"
}
response = requests.put(url, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'api-key': '<api-key>', 'Content-Type': 'multipart/form-data'}
};
fetch('https://sandbox.hyperswitch.io/disputes/evidence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.hyperswitch.io/disputes/evidence",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.hyperswitch.io/disputes/evidence"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "multipart/form-data")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://sandbox.hyperswitch.io/disputes/evidence")
.header("api-key", "<api-key>")
.header("Content-Type", "multipart/form-data")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.hyperswitch.io/disputes/evidence")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'multipart/form-data'
response = http.request(request)
puts response.read_body{
"file_id": "<string>"
}{
"error_type": "invalid_request",
"message": "Missing required param: {param}",
"code": "IR_04"
}Disputes
Disputes - Attach Evidence to Dispute
Attaches an uploaded evidence file to a dispute
PUT
/
disputes
/
evidence
Disputes - Attach Evidence to Dispute
curl --request PUT \
--url https://sandbox.hyperswitch.io/disputes/evidence \
--header 'Content-Type: multipart/form-data' \
--header 'api-key: <api-key>'import requests
url = "https://sandbox.hyperswitch.io/disputes/evidence"
headers = {
"api-key": "<api-key>",
"Content-Type": "multipart/form-data"
}
response = requests.put(url, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'api-key': '<api-key>', 'Content-Type': 'multipart/form-data'}
};
fetch('https://sandbox.hyperswitch.io/disputes/evidence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.hyperswitch.io/disputes/evidence",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.hyperswitch.io/disputes/evidence"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "multipart/form-data")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://sandbox.hyperswitch.io/disputes/evidence")
.header("api-key", "<api-key>")
.header("Content-Type", "multipart/form-data")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.hyperswitch.io/disputes/evidence")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'multipart/form-data'
response = http.request(request)
puts response.read_body{
"file_id": "<string>"
}{
"error_type": "invalid_request",
"message": "Missing required param: {param}",
"code": "IR_04"
}Authorizations
api_keyjwt_key
Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.
Body
multipart/form-data
A multipart/form-data request with a file field containing the evidence file.
The body is of type string.
Response
Evidence attached to dispute
ID of the file created
Was this page helpful?
⌘I