invoice_pay
Build the plan to pay an invoice from payer, with the token payer holds (default: the invoice token). Nothing is signed or sent here. Both wallets are screened first (payer_blocked, receiver_blocked); when the invoice has checks ["scorechain"] (see invoice_get), the creator chose and paid the Scorechain sanctions API, so this call sends the payer wallet and the receiver wallet to Scorechain, a third party (an invoice created before 22/10/2026 with the then-free Scorechain keeps running it without a charge). method "transfer": same token, a direct transfer built from the stored invoice (no fee, no gain; the receiver sees the payer as sender). method "swap": another token; amountIn is computed so the GUARANTEED minimum output covers the requested amount, the route is always the one with GAIN when there is one, and the output goes straight to the receiver (the transaction is public and signed by the payer, so the receiver can see the paying wallet on-chain). Any surplus over the requested amount goes to the receiver. plan has the same shape as a swap_build plan: on EVM sign steps[] in order with prepare_signing (approve steps first, then the transaction); on Solana pass {transaction, executionRef} to prepare_signing and POST the signed transaction to /v1/svm/execute. If simulation.status is approval_required, send the approve and call invoice_pay again. When the invoice has paid checks, the creator must have paid the analysis first (analysis_unpaid, 409). With "merkle-science" this call then sends the payer wallet and the receiver wallet to Didit/Merkle Science, and a HIGH or CRITICAL risk (score 70 or more) refuses with payer_blocked or receiver_blocked; the detail shows in invoice_get analysis.report. At most 3 different payer wallets are analysed per invoice by each paid check; a 4th gets analysis_attempts_exceeded (429). Since 23/10/2026 the payer proves the wallet BEFORE the paid analysis runs on it: over MCP that proof is the destination authorization signed by the payer for this invoice's receiver (destination_challenge with wallet = payer, receiver = the invoice receiver, chainId of the invoice, sign the message, then destination_authorize). Without it this call returns payer_signature_required (401) and no analysis slot is spent. Invoices with payerChecks and split.rule "flat" (since 16/11/2026; "brackets" from 10/11): nothing is paid first; the paid analysis runs HERE on BOTH wallets, the payer and the receiver, after the free screening, and the plan is the split that delivers split.receiverAmount to the receiver and split.fee to the Vurto fee wallet. A Vurto Dead Alive donation (invoice_get analysisOf "payer") takes as split.fee 2% of the amount, no floor, plus the price of each paid analysis the streamer chose for the donor wallet (since 16/11/2026, https://docs.vurto.cc/fees; payerChecks says which ran); before signing, split.fee must be at most 10% of the amount plus 1.20 USD and below the amount on a public donation (since 19/11/2026; 10% on one born on the V2), at most 2% of the amount plus 2.40 USD on any private invoice, the private donation included (one ceiling, no donation mark, since 19/11/2026; the private donation is created only while its fee fits it, else 503 private_donation_fee_above_ceiling), at most 2.40 USD, two consultations of 1.20 at most each (and below the amount), on a "flat" invoice, and at most 5% of the amount on a "brackets" one (pure percent since 16/11/2026, no fixed amount above it). The smallest donation is where its fee fits that ceiling, the same on EVM and Solana. A new public donation on EVM is paid through the VurtoPrivateSplit of its network (its pay, since 19/11/2026), which is paid only on the donation page: do not sign it here, the vurto-swap CLI refuses that contract. Older invoices with payerChecks: the creator pays the analysis first (analysis_unpaid, 409), and it runs HERE, on the payer wallet, after its free screening passes; no field switches it off. The payer proves the wallet first (destination_challenge/destination_authorize; payer_signature_required 401). Up to 2 different payer wallets run here; after that the plan comes out with warning, and the analysis runs on the report of a confirmed payment of the whole amount, with the result going to the creator. A transaction that reaches the receiver settles the invoice: the analysis refuses nothing after the money has arrived. analysis_tool_unavailable (503) means try again in a few minutes. The plan delivers the whole amount to the receiver. An invoice that carries split keeps it (see invoice_get split): method "transfer" is then ONE payment transaction (on EVM, sign the exact approve step first, then pay on the invoice split contract: VurtoInvoiceSplitV2 since 16/11/2026, VurtoInvoiceSplit before; on the V2 with a token whose EIP-2612 permit checks out (its DOMAIN_SEPARATOR matches the domain read from it: the USDC of Circle does, USDT and the BNB pegs do not) the plan also has plan.permit, an EIP-2612 typed data you may sign instead of the approve to send one payWithPermit transaction with the arguments of the pay step plus v, r, s) with split.receiverAmount to the receiver and split.fee to the Vurto fee wallet, and only that transaction settles it; analysis_offer_suspended (403) applies only to those. With another token, method "swap_then_transfer": plan is a swap into the PAYER's own wallet and next is this same call again, to build the split; on Solana method "swap" does both in one transaction. A receiver analysis (invoice_analysis_pay) only counts here if it was paid and reported first: open and unpaid, it does not hold this call, and the answer carries warning and receiverAnalysis. Paid and stale gets receiver_analysis_unpaid (409), and a rejected receiver gets receiver_blocked. With method "swap", pass invoiceId to prepare_signing so it points to the invoice report. Sign the transaction as returned: it is tied to this invoice and payer, so another invoice to the same recipient cannot claim it (tx_for_another_payment). A transfer built by hand, a native transfer and a ready-made route of a provider are not, and the first report the network confirms wins. If a transaction of yours ends as tx_for_another_payment, prove the wallet (destination_challenge with chargeId = the invoice id and chargeTxHash = the hash, then destination_authorize) and report it again. Then call invoice_report_payment with the hash (EVM) or signature (Solana). Errors: price_moved (the minimum fell below the request between quote and build — call again), no_route, native_sol_only (an invoice in SOL can only be paid in SOL), invoice_already_paid, private_invoice_vault_only (a private invoice: pay it on its page, through the Vurto Private Contract, never with this tool), private_invoice_paused (a private invoice created before 14/10/2026, which can no longer be paid). Both wallets are screened before the plan is built: the paying one (payer_blocked) and the receiving one (receiver_blocked). screening_unavailable (503) means the screening could not finish, try again in a few seconds.
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": {
"id": "<id>",
"payer": "<payer>"
},
"name": "invoice_pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | INV-XXXX-XXXX or the 8-character id. | |
| payer | Yes | The wallet that will sign and pay, on the invoice network. | |
| tokenIn | No | Optional: address/mint or symbol of the token the payer pays with. Omit to pay in the invoice token. | |
| slippageBps | No | Optional, default 50. The guaranteed minimum is computed after it, so a tighter slippage asks the payer for less. |