Skip to main content
Merchant payment links are shareable single-invoice checkout references, not permanent reusable products. POST /api/merchant/payment-link stores a PENDING invoice with a 24-hour expiry. The separate initialize endpoint stores a 120-minute expiry. The customer pays directly to the merchant wallet; FlareHQ never holds checkout funds. Creating a link stores a PENDING invoice and moves no funds. Read mainnet availability. Use a verified active merchant’s API key or supported merchant session. The merchant must have a payout wallet; the server freezes that wallet and merchant identity into the invoice.
This is an illustrative backend request, not a performed production test. There is no /api/payment-links product API or /pay/lnk_... route in this application.

Fields and semantics

Do not send name, price, quantity, shipping-address collection, arbitrary recipient or reusable-product settings from older SDK examples. Those are not supported product features here. The response includes reference, checkoutUrl, numeric amount, currency, canonical token, description, merchant and expiresIn: '24 hours'. It does not return a product ID, activation switch or SDK link.url. GET /api/merchant/payment-link uses the same merchant resolver and returns that merchant’s links. It limits the database query to the most recent 100 merchant rows, then filters for the selected network. The view includes raw and derived display statuses, expiresAt, token identity and checkout URL. A row may remain raw PENDING after expiry while the view displays EXPIRED. A list response is not live receipt verification or proof that a pending payer transaction failed. Expired links use a neutral badge and a separate dashboard count; Failed stays red and unknown codes do not count as Pending. These are display-only labels, not stored status changes or payment behavior.

Verify the payment

Open the actual /checkout/{reference} or /checkout/embed/{reference} URL. Before fulfillment, read GET /api/payments/verify/{reference}, compare the frozen invoice with your own order, and inspect receipt/recipient-credit evidence where needed. Top-level status: true means a successful query, not a paid order. Do not rely on a linkId webhook field, shipping-address payload or signed notification: these were unsupported older examples. Use your saved reference and durable once-only fulfillment state.