Wallet-Info (Erweiterte API)

Use your Account Permission Key to query the current personal account's wallet funds breakdown, historical consumption, referral commission stats, per-model discounts, and recharge/ledger history.

[!IMPORTANT]

  • Base URL: https://ai.artsmcp.com/api/open/v1
  • Auth Header (Choose One): Authorization: Bearer <your_account_key>, X-Account-Api-Key: <your_account_key>, or X-Api-Key: <your_account_key>
  • Available Funds: available_funds combines cash balance, gift_balance, and credit_limit; when balance + credit_limit < 0, cash_in_arrears is true

1. Get Wallet Balance & Commission Stats

Query real-time wallet balances, cumulative consumption, referral commission balance and invited count, active per-model exclusive discounts, and billing currency.

  • Path: GET /api/open/v1/wallet
  • Query Parameters: None
  • Example (Curl):
curl -s "https://ai.artsmcp.com/api/open/v1/wallet" \
  -H "Authorization: Bearer <your_account_key>"
  • Response Example:
{
  "balance": 500.0,
  "gift_balance": 20.0,
  "credit_limit": 0.0,
  "available_funds": 520.0,
  "cash_in_arrears": false,
  "total_consumption": 133.5,
  "used_quota": 128.5,
  "gift_used_quota": 5.0,
  "commission_balance": 35.2,
  "total_referred": 6,
  "marketing_enabled": true,
  "commission_ratio": 0.1,
  "commission_basis": "consumption",
  "discounted_models": [],
  "currency": "CNY",
  "currency_symbol": "¥",
  "currency_unit": "CNY"
}
  • Response Fields:
FieldTypeDescription
balancenumberCash wallet balance
gift_balancenumberGift wallet balance
credit_limitnumberAccount credit overdraft limit
available_fundsnumberCombined available funds (balance + gift_balance + credit_limit; negative when cash is in arrears)
cash_in_arrearsbooleanWhether cash balance is in arrears (true when balance + credit_limit < 0)
total_consumptionnumberCumulative total spend (used_quota + gift_used_quota)
used_quotanumberCumulative cash wallet spend
gift_used_quotanumberCumulative gift wallet spend
commission_balancenumberCurrent referral commission wallet balance
total_referredintegerTotal referred users registered
marketing_enabledbooleanWhether referral commission is enabled for the current user tier
commission_rationumberReferral commission ratio (e.g., 0.1 for 10%)
commission_basisstringCommission calculation basis (consumption or recharge)
discounted_modelsarrayActive per-model exclusive discounts configured for the current account
currency / currency_symbol / currency_unitstringSite billing currency code, symbol, and unit

2. List Wallet Recharge & Ledger History

Paginated query of online recharge orders, redemption entries, and wallet ledger records (timestamps formatted in the site operating timezone).

  • Path: GET /api/open/v1/wallet/recharges
  • Query Parameters:
ParameterTypeDefaultDescription
pageinteger1Page number (starting from 1)
per_pageinteger20Items per page (1..100)
wallet_typestringAllFilter by wallet type: system (cash) or gift (gift wallet)
recharge_typestringAllFilter by credit type (e.g., alipay, wechat, stripe, redemption, transfer)
  • Example (Curl):
curl -s "https://ai.artsmcp.com/api/open/v1/wallet/recharges?page=1&per_page=20" \
  -H "Authorization: Bearer <your_account_key>"
  • Response Example:
{
  "data": [
    {
      "amount": 100.0,
      "recharge_type": "stripe",
      "wallet_type": "system",
      "order_no": "ORD202611292015001234",
      "fee_amount": 0.0,
      "remark": "Online Recharge",
      "created_at": "2026-11-29 20:15:08 (UTC+8)"
    }
  ],
  "total": 1,
  "page": 1,
  "per_page": 20
}
  • Response Fields:
FieldTypeDescription
dataarrayRecharge and ledger records on the current page
data[].amountnumberAmount credited (positive) or deducted (negative)
data[].recharge_typestringCredit type (e.g., alipay, wechat, stripe, redemption, transfer)
data[].wallet_typestringWallet type: system (cash) or gift (gift wallet)
data[].order_nostringAssociated payment order number (present for online recharges; omitted otherwise)
data[].fee_amountnumberPayment processing fee for online recharges (0 for non-online entries)
data[].remarkstringLedger note (omitted if empty)
data[].created_atstringRecord creation timestamp in site operating timezone
totalintegerTotal matching records
page / per_pageintegerCurrent page number and items per page

Raw Markdown (.md) · llms.txt