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", "message": "", "data": { "id": "l11_abc123xyz", "object": "lightning_invoice_bolt11", "amount": 123456, "d_tag_memo": "Payment for order #7890", "h_tag": null, "collect": "col_98765", "expiry_interval": 3600, "metadata": { "order_id": "7890", "customer_id": "cust_456" }, "status": "active", "payment_status": "unpaid", "created_at": "2025-09-28T08:15:30Z", "updated_at": "2025-09-28T08:20:45Z" } }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
ID of an existing lightning invoice
Set of key-value pairs to attach to the lightning_invoice object
The status of the request - success or failure
Additional information about the status
The updated lightning_invoice_bolt11 object
Was this page helpful?