mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-27 12:26:19 +02:00
Adding satspay docs, making same as btcpay
This commit is contained in:
@@ -60,19 +60,34 @@
|
||||
group="api"
|
||||
dense
|
||||
expand-separator
|
||||
label="Create a pay link"
|
||||
label="Create a charge link"
|
||||
>
|
||||
<q-card>
|
||||
<q-card-section>
|
||||
<code><span class="text-green">POST</span> /pay/api/v1/links</code>
|
||||
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5>
|
||||
<code>{"X-Api-Key": <admin_key>}</code><br />
|
||||
<code>{"X-Api-Key": <invoice_key>}</code><br />
|
||||
<h5 class="text-caption q-mt-sm q-mb-none">Body (application/json)</h5>
|
||||
<code>{"description": <string> "amount": <integer>}</code>
|
||||
<h5 class="text-caption q-mt-sm q-mb-none">
|
||||
Returns 201 CREATED (application/json)
|
||||
</h5>
|
||||
<code>{"lnurl": <string>}</code>
|
||||
<code> {
|
||||
"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>
|
||||
}<br/><small>"type" can be InvoiceReceivedPayment, InvoicePaidInFull, InvoiceExpired, InvoiceConfirmed, and InvoiceInvalid</small> </code>
|
||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||
<code
|
||||
>curl -X POST {{ request.url_root }}pay/api/v1/links -d
|
||||
|
@@ -149,9 +149,9 @@
|
||||
<q-input
|
||||
filled
|
||||
dense
|
||||
v-model.trim="formDialogCharge.data.title"
|
||||
v-model.trim="formDialogCharge.data.description"
|
||||
type="text"
|
||||
label="Title"
|
||||
label="Description"
|
||||
></q-input>
|
||||
|
||||
<q-input
|
||||
|
@@ -60,7 +60,7 @@
|
||||
group="api"
|
||||
dense
|
||||
expand-separator
|
||||
label="Create a pay link"
|
||||
label="Create a charge link"
|
||||
>
|
||||
<q-card>
|
||||
<q-card-section>
|
||||
@@ -71,6 +71,7 @@
|
||||
<code>{"description": <string> "amount": <integer>}</code>
|
||||
<h5 class="text-caption q-mt-sm q-mb-none">
|
||||
Returns 201 CREATED (application/json)
|
||||
|
||||
</h5>
|
||||
<code>{"lnurl": <string>}</code>
|
||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||
|
Reference in New Issue
Block a user