Admin key: {{ wallet.adminkey }} Invoice/Read key: {{ wallet.inkey }}
Generate an invoice: POST /v1/invoices Header
{"Grpc-Metadata-macaroon": "{{ wallet.inkey }}"}
Body {"value": "200","memo": "beer"}
Returns
{"pay_req": string,"pay_id": string}
*payment will not register in the wallet until the
"check invoice" endpoint is used
Check invoice:
Check an invoice: GET /v1/invoice/*payment_hash* Header
{"Grpc-Metadata-macaroon": "{{ wallet.inkey }}"}
Returns
{"PAID": "TRUE"}/{"PAID": "FALSE"}
*if using LNTXBOT return will hang until paid