Gift Codes

Gift Codes

Reward players with promotional codes that grant any in-game item or currency

Get Started Free

Flexible Reward Payloads

Gift data is free-form JSON, so you can grant any combination of currencies, items, or flags your game understands.

Granular Limits

Set a global redemption cap, a per-user cap, and an expiry date independently for each code.

Revocation Control

Revoke a code instantly from the dashboard if it leaks or is abused, with no app update needed.

Quick Integration

Quick Integration

Redeem Code

Enter Gift Code

Enter your promotional code below

WINTER2024
C#
// Unity C# - Gift Codes
using HorizOn;

var horizon = new HorizonClient("YOUR_API_KEY");

// Validate a gift code without redeeming
var validation = await horizon.GiftCodes.Validate(userId, "SUMMER2025");
if (validation.IsValid) {
    Debug.Log("Code is valid!");
}

// Redeem a gift code
var result = await horizon.GiftCodes.Redeem(userId, "SUMMER2025");
Debug.Log($"Redeemed: {result.RewardData}");
REST
# REST API - Gift Codes

# Validate a gift code (does not redeem)
curl -X POST https://eu.horizon.pm/api/v1/app/gift-codes/validate \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userId":"USER_ID","code":"SUMMER2025"}'

# Redeem a gift code
curl -X POST https://eu.horizon.pm/api/v1/app/gift-codes/redeem \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userId":"USER_ID","code":"SUMMER2025"}'
Frequently Asked Questions

Frequently Asked Questions

Ready to Integrate?

Start building with horizOn today. Free tier included.