1. Home
  2. Docs
  3. Data Partners API Documentation
  4. Get Transactions

Get Transactions

By sending a request to this endpoint, the subscriber is able to retrieve a list of transactions for a given card that has been previously enrolled.

The endpoint accepts GET requests and is available at:

/card//transactions

Where must be a valid “cardId” of a card that was enrolled by the subscriber. Requests for
cards that weren’t enrolled within their account will be rejected.

For example:

In cUrl:


curl \
URL/card/534863/transactions \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJ********0E'

In Phyton:


endpoint = f'/card/{card_id}/transactions'
headers = {
'Content-Type': 'application/json',
'Authorization': f'Bearer {JWT}',
}
resp = requests.get(
URL + endpoint,
headers=headers,
)

If the request is correct, there will need to be a response with a list of transactions. Each of
them contains fields such as:

  • “createdAt”, the timestamp of the transaction.
  • “pending”, true or false.
  • “amount”.
  • “street”, “city”, “country”, “streetNo”, “zip”, of the merchant’s location.
  • “merchantName”.

How can we help?