curl --request GET \
--url https://hpay-api.host-sl.com/api/v1/transactions/YOUR_TRANSACTION_ID \
--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")
txn = client.transactions.get("YOUR_TRANSACTION_ID")
print(txn["status"], txn["amount"])
import { HostPay } from "@hostpay/sdk";
const client = new HostPay({ apiKey: "YOUR_API_KEY", secretKey: "YOUR_SECRET_KEY" });
const txn = await client.transactions.get("YOUR_TRANSACTION_ID");
console.log(txn.status, txn.amount);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hpay-api.host-sl.com/api/v1/transactions/YOUR_TRANSACTION_ID",
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_123abc...",
"wallet_id": "wall_789xyz...",
"recipient_wallet_id": null,
"amount": 50.0,
"currency": "USD",
"transaction_type": "deposit",
"payment_method": "card",
"status": "completed",
"stripe_fee": 1.75,
"monime_fee": 0,
"application_fee": 1.0,
"description": "Card deposit",
"reference_id": "pi_3Qe...",
"created_at": "2025-01-16T10:00:00Z",
"updated_at": "2025-01-16T10:05:00Z"
}
Transactions
Get Transaction
Retrieve details of a specific transaction by its unique ID.
GET
/
api
/
v1
/
transactions
/
{transaction_id}
curl --request GET \
--url https://hpay-api.host-sl.com/api/v1/transactions/YOUR_TRANSACTION_ID \
--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")
txn = client.transactions.get("YOUR_TRANSACTION_ID")
print(txn["status"], txn["amount"])
import { HostPay } from "@hostpay/sdk";
const client = new HostPay({ apiKey: "YOUR_API_KEY", secretKey: "YOUR_SECRET_KEY" });
const txn = await client.transactions.get("YOUR_TRANSACTION_ID");
console.log(txn.status, txn.amount);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hpay-api.host-sl.com/api/v1/transactions/YOUR_TRANSACTION_ID",
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_123abc...",
"wallet_id": "wall_789xyz...",
"recipient_wallet_id": null,
"amount": 50.0,
"currency": "USD",
"transaction_type": "deposit",
"payment_method": "card",
"status": "completed",
"stripe_fee": 1.75,
"monime_fee": 0,
"application_fee": 1.0,
"description": "Card deposit",
"reference_id": "pi_3Qe...",
"created_at": "2025-01-16T10:00:00Z",
"updated_at": "2025-01-16T10:05:00Z"
}
This endpoint allows you to fetch the full details of a single transaction using its unique identifier.
Path Parameters
string
required
The unique identifier of the transaction to retrieve.
Response
string
The unique identifier for the transaction.
string
The ID of the primary wallet involved.
string
The ID of the recipient wallet (for transfers).
number
The transaction amount.
string
The currency code.
string
The type of transaction (deposit, withdrawal, transfer, etc.).
string
The current status of the transaction.
string
A brief description of the transaction.
string
Provider-specific reference ID (e.g., Stripe or Monime).
string
The timestamp when the transaction was created.
{
"id": "trans_123abc...",
"wallet_id": "wall_789xyz...",
"recipient_wallet_id": null,
"amount": 50.0,
"currency": "USD",
"transaction_type": "deposit",
"payment_method": "card",
"status": "completed",
"stripe_fee": 1.75,
"monime_fee": 0,
"application_fee": 1.0,
"description": "Card deposit",
"reference_id": "pi_3Qe...",
"created_at": "2025-01-16T10:00:00Z",
"updated_at": "2025-01-16T10:05:00Z"
}
curl --request GET \
--url https://hpay-api.host-sl.com/api/v1/transactions/YOUR_TRANSACTION_ID \
--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")
txn = client.transactions.get("YOUR_TRANSACTION_ID")
print(txn["status"], txn["amount"])
import { HostPay } from "@hostpay/sdk";
const client = new HostPay({ apiKey: "YOUR_API_KEY", secretKey: "YOUR_SECRET_KEY" });
const txn = await client.transactions.get("YOUR_TRANSACTION_ID");
console.log(txn.status, txn.amount);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://hpay-api.host-sl.com/api/v1/transactions/YOUR_TRANSACTION_ID",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"api-key: YOUR_API_KEY",
"secret-key: YOUR_SECRET_KEY"
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;