POST /api/v1/payments
Headers
{"X-Api-Key": "{{ wallet.inkey }}"}
Body (application/json)
{"out": false, "amount": <int>, "memo": <string>}
Returns 201 CREATED (application/json)
{"checking_id": <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)
{"checking_id": <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/<checking_id>
Headers
{"X-Api-Key": "{{ wallet.inkey }}"}
Returns 200 OK (application/json)
{"paid": <bool>}
Curl example
curl -X GET {{ request.url_root }}api/v1/payments/<checking_id> -H "X-Api-Key: {{ wallet.inkey }}" -H "Content-type: application/json"