Create lookup translation
You can create or update the lookup code translation for a language using the language code.
Use case
Here we will create a translation for the lookup code DECLINED.
The first path parameter is the entity name (in this case, LOAN.LOAN_APPLICATION).
"...entity/LOAN.LOAN_APPLICATION..."
The second path parameter is the existing lookup type code (in this case, STATUS).
"...lookup-type/STATUS/..."
The third path parameter is the lookup code for which we want to create or update the translation (in this case, DECLINED).
"../DECLINED/translation..."
The body consists of the language code and the translation text.
{
"languageCode": "en",
"translation": "Loan application declined"
}
Sample API call
To create the translation, use the following endpoint:
https://lookup-api.sandbox.tuumplatform.com/api/v1/entity/LOAN.APPLICATION/lookup-type/STATUS/lookup/DECLINED/translation
Sample request
The sample request body is as follows:
{
"languageCode": "en",
"translation": "Loan application declined"
}
Sample response
Below you will find the response to the sample request:
Result
We have created a translation for the DECLINED
lookup code. You can also update the translation using the same endpoint.
Last updated
Was this helpful?