Skip to content
Company Limit Setting

Reset Company Credit Config

Reset the company-level credit configuration, overwriting the company total credit limit, total financing limit, and related warning thresholds.

Request parameters

  • Required: credit_currency (credit currency), cp_credit_total (company total credit limit), cp_total_finance (company total financing limit), cp_credit_used_warning (credit-used warning threshold), cp_total_finance_used_warning (financing-used warning threshold).
  • Optional: audit_frontend_resource (caller-provided audit context).
  • See the individual field descriptions for each field's format, allowed values, and business meaning.

Risk warning

This changes the real company-level credit configuration and directly affects available credit and financing limits. Verify the currency and all amounts before calling.

Result

On success, the company credit configuration is reset; the resulting state and returned data follow the 200 response definition.

POSThttps://b-api.lbkrs.com/risk/v1/company_credit_cfg/reset_apply

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Request body application/json

credit_currencystringrequired

Taken from the credit currency of the record currently being edited; not editable in the dialog.

cp_credit_totalnumberrequired

This field is required.

cp_total_financenumberrequired

This field is required.

cp_credit_used_warningnumberrequired

This field is required.

cp_total_finance_used_warningnumberrequired

At most a 19-digit integer; the client performs length validation.

audit_frontend_resourceobject

Audit-trail field; records the original record content and $action=edit before submission, used for comparison display in the approval ticket.

Responses

HTTP 200The request was processed successfully. The response data does not contain additional business fields.
Standard response envelopecodemessagedata
dataobjectdata structure
ticket_idstring

Ticket id

HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs