For vendors
Redemption API
Confirm redeemed NewsTech discount codes straight from your own system.
What it does
When a NewsTech member redeems one of your discount codes, tell us right away instead of sending a list at the end of the period. It works for unique, single-use codes that NewsTech handed out from the batch you supplied. Shared codes, referral links and introductions can’t be confirmed this way.
Your key
NewsTech gives you a key that starts with ntk_. Send it in the Authorization header. Keep it on your server, never in a browser, app or public repository. If it leaks, ask NewsTech to revoke it and issue a new one.
Try it
Paste your key and a few codes. Copy the curl command into a terminal, or send the request from here.
Request
POST http://localhost:3000/api/v1/redemptions
Authorization: Bearer ntk_...
Content-Type: application/json
{"codes": ["INK-NT-0001", "INK-NT-0002"]}- Send a code as soon as it’s redeemed, or up to 1,000 at once.
- Case and surrounding spaces don’t matter.
- Requests are safe to repeat: a code confirmed before comes back as
duplicateand isn’t counted twice.
Response
{
"matched": 1,
"duplicate": 1,
"unmatched": 0,
"results": [
{ "code": "INK-NT-0001", "status": "matched" },
{ "code": "INK-NT-0002", "status": "duplicate" }
]
}Code statuses
| Status | Meaning |
|---|---|
| matched | A code NewsTech gave to a member; now confirmed. |
| duplicate | Confirmed before, or listed twice in this request. |
| unmatched | Not one of your codes that NewsTech gave to a member. |
Errors
Errors are JSON: {"code": "...", "message": "..."}
| HTTP | Code | What it means |
|---|---|---|
| 401 | UNAUTHENTICATED | The key is missing, wrong or revoked. |
| 422 | VALIDATION_FAILED | The body isn’t {"codes": [...]} with 1–1,000 strings. |
| 429 | RATE_LIMITED | More than 60 requests a minute. Wait for Retry-After seconds. |