POST
/
v0
/
payments

Description

This endpoint sends a payment on the Bitcoin Lightning Network. This is one of the main APIs which allow you to pay any Charge in the network.

The words Charge, Payment Request, and Invoice can be seen as equivalent in the context of requesting funds in the Bitcoin Lightning Network.

Usage

All payments in the Lightning Network are asynchronous. Though possible, most payments will not settle immediately on the API invocation. They do however tend to settle immediately thereafter, which means you MUST to provide the callbackUrl to receive updates about your app’s payments.

If the Charge does not have a predefined amount (e.g. an amountless invoice), you can pass an amount property with a defined value to this API call.

Configuration

Header Parameters

apikey
string
required

ZBD Project API Key

Content-Type
string

Content Type

Body

invoice
string
required

Lightning Network Payment Request / Charge

description
string

Note or comment for this Payment

amount
string

Amount to be paid to this Charge/Invoice -> in millisatoshis (only valid if Amountless Invoice)

internalId
string

Open metadata string property

callbackUrl
string

The endpoint ZBD will POST Payment updates to