SequenceSequence
Cards
Coming Soon — This endpoint is planned for a future release and is not yet available.
GET/cards/{id}/transactions

Returns transactions for a specific card, ordered by created_at descending. Includes purchases (debits) and refunds (credits). The card's linked account ID must be present in the token's READ_CARDS resources.

AuthorizationClick to expand
ApiKeyAuth
Authorization<token>

Format: ApiKey <key>. Keys are scoped to an organization and carry explicit permissions.

Each key holds a list of permission entries. An entry specifies a scope and a resources constraint. A request returns 403 if the key lacks the required scope, or if the requested resource is outside the key's allowed list.

ScopeResourcesGrants access to
LIST_ACCOUNTSnoneList all accounts in the organization
READ_ACCOUNTSaccount IDs or *Full account details and balance for a specific account
LIST_RULESnoneList all rules in the organization
READ_RULESrule IDs or *Full rule details (steps, conditions, actions) for a specific rule
TRIGGER_RULESrule IDs or *Triggering rule executions
READ_RULE_EXECUTIONSrule IDs or *Rule execution history - rule_id filter required
READ_TRANSFERSaccount IDs or *Transfer history - account_id filter required
MANUAL_TRANSFERlist of { source, target, max_amount? } setsCreating manual transfers
READ_CARDSaccount IDs or *Cards and card transactions - account_id filter required

In: header

Path Parameters

id*string

The card ID.

Query Parameters

direction?string, Value in "debit" | "credit"

Filter by direction.

from?string

Return transactions created at or after this timestamp (ISO 8601).

to?string

Return transactions created at or before this timestamp (ISO 8601).

first?integer

Number of results to return. Defaults to 20, maximum 100.

after?string

Cursor from a previous response's `page_info.end_cursor` to fetch the next page.

Header Parameters

X-Request-ID?string

A client-provided request identifier echoed back in the response `X-Request-ID` header and `request_id` body field. If omitted, the server generates one.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.getsequence.io/api/v1/cards/string/transactions"
{
  "request_id": "req_01HABC9002",
  "data": [
    {
      "id": "ctxr_01HABC1111",
      "amount_in_cents": 1250,
      "direction": "debit",
      "merchant_name": "Blue Bottle Coffee",
      "card_id": "card_01HABC4567",
      "account_id": "acc_01HDEF0123",
      "created_at": "2024-04-23T08:30:00Z"
    },
    {
      "id": "ctxr_01HDEF2222",
      "amount_in_cents": 8900,
      "direction": "debit",
      "merchant_name": "Trader Joe's",
      "card_id": "card_01HABC4567",
      "account_id": "acc_01HDEF0123",
      "created_at": "2024-04-22T19:15:00Z"
    },
    {
      "id": "ctxr_01HGHI3333",
      "amount_in_cents": 1250,
      "direction": "credit",
      "merchant_name": "Blue Bottle Coffee",
      "card_id": "card_01HABC4567",
      "account_id": "acc_01HDEF0123",
      "created_at": "2024-04-21T10:00:00Z"
    }
  ],
  "page_info": {
    "has_next_page": true,
    "end_cursor": "cursor_01HGHI3333"
  }
}
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}
{
  "error": {
    "code": "forbidden",
    "message": "This API key does not have the required permission."
  }
}
{
  "error": {
    "code": "resource_not_found",
    "message": "Card with id 'card_123' was not found."
  }
}