Skip to main content
POST
Create Lightning invoice

Authorizations

API-Key
string
header
required

Your public API key. Identifies the partner making the request.

API-Sign
string
header
required

HMAC signature over the request, computed with your private key.

API-Nonce
string
header
required

Monotonically increasing nonce included in the request signature.

Path Parameters

account_id
string
required

Public identifier of the account that will receive the deposit.

Required string length: 1 - 64

Body

application/json

Asset and exact amount the Lightning invoice should request.

asset_symbol
string
required

Symbol of the asset to deposit over the Bitcoin Lightning Network. Use a symbol returned by the PWS Assets API, such as BTC.

Required string length: 1 - 16
amount
string
required

Exact decimal amount the invoice requests, denominated in asset_symbol and represented as a string to preserve precision.

Required string length: 1 - 64
Pattern: ^[0-9]+(\.[0-9]+)?$

Response

Lightning invoice created for the selected account.

Lightning invoice created for the selected account.

data
object
required

Single-use BOLT11 payment request for a Bitcoin Lightning Network deposit.