2019-08-10 02:12:44 +02:00
|
|
|
.TH "LIGHTNING-DELINVOICE" "7" "" "" "lightning-delinvoice"
|
|
|
|
.SH NAME
|
2019-08-31 14:30:56 +02:00
|
|
|
lightning-delinvoice - Command for removing an invoice
|
2019-08-10 02:12:44 +02:00
|
|
|
.SH SYNOPSIS
|
|
|
|
|
2018-01-18 04:57:16 +01:00
|
|
|
\fBdelinvoice\fR \fIlabel\fR \fIstatus\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
|
|
|
The \fBdelinvoice\fR RPC command removes an invoice with \fIstatus\fR as given
|
|
|
|
in \fBlistinvoices\fR\.
|
|
|
|
|
|
|
|
|
|
|
|
The caller should be particularly aware of the error case caused by the
|
|
|
|
\fIstatus\fR changing just before this command is invoked!
|
|
|
|
|
|
|
|
.SH RETURN VALUE
|
|
|
|
|
|
|
|
On success, an invoice description will be returned as per
|
|
|
|
\fBlightning-listinvoice\fR(7)\.
|
|
|
|
|
2020-07-19 11:04:03 +02:00
|
|
|
.SH ERRORS
|
|
|
|
|
|
|
|
The following errors may be reported:
|
|
|
|
|
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
|
|
|
-1: Database error\.
|
|
|
|
.IP \[bu]
|
|
|
|
905: An invoice with that label does not exist\.
|
|
|
|
.IP \[bu]
|
|
|
|
906: The invoice \fIstatus\fR does not match the parameter\.
|
|
|
|
An error object will be returned as error \fIdata\fR, containing
|
|
|
|
\fIcurrent_status\fR and \fIexpected_status\fR fields\.
|
2020-08-25 03:33:16 +02:00
|
|
|
This is most likely due to the \fIstatus\fR of the invoice
|
|
|
|
changing just before this command is invoked\.
|
2020-07-19 11:04:03 +02:00
|
|
|
|
|
|
|
.RE
|
2019-08-10 02:12:44 +02:00
|
|
|
.SH AUTHOR
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
Rusty Russell \fI<rusty@rustcorp.com.au\fR> is mainly responsible\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
|
|
|
|
\fBlightning-listinvoice\fR(7), \fBlightning-waitinvoice\fR(7),
|
|
|
|
\fBlightning-invoice\fR(7), \fBlightning-delexpiredinvoice\fR(7),
|
|
|
|
\fBlightning-autocleaninvoice\fR(7)
|
|
|
|
|
|
|
|
.SH RESOURCES
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2020-08-31 03:13:23 +02:00
|
|
|
\" SHA256STAMP:92ad4501574b253334bb570960d1835c8bd84483e318ea058e6b565d34109832
|