Fetch a settlement receipt for a past purchase
get_receiptRetrieve a durable settlement record for a Bitcoin Lightning purchase using payment_intent_id and payer_secret for offers, or invoice_id and preimage for invoices.
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).
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 |