Skip to main content

Get virtual receiving account statement

This let's you fetch a detailed statement of a particular currency virtual account.

Definition

URL
GET https://api-test.instarem.com:4803/api/v1/client/{clientId}/virtual-receiving-account-statement/{virtualReceivingAccountId}

Header Parameters:

ParameterDescriptionTypeRequired
authorizationAuthentication token.StringYes
content-typeThe Content-Type entity header is used to indicate the media type of the resource. Expected values could be application/json or multipart/form-data.StringYes

Path Parameters:

ParameterDescriptionTypeRequired
clientIdThis is the unique client ID generated by NIUM.StringYes
virtualReceivingAccountIdUnique virtual receiving account Id.StringYes

Query Parameters:

ParameterDescriptionTypeRequired
statusDefines the current state of the transaction and possible are: ALL, IN_PROCESS, APPROVED, REJECTED, REFUNDED.StringNo
startStart counter for the page.NumberNo
lengthNumber of records to be determined.NumberNo
transactionIdTransaction to be fetched.StringNo
currencyCodeCurrency for which you want to fetch the statement. For ex: USD, SGDStringNo
fromDatedate in YYYY-MM-DD format to be given to fetch transactions from that day. e.g. 2022-03-21StringNo
toDatedate in YYYY-MM-DD format to be given to fetch transactions till that day. e.g. 2022-03-22StringNo

Example Request:

curl --request get \\
--url "https://api-test.instarem.com:4803/api/v1/client/{clientId}/virtual-receiving-account-statement/{virtualReceivingAccountId}?status=&start=&length=&transactionId=&fromDate=&toDate=" \\
--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0OTgxMzQ4OTQsImRhdGEiOnsic3ViIjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWE1IiwiY2xpZW50IjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWExIn0sImlhdCI6MTQ5ODA0ODQ5NH0.pevwSDpk-JDNtVIpqFu_m0Xu1UnDVumrAYStcrxf8sM' \\
--header 'content-type: application/json'

Response:

{
"currencyCode": "USD",
"virtualReceivingAccountId": "62616d73-8e19-4522-8eac-e456a68b11ab",
"virtualAccountNumber": "907654315445678",
"accountNumber": "227961469275",
"transactionCountByStatus": {
"APPROVED": 1,
"REJECTED": 0,
"ALL": 3,
"IN_PROCESS": 1,
"REFUNDED": 1
},
"transactions": [
{
"transactionId": "32696a9a-a376-4687-87b0-443231a29dde",
"status": "IN_PROCESS",
"subStatus": "RFI_RAISED",
"content": "Transfer",
"statusDescription": "In process",
"transactionReferenceNumber": "0016IT8449488",
"payerBankCode": "BARCGB22XXX",
"payerBankId": "BARCGB22XXX",
"payerName": "SBI Remit Co. LTD",
"paymentDetail": "CITI",
"amount": 10000.12,
"paymentReceivedAt": "2019-08-06T00:00:00",
"payerAccountNumber": "HLFX11029100808072",
"paymentRequestId": "PR100799",
"currencyCode": "USD"
},
{
"transactionId": "b0a01cd7-23be-47bc-a86c-265f32715a01",
"status": "APPROVED",
"content": "PR100799",
"statusDescription": "Transaction Finance approved",
"transactionReferenceNumber": "I940OJHGFGSGAXXXSN",
"payerBankCode": "EASCGB22XXX",
"payerBankId": "EASCGB22XXX",
"payerName": "SBI Remit Co. LTD",
"paymentDetail": "CITI",
"amount": 111,
"paymentReceivedAt": "2021-02-05T22:49:24.310Z",
"payerAccountNumber": "BGYD609587665132860",
"paymentRequestId": "PR001089",
"currencyCode": "USD"
},
{
"transactionId": "31a01cd7-23be-47bc-a86c-265f32715a91",
"status": "REFUNDED",
"content": "PR103231",
"statusDescription": "Transaction amount is refunded to the payer",
"transactionReferenceNumber": "X212SASDSS",
"payerBankCode": "BASCGS11XX",
"payerBankId": "BASCGS11XX",
"payerName": "SBI Remit Co. LTD",
"paymentDetail": "CITI",
"amount": 2000,
"paymentReceivedAt": "2021-05-03T22:32:24.310Z",
"payerAccountNumber": "SAED5394723922",
"paymentRequestId": null,
"currencyCode": "USD"
}
]
}

Response Parameters:

ParameterDescriptionType
currencyCodeReturns currency.String
virtualReceivingAccountIdUnique virtual receiving account Id.String
virtualAccountNumberUnique bank account number for a particular currency.String
accountNumberReturns 12 digit account number generated by NIUMString
payerNameIt is the name of the payer who is currently tagged to the Virtual Receiving Account.String
transactionCountByStatus.APPROVEDStatus of the transactions APPROVED.Number
transactionCountByStatus.REJECTEDStatus of the transactions REJECTED.Number
transactionCountByStatus.ALLStatus of the transactions ALL.Number
transactionCountByStatus.IN_PROCESSStatus of the transactions IN_PROCESS.Number
transactionCountByStatus.REFUNDEDStatus of the transactions REFUNDEDNumber
transactions[n].transactionIdUnique uuid generated by NIUM.String
transactions[n].statusThis field defines the current status of the transaction and the value for this could be:
- IN_PROCESS
- REJECTED
- APPROVED
- ERROR
- REFUNDED
String
transactions[n].subStatusThis field defines the sub-status of the transaction and the value for this could be:

- RFI_RAISED
- RFI_RESPONDED
String
transactions[n].contentThis field holds any remittance information entered by the payment sender in the narrative field of their banking partner

NIUM recommends client to quote "paymentRequestId" in narrative

Example: PR100799
String
transactions[n].statusDescriptionIN_PROCESS: The payment has been received and is in NIUM queue for processing.

RFI_RAISED: A request for information or clarification for that transaction raised by NIUM team.

RFI_RESPONDED: When requested information/documents are provided by the client for an RFI.

APPROVED: The transaction that has been approved by NIUM team and money is updated in corresponding currency wallets.

REJECTED: The transaction is rejected by NIUM team.

REFUNDED: Transaction is refunded by NIUM team.
String
transactions[n].transactionReferenceNumberThis unique Id is given by the payment senders bank which is a unique reference number of that transaction.String
transactions[n].payerBankCodeBank code of the payers bank account from which the payment was made.String
transactions[n].payerBankIdBank ID of the payers bank account from which the payment was made.

(DEPRECATED)
String
transactions[n].payerNameIt is the name of the person who has made a payment in that particular virtual account.String
transactions[n].paymentDetailThis field defines banking service source.

Example: CITI , SEPA
String
transactions[n].amountAmount received.Number
transactions[n].paymentReceivedAtDefines the timestamp of the transaction in the following YYYY-MM-DD HH:MM:SS.UTC+ 00:00 offset.String
transactions[n].payerAccountNumberThe payer account number.String
transactions[n].paymentRequestIdPaymentRequestId will be labeled after successful reconciliation of incoming payment with payment request else the value will be null.String
transactions[n].currencyCodecurrencyCode represents the currency of the transactionString