getTransactions
The getTransactions query retrieves all transactions associated with your API key. It supports status filters, date ranges, and sort ordering, allowing for transaction history views and reconciliation.
🔗 Endpoint
URL: https://argonpay.onrender.com/graphql
Method: POST
Content-Type: application/json
🔍 Query Structure
query GetTransactions(
$apiKey: String!,
$status: String,
$timeRange: String,
$sortOrder: String
) {
getTransactions(apiKey: $apiKey, status: $status, timeRange: $timeRange, sortOrder: $sortOrder) {
code
message
transactions {
transactionId
amount
amountInToken
network
status
payAddress
recipientAddress
adminTransferred
createdAt
}
}
}📥 Parameters
Name
Type
Required
Description
apiKey
String
✅
Your ArgonPay API key
status
String
❌
Filter by transaction status: pending, completed, expired
timeRange
String
❌
Filter by date: 24h, 1week, or 1month
sortOrder
String
❌
Sort by creation time: asc or desc (default is desc)
✅ Successful Response
🚫 Error Codes
Code
Description
200
Transactions fetched successfully
401
Invalid API key
500
Internal server error retrieving transactions
🧪 Code Examples
Python Example
JavaScript Example
Last updated