Reading bank withdrawal
GET /api/public/v1/transactions/bank_withdrawals/:id
Returns one bank withdrawal. amount is the total debited from your account. The bank account paid, the payAmount sent, the fee and absorbFees are in included[] under transactionDetails. simplifiedState follows the Bank withdrawal status flow.
Headers
Content-Type
application/vnd.api+json
Authorization
Bearer <api_key>
Path Parameters
id
Bank withdrawal ID.
cURL
curl "https://api.sandbox.txn.io/api/public/v1/transactions/bank_withdrawals/22b9bcb8-2127-4a29-8398-b632c3c127f7" \
-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 withdrawal was created. Refer to the Date and time format page.
data.attributes.simplifiedState
string
Withdrawal status. One of pending, send_failed, completed, cancelled. See Transaction statuses.
data.attributes.transactionType
string
Transaction type. Always BankWithdrawalTransaction.
data.attributes.amount
string
Amount debited from the account. Negative for withdrawals.
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 withdrawal reference.
data.attributes.accountId
string
ID of the account the withdrawal was debited from.
data.relationships.transactionDetails
object
The bank withdrawal record. data.type is bankWithdrawalTransactions 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(bankWithdrawalTransactions)
object
The withdrawal record: what was sent to the bank, the fee, and the bank-side status. Its id equals data.id.
included[].type(bankWithdrawalTransactions).attributes.amount
string
Total debited from your account, in currency: payAmount plus fee. Positive here; data.attributes.amount carries the same value negated.
included[].type(bankWithdrawalTransactions).attributes.payAmount
string
Amount sent to the bank account. Equals the amount you requested when absorbFees is true, and the requested amount minus fee when it is false.
included[].type(bankWithdrawalTransactions).attributes.fee
string
Txn fee for the withdrawal, in currency, as configured for the bank account.
included[].type(bankWithdrawalTransactions).attributes.absorbFees
boolean
true: the fee is charged on top and the beneficiary receives the full requested amount. false: the fee is deducted from the amount sent.
included[].type(bankWithdrawalTransactions).attributes.currency
string
Currency of the bank account and of every amount in this entity. Equals data.attributes.currency.
included[].type(bankWithdrawalTransactions).attributes.reference
string
The reference you set at creation. Same as data.attributes.reference.
included[].type(bankWithdrawalTransactions).attributes.beneficiaryName
string
Beneficiary name of the bank account paid.
included[].type(bankWithdrawalTransactions).attributes.iban
string
IBAN of the bank account paid.
included[].type(bankWithdrawalTransactions).attributes.bankBic
string
BIC/SWIFT code of the beneficiary's bank. null when not registered on the bank account.
included[].type(bankWithdrawalTransactions).attributes.bankName
string
Name of the beneficiary's bank. null when not registered on the bank account.
included[].type(bankWithdrawalTransactions).attributes.simplifiedState
string
Withdrawal status. Same value as data.attributes.simplifiedState; see Bank withdrawal status flow.
included[].type(bankWithdrawalTransactions).attributes.state
string
Same value as simplifiedState, kept for compatibility.
included[].type(bankWithdrawalTransactions).attributes.paymentStatus
string
Processing status on the bank side. See Bank-side processing status.
included[].type(bankWithdrawalTransactions).attributes.approvalStatus
string
Approval-workflow status when an approval rule applied to the withdrawal: requested, approved, rejected or cancelled. null when no approval was required. See Bank-side processing status.
included[].type(bankWithdrawalTransactions).attributes.createdAt
string
When the withdrawal was created.
included[].type(bankWithdrawalTransactions).attributes.updatedAt
string
When the withdrawal last changed.
included[].type(bankWithdrawalTransactions).relationships.bankAccount
object
The bank account paid. data.type is bankAccounts; the entity is returned in included[].
included[].type(bankWithdrawalTransactions).relationships.account
object
The account debited. data.type is accounts; the entity is returned in included[].
included[].type(bankWithdrawalTransactions).relationships.author
object
Not expanded (meta.included is false).
included[].type(bankAccounts)
object
The bank account the funds were sent to, as returned by Reading bank account.
included[].type(bankAccounts).attributes.label
string
User-defined label for the bank account.
included[].type(bankAccounts).attributes.beneficiaryName
string
Name of the beneficiary on the bank account.
included[].type(bankAccounts).attributes.iban
string
Beneficiary IBAN.
included[].type(bankAccounts).attributes.bankBic
string
BIC/SWIFT code of the beneficiary's bank.
included[].type(bankAccounts).attributes.bankName
string
Name of the beneficiary's bank.
included[].type(bankAccounts).attributes.currencyCode
string
Account currency code. Refer to supported currencies.
included[].type(bankAccounts).attributes.createdAt
string
Timestamp when the bank account was created. Refer to the Date and time format page.
included[].type(bankAccounts).attributes.updatedAt
string
Timestamp when the bank account was last updated.
included[].type(accounts)
object
The account the withdrawal was debited from (included[].type(bankWithdrawalTransactions).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