Understanding the Lightning Charge Workflow Problem
/withdrawal-requests
endpoint:
Property | Status | Description |
---|---|---|
amount | String | The Withdrawal Request amount (in millisatoshis). |
description | String | The Withdrawal Request description. |
internalId | String | An optional free-use attribute. Usually used by setting the Player/User ID of your Game/Application in order to link specific Withdrawal Requests to specific Players. |
callbackUrl | String | The URL ZBD services will make a POST HTTP request to with information about the Withdrawal Requests’s status updates. See Callbacks for more. |
expiresIn | Number | The desired expiration time for this Withdrawal Request (in seconds). |
data.invoice.request
attribute returned from the API response and pass it to your QR code generator of choice. The QR code should look something like this:
Withdrawal Requests QR Code
pending
state as it still hasn’t been claimed. All Withdrawal Requests will either complete or expire. If no User is able to Withdraw the funds on time before the Withdrawal Request’s expiration time, the Request will expire and will therefore no longer be valid. To know the status of your specific Withdrawal Request, check the status
attribute returned from the CreateWithdrawalRequest
or GetWithdrawalRequestDetails
API calls.
callbackUrl
property when creating that Withdrawal Request. Whenever there are updates to the Withdrawal Request (a payment was made, or it has expired) the ZBD API will make a POST request to the URL provided in callbackUrl
, passing the Withdrawal Request updates as data in the request.