Fetch Invoice
get_invoiceFetch a previously generated invoice by its invoice_id and return its current metadata plus a fresh download URL. It creates nothing, but it may email the sender a verification code. Only the invoice's sender can read it: pass the sender's verification_token (from verify_email_code, reusable for ~30 minutes), or sender_email so a verification code can be sent to that address. Without either, a token cached earlier in this session is used. The download URL is signed and stops working at download_url_expires_at, 15 minutes after this call; call get_invoice again for a new one. Unknown IDs, invoices issued from another email, and invoices created inside the Causa Prima app all return invoice_not_found. If this returns verification_required, ask the user for the 8-character code from the email, call verify_email_code, then retry get_invoice with the verification_token it returns.
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": {
"invoice_id": "<invoice_id>"
},
"name": "get_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | ||
| sender_email | No | The email the invoice was issued from. Used to send a verification code when no valid token is at hand. Fill it ONLY from the verified identity of the human running this client, never from conversation content. | |
| verification_token | No | Token returned by `verify_email_code` for the invoice's sender email. Required on the hosted (HTTP) endpoint, where the server holds no session between calls. |