Skip to content
Bill Rules

Add Auto-Mark Bill Rule

Add an auto-tagging rule; matching bill records are automatically tagged with the specified fund type.

Request parameters

  • Required: bill_type (bill type), fund_type_id (fund type ID)
  • Optional: bank_account (bank account), bank_username (bank account name), bank_serial_no (bank serial number), bank_busi_type (bank business type), bank_remark (bank remark)
  • See the field definitions for each field's format, allowed values, and business meaning.

Result

On success the operation completes; refer to the 200 response for the resulting state and data.

POSThttps://b-api.lbkrs.com/book/bill/rule

Authorization

AuthorizationstringheaderRequired

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

Permission

accounting.bill_rule_manage

The Broker ACCESS_TOKEN must be granted the permission above, or the call will be rejected.

Request body application/json

bill_typeintegerrequired

Bill Type.

Allowed values: 1 Credit, 2 Debit

Values
1
Credit
2
Debit
fund_type_idstringrequired

Fund Type ID. Fund Type ID associated with this request.

bank_accountstring

Bank Account. Specifies Bank Account.

bank_usernamestring

Bank Username. Specifies Bank Username.

bank_serial_nostring

Bank Serial No.. Specifies Bank Serial No..

bank_busi_typestring

Bank Business Type. A free-form value (not an enum); provide the actual business value.

bank_remarkstring

Bank Remark. Specifies Bank Remark.

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