Create Invoice

A resource you use to accept payments via Lightning Network. It generates a Lightning Invoice in BOLT11 (a standard used for payment requests in the Lightning Network). Lightning wallets such as Breezearrow-up-right or Blinkarrow-up-right can pay the invoice by scanning it.

Invoice States 1.0
  • An invoice has a default 2-min expiry upon creation.

  • The API will return a paymentRequest field which contains the BOLT11 payment request.

  • It also returns a paymentRequestDataUrl field which you can use to render the paymentRequest as a QR code.

POST https://example.com/v1/invoices

Headers

Name
Type
Description

X-Pouch-Api-Key*

string

X-Pouch-Signature*

string

Request Body

Name
Type
Description

amount*

integer

min value: 1

currency*

string

enums: SAT

description*

string

min length: 1 max length: 128

referenceId*

string

format: uuid

walletId*

string

format: uuid

Last updated