Create invoice
create_invoiceUse when the user wants to bill someone: creates an invoice with one line item and returns its link, where the client pays by bank transfer, crypto or the seller's own card payment link. For stablecoin payments, crypto_payment gives the wallet and send_exactly: the payer must send that exact amount, not the rounded total. Call send_invoice afterwards to email it. Pass idempotency_key so retries never create duplicates. The seller's plan and limits apply: a request over a limit fails with the reason (and where to upgrade), and one above the approval threshold returns status pending_approval with an approval_id to check with get_approval.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"client_email": "<client_email>",
"client_name": "<client_name>",
"amount": "<amount>",
"description": "<description>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| currency | No | ISO code, e.g. USD, EUR, USDT | USD |
| due_days | No | ||
| client_name | Yes | ||
| description | Yes | ||
| client_email | Yes | ||
| idempotency_key | No |