Fetch a settlement receipt for a past purchase
get_receiptRetrieve a durable settlement record for a completed purchase. Pass payment_intent_id and payer_secret for offers, or invoice_id and preimage for invoices, to verify the Lightning payment.
Instructions
Retrieve the durable settlement record for a purchase you made. For an offer purchase (Path 3b) pass payment_intent_id + payer_secret (both returned by buy_offer). For an invoice (Path 2/3a) pass invoice_id + preimage (pay_invoice returned the preimage).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preimage | No | Required with invoice_id | |
| invoice_id | No | ||
| payer_secret | No | Required with payment_intent_id | |
| payment_intent_id | No |