Skip to main content
The User Credit Balances API is in preview. Preview APIs aren’t available in sandbox or production yet and can change before beta. Use these pages to plan your integration. You can’t call a preview API yet. Beta is planned for December 2026. See Versioning and backwards compatibility.
A user credit balance is the loan or line of credit you extend to one of your customers. You create one with POST /v2/user_credit_balances and read it with GET /v2/user_credit_balances/{id}.
A revolving user credit balance returns the same shape. Its terms holds only structure, the three rates, and, if you sent it, repayment.

Fields

The position blocks

All amounts are signed integers in minor units. 1500 is $15.00. Lead maintains amount_breakdown, earned_fees, rewards, dispute, and charge_off from the user credit transactions you post. You maintain past_due with PATCH. The User Credit Transaction Object page lists which user credit transaction types move each block.

amount_breakdown

earned_fees

earned_fees is the running total of fees already in amount_breakdown.fees that have been recognized as earned over the life of the user credit balance. You report each recognition with a fee_earned user credit transaction.
  • A fee user credit transaction charges the fee. It adds to amount_breakdown.fees and does not change earned_fees.
  • A fee_earned user credit transaction recognizes part of a fee already charged. It adds to earned_fees and does not change amount or amount_breakdown, because the fee is already counted there.
Do not add earned_fees to amount_breakdown.fees. That counts the same fee twice.

rewards

dispute

charge_off

past_due

The terms block

Send structure and all three rates on create. Rates are decimal fractions sent as strings, where "1" equals 100%. For example, "0.0999" is 9.99% and "1.5" is 150%. A rate can have up to 8 decimal places, for example "0.12345678" (12.345678%). Lead rejects a rate with more than 8 decimal places, such as "0.123456789", and does not round it. Lead does not permit negative values, scientific notation, thousands separators, or percent signs. Responses return each rate in canonical form, with trailing zeros removed: Lead returns "0.0900" as "0.09". Compare rates as numbers, not as strings.
All five non_revolving fields are required, including expected_finance_charge_amount, which is easy to miss.

terms.repayment

Create and update

POST /v2/user_credit_balances requires an Idempotency-Key header. The request body takes these fields from the object: user_account_id, name, currency, autopay_method, terms, and metadata. Leave out everything else. Lead sets it, and ignores it if you send it.
  • Lead validates the request against the parent user account in user_account_id. The user account must exist, be active, and have the credit_with_underwriting or credit_without_underwriting feature. If it is inactive or closed, or lacks a credit feature, Lead rejects the request.
  • user_account_id, name, currency, autopay_method, terms.structure, and all three rates in terms are always required.
  • The non_revolving fields in the terms block are required for non_revolving and rejected for revolving.
  • New user credit balances start in active with all amounts at zero.
  • Reusing an Idempotency-Key with the same body returns the original user credit balance. Reusing it with a different body returns a 422 with idempotency_request_mismatched.
PATCH /v2/user_credit_balances/{id} changes only the fields you send. Idempotency-Key is required on create and required on PATCH and the status endpoints. See Idempotency. You can change:
  • autopay_method and metadata. Send "metadata": null to clear it.
  • past_due and every field inside it.
  • terms.interest_rate, terms.effective_interest_rate, and terms.effective_apr.
  • terms.repayment, for any structure.
  • terms.expected_maturity_date and terms.duration, for non_revolving only.
PATCH has these limits:
  • You cannot change amounts other than past_due. Post a user credit transaction instead. Lead ignores an amount you send.
  • You cannot change name, currency, terms.structure, terms.max_funding_amount, or terms.expected_finance_charge_amount. Lead ignores these fields if you send them.
  • You cannot change status. Use the status endpoints.
  • You cannot update a closed or reporting_stopped user credit balance. Lead rejects the request. You can still update an inactive one.
  • If another request changed the user credit balance after yours was received, Lead returns a 409 with object_modified_concurrently. Retrieve the user credit balance and retry.

Coming from the Subledger Balance API

Most terms carry over. These are the fields that differ: