List the approval rate of each payment account
Returns how many payments each of the company’s payment accounts approved and declined over a reporting period, with the approval rate (approved / (approved + declined) x 100, rounded to two decimals). Only gateway decisions count: a payment with status success is approved and one with status declined is declined. Errors, pending and expired payments, and recorded cash payments, are not counted. A payment account with no approved or declined payment in the period is left out of the list, so a missing account means no traffic, not a 0% or 100% rate. Results are always limited to the caller’s company. Requires a company admin Bearer token with the payment_accounts.view permission.
curl --request GET \
--url https://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates', 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://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates",
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: Bearer <token>"
],
]);
$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://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"payment_accounts": [
{
"payment_account_id": 272,
"approved": 412,
"declined": 31,
"approval_rate": 93
},
{
"payment_account_id": 318,
"approved": 57,
"declined": 9,
"approval_rate": 86.36
}
],
"period": {
"from": "2026-10-15T00:00:00Z",
"to": "2026-10-22T23:59:59Z",
"interval": "daily"
},
"meta": {
"request_id": "c0a8012e-7f3b-4d6a-9e21-5b8d4f2a6c17",
"timestamp": "2026-10-22T14:15:22Z"
}
}{
"error_message": "bad request",
"errors": {
"period": [
"start_date and end_date are required for custom period"
]
},
"meta": {
"request_id": "bdf66adb-9730-476d-beb8-e823b1e8c518",
"timestamp": "2026-10-22T14:15:22Z"
}
}{
"message": "Invalid credentials."
}{
"error": "Not authorized."
}{
"error_message": "Invalid parameters",
"errors": {
"period": [
"is missing"
]
},
"meta": {
"request_id": "90011e07-89e4-400e-bfc5-4423a9373a7a",
"timestamp": "2026-10-22T14:15:22Z"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Reporting period to count over. last_24_hours runs from the start of the hour 24 hours ago to the end of the current hour; last_7_days and last_30_days from the start of the day that many days ago to the end of today; last_month and last_year are the previous calendar month and year. Use custom with start_date and end_date for any other window.
last_24_hours, last_7_days, last_30_days, last_month, last_year, custom ISO 8601 start of a custom period. Required when period is custom; must be before end_date.
ISO 8601 end of a custom period. Required when period is custom.
Response
The approved and declined counts of each payment account that made a gateway decision in the period.
curl --request GET \
--url https://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates', 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://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates",
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: Bearer <token>"
],
]);
$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://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202506/company/payments/payment-account-approval-rates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"payment_accounts": [
{
"payment_account_id": 272,
"approved": 412,
"declined": 31,
"approval_rate": 93
},
{
"payment_account_id": 318,
"approved": 57,
"declined": 9,
"approval_rate": 86.36
}
],
"period": {
"from": "2026-10-15T00:00:00Z",
"to": "2026-10-22T23:59:59Z",
"interval": "daily"
},
"meta": {
"request_id": "c0a8012e-7f3b-4d6a-9e21-5b8d4f2a6c17",
"timestamp": "2026-10-22T14:15:22Z"
}
}{
"error_message": "bad request",
"errors": {
"period": [
"start_date and end_date are required for custom period"
]
},
"meta": {
"request_id": "bdf66adb-9730-476d-beb8-e823b1e8c518",
"timestamp": "2026-10-22T14:15:22Z"
}
}{
"message": "Invalid credentials."
}{
"error": "Not authorized."
}{
"error_message": "Invalid parameters",
"errors": {
"period": [
"is missing"
]
},
"meta": {
"request_id": "90011e07-89e4-400e-bfc5-4423a9373a7a",
"timestamp": "2026-10-22T14:15:22Z"
}
}