List Transactions

Learn how to retrieve information about transactions.

Overview

In this lesson, we’ll learn how to get a list of all transactions as well as how to get the details of a specific transaction.

Endpoints

Get all transactions

We can get a list of all transactions by making a GET request to the {BASE_URL}/transactions endpoint. This endpoint allows us to filter the visibility of the response fields, if necessary. This endpoint also supports pagination, which allows us to retrieve a specific range of resources from a complete and sorted list of the returned resources.

Note: This endpoint only retrieves transactions that have either a “PENDING” or “COMPLETION” status. It also only provides transactions conducted within the last 30 days. In case we want to retrieve transactions conducted outside this period, we must specify the optional query parameters, start_date and end_date.

Get transaction details

We can get details of a single transaction by making a GET request to the {BASE_URL}/transactions/{token} endpoint. The path parameter, {token}, refers to the token of the transaction that we want to retrieve. This endpoint allows us to filter the visibility of the response fields, if necessary.

Note: This endpoint doesn’t provide transactions in real-time. A transaction can take anywhere between 30 seconds and 4 hours to appear.

Request parameters

Get hands-on with 1200+ tech skills courses.