List of entries
Returns a paginated list of entries. Entries are the movements that occurred in your bank, commonly seen in your bank statement. This endpoint fetches the entries from all bank accounts enrolled in Shinkansen Treasury and can be identified by the account_number field. List can be filtered by date range, bank account id, entry direction, and source type (account statement or account report). Getting historical information is usually not feasible unless you were connected to the banks through Shinkansen during the period in question.
Pagination: Results are returned in pages of up to page_size entries (default 25, max 100), ordered by booking_date descending and then by internal id ascending, so the pages of a walk do not overlap. The response includes a Link HTTP header (RFC 5988) with navigation URLs:
rel="next"- URL for the next page (absent on the last page)rel="prev"- URL for the previous page (absent on the first page)rel="first"- URL for the first pagerel="last"- URL for the last page
Each link is an absolute URL built from the host this service is configured with, and carries the page of the target page plus the filters you sent, so following a link walks the same filtered result set. To retrieve all entries, follow the rel="next" link until it is no longer present in the response.
Query Parameters
- Type: stringaccount
_number If present, filter by bank account number
- Type: stringstatement
_id If present, filter by statement id
- Type: stringFormat: datefrom
If present, filter by date range. Format: YYYY-MM-DD
- Type: stringFormat: dateto
If present, filter by date range. Format: YYYY-MM-DD
- Type: stringamount
_min If present, filter by entries with an amount greater than or equal to the given value
- Type: stringamount
_max If present, filter by entries with an amount less than or equal to the given value
- Type: stringdetails
_debtor _id If present, filter by the debtor identifier reported by the bank in the entry details
- Type: stringdetails
_creditor _id If present, filter by the creditor identifier reported by the bank in the entry details
- Type: "credit" or "debit"enumdirection
If present, filter by entry direction
- Type: "account_statement" or "account_report"enumsource
_type If present, filter by source type (account_statement or account_report)
- Type: booleanis
_via _shinkansen If present, filter by Shinkansen processing status
- Type: stringshinkansen
_transaction _id If present, filter by Shinkansen transaction ID
- Type: integerpage
_size min:1max:100Maximum number of entries to return per page (can't be greater than 100). Defaults to 25 if not specified.
- Type: integerpagemin:1max:1000000000
Page number for pagination. Each page returns up to
page_sizeentries, ordered by booking_date descending. Use theLinkresponse header to navigate between pages. A value that is not a positive integer falls back to 1, and values above the maximum are clamped to it.
Responses
- application/json
- 403
Forbidden (e.g: wrong API Key)
- application/json
curl 'https://api.treasury.shinkansen.finance/v1/entries?page=1' \
--header 'Shinkansen-Treasury-Api-Key: YOUR_SECRET_TOKEN'
{
"entries": [
{
"entry_id": "4BF30A06-1E82-432E-851E-C278D4DAB5B0",
"direction": "credit",
"amount": 123.5,
"description": "Transfer received from John Doe",
"booking_date": "2023-06-05",
"source_id": "D5CC7E2C-71D2-48F7-935E-9DEFCA1F4CA0",
"source_type": "account_statement",
"account_number": "CL9312345678901234567890",
"references": [
{
"reference_id": "02D3F902-4B25-4B74-9B97-5A5B5C4E787A",
"reference_type": "base_entry"
}
],
"entry_details": {
"debtor_account": "4322110",
"debtor_fin_id": "BANCO_DE_CHILE_CL",
"debtor_id": "12345678-9"
},
"operational_payments": [
"8FD48186-8214-4062-8532-589930DDA37B"
],
"reconciliation_status": "reconciled",
"reconciliation_method": "automatic"
},
{
"entry_id": "58183FE9-78DE-4E02-971D-E4CD9EB3EF98",
"direction": "debit",
"amount": 999999,
"description": "PNOL 99999",
"booking_date": "2023-06-05",
"source_id": "D5CC7E2C-71D2-48F7-935E-9DEFCA1F4CA0",
"source_type": "account_statement",
"account_number": "CL9312345678901234567890",
"references": [
{
"reference_id": "4155DE70-7327-49F7-9C05-14C69B3F984E",
"reference_type": "charge"
}
],
"entry_details": {
"creditor_account": "9432958",
"creditor_fin_id": "BCI_CL",
"creditor_id": "19154443-9"
},
"reconciliation_status": "externally_reconciled",
"reconciliation_method": "manual"
}
]
}