---
title: "Update Static Charge"
method: PATCH
path: "/v0/static-charges/{id}"
tags: ["Lightning Charges"]
---

# Update Static Charge

`PATCH /v0/static-charges/{id}`

Change the configuration of a Static Charge QR code.

## Path parameters

- `id` string, required

## Headers

- `Content-Type` string

## Request body

- object
  - `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

## Response `200`

Successful response

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

## Changes

- **2025-04-18** `b749c336df59` — 1 warning, 1 info
  - deleted the `header` request parameter `apikey`
  - the endpoint scheme security `apikeyAuth` was added to the API
- **2025-04-18** `028610bc46ff` — 1 breaking
  - the `header` request parameter `apikey` became required

[Change history](https://skmtc.dev/zbdpay/apis/zbd-payments-api/changes/v0/static-charges/:id/patch.md)

---

[API](https://skmtc.dev/zbdpay/apis/zbd-payments-api.md) · [All operations](https://skmtc.dev/zbdpay/apis/zbd-payments-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zbdpay/zbd-payments-api/revisions/0d5fdd96023d/schema)
