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.
POST /v2/user_credit_balances and read it with GET /v2/user_credit_balances/{id}.
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
feeuser credit transaction charges the fee. It adds toamount_breakdown.feesand does not changeearned_fees. - A
fee_earneduser credit transaction recognizes part of a fee already charged. It adds toearned_feesand does not changeamountoramount_breakdown, because the fee is already counted there.
earned_fees to amount_breakdown.fees. That counts the same fee twice.
rewards
dispute
charge_off
past_due
The terms block
Sendstructure 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.
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, beactive, and have thecredit_with_underwritingorcredit_without_underwritingfeature. If it isinactiveorclosed, or lacks a credit feature, Lead rejects the request. user_account_id,name,currency,autopay_method,terms.structure, and all three rates intermsare always required.- The
non_revolvingfields in the terms block are required fornon_revolvingand rejected forrevolving. - New user credit balances start in
activewith all amounts at zero. - Reusing an
Idempotency-Keywith the same body returns the original user credit balance. Reusing it with a different body returns a422withidempotency_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_methodandmetadata. Send"metadata": nullto clear it.past_dueand every field inside it.terms.interest_rate,terms.effective_interest_rate, andterms.effective_apr.terms.repayment, for any structure.terms.expected_maturity_dateandterms.duration, fornon_revolvingonly.
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, orterms.expected_finance_charge_amount. Lead ignores these fields if you send them. - You cannot change
status. Use the status endpoints. - You cannot update a
closedorreporting_stoppeduser credit balance. Lead rejects the request. You can still update aninactiveone. - If another request changed the user credit balance after yours was received, Lead returns a
409withobject_modified_concurrently. Retrieve the user credit balance and retry.

