Skip to navigation

write_wallets_credit

Create and manage credit types, wallet types and wallets

Live server: test server (test.mcp.solvimon.com) only.

Creates and manages credit types (the named unit, e.g. “API Credits”), wallet types (container configuration and expiry rules) and wallets (per-customer balances). For usage that needs invoice lines, use wallets and credits rather than NUMBER or AMOUNT features.

Actions: create, update (not for wallets), activate, deactivate, archive

Resource types: wallets, wallet_types, credit_types

Create a credit type
{
"action": "create",
"resource_type": "credit_types",
"body": {"name": "API Credits", "reference": "api-credits"}
}

Example prompts

  • “Create a credit type called API Credits.”
  • “Set up a wallet type for prepaid tokens that expire after 12 months.”
  • “Open a prepaid credits wallet for Acme Inc.”
  • “Deactivate Acme Inc.’s wallet, they moved to pay-as-you-go.”

Example output

Prompt: “Open a prepaid credits wallet for Docs Example B.V.”

Tool call:

{
"action": "create",
"resource_type": "wallets",
"body": {
"customer_id": "cust_BwDpzo0vA1cb03CA8t1f",
"wallet_type_id": "wtyp_ywDsM40vxDPmyuCniv1u",
"reference": "docs-example-prepaid-wallet"
}
}

Response (trimmed):

{
"object_type": "WALLET",
"id": "wall_SwDpzo0vA1ccA3CB861z",
"reference": "docs-example-prepaid-wallet",
"status": "ACTIVE",
"wallet_type_id": "wtyp_ywDsM40vxDPmyuCniv1u",
"customer_id": "cust_BwDpzo0vA1cb03CA8t1f"
}

Claude’s answer: Docs Example B.V. now has an ACTIVE wallet of the Prepaid credits type, starting at 0 credits. Credits are added through grants, for example when the customer buys a credit pack on its subscription.