For shops on the Enterprise plan. As of November 2026, version 1.
https://stamp.socva.de/api/v1Authorization: Bearer sst_…. You create the key in the dashboard under API. It is shown only once.429 with Retry-After.400, 401, 403, 404, 409, 429) and {"error": {"code": "…", "message": "…"}}.idempotency_key (or the header Idempotency-Key) when stamping, for example the receipt number. If the same request arrives twice, it is stamped only once.| Method | Path | What for |
|---|---|---|
GET | /shop | Name, number of stamps, reward and link to your shop's poster. |
POST | /cards | Create a new card. Response with card number and links for browser, Apple Wallet and Google Wallet. |
GET | /cards | All cards, page by page (limit up to 200, continue with cursor). With updated_since only changed ones. |
GET | /cards/{karte} | Status of a card. {karte} is the card number (e.g. K7Q-4MX) or the content of the QR code. |
POST | /cards/{karte}/stamps | Stamp. count (1 to 10), location_id, idempotency_key, force. |
POST | /cards/{karte}/redeem | Redeem an earned reward. location_id optional. |
GET | /locations | Your branches with number, name and address. |
GET | /stats | Figures: cards, stamps, visits and rewards for today, 7 and 30 days. |
curl -X POST https://stamp.socva.de/api/v1/cards/K7Q-4MX/stamps \
-H "Authorization: Bearer sst_DEIN_SCHLUESSEL" \
-H "Content-Type: application/json" \
-d '{"count": 1, "location_id": 3, "idempotency_key": "bon-2026-118-0042"}'
Response:
{
"card": { "code": "K7Q-4MX", "stamps": 8, "stamps_needed": 10, "rewards_available": 0, "rewards_redeemed": 1,
"total_stamps": 18, "visits": 12, "wallet": "apple", "marketing_ok": true,
"created_at": "2026-10-02T08:14:00.000Z", "last_stamp_at": "2026-11-18T09:31:12.000Z" },
"reward_reached": false, "duplicate": false
}
If the card was just stamped (pause from the settings), you get 409 with "code": "cooldown". With "force": true it is stamped anyway.
Under API in the dashboard you enter an address (only https://). With every event we send a POST request with JSON there:
card.created | New card |
card.stamped | Stamps given |
reward.earned | Reward earned |
reward.redeemed | Reward redeemed |
ping | Test aus dem Dashboard |
{
"id": "evt_2bW9xQ…", "type": "card.stamped", "created": "2026-11-18T09:31:12.000Z",
"shop": { "slug": "cafe-kornblume", "name": "Café Kornblume" },
"data": { "card": { "code": "K7Q-4MX", "stamps": 8, … }, "amount": 1, "source": "api",
"location": { "id": 3, "name": "Hauptbahnhof", "address": "" } }
}
Respond with a 2xx status. Otherwise we try again after 3 seconds, 20 seconds, 2 minutes and 10 minutes. After 20 unsuccessful events in a row we pause the webhook; you turn it back on in the dashboard. We do not follow redirects.
Check authenticity: Every request carries the header Socva-Signature: t=…,v1=…. v1 is an HMAC-SHA256 (hex) with your webhook secret over t + "." + body. Also check that t is no older than 5 minutes.
const crypto = require('crypto');
function echt(rohInhalt, kopf, geheimnis) {
const t = /t=(\d+)/.exec(kopf)?.[1], v1 = /v1=([0-9a-f]+)/.exec(kopf)?.[1];
if (!t || !v1 || Math.abs(Date.now() / 1000 - t) > 300) return false;
const soll = crypto.createHmac('sha256', geheimnis).update(t + '.' + rohInhalt).digest('hex');
return crypto.timingSafeEqual(Buffer.from(soll), Buffer.from(v1.padEnd(soll.length).slice(0, soll.length)));
}
In Zapier use the trigger “Webhooks by Zapier → Catch Hook”, in Make the module “Webhooks → Custom webhook”. Enter the address you get there as a webhook with us. For actions (for example stamping) use “Webhooks by Zapier → POST” in Zapier or “HTTP → Make a request” in Make, with your key in the Authorization header. There is no dedicated socva app in Zapier or Make yet.
The API only provides card numbers and stamp counts, no names. You get the link to the card (links.card_url) only when creating it: it is the key to the card, treat it like a password.