Skip to main content

Allocate Virtual Receiving Account

Auto Allocate virtual receiving accounts for per currency Approach.

Definition

URL
POST https://api-test.instarem.com:4803/api/v1/client/{clientId}/virtualReceivingAccount/autoAllocation

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

Example Request:

curl --location --request POST 'https://api-test.instarem.com:4803/api/v1/client/{clientId}/virtualReceivingAccount/autoAllocation' \\
--header 'Content-Type: application/json' \\
--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NjUyMTA2OTgsImRhdGEiOnsiY2xpZW50IjoiNjJjODI4MzBmOTdmNjgzNDBhZDkyMzMyIiwiY3JlZElkIjoiNjJjODI4MzBmOTdmNjgxNTUxZDkyMzM4Iiwic3ViIjoiNjJjODI4MzBmOTdmNjgwM2NkZDkyMzM5In0sImlhdCI6MTY2NTEyNDI5OH0.Sj5uQJrr-IwHrelTYRirOy5d09NDpFEIv_cvhhHlzWw' \\
--data-raw '{
"currencyCode": "HKD",
"vraApproach": "PER_CURRENCY",
"label": "LOCAL",
"retryRequest": false,
"payerId": "393af51e-b2b1-4e65-85ea-9fb256bdb0d8"
}'

Body Parameters:

ParameterDescriptionTypeRequired
currencyCodeCurrency code. This is a 3-digit currency code.StringYes
vraApproachVRA Approach can be PER_CURRENCY , PER_PAYER.StringNo
labelThe type for virtual receiving account used for VRA allocation and value for this could be LOCAL or GLOBAL or LOCAL,GLOBAL.StringYes
retryRequestRetry for failed request currencies EUR, GBP and AUD send this value as true else send it as false.(DEPRECATED)BooleanNo
payerIdThis is the unique id for the Payer generated by Nium. This is required only if you want to allocate virtual account to the payer.StringConditional

Response:

{
"virtualReceivingAccountId": "1b1542f8-c5b2-484d-b0c4-c78710dd84a3",
"virtualReceivingAccount": "9675538220127460",
"bankAccountName": "NIUM PTE LTD",
"bankName": "CITIBANK NA",
"bankAddress": "21-00, Asia Square Tower 1, 5 Marina View Singapore,Post_Zip code - 018960",
"bankRoutingDetails": {
"routing_code_1": "SWIFT",
"routing_value_1": "CITISGSG"
},
"status": "COMPLETED",
"message": "VRA allocated successfully",
"virtualReceivingAccountRequestId": "10791607420958660",
"accountNumber": "227961469275"
}

Response Parameters:

ParameterDescriptionType
virtualReceivingAccountIdUnique uuid generated by ID generated by Nium.String
virtualReceivingAccountVirtual Receiving Account Number.String
bankAccountNameName of the Beneficiary.String
bankNameName of the Bank.String
bankAddressAddress of the Bank.String
bankRoutingDetails.routing_code_1Routing code type. Example: IFSC for India, SORT CODE for UK, ABA CODE for USA, BIC CODE for Europe.String
bankRoutingDetails.routing_value_1The routing code value. Example: SBIN0000058 for IFSC Code, 259087 for SORT CODE, 111000025 for ABA CODE, LIABLT20001 for BIC CODE.String
bankRoutingDetails.routing_code_2Routing code type. Example: IFSC for India, SORT CODE for UK, ABA CODE for USA, BIC CODE for Europe.String
bankRoutingDetails.routing_value_2The routing code value. Example: SBIN0000058 for IFSC Code, 259087 for SORT CODE, 111000025 for ABA CODE, LIABLT20001 for BIC CODE.String
statusStatus of the virtual receiving account request. Status can be REQUESTED, COMPLETED.String
messageThis message will have additional information for virtual receiving account request.String
virtualReceivingAccountRequestIdWhen the virtual account is in requested status, Nium generates unique request id for each request. Applicable for the currencies: EUR, GBP, and AUD. For remaining currencies this field will be blank.String
accountNumberReturns 12 digit account number generated by NiumString