API Reference
Refunds
Server-intent + wallet-signed on-chain transfer.
Create
Returns:
Submit signature
After the merchant broadcasts the on-chain ERC-20 Transfer, record the tx hash:
Lifecycle
Re-submitting signature is idempotent. Useful if the merchant accidentally records the wrong hash and needs to update.
Validation
- Cumulative refund amount cannot exceed
Transaction.amount(across all refunds with statussubmittedorcompleted) - The original transaction must be in status
confirmed
Webhook events
| Event | Fires when |
|---|---|
refund.created | The refund row was created |
refund.completed | The indexer confirmed the on-chain Transfer |
refund.failed | Validation rejected the refund or it was voided |
