REST. JSON. Bearer auth.
Stabiel, versie-beheerd en klein. Elk endpoint accepteert nette JSON en geeft een voorspelbare vorm terug — inclusief de errors.
BASE-URLhttps://api.tapreceipt.com
Maak een bon
Het meest aangeroepen endpoint. Alles in lines is optioneel — alleen een totaal is voor veel belastingregimes al een geldige bon.
Request
POST /v1/receipts
Content-Type: application/json
{
"merchant_id": "mer_018E7Q",
"terminal_id": "trm_NL_AMS_03",
"currency": "EUR",
"total_minor": 940,
"tax_minor": 164,
"lines": [
{ "name": "Filterkoffie", "qty": 1, "price_minor": 380, "tax_rate": 0.21 },
{ "name": "Kaneelbroodje","qty": 1, "price_minor": 350, "tax_rate": 0.09 }
],
"metadata": { "order_ref": "POS-44812" }
}200 OK
{
"id": "rcp_018E7Q4N...",
"object": "receipt",
"url": "https://r.tapreceipt.com/8q3hv2",
"wallet_pass": "https://r.tapreceipt.com/8q3hv2/pass",
"created": 1746200400,
"currency": "EUR",
"total_minor": 940,
"tax_minor": 164,
"lines": [ /* … */ ],
"merchant_id": "mer_018E7Q",
"terminal_id": "trm_NL_AMS_03"
}Haal een bon op
GET /v1/receipts/rcp_018E7Q4N...
Authorization: Bearer sk_live_********
200 OK
{
"id": "rcp_018E7Q4N...",
"object": "receipt",
"status": "tapped",
"tapped_at": 1746200401,
"url": "https://r.tapreceipt.com/8q3hv2",
/* … */
}