KashierDevelopersKashier Developers
Accept payments

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.

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

KeyDescription
AuthorizationThe 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:

ParameterAccepted values
statusApproved, Rejected, Unknown, all
typePAYMENT, REFUND, AUTHORIZE, all
currencyEGP, EUR, USD, GBP, all
channelonline, pos, all
paymentTypeInvoice, 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.

curl --location 'https://test-api.kashier.io/v2/aggregator/transactions/:trxId'
--header 'Authorization: YOUR_TEST_SECRET_KEY'

Headers

KeyDescription
AuthorizationThe 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.

Wherestatus values
Transactions listApproved, Rejected, Unknown, Expired, Pending
Transaction detailsSUCCESS, FAILURE, PENDING
WebhooksSUCCESS, FAILURE, PENDING

How the list values line up with the details and webhook values:

List statusDetails and webhook status
ApprovedSUCCESS
RejectedFAILURE, or a payment the customer started but never completed
PendingPENDING
ExpiredThe payment expired before it was completed
UnknownThe 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.

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

KeyDescription
AuthorizationThe Authorization is the secret key that is used to identify the merchant. You can obtain it from Kashier dashboard. Learn more about Authorization.

On this page