# Lightning Network Invoices

The Lightning Network uses a system of invoices instead of addresses, reflecting the network’s primary function of a payment network. Invoices are generated by the recipient of a payment, and the validity can be limited to a certain amount of time.

Each invoice is signed by the recipient and contains an amount, expiration time, destination pubkey, supported features and others. Invoices can be canceled by the recipient, too.

These mechanisms help eliminate overpayments, underpayments, late payments and duplicate payments and can be configured to handle tips and partial payments.

{% content-ref url="/pages/-MduvSuG8D5K6jFz7Vnb" %}
[Understanding Lightning Invoices](/the-lightning-network/payment-lifecycle/understanding-lightning-invoices.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lightning.engineering/the-lightning-network/payment-lifecycle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
