Create account application
Use case
In this example, we will review how to create a currency account (account application) with an external service provider.
Creating a currency account.
"accountTypeCode": "CURRENCY"
The external provider is LHV.
"accountTypeSetupCode": "EXTERNAL_VIRTUAL",
"serviceProviderCode": "LHV",
The name of the account holder is Trevor Harry Tuum.
"personName": "Trevor Harry Tuum"
Trevor is assigned to the GROUP_A customer group.
"customerGroupCode": "GROUP_A"
The standard price list is assigned to the account.
"priceListTypeCode": "STANDARD"
The account currency is EUR.
"currencyCode": "EUR"
The account interest rate is set to 10.
"accountInterestRate": 10
The account holder is a private person.
"personTypeCode": "P"
Sample API call
To create an account application, make the following API call.
https://account-api.sandbox.tuumplatform.com/api/v2/persons/{personId}/applications
Sample request
Below is an example request body of the API call for creating an account application.
{
"accountTypeCode": "CURRENCY",
"accountTypeSetupCode": "EXTERNAL_VIRTUAL",
"serviceProviderCode": "LHV",
"accountName": "My business account",
"personName": "Trevor Harry Tuum",
"residencyCountryCode": "GB",
"customerGroupCode": "GROUP_A",
"priceListTypeCode": "STANDARD",
"currencyCode": "EUR",
"accountInterestRate": 10,
"personTypeCode": "P"
}
Sample response
Below you find an example response body to the API call above.
Result
A new account application ID-1007
is created.
Last updated
Was this helpful?