Skip to content
Company Limit Setting

Reset Company Credit Config

Resets the company-level credit configuration. This operation changes live company credit settings.

Request parameters

  • Required: credit_currency (Credit Currency), cp_credit_total (Company Total Credit Limit), cp_total_finance (Company Total Finance Limit), cp_credit_used_warning (Credit Used Warning Threshold), cp_total_finance_used_warning (Finance Used Warning Threshold)
  • Optional: audit_frontend_resource (Audit Context)
  • See each field for its format, allowed values, default behavior, and business meaning.

Result

On success, the endpoint completes the described business operation. See the 200 response schema for returned data.

POSThttps://b-api.longbridge.xyz/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

Specifies Company Total Credit Limit. This field is required.

cp_total_financenumberrequired

Specifies Company Total Finance Limit. This field is required.

cp_credit_used_warningnumberrequired

Specifies Credit Used Warning Threshold. 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

No nested fields

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