Fetch Transaction
Get details of a transaction made from the virtual bank account.
Overview
Fetch a specific transaction from a virtual bank account by passing in the account_number
and transaction_id
.
Problem
- Not able to view the details of a transaction made on the virtual bank account.
Solution
- API to provide the transaction details and status for the given transaction ID.
Endpoint
HTTP Method | Resource |
---|---|
GET | /tax-payment/accounts/{account_number}/transactions/{transaction_id} |
Request
Follow the below guidelines to pass the transaction ID & account number to get transaction details.
Path Parameter
Param | Type | Description | Example |
---|---|---|---|
account_number | string | Virtual bank account number for which you want the transaction. | HEY564578321596 |
transaction_id | string | Transaction_id for the transaction you want details for | 58sdKG-12e4-5d58-8c4s5654sw6898 |
Sample CURL Request
curl --request GET \
--url https://api.sandbox.co.in/tax-payment/accounts/HEY564578321596/transactions/58sdKG-12e4-5d58-8c4s5654sw6898 \
--header 'Accept: application/json' \
--header 'Authorization: xxxxxxxxxxxxxxx' \
--header 'x-api-key: xxxxxxxxxxxxxxxxxx'
Test Environment Not Available
Response
The API responds back with the Transaction Entity. An example response is shown below.
{
"code": 200,
"timestamp": 1631095323168,
"transaction_id": "8831d466-6fe7-48ed-b478-7d1cb4e92572",
"data": {
"@entity": "transaction",
"id": "58sdKG-12e4-5d58-8c4s5654sw6898",
"payer": {
"@entity": "payer",
"name": "John",
"bank_account": {
"@entity": " bank_account",
"account_number": "HEYSBX********82",
"ifsc": "ICIC0000103"
},
"upi_id": null
},
"payee": {
"@entity": "payee",
"name": "Doe",
"bank_account": {
"@entity": " bank_account",
"account_number": "265680056",
"ifsc": "HDFC0000102"
},
"upi_id": null
},
"status": "Successful",
"description": "Test Transaction",
"amount": 100,
"mode": "NEFT",
"bank_transaction_id": "ICIC6564685",
"type": "Debit",
"notes": {},
"transaction_time": 16373968890
}
}
Response Caching
Response caching is not available for this API. Learn more about our response caching mechanism here
Wallet Charges
Since Fetch Transaction API is not a Paid API, no wallet charge will take place.
Versioning
This API is currently in major version 1.0. Refer to our versioning policies here
Updated 5 months ago