Search
curl --request POST \
--url https://test.paysight.io/api/mitigation/search \
--header 'Authorization: <api-key>' \
--header 'ClientId: <clientid>' \
--header 'Content-Type: application/json' \
--header 'UserEmail: <useremail>' \
--data '
{
"email": "user@example.com",
"orderId": 123456,
"bin": "411111",
"last4": "4242",
"firstName": "John",
"lastName": "Doe",
"authCode": "ABC123",
"arn": "123456789012345",
"amount": 49.99,
"currencyCode": "USD",
"dateFrom": "2024-01-01",
"dateTo": "2024-01-31",
"mid": "MID123456",
"descriptorExactMatch": "mydescriptor.com 558111222",
"descriptorContains": "mydescriptor"
}
'import requests
url = "https://test.paysight.io/api/mitigation/search"
payload = {
"email": "user@example.com",
"orderId": 123456,
"bin": "411111",
"last4": "4242",
"firstName": "John",
"lastName": "Doe",
"authCode": "ABC123",
"arn": "123456789012345",
"amount": 49.99,
"currencyCode": "USD",
"dateFrom": "2024-01-01",
"dateTo": "2024-01-31",
"mid": "MID123456",
"descriptorExactMatch": "mydescriptor.com 558111222",
"descriptorContains": "mydescriptor"
}
headers = {
"ClientId": "<clientid>",
"UserEmail": "<useremail>",
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
ClientId: '<clientid>',
UserEmail: '<useremail>',
Authorization: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'user@example.com',
orderId: 123456,
bin: '411111',
last4: '4242',
firstName: 'John',
lastName: 'Doe',
authCode: 'ABC123',
arn: '123456789012345',
amount: 49.99,
currencyCode: 'USD',
dateFrom: '2024-01-01',
dateTo: '2024-01-31',
mid: 'MID123456',
descriptorExactMatch: 'mydescriptor.com 558111222',
descriptorContains: 'mydescriptor'
})
};
fetch('https://test.paysight.io/api/mitigation/search', 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://test.paysight.io/api/mitigation/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'user@example.com',
'orderId' => 123456,
'bin' => '411111',
'last4' => '4242',
'firstName' => 'John',
'lastName' => 'Doe',
'authCode' => 'ABC123',
'arn' => '123456789012345',
'amount' => 49.99,
'currencyCode' => 'USD',
'dateFrom' => '2024-01-01',
'dateTo' => '2024-01-31',
'mid' => 'MID123456',
'descriptorExactMatch' => 'mydescriptor.com 558111222',
'descriptorContains' => 'mydescriptor'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"ClientId: <clientid>",
"Content-Type: application/json",
"UserEmail: <useremail>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://test.paysight.io/api/mitigation/search"
payload := strings.NewReader("{\n \"email\": \"user@example.com\",\n \"orderId\": 123456,\n \"bin\": \"411111\",\n \"last4\": \"4242\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"authCode\": \"ABC123\",\n \"arn\": \"123456789012345\",\n \"amount\": 49.99,\n \"currencyCode\": \"USD\",\n \"dateFrom\": \"2024-01-01\",\n \"dateTo\": \"2024-01-31\",\n \"mid\": \"MID123456\",\n \"descriptorExactMatch\": \"mydescriptor.com 558111222\",\n \"descriptorContains\": \"mydescriptor\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ClientId", "<clientid>")
req.Header.Add("UserEmail", "<useremail>")
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://test.paysight.io/api/mitigation/search")
.header("ClientId", "<clientid>")
.header("UserEmail", "<useremail>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"user@example.com\",\n \"orderId\": 123456,\n \"bin\": \"411111\",\n \"last4\": \"4242\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"authCode\": \"ABC123\",\n \"arn\": \"123456789012345\",\n \"amount\": 49.99,\n \"currencyCode\": \"USD\",\n \"dateFrom\": \"2024-01-01\",\n \"dateTo\": \"2024-01-31\",\n \"mid\": \"MID123456\",\n \"descriptorExactMatch\": \"mydescriptor.com 558111222\",\n \"descriptorContains\": \"mydescriptor\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.paysight.io/api/mitigation/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ClientId"] = '<clientid>'
request["UserEmail"] = '<useremail>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"user@example.com\",\n \"orderId\": 123456,\n \"bin\": \"411111\",\n \"last4\": \"4242\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"authCode\": \"ABC123\",\n \"arn\": \"123456789012345\",\n \"amount\": 49.99,\n \"currencyCode\": \"USD\",\n \"dateFrom\": \"2024-01-01\",\n \"dateTo\": \"2024-01-31\",\n \"mid\": \"MID123456\",\n \"descriptorExactMatch\": \"mydescriptor.com 558111222\",\n \"descriptorContains\": \"mydescriptor\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"count": 123,
"transactions": [
{}
]
}API for Chargeback Mitigation Providers
Search
Searches for transactions related to customer service mitigation using multiple optional filters.
POST
/
api
/
mitigation
/
search
Search
curl --request POST \
--url https://test.paysight.io/api/mitigation/search \
--header 'Authorization: <api-key>' \
--header 'ClientId: <clientid>' \
--header 'Content-Type: application/json' \
--header 'UserEmail: <useremail>' \
--data '
{
"email": "user@example.com",
"orderId": 123456,
"bin": "411111",
"last4": "4242",
"firstName": "John",
"lastName": "Doe",
"authCode": "ABC123",
"arn": "123456789012345",
"amount": 49.99,
"currencyCode": "USD",
"dateFrom": "2024-01-01",
"dateTo": "2024-01-31",
"mid": "MID123456",
"descriptorExactMatch": "mydescriptor.com 558111222",
"descriptorContains": "mydescriptor"
}
'import requests
url = "https://test.paysight.io/api/mitigation/search"
payload = {
"email": "user@example.com",
"orderId": 123456,
"bin": "411111",
"last4": "4242",
"firstName": "John",
"lastName": "Doe",
"authCode": "ABC123",
"arn": "123456789012345",
"amount": 49.99,
"currencyCode": "USD",
"dateFrom": "2024-01-01",
"dateTo": "2024-01-31",
"mid": "MID123456",
"descriptorExactMatch": "mydescriptor.com 558111222",
"descriptorContains": "mydescriptor"
}
headers = {
"ClientId": "<clientid>",
"UserEmail": "<useremail>",
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
ClientId: '<clientid>',
UserEmail: '<useremail>',
Authorization: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'user@example.com',
orderId: 123456,
bin: '411111',
last4: '4242',
firstName: 'John',
lastName: 'Doe',
authCode: 'ABC123',
arn: '123456789012345',
amount: 49.99,
currencyCode: 'USD',
dateFrom: '2024-01-01',
dateTo: '2024-01-31',
mid: 'MID123456',
descriptorExactMatch: 'mydescriptor.com 558111222',
descriptorContains: 'mydescriptor'
})
};
fetch('https://test.paysight.io/api/mitigation/search', 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://test.paysight.io/api/mitigation/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'user@example.com',
'orderId' => 123456,
'bin' => '411111',
'last4' => '4242',
'firstName' => 'John',
'lastName' => 'Doe',
'authCode' => 'ABC123',
'arn' => '123456789012345',
'amount' => 49.99,
'currencyCode' => 'USD',
'dateFrom' => '2024-01-01',
'dateTo' => '2024-01-31',
'mid' => 'MID123456',
'descriptorExactMatch' => 'mydescriptor.com 558111222',
'descriptorContains' => 'mydescriptor'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"ClientId: <clientid>",
"Content-Type: application/json",
"UserEmail: <useremail>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://test.paysight.io/api/mitigation/search"
payload := strings.NewReader("{\n \"email\": \"user@example.com\",\n \"orderId\": 123456,\n \"bin\": \"411111\",\n \"last4\": \"4242\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"authCode\": \"ABC123\",\n \"arn\": \"123456789012345\",\n \"amount\": 49.99,\n \"currencyCode\": \"USD\",\n \"dateFrom\": \"2024-01-01\",\n \"dateTo\": \"2024-01-31\",\n \"mid\": \"MID123456\",\n \"descriptorExactMatch\": \"mydescriptor.com 558111222\",\n \"descriptorContains\": \"mydescriptor\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ClientId", "<clientid>")
req.Header.Add("UserEmail", "<useremail>")
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://test.paysight.io/api/mitigation/search")
.header("ClientId", "<clientid>")
.header("UserEmail", "<useremail>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"user@example.com\",\n \"orderId\": 123456,\n \"bin\": \"411111\",\n \"last4\": \"4242\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"authCode\": \"ABC123\",\n \"arn\": \"123456789012345\",\n \"amount\": 49.99,\n \"currencyCode\": \"USD\",\n \"dateFrom\": \"2024-01-01\",\n \"dateTo\": \"2024-01-31\",\n \"mid\": \"MID123456\",\n \"descriptorExactMatch\": \"mydescriptor.com 558111222\",\n \"descriptorContains\": \"mydescriptor\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.paysight.io/api/mitigation/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ClientId"] = '<clientid>'
request["UserEmail"] = '<useremail>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"user@example.com\",\n \"orderId\": 123456,\n \"bin\": \"411111\",\n \"last4\": \"4242\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"authCode\": \"ABC123\",\n \"arn\": \"123456789012345\",\n \"amount\": 49.99,\n \"currencyCode\": \"USD\",\n \"dateFrom\": \"2024-01-01\",\n \"dateTo\": \"2024-01-31\",\n \"mid\": \"MID123456\",\n \"descriptorExactMatch\": \"mydescriptor.com 558111222\",\n \"descriptorContains\": \"mydescriptor\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"count": 123,
"transactions": [
{}
]
}Headers
Your Paysight Tenant/Client Id. This is the id of the parent company listed in https://app.paysight.io/management/companies. Alternatively, this will be provided by Paysight
Body
application/json
Request payload for searching mitigation-related transactions