create_gift_certificate
Create a gift / welcome certificate (UDS-style) with a unique 6-character redemption code (LOYAL-XXXXXX). Customer redeems via QR or by entering the code; merchant then mints tokens on-chain. Use for welcome bonuses, promo campaigns, partnership gifts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Display title (default: 'Gift Certificate') | |
| quantity | No | Number of certificates to create as a batch (1–100, default 1) | |
| image_url | No | Optional public image URL for the cert design | |
| usd_amount | Yes | Certificate face value in USD (positive) | |
| description | No | Optional descriptive text shown to the customer | |
| token_address | Yes | ERC-20 loyalty token address (must belong to the agent's merchant) | |
| expires_in_days | No | Validity period in days (omit for no expiry) | |
| points_per_dollar | No | Optional override of program rate (e.g. 10 = 10 tokens per $1). Defaults to program's points_per_dollar. | |
| max_redemption_percent | No | Max % of any future purchase the customer can pay with these tokens (5–100). Default 50. |