LIGHTNING-CANCELRECURRINGINVOICE(7)
π LIGHTNING-CANCELRECURRINGINVOICE(7) π
okay bestie, welcome to the lightning-cancelrecurringinvoice page β yes it's a whole mouthful, but it's giving "polite queen energy" and we're gonna get through it together π«Ά
β¨ NAME β¨
cancelrecurringinvoice β the command for sending a cancel message for a recurring offer π
πΈ SYNOPSIS πΈ
cancelrecurringinvoice offer recurrence_counter recurrence_label [recurrence_start] [payer_note] [bip353]
π¦ DESCRIPTION π¦
So this command was added in v25.09, ngl it's fresh β¨
π NOTE: Recurring offers are experimental, and may be changed in backwards-incompatible ways. So like... don't build your whole personality on them yet, mkay?
The cancelrecurringinvoice RPC command sends a cancellation message in place of an invoice_request. The BOLT 12 spec suggests sending this as a courtesy in place of the next invoice_request (as would be sent by fetchinvoice). Basically: you're ghosting your subscription, but politely, and the spec says it's the right thing to do π
Here's the whole cast of arguments, lowkey iconic lineup:
offer(string) β the offer string (must be recurring!) which we have been paying π§recurrence_counter(u64) β one later than the last-specifiedrecurrence_counterfor the last invoice. yeah, one later, don't @ merecurrence_label(string) β this must be the same as priorfetchinvoicecalls for the same recurrence, because it's what links them together πrecurrence_start(number, optional) β indicates what period number to start at (usually0). this will be the same as previousfetchinvoicecallspayer_note(string, optional) β to tell the issuer the reason for the cancellation. use it kindly bestie π₯Ίbip353(string, optional) β BIP353 string (optionally withβΏ) indicating where we fetched the offer from π₯
β RETURN VALUE β
On success, an object is returned, containing:
bolt12(string) β Theinvoice_requestwe sent to the issuer. that's your receipt, bestie, keep it π«Ά
π AUTHOR π
Rusty Russell rusty@rustcorp.com.au is mainly responsible. slay, king π
π SEE ALSO π
π RESOURCES π
Main web site: https://github.com/ElementsProject/lightning
and that's the whole vibe check β¨ this page is from Core Lightning v26.06.9 β go forth and cancel your recurrences with grace, mwah ππ
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms