NOTE: this error code is currently unused, but is planned to be used in the near future.
Looking to create invoices for a lightning address without requiring scope? Try our Lightning Address details API which uses the LNURL protocol.
Get incoming invoice history
Scope needed: invoices:read
Lists all settled incoming invoices, including boostagram and LNURL metadata.
GEThttps://api.getalby.com/invoices/incoming
Lists all incoming invoices
Query Parameters
Name
Type
Description
q[created_at_gt]
Int
Filter invoices created after this Unix Timestamp in UTC (e.g. 1681992321)
q[created_at_lt]
Int
Filter invoices created before this Unix Timestamp in UTC (e.g. 1681992321)
q[since]
String
Filter invoices created after the given invoice identifier
page
Int
Page number (1 is the first page)
items
Int
Items per page (Default 25)
q[before]
String
Filter invoices created before the given invoice identifier
Get outgoing invoice history
Scope needed: transactions:read
Lists all settled outgoing invoices, including boostagrams information.
GEThttps://api.getalby.com/invoices/outgoing
Lists all outgoing invoices
Query Parameters
Name
Type
Description
q[since]
String
Filter invoices created after the given invoice identifier
q[created_at_lt]
Int
Filter invoices created before this Unix Timestamp in UTC (e.g. 1681992321)
q[created_at_gt]
Int
Filter invoices created after this Unix Timestamp in UTC (e.g. 1681992321)
page
Int
Page number (1 is the first page)
items
Int
Items per page (Default 25)
q[before]
String
Filter invoices created before the given invoice identifier
Get all invoice history
Scope needed: invoices:read
Combination of incoming and outgoing invoice histories. Possible query parameters are the same as above.
GEThttps://api.getalby.com/invoices
Query Parameters
Name
Type
Description
q[since]
String
Filter invoices created after the given invoice identifier
q[created_at_lt]
Int
Filter invoices created before this Unix Timestamp in UTC (e.g. 1681992321)
q[created_at_gt]
Int
Filter invoices created after this Unix Timestamp in UTC (e.g. 1681992321)
page
Int
Page number (1 is the first page)
items
Int
Items per page (Default 25)
q[before]
String
Filter invoices created before the given invoice identifier
Get a specific invoice
Scope needed: invoices:read
Get details about specific invoice. Can be both incoming or outgoing.
Unsettled invoices can only be retrieved if they were created through the Alby API or Nostr Wallet Connect (using https://nwc.getalby.com/). Unsettled Invoices created directly using the Lndhub API will return a 404.