Get Payment Request Statistics
GEThttps://api.cleverhub.co/api/v1/payment_requests/count
Retrieve summary statistics for payment requests, including the total gross amount, the number of completed transactions, and the number of pending transactions. This endpoint provides an overview of your payment requests, helping you monitor transaction performance at a glance.
Responses
- 200
- 400
- 401
Payment request statistics retrieved successfully.
- application/json
- Schema
- Example (auto)
Schema
grossnumber
The total gross amount of all transactions.
Example:
1100
transactions_countinteger
The total number of transactions recorded.
Example:
10
pending_countinteger
The number of transactions currently pending.
Example:
5
{
"gross": 1100,
"transactions_count": 10,
"pending_count": 5
}
Bad Request
Unauthorized
Authorization: app-id
name: app-idtype: apiKeyin: headerdescription: A unique identifier assigned to each application.
name: secret-keytype: apiKeyin: headerdescription: A secure token associated with the `app-id`.
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.cleverhub.co/api/v1/payment_requests/count");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("app-id", "<app-id>");
request.Headers.Add("secret-key", "<app-id>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear