Sync Coopelan debt to customer deeplink
API toolRecipe ToolsDeveloper ToolMarketingData ParserUtilities
What it does
When someone makes an API request with an account number, this automation fetches the debt from Coopelan and formats it. The customer uses the returned deeplink to view their debt details.
Who it's for
Finance teams who need to retrieve and display customer debt from Coopelan through an API.
How teams use this
Retrieve debt on demand via API
A partner system calls the API with an account number and receives a deeplink to the customer's debt in real time. No manual lookup is needed.
Route debt to customer portal
Embed the deeplink in a customer portal or email so the customer can view their Coopelan debt without leaving your platform. The flow stays the same.
Add payment status filter
Extend the Py Eval code to filter debt by payment status so only overdue or pending invoices are included in the deeplink. This requires a condition in the format step.
How it works
- Receive the account number. An API request arrives with the customer account number in real time, starting the search for debt information.
- Fetch debt from Coopelan endpoint. Py Eval runs a request with a body to Coopelan's endpoint because a standard HTTP connection cannot send a body with a GET request.
- Reformat debt as an array. Py Eval reformats the response since Coopelan returns debt as nested objects instead of an array, making it ready for iteration.
- Parse the debt data. Json Parser processes the reformatted data so each debt item can be sent downstream to create invoice records.
- Return deeplink or error. The automation returns either a deeplink to the debt details or an error message if Coopelan is unreachable or the account is not found.