Skip to main content

Reward link

Give one gift card from your pool to one person with a single link, and get the card back automatically if they never claim it.

A reward link is how an individual gift card leaves your pool and reaches a customer. When you generate one, Paylode sets one card of the amount you ask for aside, binds it to a fresh single-use link, and gives you a URL to drop into an email, a text, a chat message, or a page. The recipient opens it, reveals the card, and redeems it with the brand. No account, no login, nothing to install: the link carries the card.

What makes a reward link more than a code in an email is that the card stays yours until someone reveals it. Every link has an expiry date. If nobody reveals the card by then, the link expires and the card goes back into your pool, ready to give to someone else. A send that never reaches anyone doesn't cost you a card.

A link is always in one of four states. It starts Reserved and ends in exactly one of the other three:

StateWhat it meansWhere the card is
Reserved (RESERVED)The link exists and is waiting to be opened. This is the state at generation.Set aside for this link, out of your available inventory.
Revealed (REVEALED)The recipient opened the link and revealed the code.With the recipient. It counts as redeemed in your pool.
Expired (EXPIRED)The expiry date passed before anyone revealed the card.Back in your pool, available again.
Revoked (REVOKED)You took the link back before anyone revealed the card.Back in your pool, available again.

A few rules follow from this:

  • Revealed is final, and safe to revisit. Once revealed, the link keeps showing the same code: the recipient can reload the page or come back next week. The expiry date no longer applies, and the card can't be taken back because its code has been seen.
  • Expired and revoked look the same to the recipient. Whoever opens the link sees an expired page. An expired or revoked link never comes back to life: to give that person a card, send them a new link.
  • Only a waiting link can be taken back. You can revoke a Reserved link at any time before its expiry. See Find and revoke reward links.

The expiry date​

The expiry date is the deadline for revealing the card. You choose it when you generate the link, and every link has one. In the app you pick a day and the link expires at the end of it; through the API you pass the exact moment.

Generating a link takes a card out of your available inventory straight away. That's what guarantees the recipient a card when they open it, and it also means an unopened link holds a card that nobody else can get. Without an expiry, every link that's ignored or lost would hold its card forever.

The expiry turns that hold into a temporary one. When it passes, Paylode releases the card automatically within a few minutes. You don't have to track which links were used or clean anything up.

How it protects your cards​

Think of a gift-card email campaign to 2,000 customers. In any send like this, some of the cards never reach anyone:

  • some emails bounce, or never arrive at all;
  • some land in spam and are never seen;
  • some are delivered and never opened, or opened and forgotten.

If the cards were plain codes pasted into the emails, every one of those cards would be gone. With reward links, they're only reserved. Say 1,400 recipients reveal their cards before the expiry date. The other 600 links expire, and those 600 cards go back into your pool. You can send them in your next campaign, give them to a different group, or attach the pool to a Boost reward.

Revealed cards are the only ones that leave your inventory for good, and those are the ones that reached a person.

Choosing the expiry​

Pick a date that gives recipients a fair chance to act, and no longer than you want the cards held:

  • Match it to the message. For a one-off thank-you, a week or two leaves time for a busy inbox; the app suggests a week by default. For a campaign that runs for a month, expire the links when the campaign ends.
  • Say it in the message. Recipients act sooner when they know the deadline. Tell them by when to claim the card.
  • Remember it's a hold on inventory. The longer the window, the longer unclaimed cards stay out of your pool. If you need a card back before the expiry, for example because a link went to the wrong person, revoke it.

The link's expiry only covers revealing the card. Once revealed, the card is the recipient's, and redeeming it with the brand follows the card's own terms.

The Allocation Page​

Recipients don't call an API. Each reward link points at a Paylode-hosted Allocation Page at rewards.paylode.com that renders the card: the brand, the amount, and a reveal action. Before reveal, the page shows the card but not its code; after reveal, it shows the redeemable code. An expired or revoked link shows the expired page instead. You share the link; the page does the rest. To see the page before sending anything, open a preview from the pool; see Share gift-card reward links.

Security​

The link is the bearer instrument. Anyone who has the full URL can reveal the card, so treat a reward link like a secret:

  • The token is part of the link itself. Treat the whole link as the secret: don't shorten, rewrite, or repackage it in a way that exposes it, and don't post it anywhere public or scrapable.
  • Keep reward-link URLs out of your own application logs, analytics events, and error reports.
  • Send each link to exactly one recipient over a private channel.

In the API​

The recipient's flow is anonymous and drives two operations on the gift service: view the link (to render the page) and reveal the card. Both authenticate with the link's token in the X-Reward-Token header — there's no API key and no user account.

curl "https://gift.paylode.com/reward" \
-H "X-Reward-Token: sk_example_reward_9d2fac81b0e34c17"
const res = await fetch("https://gift.paylode.com/reward", {
headers: { "X-Reward-Token": "sk_example_reward_9d2fac81b0e34c17" }
});
const view = await res.json();

While the link is still reserved, the view carries the card's presentation and state, but not the code (trimmed to the display fields that matter here):

{
"state": "RESERVED",
"gift": {
"title": "Example Coffee Co.",
"denomination": 50,
"currency": "USD",
"country": "US"
}
}

Revealing the card returns the same view shape with the redeemable reward populated (the code, and any PIN the brand issues). Once revealed, the view keeps returning that code on reload. A revoked link is reported as EXPIRED here, so the recipient's page treats it exactly like an expired one. For the exact view and reveal schemas and error responses, see getRewardLink and revealRewardLink on developers.paylode.com.

Generating a link from a pool (the step you run) is covered in Share gift-card reward links; generating many at once in the app is covered in Hand out reward links in bulk.