Fetch lightning invoice for a payment hash

get/api/v2/wallet/{walletId}/lightning/invoice/{paymentHash}

This API call is used to fetch lightning invoice for a given payment hash. Payment hash is a unique identifier for a lightning invoice.

Path Parameters

  • walletIdstringRequired
    Example: 59cd72485007a239fb00282ed480da1f
    Pattern: ^[0-9a-f]{32}$
  • paymentHashstringRequired

200 Response

valueMsat string <number>required
paymentHash string required
invoice string required
walletId string required
status string required
Allowed values: open settled canceled
expiresAt string <date-time>required
createdAt string <date-time>required
updatedAt string <date-time>required
amtPaidMsat string <number>
The number of millisats actually paid to this invoice, this may be greater than the amount requested by the invoice, since lightning allows overpaying (but not underpaying) invoices.

400 Response

One of
name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id

404 Response

One of
name string required
Allowed value: InvalidWalletId
context object required
id string required
Example: 59cd72485007a239fb00282ed480da1f
Match pattern: ^[0-9a-f]{32}$
error string required
Human-readable error message
requestId string required
Client request id

500 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id