Query transaction history
Search and filter transaction history with various criteria. Supports pagination and multiple filter options.
POST
/payment/query-transaction
curl \
--request POST 'https://pay-api.aiic.nz/v1/payment/query-transaction' \
--header "X-Public-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"data":{"accountIds":["acc_123","acc_456"],"status":"pending","type":"credit","currency":"NZD","dateFrom":"2025-05-04","dateTo":"2025-05-04","minAmount":42.0,"maxAmount":42.0,"reference":"string","page":1,"limit":20},"signature":"base64-encoded-signature","publicKey":"base64-encoded-public-key","timestamp":1703123456789,"nonce":"abc123-def456-ghi789"}'
Request examples
{
"data": {
"accountIds": [
"acc_123",
"acc_456"
],
"status": "pending",
"type": "credit",
"currency": "NZD",
"dateFrom": "2025-05-04",
"dateTo": "2025-05-04",
"minAmount": 42.0,
"maxAmount": 42.0,
"reference": "string",
"page": 1,
"limit": 20
},
"signature": "base64-encoded-signature",
"publicKey": "base64-encoded-public-key",
"timestamp": 1703123456789,
"nonce": "abc123-def456-ghi789"
}
Response examples (200)
{
"success": true,
"transactions": [
{
"id": "txn_abc123",
"type": "credit",
"status": "pending",
"amount": 1000,
"currency": "NZD",
"sourceAccountId": "acc_123",
"targetAccountId": "acc_456",
"reference": "Payment for services",
"description": "string",
"createdAt": "2025-05-04T09:42:00Z",
"completedAt": "2025-05-04T09:42:00Z",
"failureReason": "string"
}
],
"pagination": {
"page": 1,
"limit": 20,
"totalPages": 8,
"hasNext": true,
"hasPrev": false
},
"totalCount": 150
}