Skip to main content

LOS Action Callback

Get notified as soon as LenderPrice finishes a loan action you requested. This page covers setup in LenderPrice, optional token authentication, and the message your system receives. Setup takes about 10 minutes.

How It Works​

When a job you sent to LenderPrice finishes, for example an addLockEvent, LenderPrice sends the result to your callback URL as an HTTP POST. Your system no longer needs to poll Check Queue Item for the outcome.

  • For companies with LOS Integration set to None. LenderPrice does not push results into an LOS for you, so the callback carries them instead.
  • You choose the actions. Only the action types you select send a callback.
  • Sent once, right away. Each callback is sent a single time, as soon as the job finishes. It is not retried.
  • Authentication is optional. When on, LenderPrice gets a token from your auth endpoint and sends it as a Bearer token.

Before You Start​

You need a LenderPrice user with access to Config for your company, and the items below.

What you needWhenExample
Callback URL that accepts a JSON POST over HTTPSAlwayshttps://api.yourcompany.com/lenderprice/callback
The action types to be notified aboutAlwaysADD_LOCK_EVENT
Auth URL that returns a token for a username and passwordWith authenticationhttps://api.yourcompany.com/oauth/token
Username and password for that auth URLWith authenticationA service account for LenderPrice
Token path, if the token is not in access_tokenWith authenticationdata.token

Set Up the Callback​

Step 1. Open the Event Callback settings​

Click Config in the top menu. In the Configuration Sitemap, find LOS Integrations and check that it shows None. Then click Event Callback.

LOS Integrations set to None, with the Event Callback link

If LOS Integrations shows a different LOS, contact LenderPrice support before you continue.

Step 2. Turn the callback on​

The LOS Action Callback tab opens. Tick Enabled to show the settings.

The LOS Action Callback tab before it is enabled

Step 3. Enter your callback URL and choose actions​

  1. Enter your endpoint in URL Callback.
  2. Under Actions, select each action type that should send a callback.
  3. Leave Require Authentication unticked if your endpoint does not need a token.
  4. Click Save. A green Configuration saved message confirms it.

Callback enabled with a URL and the ADD_LOCK_EVENT action selected

Step 4. Turn on authentication (optional)​

Tick Require Authentication, then fill in URL Auth, Auth Username, Auth Password and, if needed, Token Path. Click Save. See Authentication for how the token is used.

Callback with authentication turned on

Settings reference​

SettingWhat it does
EnabledTurns callbacks on or off for your company.
Require AuthenticationWhen ticked, LenderPrice gets a token before each callback. Off by default.
URL AuthYour token endpoint. Shown only with authentication on.
Auth Username / Auth PasswordCredentials sent to URL Auth. Shown only with authentication on.
Token PathWhere the token sits in the auth response, in dot notation. Blank means access_token. Used only with authentication on.
URL CallbackYour endpoint that receives each callback.
ActionsThe action types that send a callback.

Authentication​

Authentication is off by default. Turn it on if your callback endpoint requires a Bearer token. LenderPrice then requests a fresh token before every callback.

1. LenderPrice requests a token with a POST to your URL Auth:

{
"username": "<Auth Username>",
"password": "<Auth Password>"
}

2. Your auth endpoint returns the token. LenderPrice reads access_token by default:

{
"access_token": "eyJhbGciOi...",
"expires_in": 3600
}

If the token is nested, set Token Path in dot notation. For example, data.token reads {"data": {"token": "..."}}.

3. LenderPrice sends the callback with the header Authorization: Bearer <token>.

If the token request fails, or no token is found at the token path, the callback is not sent.

With authentication off, callbacks are sent without an Authorization header and Token Path is ignored. Turning authentication off also clears the saved auth URL, username and password.

The Callback Message​

Each callback is one HTTP POST to your URL Callback with a JSON body.

Headers

HeaderValue
Content-Typeapplication/json
Acceptapplication/json
AuthorizationBearer <token>, only with authentication on

Example body

{
"eventId": "65a1b2c3d4e5f6a7b8c9d030",
"type": "ADD_LOCK_EVENT",
"date": "2026-11-02T14:05:31Z",
"losLoanId": "LN-100245",
"lpLoanId": "LP-1001",
"status": "Success",
"lockStatus": "Locked",
"message": ""
}

Fields

FieldTypeDescription
eventIdstringID of the job this callback reports on. This is not the queueItemId returned by addLockEvent; match on losLoanId or lpLoanId plus type.
typestringThe action type, for example ADD_LOCK_EVENT.
datestringWhen the callback was sent, in ISO 8601 format (UTC).
losLoanIdstringYour loan ID, as you sent it.
lpLoanIdstringThe LenderPrice loan number.
statusstringSuccess or Failed.
lockStatusstringThe loan's lock status after the action, including any automatic status change that followed.
messagestringWhy the job failed. Empty on success.

Your response. Return any 2xx status to acknowledge the callback. LenderPrice does not read the response body.

Troubleshooting​

SymptomWhat to check
No callbacks arriveEnabled is ticked, URL Callback is filled in, and the action type is selected under Actions. Click Save after any change.
Callbacks stopped after turning on authenticationURL Auth is filled in, and your auth endpoint returns a token at access_token or at your Token Path.
Your endpoint returns 401 UnauthorizedAuthentication is off, so no Authorization header is sent. Tick Require Authentication and fill in the auth settings.
A callback was missed while your endpoint was downCallbacks are sent once and are not retried. Use Check Queue Item for the outcome, or contact support with the eventId or loan number.
status is FailedThe message field explains why the job failed.

For anything else, contact LenderPrice support with your company name, the loan number and the time of the action.

See Also​