A request to Plaid’s Transactions product will return a transactions
object:
Request
curl -X POST https://sandbox.plaid.com/transactions/get \
-H 'content-type: application/json' \
-d '{
"client_id": String,
"secret": String,
"access_token": String,
"start_date": "2017-01-01",
"end_date": "2017-02-01",
"options": {
"count": 250,
"offset": 100
}
}'
Response
"transactions": [
{
"account_id": "vokyE5Rn6vHKqDLRXEn5fne7LwbKPLIXGK98d",
"amount": -500,
"category": null,
"category_id": null,
"date": "2017-01-29",
"location": {Object},
"name": "United Airlines",
"payment_meta": {Object},
"pending": false,
"pending_transaction_id": null,
"transaction_id": "lPNjeW1nR6CDn5okmGQ6hEpMo4lLNoSrzqDje",
"transaction_type": "special"
}
]
The account_id
field identifies the account to which the transaction belongs.
A request to Plaid’s Accounts product will return an accounts
object with information about an item
’s accounts:
Request
curl -X POST https://sandbox.plaid.com/accounts/get \ -H 'content-type: application/json' \ -d '{ "client_id": String, "secret": String, "access_token": String }'
Response
"accounts": [
{
"account_id": "vzeNDwK7KQIm4yEog683uElbp9GRLEFXGK98D",
"balances": {
"available": 100,
"current": 110,
"limit": null
},
"mask": "0000",
"name": "Plaid Checking",
"official_name": "Plaid Gold Standard 0% Interest Checking",
"subtype": "checking",
"type": "depository"
},
{
"account_id": "6Myq63K1KDSe3lBwp7K1fnEbNGLV4nSxalVdW",
"balances": {
"available": null,
"current": 410,
"limit": 2000
},
"mask": "3333",
"name": "Plaid Credit Card",
"official_name": "Plaid Diamond 12.5% APR Interest Credit Card",
"subtype": "credit",
"type": "credit"
},
...
]
The account_id
s in a transactions
response correspond to the account_id
s in an accounts
response, enabling you to map a transaction to an account.