Reading bank deposit
GET /api/public/v1/transactions/bank_deposits/:id
Returns one bank deposit: its amount and simplifiedState, explained in Bank deposit status flow, with the account it was credited to and the transfer details in included[].
Headers
Content-Type
application/vnd.api+json
Authorization
Bearer <api_key>
Path Parameters
id
Bank deposit ID.
cURL
curl "https://api.sandbox.txn.io/api/public/v1/transactions/bank_deposits/e3179a9a-8813-4e2e-9fa4-7de54192a7f1" \
-H 'Content-Type: application/vnd.api+json' \
-H 'Authorization: Bearer <api_key>'Response Body
data.id
string
Transaction ID.
data.type
string
Entity type returned. Always transactions.
data.attributes
object
Set of transaction attributes.
data.attributes.createdAt
string
Timestamp when the deposit was created. Refer to the Date and time format page.
data.attributes.simplifiedState
string
Deposit status. One of pending, on_hold, completed, cancelled. See Transaction statuses.
data.attributes.transactionType
string
Transaction type. Always BankDepositTransaction.
data.attributes.amount
string
Amount credited to the account.
data.attributes.currency
string
Currency code of the transaction.
data.attributes.balance
string
Account balance immediately after Txn processed this transaction. null when not applicable.
data.attributes.reference
string
Bank deposit reference.
data.attributes.accountId
string
ID of the account the deposit was credited to.
data.relationships.transactionDetails
object
The bank deposit record. data.type is bankDepositTransactions and data.id is the transaction's own ID; the entity is returned in included[].
data.relationships.account
object
Not expanded (meta.included is false). Use data.attributes.accountId, or the accounts entity in included[].
data.relationships.author
object
Not expanded (meta.included is false).
included[].type(bankDepositTransactions)
object
The transfer as received from the bank. Its id equals data.id.
included[].type(bankDepositTransactions).attributes.amount
string
Amount credited, in currency. Same as data.attributes.amount.
included[].type(bankDepositTransactions).attributes.currency
string
Currency of the transfer. Equals the account currency and data.attributes.currency.
included[].type(bankDepositTransactions).attributes.reference
string
The payment reference the payer quoted, which is how the transfer was matched to your account: its bankReference. Same as data.attributes.reference.
included[].type(bankDepositTransactions).attributes.payerName
string
Name of the payer, as reported by the bank. null when the bank does not provide it.
included[].type(bankDepositTransactions).attributes.payerIban
string
IBAN the transfer came from. null when the bank does not provide it.
included[].type(bankDepositTransactions).attributes.payerBic
string
BIC/SWIFT code of the payer's bank. null when the bank does not provide it.
included[].type(bankDepositTransactions).attributes.payerAddress
string
Address of the payer. null when the bank does not provide it.
included[].type(bankDepositTransactions).attributes.simplifiedState
string
Deposit status. Same value as data.attributes.simplifiedState; see Bank deposit status flow.
included[].type(bankDepositTransactions).attributes.state
string
Internal Txn state. Ignore this field and use simplifiedState.
included[].type(bankDepositTransactions).attributes.createdAt
string
When Txn recorded the transfer.
included[].type(bankDepositTransactions).attributes.updatedAt
string
When the deposit last changed.
included[].type(bankDepositTransactions).relationships.account
object
The account credited. data.type is accounts; the entity is returned in included[].
included[].type(bankDepositTransactions).relationships.author
object
Not expanded (meta.included is false).
included[].type(accounts)
object
The account the deposit was credited to (included[].type(bankDepositTransactions).relationships.account). Same fields as Reading account; the ones most relevant here are listed below.
included[].type(accounts).attributes.currencyCode
string
Account currency. Equals data.attributes.currency.
included[].type(accounts).attributes.label
string
Account label.
included[].type(accounts).attributes.master
boolean
true for the master account, false for a subaccount.
included[].type(accounts).attributes.bankReference
string
The bank deposit reference of the account.
included[].type(accounts).attributes.balance
string
Account balance at the time of the request.
included[].type(accounts).attributes.currencyType
string
Always fiat here.
included[].type(accounts).relationships
object
company, networks and txnBankCredentials: not expanded (meta.included is false).
Response
Last updated