curl --request GET \
--url 'https://hpay-api.host-sl.com/api/v1/transactions/?limit=10&status=completed' \
--header 'api-key: YOUR_API_KEY' \
--header 'secret-key: YOUR_SECRET_KEY'
from hostpay import HostPay
client = HostPay(api_key="YOUR_API_KEY", secret_key="YOUR_SECRET_KEY")
txns = client.transactions.list(status="completed", limit=10)
for txn in txns:
print(txn["id"], txn["transaction_type"], txn["amount"])
import { HostPay } from "@hostpay/sdk";
const client = new HostPay({ apiKey: "YOUR_API_KEY", secretKey: "YOUR_SECRET_KEY" });
const txns = await client.transactions.list({ status: "completed", limit: 10 });
for (const txn of txns) console.log(txn.id, txn.transaction_type, txn.amount);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hpay-api.host-sl.com/api/v1/transactions/?limit=10&status=completed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"api-key: YOUR_API_KEY",
"secret-key: YOUR_SECRET_KEY"
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
[
{
"id": "trans_123...",
"wallet_id": "wall_789...",
"amount": 50.0,
"currency": "USD",
"transaction_type": "deposit",
"status": "completed",
"created_at": "2025-01-16T10:00:00Z"
},
{
"id": "trans_456...",
"wallet_id": "wall_012...",
"amount": 25.0,
"currency": "SLE",
"transaction_type": "transfer",
"status": "completed",
"created_at": "2025-01-16T11:00:00Z"
}
]
Transactions
List Transactions
Retrieve a list of all transactions for the application.
GET
/
api
/
v1
/
transactions
/
curl --request GET \
--url 'https://hpay-api.host-sl.com/api/v1/transactions/?limit=10&status=completed' \
--header 'api-key: YOUR_API_KEY' \
--header 'secret-key: YOUR_SECRET_KEY'
from hostpay import HostPay
client = HostPay(api_key="YOUR_API_KEY", secret_key="YOUR_SECRET_KEY")
txns = client.transactions.list(status="completed", limit=10)
for txn in txns:
print(txn["id"], txn["transaction_type"], txn["amount"])
import { HostPay } from "@hostpay/sdk";
const client = new HostPay({ apiKey: "YOUR_API_KEY", secretKey: "YOUR_SECRET_KEY" });
const txns = await client.transactions.list({ status: "completed", limit: 10 });
for (const txn of txns) console.log(txn.id, txn.transaction_type, txn.amount);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hpay-api.host-sl.com/api/v1/transactions/?limit=10&status=completed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"api-key: YOUR_API_KEY",
"secret-key: YOUR_SECRET_KEY"
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
[
{
"id": "trans_123...",
"wallet_id": "wall_789...",
"amount": 50.0,
"currency": "USD",
"transaction_type": "deposit",
"status": "completed",
"created_at": "2025-01-16T10:00:00Z"
},
{
"id": "trans_456...",
"wallet_id": "wall_012...",
"amount": 25.0,
"currency": "SLE",
"transaction_type": "transfer",
"status": "completed",
"created_at": "2025-01-16T11:00:00Z"
}
]
This endpoint returns a list of all transactions associated with your application. You can filter the results by status, type, date, or search for specific transaction identifiers.
Query Parameters
string
Filter by transaction status (e.g.,
all, pending, completed, failed).string
Filter by transaction type (e.g.,
all, deposit, withdrawal, transfer).string
Filter by start date in ISO format (e.g.,
2025-01-01).string
Filter by end date in ISO format (e.g.,
2025-01-31).string
Search by transaction ID or reference ID.
number
default:"100"
Maximum number of transactions to return (max 1000).
number
default:"0"
Number of transactions to skip for pagination.
Response
The response is an array of transaction objects.string
The unique identifier for the transaction.
string
The type of transaction.
number
The transaction amount.
string
The currency code.
string
The final or current status.
[
{
"id": "trans_123...",
"wallet_id": "wall_789...",
"amount": 50.0,
"currency": "USD",
"transaction_type": "deposit",
"status": "completed",
"created_at": "2025-01-16T10:00:00Z"
},
{
"id": "trans_456...",
"wallet_id": "wall_012...",
"amount": 25.0,
"currency": "SLE",
"transaction_type": "transfer",
"status": "completed",
"created_at": "2025-01-16T11:00:00Z"
}
]
curl --request GET \
--url 'https://hpay-api.host-sl.com/api/v1/transactions/?limit=10&status=completed' \
--header 'api-key: YOUR_API_KEY' \
--header 'secret-key: YOUR_SECRET_KEY'
from hostpay import HostPay
client = HostPay(api_key="YOUR_API_KEY", secret_key="YOUR_SECRET_KEY")
txns = client.transactions.list(status="completed", limit=10)
for txn in txns:
print(txn["id"], txn["transaction_type"], txn["amount"])
import { HostPay } from "@hostpay/sdk";
const client = new HostPay({ apiKey: "YOUR_API_KEY", secretKey: "YOUR_SECRET_KEY" });
const txns = await client.transactions.list({ status: "completed", limit: 10 });
for (const txn of txns) console.log(txn.id, txn.transaction_type, txn.amount);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hpay-api.host-sl.com/api/v1/transactions/?limit=10&status=completed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"api-key: YOUR_API_KEY",
"secret-key: YOUR_SECRET_KEY"
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;