ApiMint
List issuances for a coupon
GET
/api/coupons/{id}/mintsAuthorization<token>
Nostr <base64 of kind 27235 event>. Tags: u, method, optional
payload (sha256 hex of body), and a random nonce to avoid replay.
In: header
Path Parameters
id*string
Format
uuidResponse Body
application/json
application/json
curl -X GET "https://example.com/api/coupons/497f6eca-6276-4993-bfeb-53cbbbba6f08/mints"{ "mints": [ { "nonce": "string", "status": "minted", "mintedBy": "string", "mintedByNpub": "string", "mintedAt": 0, "claimedAt": 0, "voidedAt": 0 } ]}Coupons the caller can mint GET
Across every merchant that authorized this npub. For POS button lists.
Mint a voucher POST
This is the `mintUrl` from the announcement. Signer must be the owner or an authorized minter. Returns a nonce (bearer credential) and a signed kind **20402** voucher (`phase: minted`).