GetTransactionStatusCodes
curl --request GET \
--url https://test.paysight.io/api/admin/statuses \
--header 'Authorization: <api-key>' \
--header 'ClientId: <clientid>' \
--header 'UserEmail: <useremail>'import requests
url = "https://test.paysight.io/api/admin/statuses"
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/statuses', 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/statuses",
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/statuses"
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/statuses")
.header("ClientId", "<clientid>")
.header("UserEmail", "<useremail>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.paysight.io/api/admin/statuses")
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,
"count": 123,
"totalCount": 123,
"pageNumber": 123,
"pageSize": 123,
"totalPages": 123,
"moreResults": true,
"data": [
{
"id": "<string>",
"status": "<string>",
"successful": true,
"isGatewayLevelStatus": true,
"isIssuerDecline": true,
"isInsufficientFunds": true,
"isInvalidCardDetails": true,
"isOther": true
}
]
}TransactionStatuses
GetTransactionStatusCodes
Gets paginated Paysight transaction status codes based on card payment statuses.
GET
/
api
/
admin
/
statuses
GetTransactionStatusCodes
curl --request GET \
--url https://test.paysight.io/api/admin/statuses \
--header 'Authorization: <api-key>' \
--header 'ClientId: <clientid>' \
--header 'UserEmail: <useremail>'import requests
url = "https://test.paysight.io/api/admin/statuses"
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/statuses', 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/statuses",
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/statuses"
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/statuses")
.header("ClientId", "<clientid>")
.header("UserEmail", "<useremail>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.paysight.io/api/admin/statuses")
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,
"count": 123,
"totalCount": 123,
"pageNumber": 123,
"pageSize": 123,
"totalPages": 123,
"moreResults": true,
"data": [
{
"id": "<string>",
"status": "<string>",
"successful": true,
"isGatewayLevelStatus": true,
"isIssuerDecline": true,
"isInsufficientFunds": true,
"isInvalidCardDetails": true,
"isOther": true
}
]
}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
Query Parameters
Response
200 - application/json
Paginated list of transaction status codes
Response containing paginated transaction status codes