NewsTech
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.

Stays in this page; it is only sent with the request below.

curl
curl -X POST http://localhost:3000/api/v1/redemptions \
  -H 'Authorization: Bearer ntk_your_key' \
  -H 'Content-Type: application/json' \
  -d '{"codes":["INK-NT-0001","INK-NT-0002"]}'

Requests are real: matched codes are confirmed. Repeating them is safe.

Request

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 duplicate and isn’t counted twice.

Response

Response
{
  "matched": 1,
  "duplicate": 1,
  "unmatched": 0,
  "results": [
    { "code": "INK-NT-0001", "status": "matched" },
    { "code": "INK-NT-0002", "status": "duplicate" }
  ]
}

Code statuses

StatusMeaning
matchedA code NewsTech gave to a member; now confirmed.
duplicateConfirmed before, or listed twice in this request.
unmatchedNot one of your codes that NewsTech gave to a member.

Errors

Errors are JSON: {"code": "...", "message": "..."}

HTTPCodeWhat it means
401UNAUTHENTICATEDThe key is missing, wrong or revoked.
422VALIDATION_FAILEDThe body isn’t {"codes": [...]} with 1–1,000 strings.
429RATE_LIMITEDMore than 60 requests a minute. Wait for Retry-After seconds.