Transaction History
curl --request GET \
--url https://app.closerx.ai/api/transaction_history/ \
--header 'api_key: <api-key>'import requests
url = "https://app.closerx.ai/api/transaction_history/"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://app.closerx.ai/api/transaction_history/', 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://app.closerx.ai/api/transaction_history/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_key: <api-key>"
],
]);
$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://app.closerx.ai/api/transaction_history/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<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://app.closerx.ai/api/transaction_history/")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/transaction_history/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Transaction History",
"data": [
{
"id": 1,
"object_id": "mi2rsRoS",
"payment_amount": "99.00",
"payment_type": "subscription",
"credits": "1000.00",
"currency": "usd",
"payment_status": "paid",
"created_at": "2025-08-01T11:59:24.382629Z",
"invoice_id": "5v6Ae11"
}
],
"total_transactions": 9,
"total_pages": 1,
"current_page": 1
}{
"success": true,
"message": "<string>",
"data": {}
}Billing & Subscription
Transaction History
Retrieves a list of all transactions including manual credits, subscriptions, and payments.
GET
/
transaction_history
/
Transaction History
curl --request GET \
--url https://app.closerx.ai/api/transaction_history/ \
--header 'api_key: <api-key>'import requests
url = "https://app.closerx.ai/api/transaction_history/"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://app.closerx.ai/api/transaction_history/', 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://app.closerx.ai/api/transaction_history/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_key: <api-key>"
],
]);
$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://app.closerx.ai/api/transaction_history/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<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://app.closerx.ai/api/transaction_history/")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/transaction_history/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Transaction History",
"data": [
{
"id": 1,
"object_id": "mi2rsRoS",
"payment_amount": "99.00",
"payment_type": "subscription",
"credits": "1000.00",
"currency": "usd",
"payment_status": "paid",
"created_at": "2025-08-01T11:59:24.382629Z",
"invoice_id": "5v6Ae11"
}
],
"total_transactions": 9,
"total_pages": 1,
"current_page": 1
}{
"success": true,
"message": "<string>",
"data": {}
}⌘I
