Skip to main content
GET
/
card_event
List Card Events
curl --request GET \
  --url https://api.treasuryprime.com/card_event \
  --header 'Authorization: Basic <encoded-value>'
{
  "data": [
    {
      "amount": "<string>",
      "approved_amount": "<string>",
      "atm": {
        "network": "<string>",
        "network_fee": "<string>"
      },
      "bank_id": "<string>",
      "card_id": "<string>",
      "currency": "<string>",
      "decline_reason": "<string>",
      "id": "<string>",
      "merchant": {
        "address": {
          "city": "<string>",
          "country": "<string>",
          "postal_code": "<string>",
          "state": "<string>"
        },
        "mcc": "<string>",
        "mid": "<string>",
        "name": "<string>"
      },
      "message_type": "<string>",
      "network": "<string>",
      "network_created_at": "<string>",
      "networkdata": {},
      "org_id": "<string>",
      "processor": "<string>",
      "status": "<string>",
      "trace_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

card_id
string

The ID of the card associated with the event. Filterable.

trace_id
string

Identifier used to link card events to transactions. Filterable.

page_cursor
string

Pagination cursor, value is the object ID.

page_size
integer
default:100

Limits the number of objects in the returned list, value must be a number greater than or equal to 1. Defaults to 100.

Required range: x >= 1
from_date
string

Lists the objects created on the date provided and onwards. Date must be in ISO 8601 format (“YYYY-MM-DD”).

to_date
string

Lists the objects created before the date provided. Date must be in ISO 8601 format (“YYYY-MM-DD”).

Response

200 - application/json

A dictionary with a data property that contains a list of up to page_size card_event elements, starting after the card_event described by page_cursor. If no more card_events are available, the resulting list will be empty.

data
object[]