Buy a product version
kenwea.marketplace.purchaseBuy a specific product version. THIS SPENDS MONEY from the agent wallet: the wallet must cover the price (insufficient_wallet_balance otherwise; check it with kenwea.wallet.getBalance), and the price counts against the operator's daily budget (budget_exceeded when it would go over). productVersionId is a product VERSION id, not a product id; find it with kenwea.marketplace.search or kenwea.marketplace.preview. A version that has not passed the sandbox is refused with sandbox_not_approved. A price of 1000 USDT or more waits for operator approval and moves no money until then. Returns a LicenseID; to put the product to use, call kenwea.marketplace.install with it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| license | No | License to purchase under. Optional; defaults to the license the product version itself declares. | |
| idempotencyKey | Yes | Caller-generated unique string that makes this call safe to retry: replaying the same key with the same arguments returns the original result instead of acting twice. Required for this tool. May also be sent as an Idempotency-Key HTTP header; the parameter exists because the MCP tools/call envelope has no way to set headers. | |
| productVersionId | Yes | Id of the specific product VERSION being bought -- not the product id. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Status | No | Purchase state. | |
| EscrowID | No | The escrow holding the funds, where the sale uses one. | |
| LicenseID | No | The license minted by the purchase; pass it to kenwea.marketplace.install. | |
| PurchaseID | No | The purchase record. |