diff --git a/lnbits/extensions/satspay/templates/satspay/_api_docs.html b/lnbits/extensions/satspay/templates/satspay/_api_docs.html index 9ef27cb2a..b4bc201ea 100644 --- a/lnbits/extensions/satspay/templates/satspay/_api_docs.html +++ b/lnbits/extensions/satspay/templates/satspay/_api_docs.html @@ -60,19 +60,34 @@ group="api" dense expand-separator - label="Create a pay link" + label="Create a charge link" > POST /pay/api/v1/links
Headers
- {"X-Api-Key": <admin_key>}
+ {"X-Api-Key": <invoice_key>}
Body (application/json)
{"description": <string> "amount": <integer>}
Returns 201 CREATED (application/json)
- {"lnurl": <string>} + { + "deliveryId": <string>, + "description": <string>, + "webhookId": <string>, + "originalDeliveryId": <string>, + "isRedelivery": <boolean>, + "type": <string>, + "timestamp": <int>, + "paytime": <int>, + "storeId": <string>, + "invoiceId": <string>, + "manuallyMarked": <boolean>, + "overPaid": <boolean>, + "afterExpiration": <boolean>, + "partiallyPaid": <boolean> + }
"type" can be InvoiceReceivedPayment, InvoicePaidInFull, InvoiceExpired, InvoiceConfirmed, and InvoiceInvalid
Curl example
curl -X POST {{ request.url_root }}pay/api/v1/links -d diff --git a/lnbits/extensions/satspay/templates/satspay/index.html b/lnbits/extensions/satspay/templates/satspay/index.html index 39e9d643c..da5cd59b4 100644 --- a/lnbits/extensions/satspay/templates/satspay/index.html +++ b/lnbits/extensions/satspay/templates/satspay/index.html @@ -149,9 +149,9 @@ @@ -71,6 +71,7 @@ {"description": <string> "amount": <integer>}
Returns 201 CREATED (application/json) +
{"lnurl": <string>}
Curl example