@@ -60,38 +51,32 @@
{#if user && token}
This token authorizes you to use the API as
to view your auth token here,
- or get one from the /login endpoint.
+
to view your auth token here, or get one from the
+ /login endpoint.
{/if}
- Save it in a variable called
to run the examples. It gives full
- access to your account so keep it safe.
+ Save it in a variable called
to run the examples. It gives full access to your account
+ so keep it safe.
-
+
{tokenSample}
{@render cp(tokenSample)}
{#if ro}
- This read-only token has permission to create invoices and fetch payments
- but can't be used to make withdrawals
+ This read-only token has permission to create invoices and fetch payments but can't be used to
+ make withdrawals
-
+
{roSample}
{@render cp(roSample)}
{/if}
POST /register
-
- Register a new user account with a username and password
-
+
Register a new user account with a username and password
POST /login
@@ -111,13 +96,9 @@
display
string - spaces allowed
currency
-
- string - three-letter ISO currency code e.g. CAD or USD
-
+
string - three-letter ISO currency code e.g. CAD or USD
language
-
- string - two-letter language code e.g. en, fr, es
-
+
string - two-letter language code e.g. en, fr, es
@@ -131,19 +112,13 @@
type (string, default: lightning)
bitcoin or lightning
fiat (boolean, default: false)
-
- whether the amount is denominated in satoshis or local currency
-
+
whether the amount is denominated in satoshis or local currency
amount (numeric)
amount to be paid
webhook (string, optional)
-
- remote endpoint to call when the invoice is paid
-
+
remote endpoint to call when the invoice is paid
secret (string, optional)
-
- a secret value passed to the webhook to authenticate the request
-
+
a secret value passed to the webhook to authenticate the request