Loan webhook payloads
Payload reference for loan.created and loan.updated, and how they differ from drawdown transactions.
Loan webhooks tell you about the lifecycle of a loan, whether the lender lent to a merchant or to a merchant's customer: when Preczn first records the loan, and when its status or balances change. They're separate from loan transactions. Drawing funds against a loan produces a drawdown transaction, which sends a transaction event instead. See Transaction webhook payloads.
| Event | Fires when |
|---|---|
loan.created | Preczn first records a loan for a merchant. |
loan.updated | An existing loan's details, status, or balances change. |
Both events share the same data shape. For every event you can subscribe to, see Webhook events.
Payload
data is an envelope that carries the loan and the merchant it belongs to.
{
"id": "{notificationId}",
"webhookId": "{webhookId}",
"eventType": "loan.updated",
"data": {
"type": "loan",
"merchantId": "{merchantId}",
"createdOn": "2026-03-04T14:22:10Z",
"modifiedOn": "2026-07-18T09:41:55Z",
"loan": {
"id": "{loanId}",
"tokenId": "{tokenId}",
"brand": "Greensky",
"type": "B2B2C",
"status": "Active",
"merchantName": "{merchantName}",
"externalLoanId": "{externalLoanId}",
"creditLimit": 1500000,
"availableCredit": 1250000,
"currentBalance": 250000,
"applicationDate": "2026-03-01T00:00:00Z",
"originationDate": "2026-03-04T00:00:00Z",
"expirationDate": "2031-03-04T00:00:00Z"
}
}
}Envelope fields
| Field | Description |
|---|---|
type | Always loan. Identifies the payload kind. |
merchantId | The merchant the loan belongs to, prefixed mid_. |
createdOn | When the loan record was created, ISO 8601 UTC. May be absent, depending on the lender. |
modifiedOn | When the loan record last changed, ISO 8601 UTC. Use this to discard stale notifications. |
loan | The loan object. |
loan fields
loan fields| Field | Description |
|---|---|
id | Preczn's ID for the loan record, prefixed loan_. May be absent, depending on the lender. |
tokenId | The loan token that represents this loan, when one exists. |
externalLoanId | The lender's own ID for the loan. Use it when you reconcile directly with the lender. |
brand | The lender, such as Greensky or Nelnet. |
type | The loan type: B2B2C for a loan to a merchant's customer, or B2B for a loan to the merchant. |
status | The loan's status, normalized by Preczn. See Loan statuses. |
merchantName | The merchant's name. |
creditLimit | Total credit extended, in minor units. |
availableCredit | Credit available now, in minor units. |
currentBalance | Outstanding balance, in minor units. |
applicationDate | When the borrower applied. |
originationDate | When the loan was originated. |
merchantDrawdownPercentageFee | The merchant's drawdown fee percentage, where the lender supplies it. |
customerFirst, customerLast | The borrower's name, where the lender supplies it. |
expirationDate | When the loan or credit line expires. Webhook only. |
stageFundingThreshold | The portion of the credit limit that can be drawn before the project is complete, in the lender's format. Webhook only. |
customerState | The state in the borrower's address. Webhook only. |
Some lenders send expirationDate, stageFundingThreshold, and customerState in loan webhooks. Get Token, Get Loans, and Get Loan don't return them.
Which
loanfields are present depends on the lenderEach lender supplies a different subset of these fields. Preczn omits a field that has no value rather than sending
nullor"", so the keys you receive vary by lender and by event.loan.idanddata.createdOncan also be absent.Match each webhook to your loan by
loan.tokenId. A loan without a loan token carriesloan.idinstead. Treat every other field as optional, read fields with null-safe accessors, and ignore keys you don't recognize.
Amounts are in minor units
creditLimit,availableCredit, andcurrentBalancefollow the same convention as transaction amounts:1500000is $15,000.00, not $1,500,000.00.
FAQ
Should I use loan.updated or the drawdown transaction event to track spending?
Use transaction events for the movement of money and loan events for the state of the loan. A drawdown produces a drawdown transaction, which tells you a charge occurred, its amount, and whether it was approved.
loan.updated tells you the resulting loan state: the new currentBalance and availableCredit. Because ordering between the two isn't guaranteed, don't derive a balance by applying transaction amounts yourself. Take the balance from the loan payload, and treat it as authoritative as of its modifiedOn.
What status values can loan.status take?
See Loan statuses for every value and for how to handle a value you don't recognize.
Is loan.created guaranteed to arrive before loan.updated for the same loan?
No. Ordering isn't guaranteed for any webhook. Your handler should accept a loan.updated for a loan it hasn't seen before and treat it as an upsert rather than erroring on a missing record.
Are loan webhooks available for every processor?
No. They apply only to lending connections, so a platform with no lending connections never receives them. Subscribing is harmless if you aren't live with a lender yet. The subscription stays quiet.
Updated 11 days ago
