GetMerchantAccounts
curl --request GET \
--url https://test.paysight.io/api/admin/merchantaccounts \
--header 'Authorization: <api-key>' \
--header 'ClientId: <clientid>' \
--header 'UserEmail: <useremail>'import requests
url = "https://test.paysight.io/api/admin/merchantaccounts"
headers = {
"ClientId": "<clientid>",
"UserEmail": "<useremail>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {ClientId: '<clientid>', UserEmail: '<useremail>', Authorization: '<api-key>'}
};
fetch('https://test.paysight.io/api/admin/merchantaccounts', 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/admin/merchantaccounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"ClientId: <clientid>",
"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"
"net/http"
"io"
)
func main() {
url := "https://test.paysight.io/api/admin/merchantaccounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ClientId", "<clientid>")
req.Header.Add("UserEmail", "<useremail>")
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://test.paysight.io/api/admin/merchantaccounts")
.header("ClientId", "<clientid>")
.header("UserEmail", "<useremail>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.paysight.io/api/admin/merchantaccounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ClientId"] = '<clientid>'
request["UserEmail"] = '<useremail>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"returnVal": [
{
"id": 123,
"mid": "<string>",
"title": "<string>",
"companyId": 123,
"agent": "<string>",
"acquiringBank": "<string>",
"gatewayId": 123,
"enabledMastercard": true,
"enabledVisa": true,
"descriptor": "<string>",
"mcc": "<string>",
"acquirerBINVisa": "<string>",
"acquirerBINMastercard": "<string>",
"psp": "<string>",
"maxPrice": 123,
"verticalId": 123,
"monthlyCap": 123,
"reservePercentage": 123,
"discountRatePercentage": 123,
"gatewayTransactionFee": 123,
"chargebackFee": 123,
"routingNumber": "<string>",
"accountNumber": "<string>",
"brandId": 123,
"allowPremiumProgram": true,
"fullyLive": true,
"shorthandSuffix": "<string>",
"defaultCurrency": "<string>",
"rdrFee": 123,
"ethocaFee": 123,
"cdrnFee": 123,
"allowRetriesFromOtherMids": true,
"allowInsufficientFundsRetries": true,
"capLimited": "2023-11-07T05:31:56Z",
"forceAllowRefunds": true,
"dynamicDescriptorEnabled": true,
"dynamicDescriptorPrefix": "<string>",
"dynamicDescriptorPrefix_MC": "<string>",
"dynamicDescriptorFormat": 123,
"bankAuthFee": 123,
"bankDeclineFee": 123,
"bankAVSFee": 123,
"customFee": 123,
"customFeeApprovedOnly": 123,
"notes": "<string>",
"caid": "<string>",
"chargebackMitigationProviderId": 123,
"chargebackMitigationNotes": "<string>",
"processorPortalAccessId": 123,
"rowVersion": 123,
"merchantDefinedField1": "<string>",
"merchantDefinedField2": "<string>",
"merchantDefinedField3": "<string>",
"customField1": "<string>",
"customField2": "<string>",
"customField3": "<string>",
"midOwnerId": 123,
"currencies": [
{
"currency": "<string>",
"gatewayCredentials": {
"apiKey": "<string>",
"username": "<string>",
"password": "<string>",
"emailAddress": "<string>",
"processorId": "<string>"
}
}
],
"company": "<string>",
"gateway": "<string>",
"vertical": "<string>",
"brand": "<string>",
"chargebackMitigationProvider": "<string>",
"processorPortalAccess": "<string>",
"parentCompanyId": 123,
"parentCompany": "<string>",
"requiresZip": true,
"paymendStoreId": "<string>"
}
]
}MerchantAccounts
GetMerchantAccounts
GET
/
api
/
admin
/
merchantaccounts
GetMerchantAccounts
curl --request GET \
--url https://test.paysight.io/api/admin/merchantaccounts \
--header 'Authorization: <api-key>' \
--header 'ClientId: <clientid>' \
--header 'UserEmail: <useremail>'import requests
url = "https://test.paysight.io/api/admin/merchantaccounts"
headers = {
"ClientId": "<clientid>",
"UserEmail": "<useremail>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {ClientId: '<clientid>', UserEmail: '<useremail>', Authorization: '<api-key>'}
};
fetch('https://test.paysight.io/api/admin/merchantaccounts', 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/admin/merchantaccounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"ClientId: <clientid>",
"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"
"net/http"
"io"
)
func main() {
url := "https://test.paysight.io/api/admin/merchantaccounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ClientId", "<clientid>")
req.Header.Add("UserEmail", "<useremail>")
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://test.paysight.io/api/admin/merchantaccounts")
.header("ClientId", "<clientid>")
.header("UserEmail", "<useremail>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.paysight.io/api/admin/merchantaccounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ClientId"] = '<clientid>'
request["UserEmail"] = '<useremail>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"returnVal": [
{
"id": 123,
"mid": "<string>",
"title": "<string>",
"companyId": 123,
"agent": "<string>",
"acquiringBank": "<string>",
"gatewayId": 123,
"enabledMastercard": true,
"enabledVisa": true,
"descriptor": "<string>",
"mcc": "<string>",
"acquirerBINVisa": "<string>",
"acquirerBINMastercard": "<string>",
"psp": "<string>",
"maxPrice": 123,
"verticalId": 123,
"monthlyCap": 123,
"reservePercentage": 123,
"discountRatePercentage": 123,
"gatewayTransactionFee": 123,
"chargebackFee": 123,
"routingNumber": "<string>",
"accountNumber": "<string>",
"brandId": 123,
"allowPremiumProgram": true,
"fullyLive": true,
"shorthandSuffix": "<string>",
"defaultCurrency": "<string>",
"rdrFee": 123,
"ethocaFee": 123,
"cdrnFee": 123,
"allowRetriesFromOtherMids": true,
"allowInsufficientFundsRetries": true,
"capLimited": "2023-11-07T05:31:56Z",
"forceAllowRefunds": true,
"dynamicDescriptorEnabled": true,
"dynamicDescriptorPrefix": "<string>",
"dynamicDescriptorPrefix_MC": "<string>",
"dynamicDescriptorFormat": 123,
"bankAuthFee": 123,
"bankDeclineFee": 123,
"bankAVSFee": 123,
"customFee": 123,
"customFeeApprovedOnly": 123,
"notes": "<string>",
"caid": "<string>",
"chargebackMitigationProviderId": 123,
"chargebackMitigationNotes": "<string>",
"processorPortalAccessId": 123,
"rowVersion": 123,
"merchantDefinedField1": "<string>",
"merchantDefinedField2": "<string>",
"merchantDefinedField3": "<string>",
"customField1": "<string>",
"customField2": "<string>",
"customField3": "<string>",
"midOwnerId": 123,
"currencies": [
{
"currency": "<string>",
"gatewayCredentials": {
"apiKey": "<string>",
"username": "<string>",
"password": "<string>",
"emailAddress": "<string>",
"processorId": "<string>"
}
}
],
"company": "<string>",
"gateway": "<string>",
"vertical": "<string>",
"brand": "<string>",
"chargebackMitigationProvider": "<string>",
"processorPortalAccess": "<string>",
"parentCompanyId": 123,
"parentCompany": "<string>",
"requiresZip": true,
"paymendStoreId": "<string>"
}
]
}Authorizations
Your Paysight API key. You can find it in your Paysight account at https://app.paysight.io/settings/account
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
The email address of the party or group making the request
⌘I