Flow
 
Septs by steps
- 
Call the add invoice endpoint 
- 
When the Webhook is called you received funds. 
- 
Notify the user that own this account that he received funds. 
Invoice States Table
| ID | Name | Descripton | 
|---|---|---|
| 0 | OPEN | Invoice is waiting to be paid | 
| 1 | SETTLED | Invoice is settled | 
| 2 | CANCEL | Invoice is canceled/expired | 
| 3 | ACCEPTED | Payment has arrived at the node. Invoice needs to be manually settled for the payment to complete | 
Accepted StateThe accepted state is present in the lightning network but is not used by hub invoices.
For hub implementations only OPEN, SETTLED and CANCEL apply.
