Events & Recognition
Gift Voucher
Celebration voucher — value, personal message, redemption code, and expiry.
The contract
Fields your API call provides. Amounts and totals are always computed by the caller — templates only format.
| amount | number | required |
| message | string | required |
| expires_on | string | required |
| issuer_name | string | required |
| voucher_code | string | required |
| purchaser_name | string | required |
| recipient_name | string | required |
| redemption_terms | string | required |
MCP-ready: forks of this template will expose generate_gift_voucher when the MCP server ships.
Generate it (after you fork & publish)
curl -X POST https://your-paperbrain-host/api/generate/gen_<your-id> \
-H "Content-Type: application/json" \
-d '{
"amount": 150,
"message": "Happy anniversary — dinner on us this year!",
"expires_on": "2027-06-10",
"issuer_name": "Saltwater Bistro",
"voucher_code": "SALT-9F2K-77",
"purchaser_name": "the Hendersons",
"recipient_name": "Maya & Tom",
"redemption_terms": "Redeemable for food and drink at Saltwater Bistro. Not redeemable for cash. Present code at checkout."
}'gen_<your-id>is your generator's id once you fork and publish. The body shown is this template's sample data — the exact shape the contract validates.