Grant perks without a purchase

Give a person a perk by hand for support cases, testers, partners or compensation, and know how it combines with what they bought.

A grant gives one person one perk without a store purchase: a month of premium after an outage, beta access for a tester, lifetime access for a partner. Your app sees it at once, the same way it sees a perk someone bought. RevenueCat calls these promotional entitlements.

A grant is not a sale. It records no transaction, carries no revenue and never counts towards MRR, revenue or conversion charts. It does count in Active entitlements, which shows who can use each perk now.

Grant a perk

Grant from Studio on the person's page (Granted perks → Grant perk), or from your backend, the CLI or an AI assistant:

curl https://api.voidhash.com/api/v1/projects/$PROJECT_ID/persons/$PERSON_ID/grants \
  -H "Authorization: Bearer $VOIDHASH_SECRET_KEY" \
  -H "Idempotency-Key: ticket-4821" \
  -H "Content-Type: application/json" \
  -d '{"perkId": "perk_c4v7b1n9m2x5z8q3w6e0r4t7", "expiresAt": "2026-04-14T00:00:00Z", "note": "Ticket 4821"}'
voidhash person grant ada@example.com premium --days 30 --note "Ticket 4821"

Give ada@example.com premium for 30 days, ticket 4821.

The assistant calls grant_perk.

  • How long: until expiresAt, or for life when you leave it out. A lifetime grant lasts until you revoke it.
  • Note: why it was granted, for your team. Keep personal data out of it; it is cleared when the person's data is erased.
  • Who: granting and revoking need the Entitlements write permission. Each grant records who made it: a team member, a secret key or a bot.

Retries

A person has at most one active grant of a perk in an environment. A second grant of the same perk fails with grant_already_active until the first is revoked or expires, so a retried request never gives twice. To change how long a grant lasts, revoke it and grant again.

Send an Idempotency-Key header to make a retry answer with the grant the first request made, instead of failing. The same key used for another person or perk fails with idempotency_key_reused.

How grants combine with purchases

The person has the perk while any grant or purchase of it is active. A grant never changes, replaces or ends a purchase, and a purchase never ends a grant:

  • Revoking a grant leaves the access a subscription or purchase gives.
  • A refund, cancellation or expiry of a purchase leaves the access a grant gives.

The SDK snapshot and the server access check list one entitlement per perk. When several things give the same perk, it names the one that lasts longest, with source: "manual" and the grant's id as sourceId when that is a grant. A one-time purchase wins over a lifetime grant, and a store purchase wins any tie. Checking whether the person has the perk doesn't depend on which one it names.

Expiry and revoking

A grant ends at its expiresAt on the dot, with no store notification: the SDKs and the access check report the perk as ended from that moment. A subscription, by contrast, keeps access for a day after its period in case a renewal notification is late.

Revoke a grant to end it now: POST …/persons/{personId}/grants/{grantId}/revoke, voidhash person revoke, the revoke_perk_grant tool, or Revoke in Studio. Revoking a revoked grant changes nothing. Revoked and expired grants stay listed, with who revoked them and when.

Environments and accounts

  • Environments: a grant gives access in one environment. A production secret key, or a person in Studio's production view, grants in production; a test key or Studio's test view grants in test, which only apps using test keys see. Store sandbox has no grants.
  • Merged people: when two people are merged, the survivor keeps the grants of both.
  • Sharing and restores: a grant belongs to the person it was given to. It is never shared with family members or other accounts, and a restore on another account doesn't move it, whatever your paid access sharing setting.
  • Erasure: erasing a person keeps their grants, like their purchases, and clears the grants' notes.

Next steps

Something wrong or missing on this page? Tell us by email or on Discord.