Create ValueLink order from loan collateral

Recipe ToolsDeveloper ToolAPI IntegrationMarketing

What it does

When someone calls this automation via a function, it retrieves an authentication token and transforms loan and collateral data into JSON. The system creates a ValueLink order via HTTP and returns the result to the caller.

Who it's for

Finance teams who need to create ValueLink orders from loan and collateral information programmatically.

How teams use this

Automate collateral processing from loan data

Transform loan and collateral details into a ValueLink order without manual data entry. The system handles JSON conversion and customer lookup automatically.

Integrate with loan origination systems

Call this automation from a loan origination platform so collateral is processed in ValueLink as soon as a loan is created. The flow stays the same across different loan systems.

Add validation before order creation

Include a condition to check that the customer ID exists and the collateral amount meets a minimum threshold before the ValueLink order is created. Only valid orders proceed.

How it works

  1. Receive the function call. A function call arrives with loan and collateral details that need to be processed in ValueLink.
  2. Retrieve authentication token via HTTP. Call the Rest API to get an authentication token so the system can authenticate with ValueLink for the order creation.
  3. Convert loan and collateral to JSON. Execute Python code to transform the loan object and collateral data into JSON format, extract the customer ID, and clean the phone number for ValueLink.
  4. Send ValueLink order via HTTP. Call the Rest API to send the transformed JSON data to ValueLink, create the order, log the result, and return the outcome to the caller.