Manage customer credit accounts, credit holds, and credit applications. Use when checking credit availability, placing holds on orders, or reviewing credit applications.
Manage customer credit limits, perform credit checks, process credit applications, and place or release credit holds.
stateset credit ... or stateset "check credit for customer CUST-123"--apply.create_credit_account, get_credit_account, update_credit_account, check_credit, place_credit_hold, release_credit_hold, submit_credit_application, review_credit_application, record_credit_transaction, .get_customer_credit_summaryget_credit_account, check_credit, get_customer_credit_summary — no --apply needed.create_credit_account, update_credit_account, place_credit_hold, release_credit_hold, submit_credit_application — requires --apply.stateset --db ./store.db "check credit customer_id=cust_123 order_amount=2000"
stateset --db ./store.db "create credit account customer_id=cust_456 limit=10000 risk=Low" --apply
stateset --db ./store.db "release credit hold hold_id=HOLD-001 reason='Payment received'" --apply
stateset --db ./store.db "get customer credit summary customer_id=cust_123"
Credit Account: PendingReview -> Active -> OnHold -> Suspended -> Closed Credit Application: Pending -> UnderReview -> Approved/Denied/MoreInfoNeeded (or Withdrawn) Credit Hold: Placed -> UnderReview -> Released (or Escalated)
{"status":"credit_check","customer_id":"cust_123","approved":true,"credit_limit":10000.00,"available_credit":7500.00,"order_amount":2000.00,"email":"[email protected]","amount":2000.00}
CREDIT_OVER_LIMIT: Order amount exceeds the customer's available credit limit.CREDIT_HOLD_ACTIVE: An active credit hold is blocking order processing for this customer.CREDIT_APP_INCOMPLETE: Credit application is missing required business information.