Create account limit type
Use case
Here, we will create a single currency account limit type with the account scope.
Use case data
API parameters with values
The limit must be applicable on the account level.
"scopeTypeCode": "ACCOUNT"
The limit is active on a montly basis.
"periodTypeCode": "MONTHLY"
The limit is calculated per currency.
"calcTypeCode": "PER_CURRENCY"
The limit code that was generated in the previous call.
"limitCode": "NEW_ACCOUNT_LIMIT"
Sample API call
To create an account limit type, make the following call.
https://account-api.sandbox.tuumplatform.com/api/v1/limits/types
Sample request
Below is an example request body of the API call for creating an account and setting access rights.
{
"scopeTypeCode": "ACCOUNT",
"periodTypeCode": "MONTHLY",
"calcTypeCode": "PER_CURRENCY",
"limitCode": "NEW_ACCOUNT_LIMIT"
}
Sample response
Below you find an example response body to the API call above.
Result
A new single currency account limit type is created - ID-1002
. In the further API call, we will assign this limit type to an existing account and define the limit amount.
Last updated
Was this helpful?