GET /api/v1/wallet
Headers
{"X-Api-Key": "{{ wallet.adminkey }}"}
Returns 200 OK (application/json)
{"id": <string>, "name": <string>, "balance":
<int>}
Curl example
curl {{ request.url_root }}api/v1/wallet -H "X-Api-Key:
{{ wallet.inkey }}"
POST /api/v1/payments
Headers
{"X-Api-Key": "{{ wallet.inkey }}"}
Body (application/json)
{"out": false, "amount": <int>, "memo": <string>}
Returns 201 CREATED (application/json)
{"payment_hash": <string>, "payment_request":
<string>}
Curl example
curl -X POST {{ request.url_root }}api/v1/payments -d '{"out": false,
"amount": <int>, "memo": <string>}' -H "X-Api-Key:
{{ wallet.inkey }}" -H "Content-type: application/json"
POST /api/v1/payments
Headers
{"X-Api-Key": "{{ wallet.adminkey }}"}
Body (application/json)
{"out": true, "bolt11": <string>}
Returns 201 CREATED (application/json)
{"payment_hash": <string>}
Curl example
curl -X POST {{ request.url_root }}api/v1/payments -d '{"out": true,
"bolt11": <string>}' -H "X-Api-Key:
{{ wallet.adminkey }}" -H "Content-type:
application/json"
GET
/api/v1/payments/<payment_hash>
Headers
{"X-Api-Key": "{{ wallet.inkey }}"}
Returns 200 OK (application/json)
{"paid": <bool>}
Curl example
curl -X GET {{ request.url_root
}}api/v1/payments/<payment_hash> -H "X-Api-Key:
{{ wallet.inkey }}" -H "Content-type: application/json"