Skip to main content
PUT
/
v3
/
lightning_invoice_bolt11
/
{id}
cURL
curl --request PUT \
  --url https://service-sandbox.tazapay.com/v3/lightning_invoice_bolt11/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "metadata": "<string>"
}
'
"\"status\": \"success\",\n  \"message\": \"\",\n  \"data\": {\n    \"id\": \"l11_abc123xyz\",\n    \"object\": \"lightning_invoice_bolt11\",\n    \"amount\": 123456,\n    \"d_tag_memo\": \"Payment for order #7890\",\n    \"h_tag\"\n    \"collect\": \"col_98765\",\n    \"expiry_interval\": 3600,\n    \"metadata\": {\n      \"order_id\": \"7890\",\n      \"customer_id\": \"cust_456\"\n    },\n    \"status\": \"active\",\n    \"payment_status\": \"unpaid\",\n    \"created_at\": \"2025-09-28T08:15:30Z\",\n    \"updated_at\": \"2025-09-28T08:20:45Z\"\n  }\n}"

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
default:l11_ag7a8f7agegfa
required

ID of an existing lightning invoice

Body

application/json
metadata
string<json>

Set of key-value pairs to attach to the lightning_invoice object

Response

200 - application/json
status
string

The status of the request - success or failure

message
string

Additional information about the status

data
string

The updated lightning_invoice_bolt11 object