Update credit status
Updates the credit status and outstanding principal of a guarantee.
Business rules
- You cannot update a credit that:
- already has a claim or is in the “claim guarantee” step, or
- has a guarantee in a terminal state (CLOSED, CANCELED, NOVATED, or REVOKED).
creditPrincipalOutstanding and creditLastPaymentDate when the outstanding balance has changed or when the credit status has changed (e.g., to DELINQUENT, CLAIM_GUARANTEE, etc.).-
Outstanding balance (
creditPrincipalOutstanding):- Cannot be higher than the last recorded outstanding balance (when there is a previous outstanding balance recorded).
- Cannot be higher than the original loan amount.
- Cannot be negative.
-
Last payment date (
creditLastPaymentDate):- If you provide it, it must be after the day the loan was disbursed.
- If a last payment was already recorded, the new date cannot be earlier than the previously recorded date.
- It cannot be a future date.
-
Coupled fields rule (both-or-none):
- If you provide
creditLastPaymentDate, you must also providecreditPrincipalOutstanding. - If you provide
creditPrincipalOutstanding, you must also providecreditLastPaymentDate.
- If you provide
-
Revoked status (
REVOKED):- Only allowed when no payments have been reported on the credit (i.e., the outstanding principal equals the original loan amount).
-
Update frequency:
- You can only update the credit status once per calendar day (evaluated in the license timezone).
Guarantee Value (guaranteeValue)
This field is required when your license is configured with variable portfolio premiums paid by installment amount. Specifically, all four conditions must be true:
| License field | Required value |
|---|---|
type | FIRST_LOSS (1) |
installmentsEnabled | true |
isPremiumReportedByCollections | true |
installmentStrategy | INSTALLMENT_AMOUNT |
- You must include
guaranteeValuein every credit status update. guaranteeValuecannot be negative regardless of the status.- The reported value represents the premium amount for the current period and will be accumulated in
pendingPremiumsValueuntil it is collected through payment consolidation.
guaranteeValue is ignored and can be omitted.
For a full list of error codes, causes, and resolution steps, see Credit Status Error Codes.Authorizations
Body
New credit status to set for the guarantee.
CURRENT, DELINQUENT, CLAIM_GUARANTEE, NOVATED, PAID, REVOKED Outstanding principal amount of the credit as of the borrower’s last payment date.
x >= 0Last payment date (ISO 8601).
The premium amount collected by the client for the current billing cycle. Required when ALL of the following license conditions are met:
license.type=FIRST_LOSS(1)license.installmentsEnabled=truelicense.isPremiumReportedByCollections=truelicense.installmentStrategy=INSTALLMENT_AMOUNT
Validation rules:
- Cannot be negative regardless of status.
When not required by the license configuration, this field is ignored.
x >= 0Response
Credit status updated
Unique identifier of the guarantee.
Numeric identifier assigned to the guarantee token.
Maximum amount payable if the linked loan defaults. For guarantees created under FIRST LOSS licenses (license.type = FIRST_LOSS), coverage depends exclusively on the amount the user has in their own reserve fund (wallet).
Date and time when the credit was disbursed.
Date and time when a claim was registered for this guarantee (if any).
Guarantee due date.
0=PENDING_ACTIVATION, 1=VALIDATING_PREMIUM_PAYMENT, 2=COVERING, 3=PENDING_CLAIM, 4=CLAIM_APPROVED, 5=PAYING_GUARANTEE, 6=CLOSED, 7=CLAIM_REJECTED, 8=CANCELED, 9=NOVATED, 10=REVOKED
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 0=CURRENT, 1=DELINQUENT, 2=CLAIM_GUARANTEE, 3=NOVATED, 4=PAID, 5=REVOKED
0, 1, 2, 3, 4, 5 Timestamp of the last update to creditStatus.
Outstanding principal amount of the credit as of the borrower’s last payment date.
Date and time of the last credit payment (if any).
0=PENDING, 1=PROCESSING, 2=PAID
0, 1, 2 Premium amount charged for the guarantee (monetary value).
Borrower or principal name associated with the credit.
Date and time when the loan payment is/was completed by the borrower.
Original loan principal amount linked to this guarantee.
0 = SURETY, 1 = FIRST_LOSS. License type under which this guarantee was created.
0, 1 Percentage applied to the loan amount to compute the premium.
Percentage of the principal amount that is covered by the guarantee. For guarantees created under FIRST LOSS licenses (license.type = FIRST_LOSS), coverage is equal the loan amount but it depends exclusively on the amount the user has in their own reserve fund (wallet).
Unique credit reference in your system used to identify the guarantee.
Indicates if this guarantee results from a novation of a prior guarantee.