Claiming rewards
A mission, a streak or a leaderboard can hold what it pays until the player claims it. Until then nothing is paid: the points stay off the balance and no catalog item is requested. One call from your server then pays all of it.
Step 1: choose it in the dashboard
Open the mission, streak or leaderboard and set When it is paid to The player claims it. You can give a deadline of 1 to 365 days, counted from when the reward is earned, or leave it empty for none. A leaderboard asks only once it has a prize.
The choice applies to what is earned from then on. A reward already waiting keeps its deadline.
Step 2: find what is waiting
GET /v1/rewards returns the player's rewards that are
earned and not claimed yet, oldest first.
curl -G https://api.gemifier.io/v1/rewards \
-H "Authorization: Bearer gem_sbox_..." \
--data-urlencode "playerId=player-42"[
{
"claimId": "0198f1c5-7c10-7a3e-9b57-2e41d0c8f6a2",
"sourceType": "Mission",
"sourceKey": "finish_five_lessons",
"sourceId": "0198f1c5-77ab-7d19-95e2-4c0b8e6f2a13",
"rewards": [
{ "kind": "Points", "pointsAmount": 250, "catalogItemKey": null, "catalogItemValue": null },
{
"kind": "CatalogItem",
"pointsAmount": null,
"catalogItemKey": "bonus_lesson_pack",
"catalogItemValue": { "type": "number", "value": 3 }
}
],
"earnedAtUtc": "2026-08-20T09:31:07.118Z",
"expiresAtUtc": "2026-08-27T09:31:07.118Z",
"claimedAtUtc": null
}
]Each entry is everything one completion, one milestone or one leaderboard place paid.
sourceType is Mission, StreakMilestone or Leaderboard, and sourceKey is the key of the
mission, streak or leaderboard. expiresAtUtc is null when there is no deadline.
A reward past its deadline is not listed, and neither is one already claimed. A player who has never
sent anything gets an empty list rather than an error. take caps how many come back.
The mission feed points at the same reward. A completed mission whose reward waits stays in
GET /v1/missions, even without includeCompleted, and
carries its claimId, until it is claimed or a repeating mission's next occurrence opens. A reward
from an earlier occurrence is only in the list above. claimRequired says whether a mission's
rewards wait at all, so you can show a Claim button before the mission is done.
Step 3: claim it
curl -X POST https://api.gemifier.io/v1/rewards/0198f1c5-7c10-7a3e-9b57-2e41d0c8f6a2/claim \
-H "Authorization: Bearer gem_sbox_..." \
-H "Content-Type: application/json" \
-d '{ "playerId": "player-42" }'That call returns the reward with claimedAtUtc set. The
points are on the balance by the time it answers. Each catalog item is requested with a
catalog_item.fulfillment_requested webhook after the call, not in its response, the same as for a
reward paid at once.
Claiming twice pays once. A second claim returns the reward as the first one left it, so retrying after a timeout is safe.
| Code | Status | What causes it |
|---|---|---|
reward.not_found | 404 | No reward with that id for this player. One that belongs to another player reads the same. |
reward.expired | 409 | Its deadline passed before it was claimed. Nothing was paid. |
reward.concurrent_update | 409 | Nothing was written. Send it again. |
What the webhooks say
mission.completed and streak.milestone_reached carry claimId when the reward waits for a
claim, and leave it out when it was paid at once. A leaderboard sends nothing for each player, so
read its prizes from the list in Step 2.
Deliver items on catalog_item.fulfillment_requested, never on the completion. For a reward the
player claims, that request arrives when they claim it, and never if they do not.
Traps worth knowing
- Points count from the day they are claimed. A rule or a leaderboard on points earned sees them on that day, not on the day the reward was earned.
- A reward is claimed whole. You cannot take the points and leave the item.
- A reward past its deadline cannot be brought back. When somebody deserves it anyway, adjust their balance.