PATCH
/
v0
/
static-charges
/
{id}

Usage

Use this API endpoint with the specific Static Charge ID to update its properties. Usually you’d use this API for the purposes of increasing slots or changing min/max amount settings.

Updating a Static Charge WILL NOT modify its QR code. The point of a Static Charge is that it does not change, while its contents can remain dynamic.

Configuration

Path Parameters

id
string
required

Static Charge ID

Header Parameters

apikey
string
required

ZBD Project API Key

Content-Type
string

Content Type

Body

minAmount
string

Minimum allowed amount for the Static Charge -> in millisatoshis

maxAmount
string

Maximum allowed amount for the Static Charge -> in millisatoshis

description
string

Note or comment for this Static Charge (visible to payer)

successMessage
string

Message displayed to the payer AFTER payment settles

allowedSlots
number

Number of payments this Static Charge can accept

internalId
string

Open metadata string property

callbackUrl
string

The endpoint ZBD will POST Charge updates to