---
title: "Fetch lightning invoice for a payment hash"
method: GET
path: "/api/v2/wallet/{walletId}/lightning/invoice/{paymentHash}"
tags: ["Lightning"]
---

# 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

- `walletId` string, required
- `paymentHash` string, required

## Response `200`

OK

- LightningInvoice
  - `memo` string — A memo or description for the invoice
  - `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.
  - `invoice` string, required — The BOLT \#11 encoded invoice
  - `paymentHash` string, required — The payment hash of the invoice
  - `valueMsat` string, number, required — The value of the invoice in millisatoshis
  - `expiresAt` string, date-time, required — ISO-8601 string representing when the invoice will expire
  - `status` 'open' | 'settled' | 'canceled', required — The status of the invoice
  - `walletId` string, required
  - `createdAt` string, date-time, required — ISO-8601 string representing when the invoice was created
  - `updatedAt` string, date-time, required — ISO-8601 string representing when the invoice was updated

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/bitgo/apis/bitgo-api.md) · [All operations](https://skmtc.net/bitgo/apis/bitgo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitgo/bitgo-api/revisions/e445c15e5bee/schema)
