Signet

Promo Guard

Has this person already used this promotion, whatever address, browser or account they come back with? About Promo Guard

Switch: without redeem the call only looks. A canceled order can be given its use back.

The call

POST /v1/promo/check, before you grant a coupon, bonus, reward or trial.

curl https://signetsentry.com/v1/promo/check \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"campaign":"welcome10","session_id":"s_...","account_id":"user-812",
       "email":"j.smith+2@gmail.com","payment_hash":"card_9f2c...","redeem":true,"value":10}'
FieldMeaning
campaignRequired. Your name for it, such as signup-bonus, referral-reward or free-trial: 1 to 64 letters, digits, dots, dashes or underscores, starting with a letter or digit. Case is ignored.
session_idThe session: device and IP address.
account_idYour account ID, up to 128 characters.
emailOnly a one-way ID of the inbox is kept, so every spelling counts as one person.
payment_hashYour own card hash, the same as at checkout.
codeWhat the customer typed, to find your decoy codes.
limitUses allowed per person: 1 to 1000, default 1.
redeemDefault false, which only looks. true records it: an allowed use as redeemed, anything else as an attempt.
valueWhat the promotion is worth, for the savings figures.

Send at least one of session_id, account_id, email and payment_hash. More is better.

The answer

{
  "campaign": "welcome10", "eligible": false, "recommendation": "block",
  "summary": "Block: welcome10 was already used once by the same device, the same inbox.",
  "reason_codes": ["PROMO_DEVICE_REUSED", "PROMO_MAILBOX_REUSED"],
  "prior_redemptions": 1, "limit": 1,
  "matches": [
    { "by": "device", "redemptions": 1, "last_at": "2026-11-19T14:02:11Z" },
    { "by": "mailbox", "redemptions": 1, "last_at": "2026-11-19T14:02:11Z" }
  ],
  "recorded": true, "redemption_id": 4182,
  "visitor_id": "v_81d5712d684cceff", "test_mode": false
}
FieldMeaning
recommendationallow grant it. review no earlier use, but a sign of farming. block earlier uses reached limit.
eligibletrue only on allow.
summaryOne sentence for logs and support.
prior_redemptionsMatching earlier uses, each counted once.
matchesBy device, linked_device, mailbox, card or account, with the count and the latest time.
recorded, redemption_idWhether this call was stored, and the ID to undo it.
visitor_idThe session’s device.

Reason codes

CodeAnswerMeaning
PROMO_DEVICE_REUSEDblock at limitThe same device used it.
PROMO_LINKED_DEVICE_REUSEDblock at limitA linked device used it.
PROMO_MAILBOX_REUSEDblock at limitThe same inbox used it.
PROMO_CARD_REUSEDblock at limitThe same payment_hash used it.
PROMO_ACCOUNT_REUSEDblock at limitThe same account_id used it.
PROMO_DECOY_CODEblockThe code is one of your decoys. Nothing is recorded as a use.
PROMO_NETWORK_BURSTreviewUnusually many recent uses from one network.
PROMO_DISPOSABLE_EMAILreviewA disposable inbox.
PROMO_EMAIL_INVALIDreviewNot a usable address.
PROMO_DEVICE_NOT_DISTINGUISHABLENoneThe device could not be told apart and nothing else was sent. Send more identifiers.

Look first, record at the order

  1. When the code is typed, call without redeem. Show or refuse the discount.
  2. When the order is placed, call with redeem: true and value. Apply the discount only on allow.

Undo and report

After a refund, DELETE /v1/promo/redemptions/{id} gives the use back: 204, or 404 not_found. GET /v1/promo/campaigns?days=30 lists up to 200 campaigns.

{ "days": 30, "campaigns": [
    { "campaign": "welcome10", "redeemed": 412, "blocked": 37, "review": 5,
      "value_granted": 4120, "value_saved": 370, "last_at": "2026-11-22T18:40:09Z" } ] }

Counts are calls with redeem: true; amounts add up the value you sent. The blocked total is also in the value report.

Decoy codes

A code no real customer is given. Put it where only scrapers will find it.

POST /v1/decoys      { "kind": "promo_code", "like": "SPRING-24AB", "label": "Spring decoy" }
201                  { "id": "dc_...", "kind": "promo_code", "value": "KMTXRP-73QF", "label": "Spring decoy", "created_at": "..." }
POST /v1/promo/check { "campaign": "spring", "code": "KMTXRP-73QF", "session_id": "s_..." }
200                  { "recommendation": "block", "reason_codes": ["PROMO_DECOY_CODE"], "recorded": false, ... }

The value is shown once. Send every typed code to the check, also the ones you do not know, and show one message for unknown and blocked. A person who finds the code by hand looks the same as a scraper.

CallPurpose
GET /v1/decoysYour decoys and their hits, never the values.
DELETE /v1/decoys/{id}Turn one off.
PUT /v1/decoys/settings{ "auto_deny_days": 7 }: put a device that used one on your deny list. Growth and Scale.

Free on every plan, 200 active decoys. A use sends the decoy.hit webhook. Also: decoy accounts and the form trap.

Test values

The campaign name is still validated. visitor_id is v_test0000000000; undo answers 204 and the list is empty.

Campaign containsAnswer
block, such as test-blockblock, PROMO_DEVICE_REUSED, PROMO_MAILBOX_REUSED
reviewreview, PROMO_NETWORK_BURST
Anything elseallow
A code that contains decoyblock, PROMO_DECOY_CODE

Limits and errors

1 assessment per check; undo and lists are free. Also the common errors.

StatusCodeWhen
400invalid_campaigncampaign is missing or malformed.
400no_identifierNo usable identifier was sent.
400invalid_bodyNo JSON body.
404session_not_foundThe session is not your account’s.

Only redeem: true calls are stored: what is stored. Once a row is deleted, that use is forgotten.