Docs/Reference/Receipts and polling
Receipts and polling
How brands confirm signed operations while issuer webhooks are still coming soon.
Receipt model#
A receipt is the completed evidence your brand can reconcile.
Issuer webhooks are coming soon. Until then, brands should treat the Loyfin API as a coordination and receipt surface: submit signed actions, store the returned operation ID, poll status, and read completed issuance/redemption receipts after mining.
Polling#
- After
POST /issuancesorPOST /redemptions, save the returned operationid,nonce, andoperationHash. - Poll
GET /operations/:iduntil status ismined,rejected, or your own timeout is reached. - For completed rows, fetch
GET /issuances?operationHash=...orGET /redemptions?operationHash=...and store thetxHash,blockNumber, andlogIndex. - Use cursor pagination for backfills. Do not assume one poll will catch every status transition during an outage.
Failure handling#
pendingmeans Created in product surfaces. It is not final.submittedmeans a relayer has sent a transaction, but the brand should still wait for a mined receipt.rejectedmeans the brand should release, retry, or manually review the internal operation based on the reason.- Use direct chain reads as a fallback if the API is unavailable and the brand needs independent confirmation.