Create a payrequest

Generate only one pay request to accept any amount of payments, any number of times.

Body Params
string
Defaults to SATS

In this parameter, you must specify your preferred expected currency (fiat or cryptocurrency) to create a payrequest. A three-lettered ISO-compliant currency name must be used.

double
Defaults to 1

This is the minimum amount you want to receive through this payrequest.

double
Defaults to 500000000

This is the maximum amount you want to receive through this payrequest.

string
Defaults to lnurl

Version 2022-10-15 supports both onchain and lnurl payrequest methods. Use this parameter to mention which payrequest method you want; lnurl or onchain.

double
Defaults to 0

In this parameter, you must specify the maximum amount of times you want to receive payment through this payrequest. Here 0 means infinite number of times.

Headers
string
Defaults to acct_xxxxxxxxxxxxxx

Here, you can specify the Speed account ID of your connected account.

date
Defaults to 2022-10-15

In this parameter, you have to specify the version 2022-10-15. Version 2022-10-15 supports both onchain and lnurl payrequest methods.

Response

Language
Credentials
Basic
base64
:
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json

Questions? Contact us