A method and device for updating available credit, an electronic device, and a storage medium

By calculating and updating a user's current used credit limit and the latest credit limit, the problem of data inconsistency caused by credit limit reduction in the financial system is solved, and fast and accurate credit limit adjustment is achieved.

CN123181118APending Publication Date: 2026-11-27DUXIAOMAN TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611319308.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

When a user's credit limit is reduced, the existing financial system directly adjusts the current available credit limit to 0, which disrupts the consistency of multiple credit limit data. Furthermore, the reduction process is lengthy and cannot be completed in a timely manner.

Method used

By obtaining the target user's current credit limit and available credit limit, calculating the currently used credit limit, determining the latest available credit limit based on the latest credit limit, updating the available credit limit according to the corresponding credit limit status saving method, and accurately updating it in conjunction with repayment events.

Benefits of technology

While quickly reducing user credit limits, it ensures that data consistency between multiple credit limits is not compromised, thus avoiding a lengthy credit limit reduction process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181118A_ABST
    Figure CN123181118A_ABST
Patent Text Reader

Abstract

The application provides a method and device for updating available credit, electronic equipment and storage medium, and relates to the technical field of data processing. In the application, in response to a credit reduction request for a target user, the current credit limit and the current available credit of the target user are obtained, and the current used credit of the target user is obtained based on the current credit limit and the current available credit. Based on the current used credit and the latest credit limit carried by the credit reduction request, the latest available credit is determined. The latest available credit is saved according to the credit state saving mode corresponding to the latest available credit, and the current available credit is updated based on the latest available credit and the current repayment event of the target user. In this way, the credit reduction of the user is completed quickly, and the data consistency between multiple credit limits is ensured not to be damaged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, electronic device, and storage medium for updating available credit. Background Technology

[0002] Existing financial systems (such as risk control systems) can flexibly adjust a user's credit limit based on information such as credit change records and asset change records. In the scenario of a user's credit limit reduction, after determining the target user's latest credit limit, the financial system can update the target user's current credit limit and update the target user's current available credit limit based on the relationship between the target user's current used credit limit and the latest credit limit.

[0003] However, using the aforementioned method to update available credit limits can disrupt data consistency among a target user's multiple credit limits because the financial system might directly adjust the target user's current available credit limit to 0 when the target user's current used credit limit is greater than the latest credit limit. While the financial system could update the current available credit limit only after the target user has repaid their current used credit limit to a level less than or equal to the latest credit limit to ensure data consistency, this would result in a longer credit limit reduction process, making it difficult to complete the reduction for the target user in a timely manner.

[0004] Therefore, how to quickly reduce a user's credit limit while ensuring that the data consistency between multiple credit limits is not compromised is a problem that urgently needs to be solved. Summary of the Invention

[0005] This application provides a method, apparatus, electronic device, and storage medium for updating available credit limits, which can quickly reduce a user's credit limit while ensuring that the data consistency between multiple credit limits is not compromised.

[0006] In a first aspect, embodiments of this application provide a method for updating available credit limits, the method comprising: In response to a credit limit reduction request for a target user, obtain the target user's current credit limit and current available credit limit, and obtain the target user's current used credit limit based on the current credit limit and current available credit limit; The latest available credit limit is determined based on the currently used credit limit and the latest credit limit carried by the credit limit reduction request; The latest available credit limit is saved according to the credit limit status saving method corresponding to the latest available credit limit, and the current available credit limit is updated based on the latest available credit limit and the target user's current repayment event.

[0007] In one optional embodiment, obtaining the target user's current credit limit and current available credit limit includes: From the preset set of credit limit details, select the target credit limit details that match the target user identifier carried in the credit limit reduction request; wherein, the preset set of credit limit details includes multiple credit limit details, and each credit limit detail includes at least: the corresponding user's credit limit and available credit limit at the current time; The target credit limit details are analyzed to obtain the current credit limit and the current available credit limit.

[0008] In one optional embodiment, obtaining the target user's currently used credit limit based on the current credit limit and the current available credit limit includes: Verify the current credit limit and the current available credit limit to obtain the verification result; When the credit limit verification result indicates that the current credit limit is greater than or equal to the current available credit limit, the first credit limit difference between the current credit limit and the current available credit limit is taken as the current used credit limit; If the credit limit verification result indicates that the current credit limit is less than the current available credit limit, a credit limit exception message is generated; the credit limit exception message is used to indicate that there is an exception between the current credit limit and the current available credit limit.

[0009] In one optional embodiment, determining the latest available credit limit based on the currently used credit limit and the latest credit limit carried in the credit limit reduction request includes: If the target user's target credit limit details indicate that the target user has a frozen credit limit at the current time, then the latest available credit limit is determined based on the second credit limit difference between the latest credit limit and the currently used credit limit and the frozen credit limit; wherein, the target credit limit details also include: the current credit limit and the current available credit limit; If the target credit limit details indicate that the target user does not have a frozen credit limit at the current time, the latest available credit limit is determined based on the third credit limit difference between the currently used credit limit and the latest credit limit.

[0010] In one optional embodiment, the latest available credit limit is saved according to the credit limit status saving method corresponding to the latest available credit limit, including: If the latest available credit is 0 or positive, the latest available credit will be saved to the first storage area according to the saving method corresponding to the available status. If the latest available credit is negative, then the latest available credit will be saved to the second storage area according to the saving method corresponding to the over-utilization status.

[0011] In one optional embodiment, updating the current available credit limit based on the latest available credit limit and the target user's current repayment events includes: Analyze the current repayment event to obtain the repayment release amount for the target user at the current moment; The current available credit limit is updated based on the sum of the credit limit released during repayment and the latest available credit limit.

[0012] In an optional embodiment, after updating the current available credit limit based on the latest available credit limit and the target user's current repayment events, the method further includes: In response to a display request for the updated available credit, obtain the display scenario identifier from the display request; If the current available credit is negative and the display scenario indicates that the updated available credit should be displayed to the client, then the available credit value displayed to the client is determined to be 0. If the current available credit is 0 or positive, and the display scenario indicates that the updated available credit should be displayed to the server, then the available credit value displayed to the server is determined to be the updated available credit.

[0013] Secondly, embodiments of this application also provide an apparatus for updating available credit limits, the apparatus comprising: The used credit limit determination module is used to respond to a credit limit reduction request for a target user, obtain the target user's current credit limit and current available credit limit, and obtain the target user's current used credit limit based on the current credit limit and current available credit limit; The available credit limit determination module is used to determine the latest available credit limit based on the currently used credit limit and the latest credit limit carried in the credit limit reduction request; The available credit update module is used to save the latest available credit according to the credit status saving method corresponding to the latest available credit, and update the current available credit based on the latest available credit and the target user's current repayment event.

[0014] In an optional embodiment, when obtaining the target user's current credit limit and current available credit limit, the used credit limit determination module is specifically used for: From the preset set of credit limit details, select the target credit limit details that match the target user identifier carried in the credit limit reduction request; wherein, the preset set of credit limit details includes multiple credit limit details, and each credit limit detail includes at least: the corresponding user's credit limit and available credit limit at the current time; The target credit limit details are analyzed to obtain the current credit limit and the current available credit limit.

[0015] In an optional embodiment, when determining the target user's currently used credit limit based on the current credit limit and the current available credit limit, the used credit limit determination module is specifically used for: Verify the current credit limit and the current available credit limit to obtain the verification result; When the credit limit verification result indicates that the current credit limit is greater than or equal to the current available credit limit, the first credit limit difference between the current credit limit and the current available credit limit is taken as the current used credit limit; If the credit limit verification result indicates that the current credit limit is less than the current available credit limit, a credit limit exception message is generated; the credit limit exception message is used to indicate that there is an exception between the current credit limit and the current available credit limit.

[0016] In an optional embodiment, when determining the latest available credit limit based on the currently used credit limit and the latest credit limit carried in the credit limit reduction request, the available credit limit determination module is specifically used for: If the target user's target credit limit details indicate that the target user has a frozen credit limit at the current time, then the latest available credit limit is determined based on the second credit limit difference between the latest credit limit and the currently used credit limit and the frozen credit limit; wherein, the target credit limit details also include: the current credit limit and the current available credit limit; If the target credit limit details indicate that the target user does not have a frozen credit limit at the current time, the latest available credit limit is determined based on the third credit limit difference between the currently used credit limit and the latest credit limit.

[0017] In an optional embodiment, when saving the latest available credit limit according to the credit limit status saving method corresponding to the latest available credit limit, the available credit limit update module is specifically used for: If the latest available credit is 0 or positive, the latest available credit will be saved to the first storage area according to the saving method corresponding to the available status. If the latest available credit is negative, then the latest available credit will be saved to the second storage area according to the saving method corresponding to the over-utilization status.

[0018] In an optional embodiment, when updating the current available credit limit based on the latest available credit limit and the target user's current repayment event, the available credit limit update module is specifically used for: Analyze the current repayment event to obtain the repayment release amount for the target user at the current moment; The current available credit limit is updated based on the sum of the credit limit released during repayment and the latest available credit limit.

[0019] In an optional embodiment, after updating the current available credit limit based on the latest available credit limit and the target user's current repayment event, the device further includes an available credit limit display module, which is specifically used for: In response to a display request for the updated available credit, obtain the display scenario identifier from the display request; If the current available credit is negative and the display scenario indicates that the updated available credit should be displayed to the client, then the available credit value displayed to the client is determined to be 0. If the current available credit is 0 or positive, and the display scenario indicates that the updated available credit should be displayed to the server, then the available credit value displayed to the server is determined to be the updated available credit.

[0020] Thirdly, embodiments of this application provide an electronic device, including: processor; Stored program memory, The program includes instructions that, when executed by the processor, cause the processor to perform the method for updating the available quota as described in the first aspect.

[0021] Fourthly, embodiments of this application provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to perform the method for updating available credit as described in the first aspect.

[0022] Fifthly, this application provides a computer program product that, when invoked by a computer, causes the computer to perform the steps of the available quota update method as described in the first aspect.

[0023] The beneficial effects of this application are as follows: In the available credit update method provided in this application embodiment, in response to a credit limit reduction request for a target user, the current credit limit and current available credit limit of the target user are obtained, and the current used credit limit of the target user is obtained based on the current credit limit and current available credit limit; then, the latest available credit limit is determined based on the current used credit limit and the latest credit limit carried in the credit limit reduction request; the latest available credit limit is saved according to the credit limit status saving method corresponding to the latest available credit limit, and the current available credit limit is updated based on the latest available credit limit and the target user's current repayment event.

[0024] This method updates the target user's current available credit limit based on their current used credit limit, the latest credit limit specified in the credit limit reduction request, and their current repayment activities. This avoids the problems of other technologies that directly adjust the target user's current available credit limit to 0 when their current used credit limit is greater than the latest credit limit, thus disrupting data consistency across multiple credit limits. It also avoids the issue of updating the current available credit limit only after the target user has repaid their current used credit limit to less than or equal to the latest credit limit, resulting in a lengthy credit limit reduction process and delays in completing the reduction for the target user. Therefore, this method ensures faster credit limit reduction while maintaining data consistency across multiple credit limits.

[0025] Furthermore, other features and advantages of this application will be set forth in the following description and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described herein are used to provide a further understanding of this application, constitute a part of this application, and do not constitute an improper limitation of this application. In the accompanying drawings: Figure 1 This is a schematic diagram of an optional system architecture applicable to the embodiments of this application.

[0027] Figure 2 This is a schematic diagram illustrating the implementation process of an available quota update method provided in an embodiment of this application.

[0028] Figure 3 This is a schematic diagram of the structure of an available quota update device provided in an embodiment of this application.

[0029] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0030] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application. It should be understood that the drawings and embodiments of this application are for illustrative purposes only and are not intended to limit the scope of protection of this application.

[0031] It should be understood that the steps described in the method embodiments of this application may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this application is not limited in this respect.

[0032] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc., mentioned in this application are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.

[0033] It should be noted that the terms "a" and "a plurality of" used in this application are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0034] The names of the messages or information exchanged between multiple devices in the embodiments of this application are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0035] The design concept of the embodiments of this application is briefly introduced below: Existing financial systems already contain technologies for adjusting credit limits, freezing credit limits, transaction repayments, and adjusting risk strategies. For example, there are technologies for dynamically adjusting credit limits to address questions like "how much should the credit limit be adjusted to?", risk labeling and risk strategy governance technologies to address issues like risk identification and risk management strategies, and technologies for freezing, paying, and repaying credit limits during transactions.

[0036] This demonstrates that while existing financial systems utilize technology covering credit limit adjustments, risk management strategies, credit limit freezing, and repayment processing capabilities, in scenarios involving credit limit reductions, the financial system, after determining the target user's latest credit limit, can update the target user's current credit limit and, based on the relationship between the target user's current used credit limit and the latest credit limit, update the target user's currently available credit limit.

[0037] However, using the aforementioned method to update available credit limits can disrupt data consistency among a target user's multiple credit limits because the financial system might directly adjust the target user's current available credit limit to 0 when the target user's current used credit limit is greater than the latest credit limit. While the financial system could update the current available credit limit only after the target user has repaid their current used credit limit to a level less than or equal to the latest credit limit to ensure data consistency, this would result in a longer credit limit reduction process, making it difficult to complete the reduction for the target user in a timely manner.

[0038] In view of this, in order to solve or improve the above problems, this application provides a method for updating available credit, which may include: first, in response to a credit limit reduction request for a target user, obtaining the target user's current credit limit and current available credit, and obtaining the target user's current used credit based on the current credit limit and current available credit; next, determining the latest available credit based on the current used credit and the latest credit limit carried in the credit limit reduction request; finally, saving the latest available credit according to the credit status saving method corresponding to the latest available credit, and updating the current available credit based on the latest available credit and the target user's current repayment event.

[0039] In this way, the target user's current available credit limit is updated based on the target user's current used credit limit and the latest credit limit carried in the credit limit reduction request, as well as the target user's current repayment events. This ensures that the data consistency between multiple credit limits is not compromised while completing the credit limit reduction for the user quickly.

[0040] In particular, the preferred embodiments of this application will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit this application. Furthermore, the embodiments of this application and the features in the embodiments can be combined with each other unless otherwise specified.

[0041] See Figure 1 The diagram illustrates an optional system architecture applicable to an embodiment of this application. This system architecture may include: terminal devices (101a, 101b) and server 102. The terminal devices (101a, 101b) and server 102 can interact via a communication network. The communication network may employ wireless communication or wired communication methods. For example, the terminal devices (101a, 101b) can access the network and communicate with server 102 via cellular mobile communication technology. The aforementioned cellular mobile communication technology may include, for example, 5th generation mobile networks (5G) technology or next-generation mobile communication technology. Optionally, the terminal devices (101a, 101b) can access the network and communicate with server 102 via short-range wireless communication. The aforementioned short-range wireless communication method may include, for example, wireless fidelity (Wi-Fi) technology.

[0042] This application embodiment does not impose any limitation on the number of communication devices involved in the above system architecture. For example, the above system architecture may include more terminal devices, or fewer terminal devices, or other network devices. Figure 1 As shown, only terminal devices (101a, 101b) and server 102 are described as examples. The following is a brief introduction to each of the above communication devices and their respective functions.

[0043] A terminal device (101a, 101b) is a device that can provide voice and / or data connectivity to a user, and may be a device that supports wired and / or wireless connections.

[0044] For example, terminal devices (101a, 101b) may include, but are not limited to: mobile phones, tablets, laptops, handheld computers, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminal devices in industrial control, wireless terminal devices in autonomous driving, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, or wireless terminal devices in smart homes, etc.

[0045] In addition, the terminal devices (101a, 101b) can have related clients installed. These clients can be software, such as applications (APPs), browsers, short video software, web pages, mini programs, etc.

[0046] It should be noted that the terminal devices (101a, 101b) in this application embodiment can enable the client related to the update of available credit to send a credit limit reduction request for the target user to the server 102, so that the server 102 can subsequently update the available credit for the target user.

[0047] Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0048] It is worth mentioning that, in this embodiment of the application, the server 102 can respond to a credit limit reduction request for a target user by obtaining the target user's current credit limit and current available credit limit, and obtaining the target user's current used credit limit based on the current credit limit and current available credit limit; then, based on the current used credit limit and the latest credit limit carried in the credit limit reduction request, determine the latest available credit limit; save the latest available credit limit according to the credit limit status saving method corresponding to the latest available credit limit, and update the current available credit limit based on the latest available credit limit and the target user's current repayment event.

[0049] The following describes the method for updating available credit provided by exemplary embodiments of this application in conjunction with the above-described system architecture and with reference to the accompanying drawings. It should be noted that the above-described system architecture is only shown to facilitate understanding of the spirit and principles of this application, and the embodiments of this application are not limited in any way in this respect.

[0050] See Figure 2 The diagram illustrates the implementation flow of an available credit limit update method provided in this application embodiment. Taking a server (e.g., a financial system) as the executing entity, the specific implementation flow of this method is as follows: S201: In response to a credit limit reduction request for the target user, obtain the target user's current credit limit and current available credit limit, and obtain the target user's current used credit limit based on the current credit limit and current available credit limit.

[0051] In one alternative implementation, after receiving a credit limit reduction request for a target user, the server can filter out the target credit limit details that match the target user identifier carried in the credit limit reduction request from a preset set of credit limit details, and then parse the target credit limit details to obtain the current credit limit and the current available credit limit.

[0052] The aforementioned preset credit limit details set includes multiple credit limit details, each of which includes at least: the corresponding user's current credit limit and available credit limit. It should be noted that each credit limit detail may also include fields such as: frozen credit limit, credit limit type, credit limit status, and update time; however, this embodiment does not limit these fields.

[0053] Taking a preset set of credit limit details including the credit limit details of 5 users as an example, the 5 users and their corresponding user identifiers and credit limit details are shown in Table 1: Table 1. Examples of multiple users and their corresponding user IDs and credit limit details.

[0054] Based on the five users and their corresponding user identifiers and credit limit details recorded in Table 1 above, once the server determines that the target user identifier is one of the five user identifiers, it can quickly retrieve the credit limit details matching the target user identifier from the preset set of credit limit details. For example, if the target user identifier carried in the credit limit reduction request is UID.2, the server can determine that the target user's target credit limit details are CLDetails.2.

[0055] Furthermore, after obtaining the target user's current credit limit and current available credit limit, the server can then determine the target user's current used credit limit based on these two limits.

[0056] Optionally, the formula for calculating the target user's current used credit limit can be expressed as follows: Present.Used.Credit = Present.Credit.Line - Present.Available.Credit Among them, Present.Used.Credit represents the target user's currently used credit limit, Present.Credit.Line represents the target user's current authorized credit limit, and Present.Available.Credit represents the target user's currently available credit limit.

[0057] To improve the reliability of the obtained current used credit limit and thus ensure accurate updates to the available credit limit, the server, when determining the target user's current used credit limit based on the current credit limit and the current available credit limit, can first perform a credit limit verification on the current credit limit and the current available credit limit. If the verification result indicates that the current credit limit is greater than or equal to the current available credit limit, the first difference between the current credit limit and the current available credit limit is used as the current used credit limit. Conversely, if the verification result indicates that the current credit limit is less than the current available credit limit, a credit limit exception message is generated. This exception message indicates that there is an anomaly in the current credit limit and the current available credit limit.

[0058] In this way, by verifying the current credit limit and the current available credit limit, unreliable current used credit limit can be obtained due to anomalies in the current credit limit and the current available credit limit (i.e., the current credit limit is less than the current available credit limit). Furthermore, it can also reduce the additional overhead caused by calculating the current used credit limit when the current credit limit and the current available credit limit are abnormal. That is, once the server determines that the current credit limit and the current available credit limit are abnormal, it does not need to determine the current used credit limit based on the current credit limit and the current available credit limit.

[0059] It should also be noted that the target user's current used credit limit is not passed in by the target user's credit limit reduction request, nor is it temporarily estimated by the server. Instead, it is calculated based on the credit limit status (such as the current credit limit and the current available credit limit) that has been saved before the credit limit reduction, and is used to retain the credit limit already used by the target customer.

[0060] S202: Determine the latest available credit limit based on the currently used credit limit and the latest credit limit carried by the credit limit reduction request.

[0061] For example, when executing step S202, the server can calculate the difference between the latest credit limit carried in the aforementioned credit limit reduction request and the currently used credit limit, and use the difference as the latest available credit limit. Optionally, the formula for calculating the target user's latest available credit limit can be specifically expressed as follows: Latest.Available.Credit = Latest.Credit.Line - Present.Used.Credit Here, Latest.Available credit represents the target user's latest available credit limit, Latest.Credit.Line represents the target user's latest authorized credit limit, and Present.Used.Credit represents the target user's currently used credit limit.

[0062] Based on the above method, after the server receives the latest credit limit carried by the credit limit reduction request, it does not directly clear the current available credit limit to zero, nor does it modify the current used credit limit. Instead, it recalculates the latest available credit limit based on the latest credit limit and the current used credit limit, ensuring that a more accurate current available credit limit can be obtained in the future.

[0063] Furthermore, since frozen credit limits typically originate from loan, payment, or transaction processes, they represent credit limits that have been used but not yet released. If the frozen credit limit is directly modified when a user's credit limit is reduced, it could lead to inconsistencies in the status seen by the loan, payment, accounting, or order systems. Therefore, in one optional implementation, when the server determines the latest available credit limit based on the currently used credit limit and the latest credit limit carried in the credit limit reduction request, if the target user's target credit limit details indicate that the target user has a frozen credit limit at the current moment, then the latest available credit limit is determined based on a second difference between the latest credit limit and the currently used and frozen credit limits; if the target credit limit details indicate that the target user does not have a frozen credit limit at the current moment, then the latest available credit limit is determined based on a third difference between the currently used credit limit and the latest credit limit. In this way, by not rewriting the frozen credit limit and historical usage facts, inconsistencies with other business systems can be avoided.

[0064] S203: Save the latest available credit limit according to the credit limit status saving method corresponding to the latest available credit limit, and update the current available credit limit based on the latest available credit limit and the target user's current repayment event.

[0065] Among them, the above-mentioned method for saving the latest available credit limit status can be divided into the method for saving the available status and the method for saving the over-used status, depending on whether the latest available credit limit is a negative available credit limit.

[0066] Therefore, when the server saves the latest available credit limit according to the credit limit status saving method corresponding to the latest available credit limit, if the latest available credit limit is a non-negative available credit limit (e.g., 0 or a positive available credit limit), it saves the latest available credit limit to the first storage area according to the saving method corresponding to the available status; if the latest available credit limit is a negative available credit limit, it saves the latest available credit limit to the second storage area according to the saving method corresponding to the over-used status. It should be understood that a negative available credit limit is not a calculation error, but a proactively retained business status used to indicate that the target user's current used credit limit has exceeded the new credit limit.

[0067] The first storage area mentioned above can be a storage location in the target credit limit details, and the second storage area mentioned above can also be a storage location in the target credit limit details, or a storage location in the credit limit expansion table, risk status table, or credit limit adjustment result table, as long as the status can be read when querying available credit limit and resuming repayment.

[0068] For example, if the total credit limit before the credit limit reduction (i.e., the current credit limit) was 20,000, and the available credit limit before the reduction (i.e., the current available credit limit) was 5,000, then the currently used credit limit is 15,000. If the new total credit limit (i.e., the latest credit limit) is 10,000, then the new available credit limit (i.e., the latest available credit limit) is -5,000. The server saves the latest credit limit as 10,000 and the latest available credit limit as -5,000 according to the saving method corresponding to the over-used status. In this way, the credit limit reduction for the target user is completed, while retaining the fact that the target customer has already used 15,000 of the credit limit.

[0069] In one optional implementation, when updating the current available credit limit based on the target user's latest available credit limit and the target user's current repayment event, the server parses the current repayment event to obtain the target user's repayment release credit limit at the current moment. Then, it updates the current available credit limit based on the sum of the repayment release credit limit and the latest available credit limit. Since the target user's repayment release credit limit increases the target user's available credit limit, fully considering whether the target user has a repayment release credit limit at the current moment when updating the current available credit limit can improve the accuracy of the update.

[0070] Optionally, the updated formula for calculating the available credit limit can be expressed as follows: Updated.Available.Credit = Latest.Available credit + Release.Credit Among them, Updated.Available.Credit represents the updated available credit limit, Latest.Availablecredit represents the latest available credit limit for the target user, and Release.Credit represents the credit limit released for repayment by the target user.

[0071] If the target user's available credit limit before this repayment (i.e., the latest available credit limit) is negative, the credit limit released during this repayment will first be used to fill the negative portion of the latest available credit limit. For example, if the target user's available credit limit before this repayment (i.e., the latest available credit limit) is -5000, and the credit limit released during this repayment is 3000, then the available credit limit after this repayment (i.e., the available credit limit after this update) will be -2000. At this time, the target user's available credit limit is still in an over-utilized state, but the degree of over-utilization has been reduced. Furthermore, if the target user releases 5000 through another repayment, then the available credit limit after the second repayment will be 3000. At this time, the target user's available credit limit is restored to an available state.

[0072] Based on the above method, the available credit can be gradually restored through the repayment actions of the target user. That is, by adding the credit released by the repayment event back into the available credit, the available credit can be gradually restored from a negative number to 0 or a positive number.

[0073] Optionally, after reducing the credit limit for the target user, the server can record a credit limit adjustment log. This log should include at least: the total credit limit before adjustment (i.e., the current credit limit), the available credit limit before adjustment (i.e., the current available credit limit), the frozen credit limit (before adjustment), the total credit limit after adjustment (i.e., the latest credit limit), the available credit limit after adjustment (i.e., the latest available credit limit), the frozen credit limit after adjustment, the adjustment direction, the request identifier, the operation source, and the adjustment time.

[0074] By using this quota adjustment log, auditors can confirm that the negative available quota is calculated according to the reserved used quota rules, rather than being caused by server miscalculation. This also facilitates subsequent auditing, idempotency judgment, and problem investigation.

[0075] Based on the available credit update method described in steps S201 to S203 above, if the current credit limit is reduced after the target user has used or occupied part of the credit limit, the server does not erase the currently used credit limit, nor does it forcibly change the current available credit limit to 0. Instead, it retains the fact of the used credit limit and recalculates the latest available credit limit based on the latest credit limit. Thus, when the latest credit limit is lower than the currently used credit limit, the available credit limit is allowed to be negative and gradually restored during subsequent repayments. This solves the problem of credit limit status expression and restoration in the financial credit system when the credit limit is reduced after use.

[0076] This effectively improves upon existing technologies in scenarios where credit limits are reduced after a user has already used credit, where there are potential conflicts between the credit limit reduction and the actual used credit (i.e., if the financial system requires the latest credit limit to be greater than or equal to the current used credit, the credit limit reduction intended by risk control cannot be implemented in a timely manner), the forced reset of available credit to zero can mask the risk status (i.e., if the financial system forcibly changes the available credit to 0, it cannot be seen that the current used credit has exceeded the new credit limit (i.e., the latest credit limit)), and the rewriting of used credit can disrupt business consistency (i.e., if the credit limit is reduced in order to achieve a credit limit reduction, the actual used credit cannot be reflected in the actual used credit). Modifying the currently used credit limit may result in inconsistencies between the credit limit recorded by the financial system and records of loans, accounts, orders, or freezes. The subsequent repayment recovery path may be unclear (i.e., if the overused status is not retained after the credit limit is reduced, the financial system may have difficulty determining whether the released credit limit should first fill the overused portion or directly form a new available credit limit when the customer makes subsequent repayments). Furthermore, the lack of snapshots before and after the credit limit adjustment may affect auditing (i.e., if the total credit limit, available credit limit, and frozen credit limit before and after the credit limit reduction are not recorded, it may be difficult to determine whether the negative available credit limit is a normal business result, a duplicate request, or a data anomaly).

[0077] Furthermore, the server can update the current available credit limit based on the latest available credit limit and the target user's current repayment events. In response to a display request for the updated available credit limit, it retrieves a display scenario identifier from the request. If the current available credit limit is negative and the display scenario identifier indicates that the updated available credit limit should be displayed to the client, then the available credit limit value displayed to the client is determined to be 0 (or no available credit limit). If the current available credit limit is 0 or positive and the display scenario identifier indicates that the updated available credit limit should be displayed to the server, then the available credit limit value displayed to the server is determined to be the updated available credit limit. In this way, the server's external display result can flexibly convert the negative available credit limit according to the display scenario. For example, the client-side (e.g., target user) display can show a negative available credit limit of 0 (or no available credit limit) to avoid misunderstanding by the target user, while the server-side (e.g., risk control, operations, auditing, and internal investigation) display retains the true negative value, meaning the server-side display directly shows the negative available credit limit, making the risk status visible. In other words, the internal and external displays can be divided into sections, balancing user understanding with risk visibility.

[0078] In summary, in the available credit update method provided in this application embodiment, in response to a credit limit reduction request for a target user, the current credit limit and current available credit limit of the target user are obtained, and the current used credit limit of the target user is obtained based on the current credit limit and current available credit limit; then, the latest available credit limit is determined based on the current used credit limit and the latest credit limit carried in the credit limit reduction request; the latest available credit limit is saved according to the credit limit status saving method corresponding to the latest available credit limit, and the current available credit limit is updated based on the latest available credit limit and the target user's current repayment event. This method updates the target user's current available credit limit based on their current used credit limit, the latest credit limit specified in the credit limit reduction request, and their current repayment activities. This avoids the problems of other technologies that directly adjust the target user's current available credit limit to 0 when their current used credit limit is greater than the latest credit limit, thus disrupting data consistency across multiple credit limits. It also avoids the issue of updating the current available credit limit only after the target user has repaid their current used credit limit to less than or equal to the latest credit limit, resulting in a lengthy credit limit reduction process and delays in completing the reduction for the target user. Therefore, this method ensures faster credit limit reduction while maintaining data consistency across multiple credit limits.

[0079] Furthermore, based on the same technical concept, embodiments of this application also provide an available credit limit update device, which is used to implement the above-described method flow of embodiments of this application. For example, see [link to relevant documentation]. Figure 3As shown, the available credit update device 300 may include: a used credit determination module 301, an available credit determination module 302, an available credit determination module 303, and an available credit display module 304, wherein: The used credit limit determination module 301 is used to respond to a credit limit reduction request for a target user, obtain the target user's current credit limit and current available credit limit, and obtain the target user's current used credit limit based on the current credit limit and current available credit limit; The available credit limit determination module 302 is used to determine the latest available credit limit based on the currently used credit limit and the latest credit limit carried in the credit limit reduction request; The available credit update module 303 is used to save the latest available credit according to the credit status saving method corresponding to the latest available credit, and update the current available credit based on the latest available credit and the target user's current repayment event.

[0080] In an optional embodiment, when obtaining the target user's current credit limit and current available credit limit, the used credit limit determination module 301 is specifically used for: From the preset set of credit limit details, select the target credit limit details that match the target user identifier carried in the credit limit reduction request; wherein, the preset set of credit limit details includes multiple credit limit details, and each credit limit detail includes at least: the corresponding user's credit limit and available credit limit at the current time; The target credit limit details are analyzed to obtain the current credit limit and the current available credit limit.

[0081] In an optional embodiment, when the target user's currently used credit limit is obtained based on the current credit limit and the current available credit limit, the used credit limit determination module 301 is specifically used for: Verify the current credit limit and the current available credit limit to obtain the verification result; When the credit limit verification result indicates that the current credit limit is greater than or equal to the current available credit limit, the first credit limit difference between the current credit limit and the current available credit limit is taken as the current used credit limit; If the credit limit verification result indicates that the current credit limit is less than the current available credit limit, a credit limit exception message is generated; the credit limit exception message is used to indicate that there is an exception between the current credit limit and the current available credit limit.

[0082] In an optional embodiment, when determining the latest available credit limit based on the currently used credit limit and the latest credit limit carried in the credit limit reduction request, the available credit limit determination module 302 is specifically used for: If the target user's target credit limit details indicate that the target user has a frozen credit limit at the current time, then the latest available credit limit is determined based on the second credit limit difference between the latest credit limit and the currently used credit limit and the frozen credit limit; wherein, the target credit limit details also include: the current credit limit and the current available credit limit; If the target credit limit details indicate that the target user does not have a frozen credit limit at the current time, the latest available credit limit is determined based on the third credit limit difference between the currently used credit limit and the latest credit limit.

[0083] In an optional embodiment, when saving the latest available credit limit according to the credit limit status saving method corresponding to the latest available credit limit, the available credit limit update module 303 is specifically used for: If the latest available credit is 0 or positive, the latest available credit will be saved to the first storage area according to the saving method corresponding to the available status. If the latest available credit is negative, then the latest available credit will be saved to the second storage area according to the saving method corresponding to the over-utilization status.

[0084] In an optional embodiment, when updating the current available credit limit based on the latest available credit limit and the target user's current repayment event, the available credit limit update module 303 is specifically used for: Analyze the current repayment event to obtain the repayment release amount for the target user at the current moment; The current available credit limit is updated based on the sum of the credit limit released during repayment and the latest available credit limit.

[0085] In an optional embodiment, after updating the current available credit limit based on the latest available credit limit and the target user's current repayment event, the available credit limit display module 304 is specifically used for: In response to a display request for the updated available credit, obtain the display scenario identifier from the display request; If the current available credit is negative and the display scenario indicates that the updated available credit should be displayed to the client, then the available credit value displayed to the client is determined to be 0. If the current available credit is 0 or positive, and the display scenario indicates that the updated available credit should be displayed to the server, then the available credit value displayed to the server is determined to be the updated available credit.

[0086] Based on the description of the method and apparatus embodiments above, an exemplary embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores a computer program executable by the at least one processor, which, when executed by the at least one processor, causes the electronic device to perform the method according to an embodiment of the present invention.

[0087] This application also provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a computer's processor, is used to cause the computer to perform a method according to an embodiment of this application.

[0088] This application also provides a computer program product, including a computer program, wherein the computer program, when executed by a computer's processor, is used to cause the computer to perform a method according to an embodiment of this application.

[0089] See Figure 4 The diagram shown below illustrates the structure of an electronic device 400 that can serve as a server or client in this application, and is an example of a hardware device that can be applied to various aspects of this application. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.

[0090] like Figure 4 As shown, the electronic device 400 includes a computing unit 401, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 402 or a computer program loaded from storage unit 408 into random access memory (RAM) 403. The RAM 403 may also store various programs and data required for the operation of the electronic device 400. The computing unit 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0091] Multiple components in electronic device 400 are connected to I / O interface 405, including: input unit 406, output unit 407, storage unit 408, and communication unit 409. Input unit 406 can be any type of device capable of inputting information to electronic device 400. Input unit 406 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of electronic device. Output unit 407 can be any type of device capable of presenting information and may include, but is not limited to, a display, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 408 may include, but is not limited to, disks and optical discs. Communication unit 409 allows electronic device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and / or chipsets, such as Bluetooth devices, WiFi devices, worldwide interoperability for microwave access (WiMax) devices, cellular communication devices, and / or the like.

[0092] The computing unit 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above. For example, in some embodiments, the above-described method for updating available credit can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 408.

[0093] In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 400 via ROM 402 and / or communication unit 409. In some embodiments, computing unit 401 may be configured by any other suitable means (e.g., by means of firmware) to perform the above-described method for updating available quotas.

[0094] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0095] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, RAM, ROM, erasable programmable read-only memory (EPROM) or flash memory, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0096] As used in this application, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device, PLD) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.

[0097] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a cathode ray tube (CRT) or liquid crystal display (LCD) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0098] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0099] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.

[0100] Furthermore, it should be understood that the above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of the invention. Therefore, any equivalent variations made in accordance with the claims of this invention are still within the scope of this application.

Claims

1. A method for updating available credit, characterized in that, include: In response to a credit limit reduction request for a target user, the system obtains the target user's current credit limit and current available credit limit, and calculates the target user's current used credit limit based on the current credit limit and current available credit limit. Based on the currently used credit limit and the latest credit limit carried in the credit limit reduction request, determine the latest available credit limit; The latest available credit limit is saved according to the credit limit status saving method corresponding to the latest available credit limit, and the current available credit limit is updated based on the latest available credit limit and the target user's current repayment event.

2. The method as described in claim 1, characterized in that, The process of obtaining the target user's current credit limit and current available credit limit includes: From a preset set of credit limit details, select the target credit limit details that match the target user identifier carried in the credit limit reduction request; wherein, the preset set of credit limit details includes multiple credit limit details, and each credit limit detail includes at least: the corresponding user's credit limit and available credit limit at the current moment; The target credit limit details are parsed to obtain the current credit limit and the current available credit limit.

3. The method as described in claim 1, characterized in that, The step of obtaining the target user's currently used credit limit based on the current credit limit and the current available credit limit includes: The current credit limit and the current available credit limit are verified to obtain the verification result. When the credit limit verification result indicates that the current credit limit is greater than or equal to the current available credit limit, the first credit limit difference between the current credit limit and the current available credit limit is taken as the current used credit limit; When the credit limit verification result indicates that the current credit limit is less than the current available credit limit, a credit limit exception message is generated; the credit limit exception message is used to indicate that there is an exception between the current credit limit and the current available credit limit.

4. The method as described in claim 1, characterized in that, The step of determining the latest available credit limit based on the currently used credit limit and the latest credit limit carried in the credit limit reduction request includes: If the target user's target credit limit details indicate that the target user has a frozen credit limit at the current time, then the latest available credit limit is determined based on the second credit limit difference between the latest credit limit and the currently used credit limit and the frozen credit limit; wherein, the target credit limit details also include: the current credit limit and the current available credit limit; If the target credit limit details indicate that the target user does not have the frozen credit limit at the current time, then the latest available credit limit is determined based on the third credit limit difference between the currently used credit limit and the latest credit limit.

5. The method as described in claim 1, characterized in that, The step of saving the latest available credit limit according to the credit limit status saving method corresponding to the latest available credit limit includes: If the latest available quota is 0 or positive available quota, then the latest available quota is saved to the first storage area according to the saving method corresponding to the available status; If the latest available quota is a negative available quota, then the latest available quota will be saved to the second storage area according to the saving method corresponding to the over-utilization status.

6. The method as described in claim 1, characterized in that, The step of updating the current available credit limit based on the latest available credit limit and the target user's current repayment events includes: The current repayment event is analyzed to obtain the repayment release amount of the target user at the current moment; The current available credit limit is updated based on the sum of the repayment release limit and the latest available credit limit.

7. The method according to any one of claims 1 to 6, characterized in that, After updating the current available credit limit based on the latest available credit limit and the target user's current repayment event, the method further includes: In response to a display request for the updated available credit, a display scenario identifier is obtained from the display request; If the current available quota is a negative available quota, and the display scenario identifier indicates that the updated available quota should be displayed to the client, then the available quota value displayed to the client is determined to be 0. If the current available quota is 0 or positive, and the display scenario identifier indicates that the updated available quota is to be displayed to the server, then the available quota value displayed to the server is determined to be the updated available quota.

8. A device for updating available credit, characterized in that, include: The used credit limit determination module is used to respond to a credit limit reduction request for a target user, obtain the target user's current credit limit and current available credit limit, and obtain the target user's current used credit limit based on the current credit limit and current available credit limit; The available credit limit determination module is used to determine the latest available credit limit based on the currently used credit limit and the latest credit limit carried in the credit limit reduction request; The available credit update module is used to save the latest available credit according to the credit status saving method corresponding to the latest available credit, and update the current available credit based on the latest available credit and the target user's current repayment event.

9. An electronic device, characterized in that, include: processor; A memory storing a program; wherein the program includes instructions that, when executed by the processor, cause the processor to perform the method as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method as described in any one of claims 1 to 7.