@ -19,11 +19,13 @@ query parameters can be used at once\.
.SH RETURN VALUE
.SH RETURN VALUE
On success, an array \fI invoices\fR of objects is returned\. Each object contains
On success, an array \fI invoices\fR of objects is returned\. Each object contains
\fI label\fR , \fI payment_hash\fR , \fI status\fR (one of \fI unpaid\fR , \fI paid\fR or \fI expired\fR ),
\fI label\fR , \fI description\fR , \fI payment_hash\fR , \fI status\fR (one of \fI unpaid\fR , \fI paid\fR or \fI expired\fR ),
\fI payment_preimage\fR (for paid invoices), and \fI expiry_time \fR (a UNIX
\fI payment_preimage\fR (for paid invoices), and \fI expires_at \fR (a UNIX
timestamp)\. If the \fI msatoshi\fR argument to \fB lightning-invoice\fR (7) was not "any",
timestamp)\. If the \fI msatoshi\fR argument to \fB lightning-invoice\fR (7) was not "any",
there will be an \fI msatoshi\fR field as a number, and \fI amount_msat\fR as the same
there will be an \fI msatoshi\fR field as a number, and \fI amount_msat\fR as the same
number ending in \fI msat\fR \. If the invoice \fI status\fR is \fI paid\fR , there will be a
number ending in \fI msat\fR \. If the invoice was created with a bolt11 string,
there will be a \fI bolt11\fR field\.
If the invoice \fI status\fR is \fI paid\fR , there will be a
\fI pay_index\fR field and an \fI msatoshi_received\fR field (which may be slightly
\fI pay_index\fR field and an \fI msatoshi_received\fR field (which may be slightly
greater than \fI msatoshi\fR as some overpaying is permitted to allow clients to
greater than \fI msatoshi\fR as some overpaying is permitted to allow clients to
obscure payment paths); there will also be an \fI amount_received_msat\fR field
obscure payment paths); there will also be an \fI amount_received_msat\fR field
@ -41,4 +43,4 @@ Rusty Russell \fI<rusty@rustcorp.com.au\fR> is mainly responsible\.
Main web site: \fI https://github.com/ElementsProject/lightning\fR
Main web site: \fI https://github.com/ElementsProject/lightning\fR
\" SHA256STAMP:24dc46a53eed1dd689d7fb371a3da52242f306126d54bba3d8c6ba5a75b6b795
\" SHA256STAMP:3d3cef4fa52635fa5c515959718e017173c3fffdc32ca7066fea3b82cf93758d