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}'
| Field | Meaning |
|---|---|
campaign | Required. 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_id | The session: device and IP address. |
account_id | Your account ID, up to 128 characters. |
email | Only a one-way ID of the inbox is kept, so every spelling counts as one person. |
payment_hash | Your own card hash, the same as at checkout. |
code | What the customer typed, to find your decoy codes. |
limit | Uses allowed per person: 1 to 1000, default 1. |
redeem | Default false, which only looks. true records it: an allowed use as redeemed, anything else as an attempt. |
value | What 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
}
| Field | Meaning |
|---|---|
recommendation | allow grant it. review no earlier use, but a sign of farming. block earlier uses reached limit. |
eligible | true only on allow. |
summary | One sentence for logs and support. |
prior_redemptions | Matching earlier uses, each counted once. |
matches | By device, linked_device, mailbox, card or account, with the count and the latest time. |
recorded, redemption_id | Whether this call was stored, and the ID to undo it. |
visitor_id | The session’s device. |
Reason codes
| Code | Answer | Meaning |
|---|---|---|
PROMO_DEVICE_REUSED | block at limit | The same device used it. |
PROMO_LINKED_DEVICE_REUSED | block at limit | A linked device used it. |
PROMO_MAILBOX_REUSED | block at limit | The same inbox used it. |
PROMO_CARD_REUSED | block at limit | The same payment_hash used it. |
PROMO_ACCOUNT_REUSED | block at limit | The same account_id used it. |
PROMO_DECOY_CODE | block | The code is one of your decoys. Nothing is recorded as a use. |
PROMO_NETWORK_BURST | review | Unusually many recent uses from one network. |
PROMO_DISPOSABLE_EMAIL | review | A disposable inbox. |
PROMO_EMAIL_INVALID | review | Not a usable address. |
PROMO_DEVICE_NOT_DISTINGUISHABLE | None | The device could not be told apart and nothing else was sent. Send more identifiers. |
Look first, record at the order
- When the code is typed, call without
redeem. Show or refuse the discount. - When the order is placed, call with
redeem: trueandvalue. Apply the discount only onallow.
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.
| Call | Purpose |
|---|---|
GET /v1/decoys | Your 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 contains | Answer |
|---|---|
block, such as test-block | block, PROMO_DEVICE_REUSED, PROMO_MAILBOX_REUSED |
review | review, PROMO_NETWORK_BURST |
| Anything else | allow |
A code that contains decoy | block, PROMO_DECOY_CODE |
Limits and errors
1 assessment per check; undo and lists are free. Also the common errors.
| Status | Code | When |
|---|---|---|
| 400 | invalid_campaign | campaign is missing or malformed. |
| 400 | no_identifier | No usable identifier was sent. |
| 400 | invalid_body | No JSON body. |
| 404 | session_not_found | The session is not your account’s. |
Only redeem: true calls are stored: what is stored. Once a row is deleted, that use is forgotten.