Skip to main content
GET
/
3p
/
api
/
v2
/
bank-accounts
/
{aggregator_type}
/
{account_uuid}
/
history
Fetch the transaction history for a bank account. ( STABLE )
curl --request GET \
  --url https://api.grailpay.com/3p/api/v2/bank-accounts/{aggregator_type}/{account_uuid}/history \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "message": null,
  "data": {
    "transactions": [
      {
        "transaction_id": "c7318ff7-257c-490e-8242-03a815b223b7",
        "account_id": "acc_6Tef269B6ZArSVpYrxtjBV",
        "amount": 384.05,
        "type": "debit",
        "currency": "USD",
        "date": "2023-02-16T00:00:00",
        "datetime": "2023-02-16T09:14:11",
        "description": "Regina's Mulberry",
        "raw_description": "Regina's Mulberry #1402 T48999-84",
        "pending": true,
        "enrichment": {
          "category": {
            "value": "food_and_drink",
            "confidence": 99
          },
          "subcategory": {
            "value": "coffee",
            "confidence": 99
          },
          "merchant": {
            "id": "a0822a4f-a59b-4fc9-a768-d880da5bd090",
            "name": "Starbucks",
            "logo": "https://example.com/starbucks.png",
            "confidence": 99
          },
          "processor": {
            "id": "a0822a4f-a59b-4fc9-a768-d880da5bd090",
            "name": "Square",
            "logo": "https://example.com/square.png",
            "confidence": 99
          },
          "recurrence": {
            "frequency": "monthly",
            "next_predicted_date": "2024-08-03"
          }
        },
        "original_id": ""
      }
    ],
    "pagination": {
      "current_page": 1,
      "total_pages": 5,
      "total_items": 50,
      "per_page": 10
    }
  },
  "errors": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Sanctum token-based authentication using the Bearer scheme. This is provided by the GrailPay Customer Support Team

Path Parameters

aggregator_type
enum<string>
required

Bank Account Provider. Possible Values: bank_link

Available options:
bank_link
account_uuid
string<uuid>
required

UUID of the bank account

Response

Successful Response

status
boolean
Example:

true

message
string
Example:

null

data
object
errors
string[]