DEVELOPER REFERENCE

Digital Voucher & Rewards API

Query live brand catalogs, enforce region-lock validation, and retrieve envelope-encrypted voucher codes.

Authentication & Region-Lock Guard

Include Authorization: Bearer <token>. Every POST /orders call must pass confirmedRegion matching the SKU regionLock field—mismatches fail fast with HTTP 422 to prevent accidental cross-region purchases.

curl -X POST https://api.moin.group/api/gifts/v1/orders \
  -H "Authorization: Bearer mk_live_***" \
  -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \
  -H "Content-Type: application/json"
GET/api/gifts/v1/catalog

Browse active SKUs with face value, currency, and mandatory storefront regionLock.

POST/api/gifts/v1/orders

Create a region-verified voucher order settled through Moin.Cash unified checkout.

POST/api/gifts/v1/vouchers/{id}/reveal

Owner-authenticated on-demand AES-256-GCM decryption returning the redemption PIN once.

Delivery & Audit Webhooks

Signed HMAC-SHA256 webhooks signal voucher fulfillment without ever transmitting raw plaintext PINs over unencrypted channels.

Header: X-Moin-Signature: t=1764633600,v1=<hmac_sha256_hex> · Origin: https://moin.gifts