All pages
Powered by GitBook
1 of 4

Loading...

Loading...

Loading...

Loading...

Remove default lookup code

Use case

We have created lookup codes for the status of loan applications: CREATED, ACCEPTED, and DECLINED. We have marked the value CREATED as default.

Here we will remove the default value from the list. Keep in mind that the lookup code is not removed, the default code is unmarked as default.

Use case data
API parameters with values

The first path parameter is the entity name (in this case, LOAN.LOAN_APPLICATION).

The second path parameter is the lookup type code (in this case, STATUS).

Sample API call

To remove the default value, use the following endpoint:

https://lookup-api.sandbox.tuumplatform.com/api/v1/entity/LOAN.LOAN_APPLICATION/lookup-type/STATUS/remove-default

Learn more about the remove default lookup code endpoint in the Tuum developer portal.

Sample response

Below you will find the response to the sample request:

Response
{
    "errors": null,
    "validationErrors": null,
    "data": null
}

Result

The lookup code CREATED has been unmarked as the default value.

"...entity/LOAN.LOAN_APPLICATION..."
"...lookup-type/STATUS..."

Delete lookup code

Use case

We have created lookup codes for the status of loan applications: CREATED, ACCEPTED, and DECLINED.

Here we will delete the value DECLINED from the list of lookup codes.

Use case data
API parameters with values

The first path parameter is the entity name (in this case, LOAN.LOAN_APPLICATION).

The second path parameter is the lookup type code (in this case, STATUS).

The third path parameter is the lookup code that you want to delete (in this case, DECLINED).

Sample API call

To delete the lookup code, use the following endpoint:

https://lookup-api.sandbox.tuumplatform.com/api/v1/entity/LOAN.LOAN_APPLICATION/lookup-type/STATUS/lookup/DECLINED

Learn more about the delete lookup code endpoint in the Tuum developer portal.

Sample response

Below you will find the response to the sample request:

Response
{
    "errors": null,
    "validationErrors": null,
    "data": null
}

Result

The lookup code DECLINED has been deleted from the list of lookup values for the status of loan applications.

"...entity/LOAN.LOAN_APPLICATION..."
"...lookup-type/STATUS..."
"...lookup/DECLINED"

Manage lookup values

You can manage the lookup values in the following ways:

  • Mark a lookup code as default for the particular lookup type code.

  • Remove the default lookup code.

  • Delete a lookup code along with the translations.

In this section, we will manage the lookup codes for the loan module.

You can only make these changes for the lookup codes that you create.

Mark lookup code as default

Use case

We have created lookup codes for the status of loan applications: CREATED, ACCEPTED, and DECLINED.

Here we will mark the value CREATED as default.

Use case data
API parameters with values

The first path parameter is the entity name (in this case, LOAN.LOAN_APPLICATION).

The second path parameter is the lookup type code (in this case, STATUS).

The third path parameter is the lookup code that we want to mark as default (in this case, CREATED).

Sample API call

To mark the lookup as default, use the following endpoint:

https://lookup-api.sandbox.tuumplatform.com/api/v1/entity/LOAN.LOAN_APPLICATION/lookup-type/STATUS/lookup/CREATED/mark-default

Learn more about the mark lookup code as default endpoint in the Tuum developer portal.

Sample response

Below you will find the response to the sample request:

Response
{
    "errors": null,
    "validationErrors": null,
    "data": null
}

Result

The lookup code CREATED has been marked as default.

"...entity/LOAN.LOAN_APPLICATION..."
"...lookup-type/STATUS..."
"...lookup/CREATED/...