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.

EventFires when
loan.createdPreczn first records a loan for a merchant.
loan.updatedAn 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

FieldDescription
typeAlways loan. Identifies the payload kind.
merchantIdThe merchant the loan belongs to, prefixed mid_.
createdOnWhen the loan record was created, ISO 8601 UTC. May be absent, depending on the lender.
modifiedOnWhen the loan record last changed, ISO 8601 UTC. Use this to discard stale notifications.
loanThe loan object.

loan fields

FieldDescription
idPreczn's ID for the loan record, prefixed loan_. May be absent, depending on the lender.
tokenIdThe loan token that represents this loan, when one exists.
externalLoanIdThe lender's own ID for the loan. Use it when you reconcile directly with the lender.
brandThe lender, such as Greensky or Nelnet.
typeThe loan type: B2B2C for a loan to a merchant's customer, or B2B for a loan to the merchant.
statusThe loan's status, normalized by Preczn. See Loan statuses.
merchantNameThe merchant's name.
creditLimitTotal credit extended, in minor units.
availableCreditCredit available now, in minor units.
currentBalanceOutstanding balance, in minor units.
applicationDateWhen the borrower applied.
originationDateWhen the loan was originated.
merchantDrawdownPercentageFeeThe merchant's drawdown fee percentage, where the lender supplies it.
customerFirst, customerLastThe borrower's name, where the lender supplies it.
expirationDateWhen the loan or credit line expires. Webhook only.
stageFundingThresholdThe portion of the credit limit that can be drawn before the project is complete, in the lender's format. Webhook only.
customerStateThe 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 loan fields are present depends on the lender

Each lender supplies a different subset of these fields. Preczn omits a field that has no value rather than sending null or "", so the keys you receive vary by lender and by event. loan.id and data.createdOn can also be absent.

Match each webhook to your loan by loan.tokenId. A loan without a loan token carries loan.id instead. 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, and currentBalance follow the same convention as transaction amounts: 1500000 is $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.


Did this page help you?