Transactions
List, retrieve, and export transactions for reporting
The Kashier Transactions API provides endpoints for retrieving transaction data and exporting transaction batch data. These APIs enable merchants to monitor their transactions.
Get all transactions
This endpoint allows merchants to retrieve a list of transaction records based on multiple optional filter parameters, such as currency, amount, status, and channel. The data can be paginated, sorted, and searched.
| Endpoint | Value |
|---|---|
| LIVE-URL | https://api.kashier.io/v2/aggregator/transactions |
| Method | GET |
| TEST-URL | https://test-api.kashier.io/v2/aggregator/transactions |
| Method | GET |
Full parameter and response reference → Get all transactions.
curl --location 'https://test-api.kashier.io/v2/aggregator/transactions?currency=EGP&sortType=-1&limit=20&page=1'
--header 'Authorization: YOUR_TEST_SECRET_KEY'Headers
| Key | Description |
|---|---|
| Authorization | The Authorization is the secret key that is used to identify the merchant. You can obtain it from Kashier dashboard. Learn more about Authorization. |
Filter values
Filter values are case-sensitive and validated against a fixed set. Send them exactly as shown:
| Parameter | Accepted values |
|---|---|
status | Approved, Rejected, Unknown, all |
type | PAYMENT, REFUND, AUTHORIZE, all |
currency | EGP, EUR, USD, GBP, all |
channel | online, pos, all |
paymentType | Invoice, paymentPage, paymentRequest, all |
Pass multiple values as a comma-separated list. The literal all means no filter on that parameter.
Use the exact casing shown (for example status=Approved, not approved), and omit parameters you are not using rather than passing them empty.
The status filter accepts only Approved, Rejected, and Unknown. To find other transactions, retrieve them without a status filter and filter client-side.
Get transaction details
This endpoint allows merchants to retrieve detailed information about a single transaction using its unique reference ID.
| Endpoint | Value |
|---|---|
| LIVE-URL | https://api.kashier.io/v2/aggregator/transactions/:transactionId |
| Method | GET |
| TEST-URL | https://test-api.kashier.io/v2/aggregator/transactions/:transactionId |
| Method | GET |
curl --location 'https://test-api.kashier.io/v2/aggregator/transactions/:trxId'
--header 'Authorization: YOUR_TEST_SECRET_KEY'Headers
| Key | Description |
|---|---|
| Authorization | The Authorization is the secret key that is used to identify the merchant. You can obtain it from Kashier dashboard. Learn more about Authorization. |
Full parameter and response reference → Get transaction details.
Transaction statuses
The transactions list and the transaction details label the same transaction with different words. Both describe the same payment.
| Where | status values |
|---|---|
| Transactions list | Approved, Rejected, Unknown, Expired, Pending |
| Transaction details | SUCCESS, FAILURE, PENDING |
| Webhooks | SUCCESS, FAILURE, PENDING |
How the list values line up with the details and webhook values:
List status | Details and webhook status |
|---|---|
Approved | SUCCESS |
Rejected | FAILURE, or a payment the customer started but never completed |
Pending | PENDING |
Expired | The payment expired before it was completed |
Unknown | The outcome is not known yet |
Rejected does not always mean declined
A payment the customer never completed also shows as Rejected in the list. Before treating a Rejected row as a decline, check its lastStatus and transactionResponseCode, or fetch the transaction details.
Each list row also carries lastStatus, the latest state of the order — for example CAPTURED on a captured payment.
Reconcile payments on the transaction details or your webhooks, and use the list for reporting views.
Export transaction batches
This API allows you to export transaction data based on specific filters such as status and date range. It is typically used for reporting, reconciliation, and data analysis by aggregators or merchants.
| Endpoint | Value |
|---|---|
| LIVE-URL | https://api.kashier.io/v3/payment/export |
| Method | GET |
| TEST-URL | https://test-api.kashier.io/v3/payment/export |
| Method | GET |
Full parameter and response reference → Export transaction batches.
curl --location 'https://test-api.kashier.io/v3/payment/export?status=Approved&startDate=2024-10-27T00%3A00%3A00.000Z&endDate=2024-11-27T23%3A59%3A59.999Z'
--header 'Accept: application/json, text/plain, */*'
--header 'Authorization: YOUR_TEST_SECRET_KEY'Headers
| Key | Description |
|---|---|
| Authorization | The Authorization is the secret key that is used to identify the merchant. You can obtain it from Kashier dashboard. Learn more about Authorization. |