POST
/
v0
/
ln-address
/
fetch-charge

Description

If instead of sending Bitcoin payments directly to a given Lightning Address, you would rather create a Payment Request QR code for that Lightning Address, you can use this API.

Usage

Depending on your system’s configuration or your product’s UX, you may need the ability to generate Charges for specific users. For ZBD users that’s easy using the ZBD Gamertag endpoints. For any user that is using a different provider, you can use this endpoint.

The way to think of this is:

First

Given user@domain.com Lightning Address and an amount property, this endpoint generates a Charge.

Second

If this new Charge is paid, the payment is received by user@domain.com.

Configuration

Header Parameters

apikey
string
required

ZBD Project API Key

Content-Type
string

Content Type

Body

lnaddress
string
required

The Lightning Address of the intended recipient

amount
string
required

The amount for the Charge -> in millisatoshis

description
string

Note or comment of this Charge